diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-24 14:10:33 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-24 14:11:41 +0000 |
commit | 65d567fe039d2dceb17aa4087904b1f4eeebc65a (patch) | |
tree | 3cf59699a569dab981d9d3b51681b1572da14123 /tests | |
parent | 267fa33c0947fbbb642098098ff6e5902f9a3d94 (diff) |
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 <chris@chris-wilson.co.uk>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i915/sysfs_clients.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) |