kms_frontbuffer_tracking: wait for PSR to be HW Enabled & Active

Make sure PSR is fully there.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni 2015-08-24 17:04:25 -03:00
parent c1fe951b8a
commit 229110442a

View File

@ -722,7 +722,8 @@ static bool psr_is_enabled(void)
char buf[256]; char buf[256];
igt_debugfs_read("i915_edp_psr_status", buf); 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) static struct timespec fbc_get_last_action(void)