[igt-dev] [PATCH 1/1] tests/i915/kms_frontbuffer_tracking: ignore case when checking DRRS support

James Xiong james.xiong at intel.com
Wed Feb 23 18:26:08 UTC 2022


commit caab25dc9e36 ("drm/i915/display: Fix DRRS debugfs")
switched to macro yesno and changed i915_drrs_status from
"DRRS Supported: Yes" to "yes". ignore case when checking if
drrs is supported to avoid false result.

Signed-off-by: James Xiong <james.xiong at intel.com>
---
 tests/i915/kms_frontbuffer_tracking.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/kms_frontbuffer_tracking.c b/tests/i915/kms_frontbuffer_tracking.c
index 532bfbb9..329375b0 100644
--- a/tests/i915/kms_frontbuffer_tracking.c
+++ b/tests/i915/kms_frontbuffer_tracking.c
@@ -795,7 +795,7 @@ static bool is_drrs_supported(void)
 	char buf[MAX_DRRS_STATUS_BUF_LEN];
 
 	debugfs_read("i915_drrs_status", buf);
-	return strstr(buf, "DRRS Supported: Yes");
+	return strcasestr(buf, "DRRS Supported: Yes");
 }
 
 static bool is_drrs_inactive(void)
-- 
2.17.1



More information about the igt-dev mailing list