From b91b915cf75311ddec2c41e4592ab7bf1badb272 Mon Sep 17 00:00:00 2001 From: Dhinakaran Pandiyan Date: Thu, 27 Sep 2018 21:19:25 -0700 Subject: tests/psr: Wait for PSR exit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PSR appears to not exit immediately after the test commits a page flip, give some leeway for PSR to idle. Let's set the timeout at 40 ms with a 5 ms interval between each status read. Signed-off-by: Dhinakaran Pandiyan Reviewed-by: José Roberto de Souza --- tests/kms_frontbuffer_tracking.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/kms_frontbuffer_tracking.c') diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 265c313a..356e5b6d 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -1634,8 +1634,7 @@ static void do_status_assertions(int flags) igt_assert_f(psr_wait_entry(drm.debugfs), "PSR still disabled\n"); else if (flags & ASSERT_PSR_DISABLED) - igt_assert_f(psr_active(drm.debugfs, false), - "PSR still enabled\n"); + igt_assert_f(psr_wait_exit(drm.debugfs), "PSR still enabled\n"); } static void __do_assertions(const struct test_mode *t, int flags, -- cgit v1.2.3