diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 3d1f8d28..795f7bda 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -1271,17 +1271,6 @@ dma_addr_t gk20a_mm_gpuva_to_iova_base(struct vm_gk20a *vm, u64 gpu_vaddr) | |||
1271 | return addr; | 1271 | return addr; |
1272 | } | 1272 | } |
1273 | 1273 | ||
1274 | u64 gk20a_mm_smmu_vaddr_translate(struct gk20a *g, u64 iova) | ||
1275 | { | ||
1276 | /* ensure it is not vidmem allocation */ | ||
1277 | WARN_ON(is_vidmem_page_alloc(iova)); | ||
1278 | |||
1279 | if (nvgpu_iommuable(g) && g->ops.mm.get_physical_addr_bits) | ||
1280 | return iova | 1ULL << g->ops.mm.get_physical_addr_bits(g); | ||
1281 | |||
1282 | return iova; | ||
1283 | } | ||
1284 | |||
1285 | /* for gk20a the "video memory" apertures here are misnomers. */ | 1274 | /* for gk20a the "video memory" apertures here are misnomers. */ |
1286 | static inline u32 big_valid_pde0_bits(struct gk20a *g, | 1275 | static inline u32 big_valid_pde0_bits(struct gk20a *g, |
1287 | struct nvgpu_gmmu_pd *pd, u64 addr) | 1276 | struct nvgpu_gmmu_pd *pd, u64 addr) |
@@ -2170,7 +2159,7 @@ int gk20a_mm_suspend(struct gk20a *g) | |||
2170 | return 0; | 2159 | return 0; |
2171 | } | 2160 | } |
2172 | 2161 | ||
2173 | u32 gk20a_mm_get_physical_addr_bits(struct gk20a *g) | 2162 | u32 gk20a_mm_get_iommu_bit(struct gk20a *g) |
2174 | { | 2163 | { |
2175 | return 34; | 2164 | return 34; |
2176 | } | 2165 | } |