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>
This commit is contained in:
Deepak Nibade
2014-04-10 18:15:47 +05:30
committed by Dan Willemsen
parent 8bef793145
commit ba03fd69dd

View File

@@ -144,7 +144,8 @@ static void gk20a_debug_show_channel(struct gk20a *g,
if ((pbdma_syncpointb_op_v(syncpointb) == pbdma_syncpointb_op_wait_v()) if ((pbdma_syncpointb_op_v(syncpointb) == pbdma_syncpointb_op_wait_v())
&& (pbdma_syncpointb_wait_switch_v(syncpointb) == && (pbdma_syncpointb_wait_switch_v(syncpointb) ==
pbdma_syncpointb_wait_switch_en_v())) pbdma_syncpointb_wait_switch_en_v()))
gk20a_debug_output(o, "Waiting on syncpt %u (%s) val %u\n", gk20a_debug_output(o, "%s on syncpt %u (%s) val %u\n",
(status == 3 || status == 8) ? "Waiting" : "Waited",
pbdma_syncpointb_syncpt_index_v(syncpointb), pbdma_syncpointb_syncpt_index_v(syncpointb),
nvhost_syncpt_get_name( nvhost_syncpt_get_name(
to_platform_device(g->dev->dev.parent), to_platform_device(g->dev->dev.parent),