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>
This commit is contained in:
Deepak Nibade
2017-01-12 14:50:21 +05:30
committed by mobile promotions
parent 36cc693ccb
commit 76dc6659ff

View File

@@ -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;
}