* [PATCH i-g-t] i915/gem_render_copy: Add hang detector
@ 2019-09-23 9:24 Chris Wilson
2019-09-23 14:48 ` [igt-dev] " Ville Syrjälä
0 siblings, 1 reply; 2+ messages in thread
From: Chris Wilson @ 2019-09-23 9:24 UTC (permalink / raw)
To: intel-gfx; +Cc: igt-dev
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@chris-wilson.co.uk>
---
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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [igt-dev] [PATCH i-g-t] i915/gem_render_copy: Add hang detector
2019-09-23 9:24 [PATCH i-g-t] i915/gem_render_copy: Add hang detector Chris Wilson
@ 2019-09-23 14:48 ` Ville Syrjälä
0 siblings, 0 replies; 2+ messages in thread
From: Ville Syrjälä @ 2019-09-23 14:48 UTC (permalink / raw)
To: Chris Wilson; +Cc: igt-dev, intel-gfx
On Mon, Sep 23, 2019 at 10:24:32AM +0100, Chris Wilson wrote:
> 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.
Seems sensible.
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> ---
> 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
>
> _______________________________________________
> igt-dev mailing list
> igt-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-23 14:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-23 9:24 [PATCH i-g-t] i915/gem_render_copy: Add hang detector Chris Wilson
2019-09-23 14:48 ` [igt-dev] " Ville Syrjälä
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox