summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-01-12 04:20:21 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-17 10:11:32 -0500
commit76dc6659ff9fef9e70606f7aef19688d063bd36a (patch)
tree1f96fbd0e7f29e12e4d68473ec74a285460aa603 /drivers
parent36cc693ccb857dbe783dae56933e1fa6a4812d67 (diff)
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 <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1284113 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c3
1 files changed, 2 insertions, 1 deletions
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,
2822 /* gk20a_channel_update releases this ref. */ 2822 /* gk20a_channel_update releases this ref. */
2823 err = gk20a_busy(g->dev); 2823 err = gk20a_busy(g->dev);
2824 if (err) { 2824 if (err) {
2825 gk20a_err(d, "failed to host gk20a to submit gpfifo"); 2825 gk20a_err(d, "failed to host gk20a to submit gpfifo, process %s",
2826 current->comm);
2826 return err; 2827 return err;
2827 } 2828 }
2828 2829