diff options
author | Deepak Bhosale <dbhosale@nvidia.com> | 2018-05-30 16:12:24 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-21 16:56:50 -0400 |
commit | e4e2c1882865163ad53eeaf96acf83802ffbec71 (patch) | |
tree | e433b02a198e6c943397da13c792ba75d0c285a2 /drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c | |
parent | 90fc8d653fba60a6f7b96e7d91ff02361a3a4890 (diff) |
gpu: nvgpu: suspend/resume support for vGPU
- Added suspend/resume power management callbacks for vGPU
- Added suspend/resume commands for communication between vGPU and
RM server
- Added suspend/resume message parameters for IVC messages between
vGPU and RM server
JIRA EVLR-2305
JIRA EVLR-2306
Change-Id: I83a314b4e125a53117d16c5ea72dbc5d8ef96ef7
Signed-off-by: Deepak Bhosale <dbhosale@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1735153
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nirav Patel <nipatel@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c b/drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c index 66911626..8eada9df 100644 --- a/drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c +++ b/drivers/gpu/nvgpu/os/linux/vgpu/gv11b/platform_gv11b_vgpu_tegra.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "os/linux/vgpu/clk_vgpu.h" | 22 | #include "os/linux/vgpu/clk_vgpu.h" |
23 | #include "os/linux/platform_gk20a.h" | 23 | #include "os/linux/platform_gk20a.h" |
24 | #include "os/linux/os_linux.h" | 24 | #include "os/linux/os_linux.h" |
25 | #include "os/linux/vgpu/vgpu_linux.h" | ||
25 | 26 | ||
26 | static int gv11b_vgpu_probe(struct device *dev) | 27 | static int gv11b_vgpu_probe(struct device *dev) |
27 | { | 28 | { |
@@ -94,4 +95,8 @@ struct gk20a_platform gv11b_vgpu_tegra_platform = { | |||
94 | .devfreq_governor = "userspace", | 95 | .devfreq_governor = "userspace", |
95 | 96 | ||
96 | .virtual_dev = true, | 97 | .virtual_dev = true, |
98 | |||
99 | /* power management callbacks */ | ||
100 | .suspend = vgpu_tegra_suspend, | ||
101 | .resume = vgpu_tegra_resume, | ||
97 | }; | 102 | }; |