Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/kms_vrr: Reset to High refresh rate before begin drrs test
@ 2024-01-23  4:14 Vidya Srinivas
  2024-01-23  5:15 ` ✓ CI.xeBAT: success for " Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Vidya Srinivas @ 2024-01-23  4:14 UTC (permalink / raw)
  To: igt-dev

Patch ensures a prepare state of moving panel to high RR
by waiting on FLIP event with high RR. This is more of a
prepare condition for drrs test.

Signed-off-by: Vidya Srinivas <vidya.srinivas@intel.com>
---
 tests/kms_vrr.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/kms_vrr.c b/tests/kms_vrr.c
index 44bc3480d..07b50cb4c 100644
--- a/tests/kms_vrr.c
+++ b/tests/kms_vrr.c
@@ -522,6 +522,10 @@ test_seamless_rr_basic(data_t *data, enum pipe pipe, igt_output_t *output, uint3
 
 	if (vrr)
 		set_vrr_on_pipe(data, pipe, false, true);
+	else {
+		igt_output_override_mode(output, &data->switch_modes[HIGH_RR_MODE]);
+		igt_assert(igt_display_try_commit_atomic(&data->display, DRM_MODE_PAGE_FLIP_EVENT, NULL) == 0);
+	}
 
 	rate = vtest_ns.max;
 	result = flip_and_measure(data, output, pipe, rate, TEST_DURATION_NS);
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 12+ messages in thread
[parent not found: <0240125055825.8915-1-vidya.srinivas@intel.com>]

end of thread, other threads:[~2024-01-25  9:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-23  4:14 [PATCH i-g-t] tests/kms_vrr: Reset to High refresh rate before begin drrs test Vidya Srinivas
2024-01-23  5:15 ` ✓ CI.xeBAT: success for " Patchwork
2024-01-23  5:33 ` ✗ Fi.CI.BAT: failure " Patchwork
2024-01-23 11:39 ` ✓ Fi.CI.BAT: success " Patchwork
2024-01-23 14:02 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-01-25  5:58 ` [PATCH i-g-t] " Vidya Srinivas
2024-01-25  6:44 ` ✓ CI.xeBAT: success for tests/kms_vrr: Reset to High refresh rate before begin drrs test (rev2) Patchwork
2024-01-25  6:45 ` ✓ Fi.CI.BAT: " Patchwork
2024-01-25  8:50 ` ✗ Fi.CI.IGT: failure " Patchwork
     [not found] <0240125055825.8915-1-vidya.srinivas@intel.com>
2024-01-25  9:29 ` [PATCH i-g-t] tests/kms_vrr: Reset to High refresh rate before begin drrs test Vidya Srinivas
2024-01-25  9:56   ` Modem, Bhanuprakash
2024-01-25  9:58     ` Srinivas, Vidya

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