diff options
-rw-r--r-- | lib/igt_psr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/igt_psr.c b/lib/igt_psr.c index 82012e6d..a59ff94e 100644 --- a/lib/igt_psr.c +++ b/lib/igt_psr.c @@ -32,8 +32,8 @@ static bool psr_active(int debugfs_fd, bool check_active) igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf, sizeof(buf)); - active = strstr(buf, "HW Enabled & Active bit: yes\n") && - (strstr(buf, "SRDENT") || strstr(buf, "SLEEP")); + + active = strstr(buf, "SRDENT") || strstr(buf, "SLEEP"); return check_active ? active : !active; } @@ -137,5 +137,6 @@ bool psr_sink_support(int debugfs_fd) ret = igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf, sizeof(buf)); - return ret > 0 && strstr(buf, "Sink_Support: yes\n"); + return ret > 0 && (strstr(buf, "Sink_Support: yes\n") || + strstr(buf, "Sink support: yes")); } |