summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-08-16 19:19:53 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-04 05:21:47 -0400
commitedb116661348f1bc843849cdcc318fa47cf9724a (patch)
tree61d978a3518a51bdb82e2d3681abf5fc9c75821e /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent2559fa295d0c478466e47496174fa2108ab01c33 (diff)
gpu: nvgpu: rename ops.mm.get_physical_addr_bits
Rename get_physical_addr_bits and related functions to something that more clearly conveys what they are doing. The basic idea of these functions is to translate from a physical GPU address to a IOMMU GPU address. To do that a particular bit (that varies from chip to chip) is added to the physical address. JIRA NVGPU-68 Change-Id: I536cc595c4397aad69a24f740bc74db03f52bc0a Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1542966 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 13a3dcd0..9f03a495 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -342,8 +342,6 @@ void gk20a_mm_dump_vm(struct vm_gk20a *vm,
342 342
343int gk20a_mm_suspend(struct gk20a *g); 343int gk20a_mm_suspend(struct gk20a *g);
344 344
345u64 gk20a_mm_smmu_vaddr_translate(struct gk20a *g, dma_addr_t iova);
346
347void gk20a_mm_ltc_isr(struct gk20a *g); 345void gk20a_mm_ltc_isr(struct gk20a *g);
348 346
349bool gk20a_mm_mmu_debug_mode_enabled(struct gk20a *g); 347bool gk20a_mm_mmu_debug_mode_enabled(struct gk20a *g);
@@ -420,7 +418,7 @@ void pde_range_from_vaddr_range(struct vm_gk20a *vm,
420 u64 addr_lo, u64 addr_hi, 418 u64 addr_lo, u64 addr_hi,
421 u32 *pde_lo, u32 *pde_hi); 419 u32 *pde_lo, u32 *pde_hi);
422int gk20a_mm_pde_coverage_bit_count(struct vm_gk20a *vm); 420int gk20a_mm_pde_coverage_bit_count(struct vm_gk20a *vm);
423u32 gk20a_mm_get_physical_addr_bits(struct gk20a *g); 421u32 gk20a_mm_get_iommu_bit(struct gk20a *g);
424 422
425const struct gk20a_mmu_level *gk20a_mm_get_mmu_levels(struct gk20a *g, 423const struct gk20a_mmu_level *gk20a_mm_get_mmu_levels(struct gk20a *g,
426 u32 big_page_size); 424 u32 big_page_size);