From 28a2f14956f7672e303fed1f9ec85cade7bd7a56 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 8 Mar 2017 12:22:13 +0000 Subject: igt/gem_eio: Check we succeed in unwedging the driver Signed-off-by: Chris Wilson --- lib/igt_gt.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'lib') 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 */ -- cgit v1.2.3