]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/lima: print process name and pid when task error
authorQiang Yu <yuq825@gmail.com>
Tue, 21 Apr 2020 13:35:43 +0000 (21:35 +0800)
committerQiang Yu <yuq825@gmail.com>
Fri, 24 Apr 2020 12:50:40 +0000 (20:50 +0800)
When error task list is full, print the process info where
the error task come from for debug usage.

Tested-by: Bhushan Shah <bshah@kde.org>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200421133551.31481-3-yuq825@gmail.com
drivers/gpu/drm/lima/lima_sched.c

index a2db1c937424b6a017e3f6d18f24c7859ad9420e..387f9439450ab3102fb176eda32470a39a8e94a2 100644 (file)
@@ -285,7 +285,8 @@ static void lima_sched_build_error_task_list(struct lima_sched_task *task)
        mutex_lock(&dev->error_task_list_lock);
 
        if (dev->dump.num_tasks >= lima_max_error_tasks) {
-               dev_info(dev->dev, "fail to save task state: error task list is full\n");
+               dev_info(dev->dev, "fail to save task state from %s pid %d: "
+                        "error task list is full\n", ctx->pname, ctx->pid);
                goto out;
        }