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 5DC89606A322 for ; Fri, 4 Dec 2026 17:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=A3nLc6/i Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 15B8610E1CA; Fri, 4 Dec 2026 17:48:12 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 96E54112EE1 for ; Fri, 4 Dec 2026 17:40:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796406036; x=1827942036; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/9oLyCYyS8Q2FfngZtJNIdS4CmnUIPO1deGgRAKSyAA=; b=A3nLc6/iQxwPi8p1LG2k7y9raIyG79/BXV4XpKi+pf1/BHoepCTYNZ2n AUf3FzjyALmPTLv3uJ5LXKkU/VUF1C8jYGItv9fMDv1BVxjshkXI3ap74 F6lcFbYI50enEu7LlfXTG6bts+o+nCxmAAXJ0zl0jyyIdYdosYDw7EGbP PvtNMkTTSDHxzh5zm1yz4zPCUnG78HxIfcbkoxFsEg/DyFMxodxDMl78g Bh1nLRCLnc6yE0IXMF5q6JfigHomRb9iwDId8vuB9n20lV/3MKCR1IlzY uGSkeOlpnguDI5093bQL/P7cq8tC9iDXBNeQttxkR9RvUmduM/XKqO2sf A==; X-CSE-ConnectionGUID: SbTO+pQGQOuJiZNRwDrZTA== X-CSE-MsgGUID: Q4HlPqIsTAq38NCh/UK/YA== X-IronPort-AV: E=McAfee;i="6800,10657,11986"; a="5405692" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5405692" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 09:40:36 -0800 X-CSE-ConnectionGUID: J8/RE2/6RQud0P0VcTGDYA== X-CSE-MsgGUID: 3/8rJ6ymSYiEeauSea6vuQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="14035433" Received: from dev-417.igk.intel.com ([10.91.214.181]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 09:40:35 -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 v11 6/9] tests/intel/kms_ccs: limit #outputs tested during suspend Date: Fri, 4 Dec 2026 18:40:13 +0100 Message-ID: <20261204174016.1914923-7-michal.grzelak@linux.intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20261204174016.1914923-1-michal.grzelak@linux.intel.com> References: <20261204174016.1914923-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=-17.2 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 Each suspend test is executed per output. Limit number of outputs tested to 3 by default. Add command-line option enabling execution on every output. v3->v4 - reset output_count per each dynamic subtest (Thasleem) - correct description from help string (Thasleem) v1->v2 - fix off-by-one error Reviewed-by: Juha-Pekka Heikkila Signed-off-by: MichaƂ Grzelak --- tests/intel/kms_ccs.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/intel/kms_ccs.c b/tests/intel/kms_ccs.c index 98c76f7b7a..7dcf9d536d 100644 --- a/tests/intel/kms_ccs.c +++ b/tests/intel/kms_ccs.c @@ -141,6 +141,8 @@ * @yf-tiled-ccs: YF tiled ccs */ +#define OUTPUT_LIMIT 3 + #define SDR_PLANE_BASE 3 IGT_TEST_DESCRIPTION("Test render compression (RC), in which the main surface " @@ -188,6 +190,7 @@ typedef struct { enum igt_commit_style commit; int fb_list_length; bool do_hibernate; + bool all_outputs; struct { struct igt_fb fb; int width, height; @@ -968,6 +971,7 @@ static void test_output(data_t *data, const int testnum) { igt_crtc_t *crtc; uint16_t dev_id; + int output_count = 0; igt_fixture() dev_id = intel_get_drm_devid(data->drm_fd); @@ -992,7 +996,15 @@ static void test_output(data_t *data, const int testnum) "Older than Xe2 platform needed.\n"); } + output_count = 0; + for_each_connected_output(&data->display, data->output) { + if (!data->all_outputs && (data->flags & TEST_SUSPEND) && + output_count >= OUTPUT_LIMIT) + continue; + + output_count++; + for_each_crtc(&data->display, crtc) { if (!igt_crtc_connector_valid(crtc, data->output)) continue; @@ -1057,6 +1069,9 @@ static int opt_handler(int opt, int opt_index, void *opt_data) case 'r': data->do_hibernate = true; break; + case 'n': + data->all_outputs = true; + break; default: return IGT_OPT_HANDLER_ERROR; } @@ -1070,9 +1085,10 @@ static const char *help_str = " -c\t\tCheck the presence of compression meta-data\n" " -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" ; -int igt_main_args("csr:", NULL, help_str, opt_handler, &data) +int igt_main_args("csrn:", NULL, help_str, opt_handler, &data) { igt_fixture() { data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_XE); -- 2.45.2