[PATCH i-g-t 2/4] lib/igt_psr: Psr status debugfs interface print "enabled" not "Enabled"

Jouni Högander jouni.hogander at intel.com
Tue May 21 09:02:31 UTC 2024


Psr status debugfs interface print "enabled" not "Enabled". Take this into
account in psr_mode psr_get_mode.

Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
 lib/igt_psr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index 964f18487..d1286276c 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -399,9 +399,9 @@ enum psr_mode psr_get_mode(int debugfs_fd, igt_output_t *output)
 		return PSR_DISABLED;
 	}
 
-	if (strstr(buf, "Panel Replay Enabled"))
+	if (strstr(buf, "Panel Replay enabled"))
 		return PR_MODE;
-	else if (strstr(buf, "Panel Replay Selective Update Enabled"))
+	else if (strstr(buf, "Panel Replay Selective Update enabled"))
 		return PR_MODE_SEL_FETCH;
 	else if (strstr(buf, "PSR2 selective fetch: enabled"))
 		return PSR_MODE_2_SEL_FETCH;
-- 
2.34.1



More information about the igt-dev mailing list