[igt-dev] [PATCH igt-dii-client 2/3] tests/intel/gem_ctx_shared: Skip some test on MTL

Nirmoy Das nirmoy.das at intel.com
Tue Sep 12 12:46:12 UTC 2023


We do GGTT update on MTL using bcs engine, blocking that would
will fail the test so skip such subtests on bcs engine for MTL.

Signed-off-by: Nirmoy Das <nirmoy.das at intel.com>
---
 tests/intel/gem_ctx_shared.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/tests/intel/gem_ctx_shared.c b/tests/intel/gem_ctx_shared.c
index d24ae54831..bad0324178 100644
--- a/tests/intel/gem_ctx_shared.c
+++ b/tests/intel/gem_ctx_shared.c
@@ -1105,22 +1105,26 @@ igt_main
 
 			igt_subtest_with_dynamic("Q-independent") {
 				for_each_queue(e, i915, &cfg)
-					independent(i915, &cfg, e, 0);
+					if (!(gem_has_ggtt_bind(i915) && e->class == I915_ENGINE_CLASS_COPY))
+						independent(i915, &cfg, e, 0);
 			}
 
 			igt_subtest_with_dynamic("Q-in-order") {
 				for_each_queue(e, i915, &cfg)
-					reorder(i915, &cfg, e->flags, EQUAL);
+					if (!(gem_has_ggtt_bind(i915) && e->class == I915_ENGINE_CLASS_COPY))
+						reorder(i915, &cfg, e->flags, EQUAL);
 			}
 
 			igt_subtest_with_dynamic("Q-out-order") {
 				for_each_queue(e, i915, &cfg)
-					reorder(i915, &cfg, e->flags, 0);
+					if (!(gem_has_ggtt_bind(i915) && e->class == I915_ENGINE_CLASS_COPY))
+						reorder(i915, &cfg, e->flags, 0);
 			}
 
 			igt_subtest_with_dynamic("Q-promotion") {
 				for_each_queue(e, i915, &cfg)
-					promotion(i915, &cfg, e->flags);
+					if (!(gem_has_ggtt_bind(i915) && e->class == I915_ENGINE_CLASS_COPY))
+						promotion(i915, &cfg, e->flags);
 			}
 		}
 
-- 
2.41.0



More information about the igt-dev mailing list