Re: [PATCH i-g-t v1 07/16] tests/kms_pipe_crc_basic: limit #crtcs tested during suspend
"Thasleem, Mohammed" <[email protected]> Tue, 28 Jul 2026 12:32:24 +0530
| Newsgroups | org.freedesktop.lists.igt-dev |
|---|---|
| Message-ID | <[email protected]> |
On 13-07-2026 02:25 pm, Michał Grzelak wrote: > Limit execution of suspend tests to first and last active CRTC unless > using `extended` flag. This helps with reducing default execution time > of the test which can lower number of hitting CI timeout. > > Signed-off-by: Michał Grzelak <[email protected]> > --- > tests/kms_pipe_crc_basic.c | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c > index 42e1415452..9ea04a0f3b 100644 > --- a/tests/kms_pipe_crc_basic.c > +++ b/tests/kms_pipe_crc_basic.c > @@ -127,6 +127,16 @@ enum { > TEST_HANG = 1 << 3, > }; > > +static bool suspend_constraint(unsigned flags, igt_crtc_t *crtc) > +{ > + if (!extended && (flags & TEST_SUSPEND) && > + crtc->crtc_index != active_crtcs[0] && > + crtc->crtc_index != active_crtcs[last_crtc_index]) > + return true; > + > + return false; > +} > + > static void test_read_crc(data_t *data, igt_crtc_t *crtc, > igt_output_t *output, unsigned flags) > { > @@ -428,6 +438,9 @@ int igt_main_args("e", NULL, help_str, opt_handler, NULL) > if(!crtc_output_combo_valid(&data.display, crtc, output)) > continue; > > + if (suspend_constraint(tests[i].flags, crtc)) > + continue; -->NIT: Move suspend_constraint() before crtc_output_combo_valid() as it's just arithmetic and no display state needed, can be avoids unnecessary reset/validate on discarded combos. > + > igt_dynamic_f("pipe-%s-%s", > igt_crtc_name(crtc), > output->name) {