]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: enable powergate always while releasing debug session
authorDeepak Nibade <dnibade@nvidia.com>
Thu, 10 Sep 2015 10:40:21 +0000 (16:10 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Mon, 28 Sep 2015 16:11:32 +0000 (09:11 -0700)
commitafcf72aa34f1575adfd26754c8c378e4ab2f1dca
tree2d1c91073ef54a691f58a113ecf065006916d20d
parent59a7c87a8083c85d85f251f73f1a07d207615289
gpu: nvgpu: enable powergate always while releasing debug session

Currently, while releasing the debug session we enable powergate
only if a channel is bound to session

If a session has no channel bound to it, and has powergate
disabled, then we do not enable powergate when that session
is closed

Fix this by calling dbg_set_powergate(POWERGATE_ENABLE) always
while releasing the session

Refcounting and sanity checks in dbg_set_powergate() will take
care of situation if powergate was not disabled by the session
in first place

Bug 1679372

Change-Id: I4e027393c611d3e8ab4f20e195f31871086da736
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/796999
cherry picked from commit 671dff8cb0605f865c5da32bd889e2a6fcf133fe)
Reviewed-on: http://git-master/r/801986
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c