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 A4734606A32F for ; Fri, 4 Dec 2026 17:45:25 +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=gn2u8BeK Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5BC4A10EB8B; Fri, 4 Dec 2026 17:45:20 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id D696D10EC44 for ; Fri, 4 Dec 2026 17:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796406033; x=1827942033; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=uoqCky0QcZ1QtOubnGtE7bmOZ3coQ16Ux4KVKpJi/g8=; b=gn2u8BeK6P99OxFuJIfP8NqvE9TysDabIDCMi05116OMnZ/OuJ0fv8rx dF9A6msCsRPjLjGFbTN3lKlE4nG8XiQa4CNLBBld5hkHqJBotA4ToWKxb 7R8eZUKZYyNWA6o5gCBQB7Vnc5Hd9FCtxWHBqJG9MoCKPIhyqqAkUzNyA Gr89SgiVNvIdzGGWo2h2T9u01gG9RgczIACgCJ3+8O0f/KLovasnwukPx yGpivD7+faWDPXXUMAJlkUnT0zZ4qJnt7iC9y//dNJC+dBfRKzImwnN5D wKbrsotvOWcfINbJyufpw5JT4dq5m6qMGGBAWs6eKmC0xiFKBS9Nd7hWC Q==; X-CSE-ConnectionGUID: Qm4rIhRwTwWHxOJ3xdaIGg== X-CSE-MsgGUID: JITN1MJrTW6IEPQs6hPudQ== X-IronPort-AV: E=McAfee;i="6800,10657,11986"; a="5405686" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5405686" 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:33 -0800 X-CSE-ConnectionGUID: J5GtOIWPQU2qJIqHtyh6Gw== X-CSE-MsgGUID: gxGLwdoVROyVezqxjWxv1g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="14035420" 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:31 -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 4/9] tests/kms_vblank: limit #outputs tested during suspend Date: Fri, 4 Dec 2026 18:40:11 +0100 Message-ID: <20261204174016.1914923-5-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 We are iterating through each output while testing suspend. This results in extended execution time. In turn this leads to hitting CI enforced timeout. By default limit number of tested outputs to 2. Test each connected output when passing command-line parameter. v3->v4 - reset output_count inside dynamic subtest (Thasleem) - fix help string's description (Thasleem) v1->v2 - fix off-by-one error (Thasleem) - reset output_count before subtest (Thasleem) Reviewed-by: Juha-Pekka Heikkila Signed-off-by: MichaƂ Grzelak --- tests/kms_vblank.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c index 018bc6f6ee..a73f87cee7 100644 --- a/tests/kms_vblank.c +++ b/tests/kms_vblank.c @@ -109,7 +109,10 @@ typedef struct { #define RPM 0x80 } data_t; +#define OUTPUT_LIMIT 2 + static bool all_pipes; +static bool all_outputs; static int active_crtcs[IGT_MAX_PIPES]; static uint32_t last_crtc_index; @@ -476,6 +479,7 @@ static void vblank_ts_cont(data_t *data, int fd, int nchildren) static void run_subtests(data_t *data) { igt_crtc_t *crtc; + int output_count = 0; const struct { const char *name; void (*func)(data_t *, int, int); @@ -515,7 +519,14 @@ static void run_subtests(data_t *data) igt_describe("Check if test run while hanging by introducing NOHANG flag."); igt_subtest_with_dynamic_f("%s-%s", f->name, m->name) { + output_count = 0; + for_each_connected_output(&data->display, data->output) { + if (!all_outputs && (m->flags & SUSPEND) && output_count >= OUTPUT_LIMIT) { + igt_info("Skipping output %s\n", data->output->name); + continue; + } + for_each_crtc(&data->display, crtc) { if(!igt_crtc_connector_valid(crtc, data->output)) continue; @@ -538,6 +549,8 @@ static void run_subtests(data_t *data) run_test(data, f->func); } } + + output_count++; } } @@ -630,6 +643,9 @@ static int opt_handler(int opt, int opt_index, void *data) case 'e': all_pipes = true; break; + case 'o': + all_outputs = true; + break; default: return IGT_OPT_HANDLER_ERROR; } @@ -638,9 +654,10 @@ static int opt_handler(int opt, int opt_index, void *data) } const char *help_str = - " -e \tRun on all pipes. (By default subtests will run on two pipes)\n"; + " -e \tRun on all pipes. (By default subtests will run on two pipes)\n" + " -o \tRun on all outputs. (By default subtests will run on two outputs)\n"; -int igt_main_args("e", NULL, help_str, opt_handler, NULL) +int igt_main_args("eo", NULL, help_str, opt_handler, NULL) { igt_crtc_t *crtc; int fd; -- 2.45.2