summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-07-15 06:40:47 -0400
committerDeepak Nibade <dnibade@nvidia.com>2015-07-22 05:23:25 -0400
commita76c6fc95008fe0fbe5584a3e755b86d84b95b28 (patch)
treeb2f70f589c8703f81ab96a4c25d18af393e77f54 /drivers/gpu/nvgpu
parentca26ce6f8c9456e043569b0509a822d71ab38cfc (diff)
gpu: nvgpu: prepare_poweroff() in shutdown()
gk20a_pm_shutdown() is the last callback before GPU railgate will be forced by platform code Hence we need to call prepare_poweroff() before returning from shutdown() to clean up below things mainly, 1. disable interrupts to ensure that GPU is not processing any interrupts while railgating 2. disable clocks (and related flags) to ensure no h/w access from exported clock ops Note that GPU railgate will be triggered by platform code since config CONFIG_PM_GENERIC_DOMAINS_OF is enabled by default Bug 200123584 Change-Id: Ifaa0d1ba9b01d49bf5cc85d9c9a9feb3815866d8 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/770485 Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index badb7717..3dfc50e8 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1148,6 +1148,9 @@ static void gk20a_pm_shutdown(struct platform_device *pdev)
1148 break; 1148 break;
1149 } 1149 }
1150#endif 1150#endif
1151
1152 /* Be ready for rail-gate after this point */
1153 gk20a_pm_prepare_poweroff(&pdev->dev);
1151} 1154}
1152 1155
1153#ifdef CONFIG_PM 1156#ifdef CONFIG_PM