summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_ctx.c
diff options
context:
space:
mode:
authorQiang Yu <yuq825@gmail.com>2020-02-22 10:42:06 +0800
committerQiang Yu <yuq825@gmail.com>2020-03-22 09:34:33 +0800
commit6ebd24b6bf106d3195bdbfeaa1ac77571e3dc670 (patch)
treef46407c3e1eaf3e09df0ddbcd690dc6da66c1bc1 /drivers/gpu/drm/lima/lima_ctx.c
parentf019190b7d2708baec0732c5e915923430eab8dc (diff)
downloadlinux-stable-6ebd24b6bf106d3195bdbfeaa1ac77571e3dc670.tar.gz
linux-stable-6ebd24b6bf106d3195bdbfeaa1ac77571e3dc670.tar.bz2
linux-stable-6ebd24b6bf106d3195bdbfeaa1ac77571e3dc670.zip
drm/lima: save process info for debug usage
When task fail, we can find its process with this information. Tested-by: Andreas Baierl <ichgeh@imkreisrum.de> Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200222024210.18697-2-yuq825@gmail.com
Diffstat (limited to 'drivers/gpu/drm/lima/lima_ctx.c')
-rw-r--r--drivers/gpu/drm/lima/lima_ctx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/lima/lima_ctx.c b/drivers/gpu/drm/lima/lima_ctx.c
index 22fff6caa961..891d5cd5019a 100644
--- a/drivers/gpu/drm/lima/lima_ctx.c
+++ b/drivers/gpu/drm/lima/lima_ctx.c
@@ -27,6 +27,9 @@ int lima_ctx_create(struct lima_device *dev, struct lima_ctx_mgr *mgr, u32 *id)
if (err < 0)
goto err_out0;
+ ctx->pid = task_pid_nr(current);
+ get_task_comm(ctx->pname, current);
+
return 0;
err_out0: