From mboxrd@z Thu Jan 1 00:00:00 1970 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 D277CC5AD2B for ; Fri, 7 Aug 2026 22:56:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8611810E3E1; Fri, 7 Aug 2026 22:56:47 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="WJ/fP0uX"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id BECD210E463 for ; Fri, 7 Aug 2026 22:48:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1786142884; x=1817678884; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YFA/hOxVuZz00mbVqztS5h0pc3Jk0b3VUD8GzRH+erQ=; b=WJ/fP0uXq7WUWqGedpdlQAjcGXl1IUUzCN0uE/6V5ygnvVUVW1+f0ah3 UbnfbBfVqH1wCqPzyXQxtkqoUUR4wSNZlQ1PVUdwozCAocf3gr5f9JOCd 4SByJDx0hUy/8tiTHRySW4/F41AOhXmHQOOq0GC+G480eGfRYqIDkeYFS I6N1To+WIDmltN3TQTqoGr3Dffh96ouA3McPU5QOG3XkhMbb0q0g8mL67 HYMr89JUyHPIsYFvbcREZZ2A5oLH7eWPjkVfMaBBlj2X+r9XceJd23xLa OB9fWSIN+FARxfxjNsAQUeAZi+V3118df8Lt8Qra3Yn/zyf/G4MMHGIYj Q==; X-CSE-ConnectionGUID: L3yQUILnSH610m5GEyquaQ== X-CSE-MsgGUID: u6qjUGnmQCqR1TxrIVYoWw== X-IronPort-AV: E=McAfee;i="6800,10657,11868"; a="86835823" X-IronPort-AV: E=Sophos;i="6.25,210,1779174000"; d="scan'208";a="86835823" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2026 15:48:04 -0700 X-CSE-ConnectionGUID: hj8m4MSWRY6h9GaPbi02UA== X-CSE-MsgGUID: QtudLszVTm+aRLjffRoGlA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,210,1779174000"; d="scan'208";a="258655442" Received: from dev-417.igk.intel.com ([10.91.214.181]) by fmviesa010.fm.intel.com with ESMTP; 07 Aug 2026 15:48:02 -0700 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: igt-dev@lists.freedesktop.org Cc: nemesa.garg@intel.com, mohammed.thasleem@intel.com, karthik.b.s@intel.com, =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH i-g-t v2 10/16] tests/kms_vblank: limit #outputs tested during suspend Date: Sat, 8 Aug 2026 00:47:40 +0200 Message-ID: <20260807224746.3554064-11-michal.grzelak@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260807224746.3554064-1-michal.grzelak@intel.com> References: <20260807224746.3554064-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" 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. v1->v2 - fix off-by-one error (Mohammed) - reset output_count before subtest (Mohammed) Signed-off-by: MichaƂ Grzelak --- tests/kms_vblank.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c index 47b733af15..7995528c3f 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); @@ -513,9 +517,16 @@ static void run_subtests(data_t *data) if (m->flags & ~(f->valid | NOHANG)) continue; + output_count = 0; + igt_describe("Check if test run while hanging by introducing NOHANG flag."); igt_subtest_with_dynamic_f("%s-%s", f->name, m->name) { 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++; } } @@ -545,6 +558,8 @@ static void run_subtests(data_t *data) if (f->valid & NOHANG || m->flags & NOHANG) continue; + output_count = 0; + igt_describe("Check if injected hang is working properly."); igt_subtest_with_dynamic_f("%s-%s-hang", f->name, m->name) { igt_hang_t hang; @@ -628,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; } @@ -636,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 three 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