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 A4736C5DF87 for ; Fri, 21 Aug 2026 13:01:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3E60810E296; Fri, 21 Aug 2026 13:01:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Fe+V5i7i"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id BBE5F10E39F for ; Fri, 21 Aug 2026 12:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1787316537; x=1818852537; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ez2ZZBW0iLfHjwYBTShO+GFdHonSEVZUSi8KWp9hddI=; b=Fe+V5i7iBviqb+Dpy2kwfOfCAbSlHoO/7j8kViXIqkcjusWaQoxE2/2A lClIISU9o/yarTZd6EZ+GdjQEzyk8TPMwEdaJYihtHHN6tz3dGrdxLDNh dUmdW7mkB/4AVrcquKhcpEEDFhRBEqYQHNRlIpCNHVqwIJKyxg9lwPV5O xy/4HSY+MJvu3ODqtEtm2uzkRyjIIkGcjJmnS4u1iiqjN9IW5Cvems0CO YmBAeq4e3tgV2AI0Cbm30aEvjdhIelX+W9xT6y0Bzoy0uos37WzWblyRs j8CeZuhODIugMqYlye9sgfZyUrKQ8JPlD98FqIL9keyi9LdjAsnH9Se2A g==; X-CSE-ConnectionGUID: Le46ppwHRnOS9ikIzbDtOg== X-CSE-MsgGUID: GSbCuUOeTxWL89oG8pd3oA== X-IronPort-AV: E=McAfee;i="6800,10657,11881"; a="87632931" X-IronPort-AV: E=Sophos;i="6.25,235,1779174000"; d="scan'208";a="87632931" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2026 05:48:57 -0700 X-CSE-ConnectionGUID: ydEAJlCLSa2d7Dq+H42WQw== X-CSE-MsgGUID: 7KgL1n8/QfuhDC11QV9wcw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,235,1779174000"; d="scan'208";a="291188392" Received: from dev-417.igk.intel.com ([10.91.214.181]) by fmviesa001.fm.intel.com with ESMTP; 21 Aug 2026 05:48:55 -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 v3 13/17] tests/kms_sharpness_filter: limit #crtcs tested during suspend Date: Fri, 21 Aug 2026 14:48:30 +0200 Message-ID: <20260821124834.1974029-14-michal.grzelak@intel.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20260821124834.1974029-1-michal.grzelak@intel.com> References: <20260821124834.1974029-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 crtc while testing suspend. This results in extended execution time. In turn this leads to hitting CI enforced timeout. Limit number of tested crtcs to first and last. Test each crtc when passing commandline parameter. v1->v2 - remove unused vars (Jani) Signed-off-by: MichaƂ Grzelak Reviewed-by: Nemesa Garg --- tests/intel/kms_sharpness_filter.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/intel/kms_sharpness_filter.c b/tests/intel/kms_sharpness_filter.c index adec4a60c5..a8578cf4fc 100644 --- a/tests/intel/kms_sharpness_filter.c +++ b/tests/intel/kms_sharpness_filter.c @@ -233,6 +233,7 @@ static const struct subtest_entry { typedef struct { int drm_fd; bool limited; + bool all_crtcs; bool all_outputs; struct igt_fb fb[4]; igt_crtc_t *crtc; @@ -635,6 +636,10 @@ run_sharpness_filter_test(data_t *data, enum test_type type) igt_output_set_crtc(data->output, data->crtc); + if (type == TEST_FILTER_SUSPEND && !data->all_crtcs && crtc->crtc_index != 0 && + crtc->crtc_index != display->n_crtcs-1) + continue; + /* * FIXME: Joiner + CASF currently unsupported. * Remove this check once support is implemented. @@ -776,6 +781,9 @@ static int opt_handler(int opt, int opt_index, void *_data) case 'l': data->limited = true; break; + case 'c': + data->all_crtcs = true; + break; case 'o': data->all_outputs = true; break; @@ -788,11 +796,12 @@ static int opt_handler(int opt, int opt_index, void *_data) static const char help_str[] = " --limited|-l\t\tLimit execution to 1 valid pipe-output combo\n" - " --all-outputs|-o\t\tExtend suspend tests for all outputs\n"; + " --all-outputs|-o\t\tExtend suspend tests for all outputs\n" + " --all-crtcs|-c\t\tExtend suspend tests for all crtcs\n"; data_t data = {}; -int igt_main_args("lo", NULL, help_str, opt_handler, &data) +int igt_main_args("loc", NULL, help_str, opt_handler, &data) { igt_fixture() { data.drm_fd = drm_open_driver_master(DRIVER_ANY); -- 2.45.2