diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2014-05-05 21:14:22 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:01 -0400 |
commit | 1fd722f592c2e0523c5e399a2406a4e387057188 (patch) | |
tree | 3425fb1a08ec2ccc6397e39c73a5579117e00a05 /drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |
parent | 69e0cd3dfd8f39bc8d3529325001dcacd774f669 (diff) |
gpu: nvgpu: support gk20a virtualization
The nvgpu driver now supports using the Tegra graphics virtualization
interfaces to support gk20a in a virtualized environment.
Bug 1509608
Change-Id: I6ede15ee7bf0b0ad8a13e8eb5f557c3516ead676
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/440122
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h index 6dd0c0db..e6ed9898 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a.h | |||
@@ -151,6 +151,12 @@ struct gk20a_platform { | |||
151 | * of the CPU. | 151 | * of the CPU. |
152 | */ | 152 | */ |
153 | void (*dump_platform_dependencies)(struct platform_device *dev); | 153 | void (*dump_platform_dependencies)(struct platform_device *dev); |
154 | |||
155 | #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION | ||
156 | bool virtual_dev; | ||
157 | u64 virt_handle; | ||
158 | struct task_struct *intr_handler; | ||
159 | #endif | ||
154 | }; | 160 | }; |
155 | 161 | ||
156 | static inline struct gk20a_platform *gk20a_get_platform( | 162 | static inline struct gk20a_platform *gk20a_get_platform( |
@@ -163,6 +169,9 @@ extern struct gk20a_platform gk20a_generic_platform; | |||
163 | #ifdef CONFIG_TEGRA_GK20A | 169 | #ifdef CONFIG_TEGRA_GK20A |
164 | extern struct gk20a_platform gk20a_tegra_platform; | 170 | extern struct gk20a_platform gk20a_tegra_platform; |
165 | extern struct gk20a_platform gm20b_tegra_platform; | 171 | extern struct gk20a_platform gm20b_tegra_platform; |
172 | #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION | ||
173 | extern struct gk20a_platform vgpu_tegra_platform; | ||
174 | #endif | ||
166 | #endif | 175 | #endif |
167 | 176 | ||
168 | static inline bool gk20a_platform_has_syncpoints(struct platform_device *dev) | 177 | static inline bool gk20a_platform_has_syncpoints(struct platform_device *dev) |