summaryrefslogtreecommitdiff
path: root/lib/igt_psr.c
diff options
context:
space:
mode:
authorJosé Roberto de Souza <jose.souza@intel.com>2019-01-11 15:08:28 -0800
committerJosé Roberto de Souza <jose.souza@intel.com>2019-01-22 14:05:35 -0800
commit12e31ff245bb62a2b8c500cac9f8dcaa2015f6ca (patch)
tree5402a2bb988988156bcafd28f9a710ff317766f0 /lib/igt_psr.c
parent5ef25867499fadf39f7eb81bab5f07158b740093 (diff)
lib/psr: Only care about DEEP_SLEEP state for PSR2
To check if PSR is active it search for SRDENT for PSR1 and it was searching for SLEEP for PSR2 but it should really seach for DEEP_SLEEP as in this state display block is actualy saving a substancial amount of power. Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'lib/igt_psr.c')
-rw-r--r--lib/igt_psr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index a59ff94e..83c5b986 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -33,7 +33,7 @@ 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, "SRDENT") || strstr(buf, "SLEEP");
+ active = strstr(buf, "SRDENT") || strstr(buf, "DEEP_SLEEP");
return check_active ? active : !active;
}