mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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:
committed by
mobile promotions
parent
425f99335b
commit
f3d2dd4fd2
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user