From 65d567fe039d2dceb17aa4087904b1f4eeebc65a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 24 Jan 2021 14:10:33 +0000 Subject: i915/sysfs_clients: Avoid skips inside forks Handle the unusable engines on Sandybridge by avoiding the dynamic engine subtests that require them. Signed-off-by: Chris Wilson Acked-by: Tvrtko Ursulin --- tests/i915/sysfs_clients.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/i915/sysfs_clients.c b/tests/i915/sysfs_clients.c index a9cc1d23..a99fd1b5 100644 --- a/tests/i915/sysfs_clients.c +++ b/tests/i915/sysfs_clients.c @@ -434,6 +434,9 @@ static void busy_all(int i915, int clients) gem_context_clone_with_engines(i915, 0), .flags = IGT_SPIN_POLL_RUN); __for_each_physical_engine(i915, e) { + if (!gem_class_can_store_dword(i915, e->class)) + continue; + spin->execbuf.flags &= ~63; spin->execbuf.flags |= e->flags; gem_execbuf(i915, &spin->execbuf); @@ -850,6 +853,8 @@ static void test_busy(int i915, int clients) igt_subtest_with_dynamic("busy") { __for_each_physical_engine(i915, e) { + if (!gem_class_can_store_dword(i915, e->class)) + continue; igt_dynamic_f("%s", e->name) { gem_quiescent_gpu(i915); igt_fork(child, 1) -- cgit v1.2.3