From 756f3e0cb7e7d7351e3eb955ca782a438c6aa887 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 22 Mar 2016 11:33:41 +0000 Subject: lib: Add a GPU error detector If we listen to the uevents from the kernel, we can detect when the GPU hangs. This requires us to fork a helper process to do so and send a signal back to the parent. Signed-off-by: Chris Wilson --- lib/igt_aux.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/igt_aux.h') diff --git a/lib/igt_aux.h b/lib/igt_aux.h index 101fad12..cdaed297 100644 --- a/lib/igt_aux.h +++ b/lib/igt_aux.h @@ -40,6 +40,9 @@ extern int num_trash_bos; void igt_fork_signal_helper(void); void igt_stop_signal_helper(void); +void igt_fork_hang_detector(int fd); +void igt_stop_hang_detector(void); + struct igt_sigiter { unsigned pass; }; -- cgit v1.2.3