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/vgpu_linux.h | |
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/vgpu_linux.h')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h b/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h index 38379cf2..ff7d3a66 100644 --- a/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h +++ b/drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h | |||
@@ -33,6 +33,9 @@ int vgpu_remove(struct platform_device *dev); | |||
33 | 33 | ||
34 | void vgpu_create_sysfs(struct device *dev); | 34 | void vgpu_create_sysfs(struct device *dev); |
35 | void vgpu_remove_sysfs(struct device *dev); | 35 | void vgpu_remove_sysfs(struct device *dev); |
36 | |||
37 | int vgpu_tegra_suspend(struct device *dev); | ||
38 | int vgpu_tegra_resume(struct device *dev); | ||
36 | #else | 39 | #else |
37 | /* define placeholders for functions used outside of vgpu */ | 40 | /* define placeholders for functions used outside of vgpu */ |
38 | 41 | ||
@@ -52,6 +55,14 @@ static inline int vgpu_remove(struct platform_device *dev) | |||
52 | { | 55 | { |
53 | return -ENOSYS; | 56 | return -ENOSYS; |
54 | } | 57 | } |
58 | static inline int vgpu_tegra_suspend(struct device *dev) | ||
59 | { | ||
60 | return -ENOSYS; | ||
61 | } | ||
62 | static inline int vgpu_tegra_resume(struct device *dev) | ||
63 | { | ||
64 | return -ENOSYS; | ||
65 | } | ||
55 | #endif | 66 | #endif |
56 | 67 | ||
57 | #endif | 68 | #endif |