summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorJinyoung Park <jinyoungp@nvidia.com>2017-08-23 03:14:15 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-09-07 23:07:15 -0400
commitd2dce545bb08148171457424a172c8d66a111005 (patch)
tree4b8b87e92c33b90473c2eed99e9b923de0e4541a /drivers/gpu
parent33f192b2f781007fb7f9598613ce3811f3f39237 (diff)
gpu: nvgpu: vgpu: Use vgpu_pm functions in suspend and resume
Use vgpu_pm functions for vgpu instead of gk20a_pm functions in suspend and resume. Change-Id: I9d23cd612caa3e6fa9be65d60ccdba3b7f893350 Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1544161 Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Tested-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/nvgpu/common/linux/module.c10
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