From e4e2c1882865163ad53eeaf96acf83802ffbec71 Mon Sep 17 00:00:00 2001 From: Deepak Bhosale Date: Wed, 30 May 2018 13:12:24 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1735153 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Richard Zhao Reviewed-by: svc-mobile-coverity Reviewed-by: Terje Bergstrom GVS: Gerrit_Virtual_Submit Reviewed-by: Nirav Patel Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'drivers/gpu/nvgpu/os/linux/vgpu/vgpu_linux.h') 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); void vgpu_create_sysfs(struct device *dev); void vgpu_remove_sysfs(struct device *dev); + +int vgpu_tegra_suspend(struct device *dev); +int vgpu_tegra_resume(struct device *dev); #else /* define placeholders for functions used outside of vgpu */ @@ -52,6 +55,14 @@ static inline int vgpu_remove(struct platform_device *dev) { return -ENOSYS; } +static inline int vgpu_tegra_suspend(struct device *dev) +{ + return -ENOSYS; +} +static inline int vgpu_tegra_resume(struct device *dev) +{ + return -ENOSYS; +} #endif #endif -- cgit v1.2.2