From 178e7f3da66cd02660a86257df75708a0efa3bbc Mon Sep 17 00:00:00 2001 From: "Pandiyan, Dhinakaran" Date: Thu, 15 Mar 2018 18:21:18 -0700 Subject: 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 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105519 Signed-off-by: Dhinakaran Pandiyan Reviewed-by: Maarten Lankhorst Reviewed-by: Marta Lofstedt --- tests/kms_fbcon_fbt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/kms_fbcon_fbt.c') diff --git a/tests/kms_fbcon_fbt.c b/tests/kms_fbcon_fbt.c index b01c769c..280ddbd7 100644 --- a/tests/kms_fbcon_fbt.c +++ b/tests/kms_fbcon_fbt.c @@ -189,7 +189,7 @@ static bool psr_is_enabled(int fd) char buf[256]; igt_debugfs_read(fd, "i915_edp_psr_status", buf); - return strstr(buf, "\nActive: yes\n"); + return strstr(buf, "\nHW Enabled & Active bit: yes\n"); } static bool psr_wait_until_enabled(int fd) -- cgit v1.2.3