diff options
author | Seema Khowala <seemaj@nvidia.com> | 2017-04-19 13:40:23 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-20 12:14:48 -0400 |
commit | c184b17f9a22b198aeb4885b3ca6482135670dd0 (patch) | |
tree | c0ff71c74135d8c216f682f41b1c3a77091ce774 /drivers/gpu | |
parent | 59e2c410a1dbb8667402e772f796ec21bb8db887 (diff) |
gpu: nvgpu: don't shutdown gpu if it is not powered up
gk20a_pm_shutdown should return if gpu is not powered on
Bug 1910649
Change-Id: I6ff52084e2783573e51e655b2b0ffa0f4c818706
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: http://git-master/r/1465789
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 8747c632..79d6bd5f 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -655,6 +655,9 @@ static void gk20a_pm_shutdown(struct platform_device *pdev) | |||
655 | if (gk20a_gpu_is_virtual(&pdev->dev)) | 655 | if (gk20a_gpu_is_virtual(&pdev->dev)) |
656 | return; | 656 | return; |
657 | 657 | ||
658 | if (!g->power_on) | ||
659 | goto finish; | ||
660 | |||
658 | gk20a_driver_start_unload(g); | 661 | gk20a_driver_start_unload(g); |
659 | 662 | ||
660 | /* If GPU is already railgated, | 663 | /* If GPU is already railgated, |