[igt-dev] [PATCH 1/1] test/i915/gem_create: skip set_pat for non MTL devices

fei.yang at intel.com fei.yang at intel.com
Thu Jul 27 00:10:39 UTC 2023


From: Fei Yang <fei.yang at intel.com>

Fix the logic checking for non-meteorlake devices.

Suggested-by: Tvrtko Ursulin <tvrtko.ursulin at linux.intel.com>
Signed-off-by: Fei Yang <fei.yang at intel.com>
Cc: Andi Shyti <andi.shyti at linux.intel.com>
Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
 tests/i915/gem_create.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_create.c b/tests/i915/gem_create.c
index 4b00fe6aa..87fde2963 100644
--- a/tests/i915/gem_create.c
+++ b/tests/i915/gem_create.c
@@ -680,7 +680,7 @@ static void create_ext_set_pat(int fd)
 	 * supported.
 	 */
 	igt_skip_on_f(ret == -EINVAL ||
-		      (ret == -ENODEV && IS_METEORLAKE(devid)),
+		      (ret == -ENODEV && !IS_METEORLAKE(devid)),
 		      "I915_GEM_CREATE_EXT_SET_PAT is not supported\n");
 
 	/*
-- 
2.25.1



More information about the igt-dev mailing list