From 229110442a4814b87859e2833688feb2881a2274 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Mon, 24 Aug 2015 17:04:25 -0300 Subject: [PATCH] kms_frontbuffer_tracking: wait for PSR to be HW Enabled & Active Make sure PSR is fully there. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 532e658c..a60f1d16 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -722,7 +722,8 @@ static bool psr_is_enabled(void) char buf[256]; igt_debugfs_read("i915_edp_psr_status", buf); - return (strstr(buf, "\nActive: yes\n")); + return strstr(buf, "\nActive: yes\n") && + strstr(buf, "\nHW Enabled & Active bit: yes\n"); } static struct timespec fbc_get_last_action(void)