Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B77F606A330 for ; Tue, 17 Nov 2026 15:20:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=NO3eeA3e Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 46ADB10E627; Tue, 17 Nov 2026 15:20:16 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id 95E6A10E629 for ; Tue, 17 Nov 2026 15:14:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1794928442; x=1826464442; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HsuB1JYQAotY4zDeuCaNPPLUvaJZYaum4H0om8JVeF0=; b=NO3eeA3ej2x1mpEMny3oNo8gawgIeYSIcISYTw7ajheAdRLBSZtcRTyY ClXb8Tl9u5PTBCwrOLnRaNN2qhAFKKW0Zn06FqC0yfEWKN+KI46+YaeAD zbd8Nd1N7xxT/sB8qSUZyLPVrhdkMI6JkokjS3xFnqHqU+eTaQuO8lIB8 S68HyFUy5HUnEZUt44gORGtKbcfsZ9fjGnrpoaTp8VEgaNtF7n/RcNNRU R9P4r85Vrb6ZtLm6xY4PHZbZ2WyE/LhEQTg1kHkUBq5r7WoIrFNkLKr/a u6kHsWJnLHu3sXY0BIdcUXw5Z7/VJmiBbUjO1P0a1+O2rtVgv9b8/Asym w==; X-CSE-ConnectionGUID: 4DPt2hhCSJenH4sQd/KYGw== X-CSE-MsgGUID: HgWRtQ1LRNWZJcIYxH1x9Q== X-IronPort-AV: E=McAfee;i="6800,10657,11969"; a="3568813" X-IronPort-AV: E=Sophos;i="6.27,218,1787036400"; d="scan'208";a="3568813" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2026 07:14:02 -0800 X-CSE-ConnectionGUID: R1aF55R1RhujoxXcu160pw== X-CSE-MsgGUID: 6BdZ1Gy+TiuuxL91rD3LUw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,218,1787036400"; d="scan'208";a="9724616" Received: from dev-417.igk.intel.com ([10.91.214.181]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Nov 2026 07:14:00 -0800 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: igt-dev@lists.freedesktop.org Cc: Karthik B S , Swati Sharma , =?UTF-8?q?Juha-Pekka=20Heikkil=C3=A4?= , Jani Nikula , =?UTF-8?q?Micha=C5=82=20Grzelak?= , =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH i-g-t v10 8/9] tests/intel/kms_ccs: limit #pipes tested during suspend Date: Tue, 17 Nov 2026 16:13:25 +0100 Message-ID: <20261117151326.2074274-9-michal.grzelak@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20261117151326.2074274-1-michal.grzelak@linux.intel.com> References: <20261117151326.2074274-1-michal.grzelak@linux.intel.com> X-Archived-By: 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-Archive: List-Post: List-Help: List-Subscribe: , Sender: "igt-dev" X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Limit execution of suspend tests to first and last active pipe unless using `extended` flag. This reduces default execution time of the test. In turn this can lower chances of hitting CI timeout. Alternatively test could be run on first and last CRTC; but due to pipe reordering, this would result in using arbitrary pipes. Thus set first and last pipe as the only available in suspend resume case. v8->v9 - fix extra long opts string (JP) v7->v8 - use pipe mask (Jani) v6->v7 - use first and last hardware pipe instead of CRTCs (J-P, Jani) v5->v6 - describe how pipe reordering affects the test (Jani) v3->v4 - set `first' and `last' indices outside of crtc loop (Thasleem) Reviewed-by: Juha-Pekka Heikkila Signed-off-by: MichaƂ Grzelak --- tests/intel/kms_ccs.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/intel/kms_ccs.c b/tests/intel/kms_ccs.c index 734dafd110..887b9ba7bd 100644 --- a/tests/intel/kms_ccs.c +++ b/tests/intel/kms_ccs.c @@ -192,6 +192,7 @@ typedef struct { bool available_pipes[IGT_MAX_PIPES]; bool do_hibernate; bool all_outputs; + bool all_crtcs; struct { struct igt_fb fb; int width, height; @@ -1098,7 +1099,9 @@ static bool set_available_hw_pipes(data_t *data) for_each_crtc(&data->display, crtc) { hw_pipe = crtc->hardware_pipe; - data->available_pipes[hw_pipe] = true; + + if (data->all_crtcs) + data->available_pipes[hw_pipe] = true; if (last_pipe < hw_pipe) last_pipe = hw_pipe; @@ -1110,6 +1113,9 @@ static bool set_available_hw_pipes(data_t *data) if (first_pipe == IGT_MAX_PIPES || last_pipe == PIPE_NONE) return false; + data->available_pipes[first_pipe] = true; + data->available_pipes[last_pipe] = true; + return true; } @@ -1260,6 +1266,9 @@ static int opt_handler(int opt, int opt_index, void *opt_data) case 'n': data->all_outputs = true; break; + case 'e': + data->all_crtcs = true; + break; default: return IGT_OPT_HANDLER_ERROR; } @@ -1274,9 +1283,10 @@ static const char *help_str = " -s \tSeed for random number generator\n" " -r\t\tOn suspend test do full hibernate with reboot\n" " -n\t\tRun on all connectors. (By default suspend subtests will run on 3 connectors)\n" +" -e\t\tRun on all CRTCs. (By default subtests will run on two CRTCs)\n" ; -int igt_main_args("csrn:", NULL, help_str, opt_handler, &data) +int igt_main_args("cs:rne", NULL, help_str, opt_handler, &data) { igt_fixture() { data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE); -- 2.45.2