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 <>
Reviewed-by: Dhinakaran Pandiyan's avatarDhinakaran Pandiyan <>
Signed-off-by: José Roberto de Souza's avatarJosé Roberto de Souza <>
parent 5ef25867
......@@ -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,
active = strstr(buf, "SRDENT") || strstr(buf, "SLEEP");
active = strstr(buf, "SRDENT") || strstr(buf, "DEEP_SLEEP");
return check_active ? active : !active;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment