summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2016-12-22 04:02:02 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2016-12-27 03:33:33 -0500
commitf3d2dd4fd2c3d0fa3f774bcbc1d2b9ef482d7663 (patch)
treeb82a60a7c11048be493dab3efa9a2828598c1e0c /drivers/gpu/nvgpu/gk20a
parent425f99335bfa13fa2af4e0865f61a4eb29fad6be (diff)
gpu: nvgpu: set driver unload flag in shutdown
Call gk20a_driver_start_unload() in the beginning of gk20a_pm_shutdown() so that we prevent new calls to gk20a_busy() Bug 200265373 Change-Id: I240cab4b505be4928341ab3deb13f37241d27aeb Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1275486 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index ca2f7b33..5e56fc81 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1357,6 +1357,8 @@ static void gk20a_pm_shutdown(struct platform_device *pdev)
1357 1357
1358 dev_info(&pdev->dev, "shutting down"); 1358 dev_info(&pdev->dev, "shutting down");
1359 1359
1360 gk20a_driver_start_unload(platform->g);
1361
1360 /* If GPU is already railgated, 1362 /* If GPU is already railgated,
1361 * just prevent more requests, and return */ 1363 * just prevent more requests, and return */
1362 if (platform->is_railgated && platform->is_railgated(&pdev->dev)) { 1364 if (platform->is_railgated && platform->is_railgated(&pdev->dev)) {