Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [i-g-t 1/2] tests/kms_atomic_transition: Reduce the execution time on simulation
@ 2023-02-09  6:23 Bhanuprakash Modem
  2023-02-09  6:23 ` [igt-dev] [i-g-t 2/2] tests/kms_atomic_transition: Test cleanup Bhanuprakash Modem
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Bhanuprakash Modem @ 2023-02-09  6:23 UTC (permalink / raw)
  To: igt-dev, karthik.b.s

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.

V2: - Separate patch for cleanup

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
 tests/kms_atomic_transition.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 6d2ebbbff..e1b74ac2c 100644
--- a/tests/kms_atomic_transition.c
+++ b/tests/kms_atomic_transition.c
@@ -858,6 +858,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

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

end of thread, other threads:[~2023-02-10 22:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-09  6:23 [igt-dev] [i-g-t 1/2] tests/kms_atomic_transition: Reduce the execution time on simulation Bhanuprakash Modem
2023-02-09  6:23 ` [igt-dev] [i-g-t 2/2] tests/kms_atomic_transition: Test cleanup Bhanuprakash Modem
2023-02-10  4:49   ` [igt-dev] [i-g-t V2 " Bhanuprakash Modem
2023-02-10  6:34     ` Karthik B S
2023-02-09  6:35 ` [igt-dev] ✗ GitLab.Pipeline: warning for series starting with [i-g-t,1/2] tests/kms_atomic_transition: Reduce the execution time on simulation Patchwork
2023-02-09  6:56 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-02-10  3:20 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-02-10  4:47 ` [igt-dev] [i-g-t 1/2] " Karthik B S
2023-02-10 15:24 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] tests/kms_atomic_transition: Reduce the execution time on simulation (rev2) Patchwork
2023-02-10 22:58 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

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