diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/platform_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/platform_gk20a.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/platform_gk20a.h b/drivers/gpu/nvgpu/common/linux/platform_gk20a.h index 927a2cee..aed50ed7 100644 --- a/drivers/gpu/nvgpu/common/linux/platform_gk20a.h +++ b/drivers/gpu/nvgpu/common/linux/platform_gk20a.h | |||
@@ -121,6 +121,9 @@ struct gk20a_platform { | |||
121 | */ | 121 | */ |
122 | u32 default_pri_timeout; | 122 | u32 default_pri_timeout; |
123 | 123 | ||
124 | /* guest/vm id, needed for IPA to PA transation */ | ||
125 | int vmid; | ||
126 | |||
124 | /* Initialize the platform interface of the gk20a driver. | 127 | /* Initialize the platform interface of the gk20a driver. |
125 | * | 128 | * |
126 | * The platform implementation of this function must | 129 | * The platform implementation of this function must |
@@ -204,6 +207,12 @@ struct gk20a_platform { | |||
204 | */ | 207 | */ |
205 | void (*dump_platform_dependencies)(struct device *dev); | 208 | void (*dump_platform_dependencies)(struct device *dev); |
206 | 209 | ||
210 | /* Defined when SMMU stage-2 is enabled, and we need to use physical | ||
211 | * addresses (not IPA). This is the case for GV100 nvlink in HV+L | ||
212 | * configuration, when dGPU is in pass-through mode. | ||
213 | */ | ||
214 | u64 (*phys_addr)(struct gk20a *g, u64 ipa); | ||
215 | |||
207 | /* Callbacks to assert/deassert GPU reset */ | 216 | /* Callbacks to assert/deassert GPU reset */ |
208 | int (*reset_assert)(struct device *dev); | 217 | int (*reset_assert)(struct device *dev); |
209 | int (*reset_deassert)(struct device *dev); | 218 | int (*reset_deassert)(struct device *dev); |