Commit 07e227a5 authored by Chris Wilson's avatar Chris Wilson

i915/gem_workarounds: Require GPU resets

Check that we are allowed to reset the GPU prior to execution.

v2: Push the require checking up into a subgroup
Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
parent a5211ea1
......@@ -282,9 +282,32 @@ igt_main
}
for (op = ops; op->name; op++) {
for (m = modes; m->name; m++) {
igt_subtest_f("%s%s", op->name, m->name)
check_workarounds(device, op->op, m->flags);
igt_subtest_group {
igt_hang_t hang = {};
igt_fixture {
switch (op->op) {
case GPU_RESET:
hang = igt_allow_hang(device, 0, 0);
break;
default:
break;
}
}
for (m = modes; m->name; m++)
igt_subtest_f("%s%s", op->name, m->name)
check_workarounds(device, op->op, m->flags);
igt_fixture {
switch (op->op) {
case GPU_RESET:
igt_disallow_hang(device, hang);
break;
default:
break;
}
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment