Thread (23 messages) flat view 23 messages, 3 authors, 13d ago
COOLING13d

[PATCH i-g-t v5 04/17] tests/kms_async_flips: limit S/R to first and last CRTC

From: Michał Grzelak <hidden>
Date: 2026-09-10 20:21:25
Subsystem: the rest · Maintainer: Linus Torvalds

In order to increase tests performance limit suspend-resume's execution
to only first and last CRTC.

v3->v4
- use crtc instead of display->crtcs (Mohammed)
- use proper logic operator (Mohammed)

v2->v3
- add missing S-O-B

Signed-off-by: Michał Grzelak <redacted>
---
 tests/kms_async_flips.c | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 8884efd8ba..f373dfcd95 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -873,6 +873,7 @@ static void run_test(data_t *data, void (*test)(data_t *))
 {
 	igt_crtc_t *crtc;
 	igt_display_t *display = &data->display;
+	int idx;
 
 	if (data->atomic_path)
 		require_atomic_async_cap(data);
@@ -885,6 +886,10 @@ static void run_test(data_t *data, void (*test)(data_t *))
 			data->crtc = crtc;
 			igt_display_reset(display);
 
+			idx = crtc->crtc_index;
+			if (data->suspend_resume && idx != 0 && idx != display->n_crtcs - 1)
+				continue;
+
 			igt_output_set_crtc(data->output,
 					    crtc);
 			if (!intel_pipe_output_combo_valid(display))
-- 
2.45.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help