[igt-dev] [i-g-t] tests/kms_atomic_transition: Reduce the execution time on simulation
Bhanuprakash Modem
bhanuprakash.modem at intel.com
Wed Feb 8 09:15:08 UTC 2023
Due to the more number of iterations, "modest-transition" tests are
getting timed out on pre-si CI. Reducing the number of iterations to
half can save a lot of execution time.
This patch will also do some cleanup before exiting the subtest.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
tests/kms_atomic_transition.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 6d2ebbbff..3d206aaa2 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -714,6 +714,9 @@ static unsigned set_combinations(data_t *data, unsigned mask, struct igt_fb *fb)
for (i = 0; i < data->display.n_outputs; i++)
igt_output_set_pipe(&data->display.outputs[i], PIPE_NONE);
+ if (fb == NULL)
+ return event_mask;
+
for_each_pipe(&data->display, pipe) {
igt_plane_t *plane = igt_pipe_get_plane_type(&data->display.pipes[pipe],
DRM_PLANE_TYPE_PRIMARY);
@@ -858,6 +861,9 @@ retry:
iter_max = 1 << j;
+ if (igt_run_in_simulation() && iter_max > 1)
+ iter_max = iter_max >> 1;
+
if (igt_display_try_commit_atomic(&data->display,
DRM_MODE_ATOMIC_TEST_ONLY |
DRM_MODE_ATOMIC_ALLOW_MODESET,
--
2.39.0
More information about the igt-dev
mailing list