[igt-dev] [PATCH i-g-t 3/3] tests/intel/gem_ctx_schedule: Skip some test on MTL

Nirmoy Das nirmoy.das at intel.com
Wed Sep 13 09:42:52 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_exec_schedule.c | 39 ++++++++++++++++++++++-----------
 1 file changed, 26 insertions(+), 13 deletions(-)

diff --git a/tests/intel/gem_exec_schedule.c b/tests/intel/gem_exec_schedule.c
index c94988d36..288503c70 100644
--- a/tests/intel/gem_exec_schedule.c
+++ b/tests/intel/gem_exec_schedule.c
@@ -3503,21 +3503,27 @@ igt_main
 		const struct intel_execution_engine2 *e;
 
 		test_each_engine_store("fifo", fd, ctx, e)
-			fifo(fd, ctx, e->flags);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				fifo(fd, ctx, e->flags);
 
 		test_each_engine_store("implicit-read-write", fd, ctx, e)
-			implicit_rw(fd, ctx, e->flags, READ_WRITE);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				implicit_rw(fd, ctx, e->flags, READ_WRITE);
 
 		test_each_engine_store("implicit-write-read", fd, ctx, e)
-			implicit_rw(fd, ctx, e->flags, WRITE_READ);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				implicit_rw(fd, ctx, e->flags, WRITE_READ);
 
 		test_each_engine_store("implicit-boths", fd, ctx, e)
-			implicit_rw(fd, ctx, e->flags, READ_WRITE | WRITE_READ);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				implicit_rw(fd, ctx, e->flags, READ_WRITE | WRITE_READ);
 
 		test_each_engine_store("independent", fd, ctx, e)
-			independent(fd, ctx, e->flags, 0);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				independent(fd, ctx, e->flags, 0);
 		test_each_engine_store("u-independent", fd, ctx, e)
-			independent(fd, ctx, e->flags, IGT_SPIN_USERPTR);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				independent(fd, ctx, e->flags, IGT_SPIN_USERPTR);
 	}
 
 	igt_subtest_group {
@@ -3613,13 +3619,16 @@ igt_main
 			smoketest(fd, &ctx->cfg, ALL_ENGINES, 30);
 
 		test_each_engine_store("in-order", fd, ctx, e)
-			reorder(fd, &ctx->cfg, e->flags, EQUAL);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				reorder(fd, &ctx->cfg, e->flags, EQUAL);
 
 		test_each_engine_store("out-order", fd, ctx, e)
-			reorder(fd, &ctx->cfg, e->flags, 0);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				reorder(fd, &ctx->cfg, e->flags, 0);
 
 		test_each_engine_store("promotion", fd, ctx, e)
-			promotion(fd, &ctx->cfg, e->flags);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				promotion(fd, &ctx->cfg, e->flags);
 
 		igt_subtest_group {
 			igt_fixture {
@@ -3686,7 +3695,8 @@ igt_main
 		}
 
 		test_each_engine_store("noreorder", fd, ctx, e)
-			noreorder(fd, &ctx->cfg, e->flags, 0, 0);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				noreorder(fd, &ctx->cfg, e->flags, 0, 0);
 
 		test_each_engine_store("noreorder-priority", fd, ctx, e) {
 			igt_require(gem_scheduler_enabled(fd));
@@ -3695,7 +3705,8 @@ igt_main
 
 		test_each_engine_store("noreorder-corked", fd, ctx, e) {
 			igt_require(gem_scheduler_enabled(fd));
-			noreorder(fd, &ctx->cfg, e->flags, MAX_PRIO, CORKED);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				noreorder(fd, &ctx->cfg, e->flags, MAX_PRIO, CORKED);
 		}
 
 		test_each_engine_store("deep", fd, ctx, e)
@@ -3736,10 +3747,12 @@ igt_main
 			test_pi_userfault(fd, &ctx->cfg, e->flags);
 
 		test_each_engine("pi-distinct-iova", fd, ctx, e)
-			test_pi_iova(fd, &ctx->cfg, e->flags, 0);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				test_pi_iova(fd, &ctx->cfg, e->flags, 0);
 
 		test_each_engine("pi-shared-iova", fd, ctx, e)
-			test_pi_iova(fd, &ctx->cfg, e->flags, SHARED);
+			if (!(gem_has_ggtt_bind(fd) && e->class == I915_ENGINE_CLASS_COPY))
+				test_pi_iova(fd, &ctx->cfg, e->flags, SHARED);
 	}
 
 	igt_subtest_group {
-- 
2.41.0



More information about the igt-dev mailing list