Message ID | 20180712153709.10125-2-chris@chris-wilson.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/lib/igt_gt.c b/lib/igt_gt.c index 89b318ae6..86c6e1972 100644 --- a/lib/igt_gt.c +++ b/lib/igt_gt.c @@ -118,6 +118,7 @@ void igt_require_hang_ring(int fd, int ring) if (!igt_check_boolean_env_var("IGT_HANG", true)) igt_skip("hang injection disabled by user"); + igt_require_gem(fd); gem_require_ring(fd, ring); gem_context_require_bannable(fd); if (!igt_check_boolean_env_var("IGT_HANG_WITHOUT_RESET", false))
To inject a hang, we execute a spinning batch. This means we require GEM to be operation before the hang, so check. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> --- lib/igt_gt.c | 1 + 1 file changed, 1 insertion(+)