diff options
-rw-r--r-- | lib/igt_gt.c | 12 | ||||
-rw-r--r-- | tests/gem_eio.c | 1 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 3c01fe3b..024908b8 100644 --- a/lib/igt_gt.c +++ b/lib/igt_gt.c @@ -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 */ diff --git a/tests/gem_eio.c b/tests/gem_eio.c index 22fcf439..d9e68657 100644 --- a/tests/gem_eio.c +++ b/tests/gem_eio.c @@ -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); } |