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

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Wed Jun 7 06:27:52 UTC 2023


On Mon, Jun 05, 2023 at 08:07:45PM +0200, Kamil Konieczny wrote:
> 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

  ^ - typo

With this fixed:

Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>

--
Zbigniew


> 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