diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 691fdd69..6a590baa 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -706,7 +706,10 @@ static int gk20a_pm_runtime_resume(struct device *dev) | |||
706 | if (err) | 706 | if (err) |
707 | goto fail; | 707 | goto fail; |
708 | 708 | ||
709 | err = gk20a_pm_finalize_poweron(dev); | 709 | if (gk20a_gpu_is_virtual(dev)) |
710 | err = vgpu_pm_finalize_poweron(dev); | ||
711 | else | ||
712 | err = gk20a_pm_finalize_poweron(dev); | ||
710 | if (err) | 713 | if (err) |
711 | goto fail_poweron; | 714 | goto fail_poweron; |
712 | 715 | ||
@@ -722,7 +725,10 @@ static int gk20a_pm_runtime_suspend(struct device *dev) | |||
722 | { | 725 | { |
723 | int err = 0; | 726 | int err = 0; |
724 | 727 | ||
725 | err = gk20a_pm_prepare_poweroff(dev); | 728 | if (gk20a_gpu_is_virtual(dev)) |
729 | err = vgpu_pm_prepare_poweroff(dev); | ||
730 | else | ||
731 | err = gk20a_pm_prepare_poweroff(dev); | ||
726 | if (err) | 732 | if (err) |
727 | goto fail; | 733 | goto fail; |
728 | 734 | ||