[igt-dev] [PATCH i-g-t] runner: Dump GPU state on timeout

Kamil Konieczny kamil.konieczny at linux.intel.com
Mon Jun 5 18:07:45 UTC 2023


From: Chris Wilson <chris.p.wilson at intel.com>

As well as the task and cpu state we show, include the GPU state now
availavle via sysrq upon a runner abort (typically a timeout for an
unresponsive driver).

Cc: Petri Latvala <adrinael at adrinael.net>
Signed-off-by: Chris Wilson <chris.p.wilson at intel.com>
Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
 runner/executor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/runner/executor.c b/runner/executor.c
index 597cd7f58..d3e6296dd 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -748,6 +748,7 @@ static void kmsg_log(int severity, const char *msg)
 static const char *show_kernel_task_state(const char *msg)
 {
 	kmsg_log(KMSG_WARN, msg);
+	sysrq('G'); /* GPU state */
 	sysrq('t'); /* task state, stack traces and cpu run lists */
 	sysrq('m'); /* task memory usage */
 
-- 
2.39.2



More information about the igt-dev mailing list