Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DFBD9EB4903 for ; Thu, 12 Feb 2026 11:10:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8BBF410E723; Thu, 12 Feb 2026 11:10:44 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="SJMxFWUt"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id CED7610E728 for ; Thu, 12 Feb 2026 11:10:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770894643; x=1802430643; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/TQG4mTZPCkkrmyihePeAztyy0PcHMxOIV6/MdCR9aU=; b=SJMxFWUtwjd6kHepi93tmy76ja7309bv0huxSHjhbdj/GUJyYIRMxedT w7ewS/pAMigB2Npjobdsy97TjSqNEe7OqKyBc5dB2+Sh/2mCk2i7oUc23 oupd26OHYGaBi3For3XJNm5xpJfsIiSUXj16ZUJxqBd9Bh0cAk3wh65cx YNtLq/j/oBB7bIcTD47AgnddZhDTQLDduXVAuHpgWlzzQ5rFFukoAp2+m Ga0xGdBGNbLSGEaX8MWjIdW4tRYXGAIHioujP+AKB4j7pefgaY95NJrIc 6ZMI/kfbmNmYCxlWgUJJOKDRWK7r7v1PKAro9ib/xHIGvtMFOiiKRe44Z g==; X-CSE-ConnectionGUID: fPpZxMXiQIyjPy5x9bt5sA== X-CSE-MsgGUID: lCEy/ES/Q+SeVB1i9Nt/pQ== X-IronPort-AV: E=McAfee;i="6800,10657,11698"; a="75907666" X-IronPort-AV: E=Sophos;i="6.21,286,1763452800"; d="scan'208";a="75907666" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2026 03:10:42 -0800 X-CSE-ConnectionGUID: rElOW33OQy29XS+anmudVQ== X-CSE-MsgGUID: 3ZJcz2cASxuMoMudU1iqtA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,286,1763452800"; d="scan'208";a="212674327" Received: from administrator-system-product-name.igk.intel.com (HELO dev-417.igk.intel.com) ([10.91.214.181]) by orviesa007.jf.intel.com with ESMTP; 12 Feb 2026 03:10:42 -0800 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: igt-dev@lists.freedesktop.org Cc: Mohammed Thasleem , =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH i-g-t v4 4/4] tests/kms_flip: limit number of outputs wrt suspend Date: Thu, 12 Feb 2026 12:10:22 +0100 Message-ID: <20260212111023.189261-5-michal.grzelak@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260212111023.189261-1-michal.grzelak@intel.com> References: <20260212111023.189261-1-michal.grzelak@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" When running suspend subtests on single output, we can still hit the timeout by testing too much outputs. Default to testing 3 outputs. Add commandline parameter to run on all outputs. Signed-off-by: MichaƂ Grzelak --- tests/kms_flip.c | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 232b6fbbe..97be899da 100755 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -264,12 +264,14 @@ #define RUN_PAIR 2 #define PAIR_LIMIT 3 +#define CONN_LIMIT 3 #ifndef DRM_CAP_TIMESTAMP_MONOTONIC #define DRM_CAP_TIMESTAMP_MONOTONIC 6 #endif static bool all_pipes = false; +static bool all_conns = false; static bool all_pairs = false; drmModeRes *resources; @@ -1824,6 +1826,7 @@ static void run_test(int duration, int flags) { struct test_output o; int i, n, modes = 0; + int conn_count = 0; /* No tiling support in XE. */ if (is_xe_device(drm_fd) && flags & TEST_FENCE_STRESS) @@ -1889,6 +1892,10 @@ static void run_test(int duration, int flags) if ((flags & TEST_SUSPEND) && !all_pipes && n != 0) continue; + /* Limit number of displays run */ + if ((flags & TEST_SUSPEND) && !all_conns && conn_count >= CONN_LIMIT) + continue; + memset(&o, 0, sizeof(o)); o.count = 1; o._connector[0] = resources->connectors[i]; @@ -1897,8 +1904,15 @@ static void run_test(int duration, int flags) o.depth = 24; crtc_idx = n; - run_test_on_crtc_set(&o, &crtc_idx, RUN_TEST, - resources->count_crtcs, duration); + + connector_find_preferred_mode(o._connector[0], n, &o); + if (o.mode_valid) { + run_test_on_crtc_set(&o, &crtc_idx, RUN_TEST, + resources->count_crtcs, duration); + conn_count++; + } else { + free_test_output(&o); + } } } @@ -2072,10 +2086,11 @@ static int opt_handler(int opt, int opt_index, void *data) } const char *help_str = + " -c \tRun on all connectors. (By default suspend subtests will run on 3 connectors)\n" " -e \tRun on all pipes. (By default subtests will run on two pipes)\n" " -p \tRun on all output pairs. (By default 2x-* suspend subtests will run on 3 pairs)\n"; -int igt_main_args("ep", NULL, help_str, opt_handler, NULL) +int igt_main_args("cep", NULL, help_str, opt_handler, NULL) { struct { int duration; -- 2.45.2