Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/kms_flip: Restrict multi-display hang tests execution
@ 2023-07-27 12:55 Jeevan B
  2023-07-27 14:05 ` Kamil Konieczny
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jeevan B @ 2023-07-27 12:55 UTC (permalink / raw)
  To: igt-dev; +Cc: kamil.konieczny

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-27 19:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-27 12:55 [igt-dev] [PATCH i-g-t] tests/kms_flip: Restrict multi-display hang tests execution Jeevan B
2023-07-27 14:05 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox