[igt-dev] [PATCH i-g-t] tests/i915/gem_userptr_blits: skip set-cache-level subtest on MTL platform

Vikas Srivastava vikas.srivastava at intel.com
Thu Mar 2 06:33:34 UTC 2023


SET_CACHE ioctl is not supported on latest platform like MTL
so instead of failing in set-cache-level subtest just skip it.

Signed-off-by: Vikas Srivastava <vikas.srivastava at intel.com>
---
 tests/i915/gem_userptr_blits.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/i915/gem_userptr_blits.c b/tests/i915/gem_userptr_blits.c
index 483570d0a..402d8810b 100644
--- a/tests/i915/gem_userptr_blits.c
+++ b/tests/i915/gem_userptr_blits.c
@@ -2417,8 +2417,11 @@ igt_main_args("c:", NULL, help_str, opt_handler, NULL)
 			test_sd_probe(fd);
 		}
 
-		igt_subtest("set-cache-level")
+		igt_subtest("set-cache-level") {
+			igt_require_f(__gem_set_caching(fd, 0, 0) != -EOPNOTSUPP,
+				      "set_caching not supported on this platform");
 			test_set_caching(fd);
+		}
 
 		igt_subtest("userfault")
 			test_userfault(fd);
-- 
2.25.1



More information about the igt-dev mailing list