diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-08 12:22:13 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-08 12:23:55 +0000 |
commit | 28a2f14956f7672e303fed1f9ec85cade7bd7a56 (patch) | |
tree | 32f7178ec125f16ac4f96f8d942f77088749c0c3 /lib | |
parent | 5e8fb77026d2a0d172b39a7bede0ce735f99d8f2 (diff) |
igt/gem_eio: Check we succeed in unwedging the driver
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/igt_gt.c | 12 |
1 files changed, 11 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 */ |