[igt-dev] [PATCH i-g-t v2 5/9] lib/psr: Make psr_active() only cares about PSR1

José Roberto de Souza jose.souza at intel.com
Thu Jan 3 14:36:37 UTC 2019


PSR2 will have it own function to detect if is active so we can drop
the sleep state search as it is a PSR2 state.

Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
---
 lib/igt_psr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 8efc9216..55f61c25 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -35,7 +35,7 @@ static bool psr_active(int debugfs_fd, bool check_active)
 
 	active = strstr(buf, "HW Enabled & Active bit: yes\n") ||
 		 strstr(buf, "Source PSR ctl: enabled");
-	active = active && (strstr(buf, "SRDENT") || strstr(buf, "SLEEP"));
+	active = active && strstr(buf, "SRDENT");
 	return check_active ? active : !active;
 }
 
-- 
2.20.0



More information about the igt-dev mailing list