diff options
author | Pandiyan, Dhinakaran <dhinakaran.pandiyan@intel.com> | 2018-03-15 18:21:18 -0700 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-03-20 12:35:55 +0100 |
commit | 178e7f3da66cd02660a86257df75708a0efa3bbc (patch) | |
tree | c7bdb404e51f662539cc68abfa354c6c11a0cfd6 /tests/kms_frontbuffer_tracking.c | |
parent | b09e979a67817a9b068f841bda81940b9d208850 (diff) |
tests/kms_frontbuffer_tracking: Update check for PSR status
Kernel does not expose the "Active: " flag in edp_psr_status anymore.
So test for "HW Enabled & Active bit: yes", although this isn't completely
accurate either for frontbuffer tests. Let's go with this for now until
the kernel exposes HW PSR status.
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105519
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
Diffstat (limited to 'tests/kms_frontbuffer_tracking.c')
-rw-r--r-- | tests/kms_frontbuffer_tracking.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 2b85392d..5cba4158 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -781,8 +781,7 @@ static bool psr_is_enabled(void) char buf[256]; debugfs_read("i915_edp_psr_status", buf); - return strstr(buf, "\nActive: yes\n") && - strstr(buf, "\nHW Enabled & Active bit: yes\n"); + return strstr(buf, "\nHW Enabled & Active bit: yes\n"); } static void psr_print_status(void) |