Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jeevan B <jeevan.b@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: kamil.konieczny@intel.com
Subject: [igt-dev] [PATCH i-g-t] tests/kms_flip: Restrict multi-display hang tests execution
Date: Thu, 27 Jul 2023 18:25:35 +0530	[thread overview]
Message-ID: <20230727125535.2832-1-jeevan.b@intel.com> (raw)

Restrict the hang tests execution to the first and last pipe
combinations to avoid timeouts on CI.

v2: Update the subject and combine the if condition.

Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
 tests/kms_flip.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index ef2234f74..739939ce3 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -1729,9 +1729,13 @@ static void run_pair(int duration, int flags)
 					crtc_idxs[0] = n;
 					crtc_idxs[1] = m;
 
-					/* Limit the execution to PIPE_A combination for hang tests */
-					if ((flags & TEST_HANG) && !all_pipes &&
-					    (n != 0 && n != resources->count_crtcs))
+					/*
+					 * Limit the execution to 2 CRTCs
+					 * (first and last combination) for hang tests
+					 */
+					if (((flags & TEST_HANG) && !all_pipes) &&
+					    ((n != 0 && n != resources->count_crtcs) ||
+					    m != resources->count_crtcs - 1))
 						continue;
 
 					run_test_on_crtc_set(&o, crtc_idxs,
-- 
2.41.0

             reply	other threads:[~2023-07-27 13:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-27 12:55 Jeevan B [this message]
2023-07-27 14:05 ` [igt-dev] [PATCH i-g-t] tests/kms_flip: Restrict multi-display hang tests execution Kamil Konieczny
2023-07-27 16:04 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-07-27 17:31 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-07-27 19:31 ` [igt-dev] ✓ Fi.CI.IGT: success " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230727125535.2832-1-jeevan.b@intel.com \
    --to=jeevan.b@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox