]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: force close all channels on shutdown
authorDeepak Nibade <dnibade@nvidia.com>
Tue, 12 Jan 2016 12:19:57 +0000 (17:49 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 29 Feb 2016 23:25:16 +0000 (15:25 -0800)
commit8341a21e0453b549a9a31090d278631c999d768a
tree6f2a6053370db4eeb823720a685d39818e56285c
parent9daff7a9fb63239d348a0cb7be8a7382cd4f51a8
gpu: nvgpu: force close all channels on shutdown

In gk20a_pm_shutdown(), we currently wait for 2s
for all channels to finish their work

Instead of waiting, force close all channels
(disable and preempt) during shutdown

Also, if GPU is already railgated during shutdown,
then we can just disable runtime_pm and return
without doing anything

Bug 200166139

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