diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-08-16 19:19:53 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-04 05:21:47 -0400 |
commit | edb116661348f1bc843849cdcc318fa47cf9724a (patch) | |
tree | 61d978a3518a51bdb82e2d3681abf5fc9c75821e /drivers/gpu/nvgpu/gk20a/mm_gk20a.h | |
parent | 2559fa295d0c478466e47496174fa2108ab01c33 (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.h | 4 |
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 | ||
343 | int gk20a_mm_suspend(struct gk20a *g); | 343 | int gk20a_mm_suspend(struct gk20a *g); |
344 | 344 | ||
345 | u64 gk20a_mm_smmu_vaddr_translate(struct gk20a *g, dma_addr_t iova); | ||
346 | |||
347 | void gk20a_mm_ltc_isr(struct gk20a *g); | 345 | void gk20a_mm_ltc_isr(struct gk20a *g); |
348 | 346 | ||
349 | bool gk20a_mm_mmu_debug_mode_enabled(struct gk20a *g); | 347 | bool 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); |
422 | int gk20a_mm_pde_coverage_bit_count(struct vm_gk20a *vm); | 420 | int gk20a_mm_pde_coverage_bit_count(struct vm_gk20a *vm); |
423 | u32 gk20a_mm_get_physical_addr_bits(struct gk20a *g); | 421 | u32 gk20a_mm_get_iommu_bit(struct gk20a *g); |
424 | 422 | ||
425 | const struct gk20a_mmu_level *gk20a_mm_get_mmu_levels(struct gk20a *g, | 423 | const struct gk20a_mmu_level *gk20a_mm_get_mmu_levels(struct gk20a *g, |
426 | u32 big_page_size); | 424 | u32 big_page_size); |