From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id B0ED810E0C7 for ; Fri, 8 Sep 2023 13:58:49 +0000 (UTC) From: Mohammed Thasleem To: igt-dev@lists.freedesktop.org Date: Fri, 8 Sep 2023 19:20:18 +0530 Message-Id: <20230908135018.2306021-1-mohammed.thasleem@intel.com> In-Reply-To: <20230829161759.9315-1-mohammed.thasleem@intel.com> References: <20230829161759.9315-1-mohammed.thasleem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t] tests/kms_atomic_transition: Reduce the number of iterations on modeset-transition List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Due to the higher number of iterations, "modeset-transition" tests are getting timed out on CI. Reducing the number of iterations can save a lot of execution time. Instead of having (2 ^ j) iterations, reduce it to (2 * j) where j is the number of active pipes. v2: Update commit message. (Swati) v3: Update commit message and minor changes. (Bhanu) v4: Add simulation check. (Kamil) v5: Restore simulation check. (Kamil) Signed-off-by: Mohammed Thasleem Reviewed-by: Kamil Konieczny --- tests/kms_atomic_transition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c index a470eb88c..1eba6c5b5 100644 --- a/tests/kms_atomic_transition.c +++ b/tests/kms_atomic_transition.c @@ -966,7 +966,7 @@ retry: } } - iter_max = 1 << j; + iter_max = (j > 0) ? (j << 1) : 1; if (igt_run_in_simulation() && iter_max > 1) iter_max = iter_max >> 1; -- 2.25.1