From 76dc6659ff9fef9e70606f7aef19688d063bd36a Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 12 Jan 2017 14:50:21 +0530 Subject: gpu: nvgpu: print process name on submit failure Print process name if we fail submit due to gk20a_busy() failure This is helpful in debugging and to know the process name submitting jobs to nvgpu after system shutdown was already triggered Bug 200262275 Change-Id: I34d8c07fc96fd5556afa982bfd56f7f3964449d0 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1284113 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta Reviewed-by: Bharat Nihalani --- drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu') diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 6cbbdeb0..d5901354 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c @@ -2822,7 +2822,8 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c, /* gk20a_channel_update releases this ref. */ err = gk20a_busy(g->dev); if (err) { - gk20a_err(d, "failed to host gk20a to submit gpfifo"); + gk20a_err(d, "failed to host gk20a to submit gpfifo, process %s", + current->comm); return err; } -- cgit v1.2.2