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 75A22EF48F0 for ; Fri, 13 Feb 2026 08:50:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 27F8010E7B1; Fri, 13 Feb 2026 08:50:31 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="YF5mTetB"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1195410E7BD for ; Fri, 13 Feb 2026 08:50:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770972629; x=1802508629; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ers5HBHfF9AVXJ9+Hl0O29sbhQdbDMotxi88nDEEuxw=; b=YF5mTetBN67dFugqZafjsiAw4eqSu/TMUpmF5puOn98aTfb7JaVSKVc7 Vj1aRAYnBWvjbpFNMSjRj1Qf/IbfDklL+/ynFwvPhPqTmUy5TCkUakHFz SUO9YVxI+2lFK5f4iGdW1NANuG20oo6tWtzKOVDCiNnMTflKoj63TWecy UBu/URtOCbJtq+KW/2vNxeqC0bXjKwe0AYWNBixX8eGdSN638mgHY6iNB wG7Hz4eGmR3QG6LNv1VA8kP2/9C6hYKKSpf5/VP2YSn6o37RZOHdNNmXp 1Ao0ge3a3/akM1jfNoTbiQQi/envXRbaGOiSRjnJCoVYnZ5XjQHICtRK+ A==; X-CSE-ConnectionGUID: KYO8Lo0CSJ6ZP0YTm55CVQ== X-CSE-MsgGUID: p7i6lrOLSYq+0/28ywZp6g== X-IronPort-AV: E=McAfee;i="6800,10657,11699"; a="71181732" X-IronPort-AV: E=Sophos;i="6.21,288,1763452800"; d="scan'208";a="71181732" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2026 00:50:29 -0800 X-CSE-ConnectionGUID: 1daXjLcBRkO4oYEXqXWaPw== X-CSE-MsgGUID: hkMgO0fVRceAAVFa/n1ZHA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,288,1763452800"; d="scan'208";a="211774856" Received: from administrator-system-product-name.igk.intel.com (HELO dev-417.igk.intel.com) ([10.91.214.181]) by fmviesa007.fm.intel.com with ESMTP; 13 Feb 2026 00:50:27 -0800 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: igt-dev@lists.freedesktop.org Cc: swati2.sharma@intel.com, mohammed.thasleem@intel.com, =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH i-g-t v5 4/4] tests/kms_flip: limit number of outputs wrt suspend Date: Fri, 13 Feb 2026 09:49:30 +0100 Message-ID: <20260213084930.252273-5-michal.grzelak@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260213084930.252273-1-michal.grzelak@intel.com> References: <20260213084930.252273-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 1c8495ef1..80e42cabb 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_crtcs = false; +static bool all_conns = false; static bool all_pairs = false; drmModeRes *resources; @@ -1822,6 +1824,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) @@ -1887,6 +1890,10 @@ static void run_test(int duration, int flags) if ((flags & TEST_SUSPEND) && !all_crtcs && 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]; @@ -1895,8 +1902,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); + } } } @@ -2070,10 +2084,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 CRTCs. (By default subtests will run on two CRTCs)\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