]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: return from worker if gpu is not up
authorDeepak Nibade <dnibade@nvidia.com>
Wed, 20 Jan 2016 15:45:52 +0000 (21:15 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 29 Feb 2016 23:25:25 +0000 (15:25 -0800)
commitc81ea5fe383c44e872754b363968af57d84225ac
tree1118c5b20807a898d8ac7be28e25677feacf67db
parent8341a21e0453b549a9a31090d278631c999d768a
gpu: nvgpu: return from worker if gpu is not up

During GPU shutdown path, it is possible that we
shut down the GPU while worker thread is still
running gk20a_channel_update()

Hence before accessing gp_put/get, check if GPU
is up or not

Bug 200166139

Change-Id: Iba3ec173041a84527c4700a93f20564a842cfb01
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/935193
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_gk20a.c