diff options
author | Lofstedt, Marta <marta.lofstedt@intel.com> | 2018-02-22 10:00:11 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2018-02-22 14:05:09 +0200 |
commit | 813ed5beb507cee596337b9abd584bcbbd8a172c (patch) | |
tree | be6d0359f6c12ef6b72ab87b0ec73c3a42c77e1c /tests/kms_frontbuffer_tracking.c | |
parent | 2430bf908517d59644a81374bc809a9751bfaf83 (diff) |
igt/kms_fronbuffer_tracking: Handle ENODEV when checking i915_edp_psr_status for chipset support
If the machine doesn't support PSR, it will return -ENODEV from
i915_edp_psr_status, which we want to interpret as unsupported.
This is in line with what Chris just fixed for FBC.
V2: Copy-pasted to the correct place
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/kms_frontbuffer_tracking.c')
-rw-r--r-- | tests/kms_frontbuffer_tracking.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 57ae047b..1483c228 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -1638,6 +1638,9 @@ static bool psr_sink_has_support(void) char buf[256]; debugfs_read("i915_edp_psr_status", buf); + if (*buf == '\0') /* !HAS_PSR -> -ENODEV*/ + return false; + return strstr(buf, "Sink_Support: yes\n"); } |