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 7ACA0E9B262 for ; Tue, 24 Feb 2026 13:33:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2E8E010E328; Tue, 24 Feb 2026 13:33:08 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ZB/nC2bE"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id B7E6910E585 for ; Tue, 24 Feb 2026 13:33:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771939982; x=1803475982; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=o7ZVWgGUPDpQONBRwPw6jylGxF0+ZTKpnTDHUCSR5EI=; b=ZB/nC2bECoR3HHN5juEyE3Yyk4TP4vAqis6pzKhZ2qfZh42GUBJeoLsQ RMqKC3GycsE3nJvAfGBBjXfS9myr+n7Up0RN3Y1aBCDhwj8NIrVRAy8M7 xFXWHOhQ2cspX/avUdY2KYu+VfcLE9+xhMEOiom2EM++5esOMsBFndze5 bkkcXa21IcDJlwQpS11ltOI/OoNn8T/ycozpM3T02itWMNj9pSifwObda +Ab8zSGnCTOhQdM2Ye2HFS60vPUIgcNJ0Vrm5nWPWTMZpo+U9yF75mz9E 0xtwh03C02b9z4pOzfeYYJHqGZILxwPCT6Lg18e+8RLGyZ/BBO2rhjCe8 w==; X-CSE-ConnectionGUID: FtGr4WgSQ7e1u3xfSGtx/A== X-CSE-MsgGUID: kAOkKOo5SnSJ+N1L801+4g== X-IronPort-AV: E=McAfee;i="6800,10657,11710"; a="84410061" X-IronPort-AV: E=Sophos;i="6.21,308,1763452800"; d="scan'208";a="84410061" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2026 05:33:01 -0800 X-CSE-ConnectionGUID: fu78rOFnRQS7jL0hJOaLHQ== X-CSE-MsgGUID: eAvAXYY+Tbq2qoysojwz8Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,308,1763452800"; d="scan'208";a="246476843" Received: from administrator-system-product-name.igk.intel.com (HELO dev-417.igk.intel.com) ([10.91.214.181]) by orviesa002.jf.intel.com with ESMTP; 24 Feb 2026 05:33:01 -0800 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: igt-dev@lists.freedesktop.org Cc: mohammed.thasleem@intel.com, =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH i-g-t 4/6] tests/kms_flip: limit number of outputs wrt suspend Date: Tue, 24 Feb 2026 14:32:40 +0100 Message-ID: <20260224133242.1678232-5-michal.grzelak@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260224133242.1678232-1-michal.grzelak@intel.com> References: <20260224133242.1678232-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 command-line 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 917c5ed6f..ae38096aa 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); + } } } @@ -2071,10 +2085,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