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>
This commit is contained in:
Deepak Nibade
2016-12-22 14:32:02 +05:30
committed by mobile promotions
parent 425f99335b
commit f3d2dd4fd2

View File

@@ -1357,6 +1357,8 @@ static void gk20a_pm_shutdown(struct platform_device *pdev)
dev_info(&pdev->dev, "shutting down");
gk20a_driver_start_unload(platform->g);
/* If GPU is already railgated,
* just prevent more requests, and return */
if (platform->is_railgated && platform->is_railgated(&pdev->dev)) {