diff options
Diffstat (limited to 'lib/igt_psr.c')
| -rw-r--r-- | lib/igt_psr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/igt_psr.c b/lib/igt_psr.c index 83ccacdd..f92eff6c 100644 --- a/lib/igt_psr.c +++ b/lib/igt_psr.c @@ -25,6 +25,16 @@ #include "igt_sysfs.h" #include <errno.h> +bool psr_disabled_check(int debugfs_fd) +{ + char buf[PSR_STATUS_MAX_LEN]; + + igt_debugfs_simple_read(debugfs_fd, "i915_edp_psr_status", buf, + sizeof(buf)); + + return strstr(buf, "PSR mode: disabled\n"); +} + static bool psr_active_check(int debugfs_fd, enum psr_mode mode) { char buf[PSR_STATUS_MAX_LEN]; |
