Commit 28a2f149 authored by Chris Wilson's avatar Chris Wilson 😣

igt/gem_eio: Check we succeed in unwedging the driver

Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
parent 5e8fb770
......@@ -362,7 +362,8 @@ void igt_post_hang_ring(int fd, igt_hang_t arg)
*/
void igt_force_gpu_reset(void)
{
int fd, ret;
FILE *file;
int fd, ret, wedged;
igt_debug("Triggering GPU reset\n");
......@@ -373,6 +374,15 @@ void igt_force_gpu_reset(void)
close(fd);
igt_assert_eq(ret, 3);
file = igt_debugfs_fopen("i915_wedged", "r");
igt_assert(file);
wedged = 1;
fscanf(file, "%d", &wedged);
fclose(file);
igt_assert(!wedged);
}
/* GPU abusers */
......
......@@ -228,6 +228,7 @@ igt_main
igt_fixture {
fd = drm_open_driver(DRIVER_INTEL);
igt_require_gem(fd);
igt_require_hang_ring(fd, I915_EXEC_DEFAULT);
}
......
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