* [RESEND i-g-t v1] tests/kms_flip: test suspend on one pair of pipes
@ 2026-02-01 15:03 Michał Grzelak
2026-02-03 11:23 ` Jani Nikula
0 siblings, 1 reply; 2+ messages in thread
From: Michał Grzelak @ 2026-02-01 15:03 UTC (permalink / raw)
To: intel-gfx; +Cc: Thasleem, Mohammed, Michał Grzelak
Currently, every pair of ({pipe1, pipe2}, {output1, output2}) is being
tested in 2x-* subtests. Since suspend shouldn't be tested per pipe, it
causes unnecessary overhead: with 4 pipes & 4 displays it runs in total
36 tests. Given that each suspend's dynamic subtest can take up to tens
of seconds, total duration of the test easily exceeds timeout.
When testing suspend, for each pair of outputs test only first and last
pipe unless it is said to run on all pipes.
Signed-off-by: Michał Grzelak <michal.grzelak@intel.com>
---
tests/kms_flip.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index a74e69c6f..dd110aecf 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -1841,8 +1841,8 @@ static void run_test(int duration, int flags)
/* Count output configurations to scale test runtime. */
for (i = 0; i < resources->count_connectors; i++) {
for (n = 0; n < resources->count_crtcs; n++) {
- /* Limit the execution to 2 CRTCs (first & last) for hang tests */
- if ((flags & TEST_HANG) && !all_pipes &&
+ /* Limit the execution to 2 CRTCs (first & last) for hang and suspend tests */
+ if (((flags & TEST_HANG) || (flags & TEST_SUSPEND)) && !all_pipes &&
n != 0 && n != (resources->count_crtcs - 1))
continue;
@@ -1873,8 +1873,8 @@ static void run_test(int duration, int flags)
for (n = 0; n < resources->count_crtcs; n++) {
int crtc_idx;
- /* Limit the execution to 2 CRTCs (first & last) for hang tests */
- if ((flags & TEST_HANG) && !all_pipes &&
+ /* Limit the execution to 2 CRTCs (first & last) for hang and suspend tests */
+ if (((flags & TEST_HANG) || (flags & TEST_SUSPEND)) && !all_pipes &&
n != 0 && n != (resources->count_crtcs - 1))
continue;
@@ -1920,6 +1920,12 @@ static void run_pair(int duration, int flags)
for (n = 0; n < resources->count_crtcs; n++) {
for (j = i + 1; j < resources->count_connectors; j++) {
for (m = n + 1; m < resources->count_crtcs; m++) {
+ /* Limit the execution to 2 CRTCs (first & last) for hang and suspend tests */
+ if (((flags & TEST_HANG) || (flags & TEST_SUSPEND)) && !all_pipes &&
+ ((n != 0 && n != resources->count_crtcs) ||
+ m != resources->count_crtcs - 1))
+ continue;
+
memset(&o, 0, sizeof(o));
o.count = 2;
o._connector[0] = resources->connectors[i];
@@ -1965,8 +1971,8 @@ static void run_pair(int duration, int flags)
crtc_idxs[0] = n;
crtc_idxs[1] = m;
- /* Limit the execution to 2 CRTCs (first & last) for hang tests */
- if ((flags & TEST_HANG) && !all_pipes &&
+ /* Limit the execution to 2 CRTCs (first & last) for hang and suspend tests */
+ if (((flags & TEST_HANG) || (flags & TEST_SUSPEND)) && !all_pipes &&
((n != 0 && n != resources->count_crtcs) ||
m != resources->count_crtcs - 1))
continue;
--
2.45.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RESEND i-g-t v1] tests/kms_flip: test suspend on one pair of pipes
2026-02-01 15:03 [RESEND i-g-t v1] tests/kms_flip: test suspend on one pair of pipes Michał Grzelak
@ 2026-02-03 11:23 ` Jani Nikula
0 siblings, 0 replies; 2+ messages in thread
From: Jani Nikula @ 2026-02-03 11:23 UTC (permalink / raw)
To: Michał Grzelak, intel-gfx; +Cc: Thasleem, Mohammed, Michał Grzelak
On Sun, 01 Feb 2026, Michał Grzelak <michal.grzelak@intel.com> wrote:
> Currently, every pair of ({pipe1, pipe2}, {output1, output2}) is being
> tested in 2x-* subtests. Since suspend shouldn't be tested per pipe, it
> causes unnecessary overhead: with 4 pipes & 4 displays it runs in total
> 36 tests. Given that each suspend's dynamic subtest can take up to tens
> of seconds, total duration of the test easily exceeds timeout.
Surely this was meant for igt-dev mailing list.
BR,
Jani.
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-03 11:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-01 15:03 [RESEND i-g-t v1] tests/kms_flip: test suspend on one pair of pipes Michał Grzelak
2026-02-03 11:23 ` Jani Nikula
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox