summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-02-06 22:55:33 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2018-02-21 10:25:40 +0000
commit9ba3717a86553e15aa6e4aec8a77c2e3460fd4d3 (patch)
tree716b75540a47c0a734b2464e8e086e49d5b62111 /lib
parent0aeba6e81ad3e00021548093f258c7feb8df415d (diff)
igt/gem_eio: Use slow spinners to inject hangs
One weird issue we see in bug 104676 is that the hangs are too fast on HSW! So force the use of the slow spinners that do not try to trigger a hang by injecting random bytes into the batch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104676 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_gt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_gt.c b/lib/igt_gt.c
index ad6e6205..f70fcb92 100644
--- a/lib/igt_gt.c
+++ b/lib/igt_gt.c
@@ -402,6 +402,7 @@ void igt_force_gpu_reset(int drm_fd)
igt_sysfs_scanf(dir, "i915_wedged", "%d", &wedged);
close(dir);
+ errno = 0;
igt_assert(!wedged);
}