summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2014-04-10 08:45:47 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:09:04 -0400
commitba03fd69dd0f06f499c8f069660b463c5bea1bf3 (patch)
treef1b55160931d1eda30be948da4ad3eb9470456b2 /drivers/gpu/nvgpu/gk20a/debug_gk20a.c
parent8bef793145a35a1ac831270417cfe0a81e833909 (diff)
gpu: nvgpu: gk20a: fix syncpt waiting debug print
debug print "Waiting on syncpt" for gpu channel prints that channel is waiting for the syncpt without checking the state of the channel hence modify this print as follows : if channel is in "pending acquire" or "on_eng_pending_acquire" state we print "Waiting on syncpt" otherwise we print "Waited on syncpt" Bug 1305024 Change-Id: Ie22db689d6e8016c63158e8961d2233042069bec Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/394715 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/debug_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/debug_gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
index c5b6953c..3f1f4f0a 100644
--- a/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/debug_gk20a.c
@@ -144,7 +144,8 @@ static void gk20a_debug_show_channel(struct gk20a *g,
144 if ((pbdma_syncpointb_op_v(syncpointb) == pbdma_syncpointb_op_wait_v()) 144 if ((pbdma_syncpointb_op_v(syncpointb) == pbdma_syncpointb_op_wait_v())
145 && (pbdma_syncpointb_wait_switch_v(syncpointb) == 145 && (pbdma_syncpointb_wait_switch_v(syncpointb) ==
146 pbdma_syncpointb_wait_switch_en_v())) 146 pbdma_syncpointb_wait_switch_en_v()))
147 gk20a_debug_output(o, "Waiting on syncpt %u (%s) val %u\n", 147 gk20a_debug_output(o, "%s on syncpt %u (%s) val %u\n",
148 (status == 3 || status == 8) ? "Waiting" : "Waited",
148 pbdma_syncpointb_syncpt_index_v(syncpointb), 149 pbdma_syncpointb_syncpt_index_v(syncpointb),
149 nvhost_syncpt_get_name( 150 nvhost_syncpt_get_name(
150 to_platform_device(g->dev->dev.parent), 151 to_platform_device(g->dev->dev.parent),