Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [i-g-t 0/2] tests/kms_atomic_transition: IGT test cleanup
@ 2022-09-05  4:06 Bhanuprakash Modem
  2022-09-05  4:06 ` [igt-dev] [i-g-t 1/2] tests/kms_atomic_transition: Convert tests to dynamic Bhanuprakash Modem
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Bhanuprakash Modem @ 2022-09-05  4:06 UTC (permalink / raw)
  To: igt-dev, karthik.b.s

Convert all possible subtests to dynamic and sanitize the system
state before starting/exiting the subtest.

Bhanuprakash Modem (2):
  tests/kms_atomic_transition: Convert tests to dynamic
  tests/kms_atomic_transition: Test Cleanup

 tests/kms_atomic_transition.c | 371 +++++++++++++---------------------
 1 file changed, 137 insertions(+), 234 deletions(-)

--
2.35.1

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [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
  0 siblings, 1 reply; 15+ 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] 15+ messages in thread

end of thread, other threads:[~2023-02-09  6:28 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-05  4:06 [igt-dev] [i-g-t 0/2] tests/kms_atomic_transition: IGT test cleanup Bhanuprakash Modem
2022-09-05  4:06 ` [igt-dev] [i-g-t 1/2] tests/kms_atomic_transition: Convert tests to dynamic Bhanuprakash Modem
2022-09-06 12:53   ` Karthik B S
2022-09-05  4:06 ` [igt-dev] [i-g-t 2/2] tests/kms_atomic_transition: Test Cleanup Bhanuprakash Modem
2022-09-06 12:57   ` Karthik B S
2022-09-06 14:12   ` [igt-dev] [i-g-t V2 " Bhanuprakash Modem
2022-09-07  7:01     ` [igt-dev] [i-g-t " Bhanuprakash Modem
2022-09-07  8:45       ` Karthik B S
2022-09-05  4:44 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_atomic_transition: IGT test cleanup Patchwork
2022-09-05  5:49 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2022-09-06 15:26 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_atomic_transition: IGT test cleanup (rev2) Patchwork
2022-09-06 18:53 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2022-09-07  7:32 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_atomic_transition: IGT test cleanup (rev3) Patchwork
2022-09-07  8:28 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
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

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