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 9EAE3C79FBB for ; Thu, 10 Sep 2026 20:22:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3FF7010E30B; Thu, 10 Sep 2026 20:22:11 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="dU9gq+Vb"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 91FA610E2F9 for ; Thu, 10 Sep 2026 20:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789071278; x=1820607278; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5/4kENarKEdNyBZQM4LqWm2zlkZgMdQx0LfUoFJ4qDs=; b=dU9gq+VbKVEM+DjvfRjnFrnvrZ1IGSKGI7ynYYsBOLZvPf1qAGpQM5vM 2Q1EvFuhLBaje+0zPXe9/39WjL/xSkMrdGzrnJF9bLSY+3xPITAvcjUp0 z6sGoMpICcrmdN/2aygSBoeC+KvF5/+U0lR7nAkbsJE/4mp9Vx42vnTYi sXU0kSDBfD4V4O2Be19jP27yNds3UZqZnXAL6X3QlAYwsIvq/cyAcCB/e h1MlFfme7w6TuzKX6VEh7TqNG7Y+aIwiRzxCHVY+vaWmkA8ApdVC2hDVd qyfGJCv6cvqpRMgkvHTMia/1M15YDcXCy997CkEPamZbI+0VnN+Ec4Klz A==; X-CSE-ConnectionGUID: JHBUynOFTAuRldY/IHR+0Q== X-CSE-MsgGUID: DWwbBzD3SDCwALLKKoJRUw== X-IronPort-AV: E=McAfee;i="6800,10657,11901"; a="89657264" X-IronPort-AV: E=Sophos;i="6.27,95,1787036400"; d="scan'208";a="89657264" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2026 13:14:37 -0700 X-CSE-ConnectionGUID: /4c4RFRdSR+A8e+jhLgPWg== X-CSE-MsgGUID: bQQ1+yI7QRu7FyLk9WsE6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,95,1787036400"; d="scan'208";a="309978207" Received: from dev-417.igk.intel.com ([10.91.214.181]) by orviesa001.jf.intel.com with ESMTP; 10 Sep 2026 13:14:36 -0700 From: =?UTF-8?q?Micha=C5=82=20Grzelak?= To: igt-dev@lists.freedesktop.org Cc: Nemesa Garg , Karthik B S , Mohammed Thasleem , =?UTF-8?q?Micha=C5=82=20Grzelak?= Subject: [PATCH i-g-t v5 08/17] tests/kms_psr: limit #outputs tested during suspend Date: Thu, 10 Sep 2026 22:14:04 +0200 Message-ID: <20260910201413.2730574-9-michal.grzelak@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260910201413.2730574-1-michal.grzelak@intel.com> References: <20260910201413.2730574-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. v3->v4 - indent `case' at same level as switch (Mohammed) v2->v3 - remove blank line (Mohammed) - change output format of help string (Mohammed) v1->v2 - s/OUTPUT_LIMIT/SUSPEND_OUTPUT_LIMIT/ (Mohammed) - fix typos (Mohammed) - fix off-by-one error (Mohammed) Reviewed-by: Mohammed Thasleem Signed-off-by: MichaƂ Grzelak --- tests/intel/kms_psr.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/tests/intel/kms_psr.c b/tests/intel/kms_psr.c index 7b02dd2072..c8e3ed2e7b 100644 --- a/tests/intel/kms_psr.c +++ b/tests/intel/kms_psr.c @@ -275,6 +275,8 @@ * @plane-move: Move plane position */ +#define SUSPEND_OUTPUT_LIMIT 2 + enum operations { PAGE_FLIP, MMAP_GTT, @@ -318,6 +320,7 @@ typedef struct { drmModeModeInfo *mode; igt_output_t *output; bool fbc_flag; + bool all_outputs; } data_t; static void create_cursor_fb(data_t *data) @@ -767,9 +770,27 @@ static void dpms_off_on(data_t *data) DRM_MODE_DPMS_ON); } +static int opt_handler(int opt, int opt_index, void *opt_data) +{ + data_t *data = opt_data; + + switch (opt) { + case 'o': + data->all_outputs = true; + break; + default: + return IGT_OPT_HANDLER_ERROR; + } + + return IGT_OPT_HANDLER_SUCCESS; +} + data_t data = {}; -int igt_main() +const char *help_str = + " -o \tRun on all connectors. (By default suspend subtests will run on 2 connectors)\n"; + +int igt_main_args("o", NULL, help_str, opt_handler, &data) { int z, y; enum operations op; @@ -945,10 +966,15 @@ int igt_main() "performed with suspend resume cycles"); igt_subtest_with_dynamic_f("%s%ssuspend", append_fbc_subtest[y], append_subtest_name[z]) { + int output_count = 0; + for_each_connected_output(&data.display, output) { if (!psr_sink_support(data.drm_fd, data.debugfs_fd, data.op_psr_mode, output)) continue; + if (!data.all_outputs && output_count >= SUSPEND_OUTPUT_LIMIT) + continue; + output_count++; igt_display_reset(&data.display); data.output = output; igt_dynamic_f("%s", data.output->name) { -- 2.45.2