[igt-dev] [PATCH i-g-t] tests/psr: Check for DRRS enabled in no_drrs test

José Roberto de Souza jose.souza at intel.com
Tue Sep 1 17:34:14 UTC 2020


Commit caab25dc9e36 ("drm/i915/display: Fix DRRS debugfs") added
"DRRS Enabled" that is set when DRRS is enabled and left
"DRRS Supported" to return if the panel supports DRRS.

The lack of this change was causing no_drrs tests to always fails if
panel supports this feature.

Cc: Gwan-gyeong Mun <gwan-gyeong.mun at intel.com>
Signed-off-by: José Roberto de Souza <jose.souza at intel.com>
---
 tests/kms_psr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_psr.c b/tests/kms_psr.c
index 49ea446af..ab19073e7 100644
--- a/tests/kms_psr.c
+++ b/tests/kms_psr.c
@@ -234,7 +234,7 @@ static bool drrs_disabled(data_t *data)
 	igt_debugfs_simple_read(data->debugfs_fd, "i915_drrs_status",
 			 buf, sizeof(buf));
 
-	return !strstr(buf, "DRRS Supported: Yes\n");
+	return !strstr(buf, "DRRS Enabled : Yes\n");
 }
 
 static void run_test(data_t *data)
-- 
2.28.0



More information about the igt-dev mailing list