Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] kms_frontbuffer_tracking: Fix PSR reporting after PSR active flag is removed.
@ 2018-03-16 16:16 Maarten Lankhorst
  2018-03-16 16:26 ` Maarten Lankhorst
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Maarten Lankhorst @ 2018-03-16 16:16 UTC (permalink / raw)
  To: igt-dev

Either the main link in standby mode or hw enabled is enough to
say that PSR is activated, so just use both.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105519
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
 tests/kms_frontbuffer_tracking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 454103d367c7..e4da706b0631 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -781,7 +781,7 @@ static bool psr_is_enabled(void)
 	char buf[256];
 
 	debugfs_read("i915_edp_psr_status", buf);
-	return strstr(buf, "\nActive: yes\n") &&
+	return strstr(buf, "\nMain link in standby mode: yes\n") ||
 	       strstr(buf, "\nHW Enabled & Active bit: yes\n");
 }
 
-- 
2.16.2

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-03-16 23:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-16 16:16 [igt-dev] [PATCH i-g-t] kms_frontbuffer_tracking: Fix PSR reporting after PSR active flag is removed Maarten Lankhorst
2018-03-16 16:26 ` Maarten Lankhorst
2018-03-16 18:37 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-03-16 23:01 ` [igt-dev] ✗ Fi.CI.IGT: warning " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox