summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2016-05-24 04:21:26 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-05-24 15:35:34 -0400
commitdc7af18bf8056c213165d4cd1c55ea0fba9f1341 (patch)
treeeb6db4b1a69a02f1c9ab4c2e5ed40f6fc13c860d /drivers/gpu/nvgpu/gk20a/channel_gk20a.c
parente82c840119503ec519eddacb4aa377660d67a3ab (diff)
gpu: nvgpu: suppress prints in submit path
When we run out of gpfifo space or private command buffer space, we have error spew like below : __gk20a_channel_syncpt_incr: not enough priv cmd buffer space gk20a_submit_channel_gpfifo: fail Dumping these prints to UART cause increase in submit latencies But on these failures, we return -ENOSPC to UMD and then UMD retries the submit, hence it might be unnecessary to dump these prints Hence, remove the error prints of insufficient space and use gk20a_dbg_fn() instead of gk20a_err() to print failure in gk20a_submit_channel_gpfifo() Bug 200202653 Change-Id: I49efd7c6c554dd4fbfa4e66d196eb352e69f92c6 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1152378 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
index f70c4bb7..a73a314c 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c
@@ -2081,7 +2081,6 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
2081 } 2081 }
2082 2082
2083 if (err) { 2083 if (err) {
2084 gk20a_err(d, "timeout waiting for gpfifo space");
2085 err = -ENOSPC; 2084 err = -ENOSPC;
2086 goto clean_up; 2085 goto clean_up;
2087 } 2086 }
@@ -2279,7 +2278,7 @@ int gk20a_submit_channel_gpfifo(struct channel_gk20a *c,
2279 return err; 2278 return err;
2280 2279
2281clean_up: 2280clean_up:
2282 gk20a_err(d, "fail"); 2281 gk20a_dbg_fn("fail");
2283 free_priv_cmdbuf(c, wait_cmd); 2282 free_priv_cmdbuf(c, wait_cmd);
2284 free_priv_cmdbuf(c, incr_cmd); 2283 free_priv_cmdbuf(c, incr_cmd);
2285 gk20a_fence_put(pre_fence); 2284 gk20a_fence_put(pre_fence);