Die early if the GPU hangs during our basic render copy testing, and clean up rather than waiting for multiple different failing batches before detecting our failure. Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> --- tests/i915/gem_render_copy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/i915/gem_render_copy.c b/tests/i915/gem_render_copy.c index b8149483c..261833d24 100644 --- a/tests/i915/gem_render_copy.c +++ b/tests/i915/gem_render_copy.c @@ -715,6 +715,8 @@ igt_main_args("da", NULL, help_str, opt_handler, NULL) data.batch = intel_batchbuffer_alloc(data.bufmgr, data.devid); igt_assert(data.batch); + + igt_fork_hang_detector(data.drm_fd); } igt_subtest("linear") @@ -745,6 +747,7 @@ igt_main_args("da", NULL, help_str, opt_handler, NULL) test(&data, I915_TILING_Yf, I915_TILING_Yf); igt_fixture { + igt_stop_hang_detector(); intel_batchbuffer_free(data.batch); drm_intel_bufmgr_destroy(data.bufmgr); } -- 2.23.0 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx