diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-03-20 04:04:59 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:04 -0500 |
commit | 9f22ad4687068089696bf61e5e900361e2b62502 (patch) | |
tree | 25a345dac7831538c27fa9398b3e6e631f52c12d /drivers/gpu/nvgpu/gp10b/mm_gp10b.h | |
parent | 022d8a602cc0d707573ff5ce0dd82230e8a80c1c (diff) |
gpu: nvgpu: add get_iova_addr() for gp10b
Add platform specific gp10b_mm_iova_addr() to get
iova/phys address for gp10b
If SMMU is not enabled and IO coherence flag is set,
set 34th bit in the physical address and return the
physical address
If SMMU is enabled, return the iova address
Bug 1605653
Change-Id: I5c91a8c8d85d8a8e422406e3c91fc1dda3cb0870
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/713106
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/mm_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/mm_gp10b.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/mm_gp10b.h b/drivers/gpu/nvgpu/gp10b/mm_gp10b.h index 38ca93a4..034944e0 100644 --- a/drivers/gpu/nvgpu/gp10b/mm_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/mm_gp10b.h | |||
@@ -13,6 +13,9 @@ | |||
13 | 13 | ||
14 | #ifndef MM_GP10B_H | 14 | #ifndef MM_GP10B_H |
15 | #define MM_GP10B_H | 15 | #define MM_GP10B_H |
16 | |||
17 | #define NVGPU_MM_GET_IO_COHERENCE_BIT 35 | ||
18 | |||
16 | struct gpu_ops; | 19 | struct gpu_ops; |
17 | 20 | ||
18 | void gp10b_init_mm(struct gpu_ops *gops); | 21 | void gp10b_init_mm(struct gpu_ops *gops); |