gpu: nvgpu: remove gk20a_busy() from channel_syncpt_update()
authorDeepak Nibade <dnibade@nvidia.com>
Tue, 21 Jul 2015 13:12:41 +0000 (18:12 +0530)
committerSachin Nikam <snikam@nvidia.com>
Fri, 7 Aug 2015 05:21:07 +0000 (22:21 -0700)
commit52ee1d3251cb6cc4eac00d9d675d6fe1d85ee0a9
treee6d2cde8b561ab76cc66375885583f4f2b0bd82d
parent364c47a923815c62b84ad8fc67e40d6fb51b6e32
gpu: nvgpu: remove gk20a_busy() from channel_syncpt_update()

gk20a_busy() was added to gk20a_channel_syncpt_update() for possible
case of channel deletion

But API to delete a channel (i.e. gk20a_free_channel()) is already
called in paths which ensure gk20a_busy() is called before
deleting the channel

Hence, remove redundant gk20a_busy()/idle() calls

This also fixes a deadlock scenario with VPR resize use case

Bug 200128257
Bug 1645760
Bug 200114947
Bug 200124519

Change-Id: I05dc739b3be88af2ba22b0a667e5004d8100bf6f
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/778340
(cherry picked from commit 306282aa950201cf1ae91a5cc48d75719b179d19)
Reviewed-on: http://git-master/r/779066
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Tested-by: Sachin Nikam <snikam@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c