summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-05-11 13:25:47 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-06 20:09:22 -0400
commit048c6b062ae381a329dccbc7ca0599113dbd7417 (patch)
tree24712fcaf967e22bd91bcb6a81195cf79ac08cc1 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parentc21f5bca9ae81804130e30ea3e6f7a18d51203dc (diff)
gpu: nvgpu: Separate GMMU mapping impl from mm_gk20a.c
Separate the non-chip specific GMMU mapping implementation code out of mm_gk20a.c. This puts all of the chip-agnostic code into common/mm/gmmu.c in preparation for rewriting it. JIRA NVGPU-12 JIRA NVGPU-30 Change-Id: I6f7fdac3422703f5e80bb22ad304dc27bba4814d Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1480228 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.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 7e2ba051..2581bc0d 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -433,17 +433,10 @@ int gk20a_dmabuf_alloc_drvdata(struct dma_buf *dmabuf, struct device *dev);
433int gk20a_dmabuf_get_state(struct dma_buf *dmabuf, struct gk20a *g, 433int gk20a_dmabuf_get_state(struct dma_buf *dmabuf, struct gk20a *g,
434 u64 offset, struct gk20a_buffer_state **state); 434 u64 offset, struct gk20a_buffer_state **state);
435 435
436int map_gmmu_pages(struct gk20a *g, struct gk20a_mm_entry *entry);
437void unmap_gmmu_pages(struct gk20a *g, struct gk20a_mm_entry *entry);
438void pde_range_from_vaddr_range(struct vm_gk20a *vm, 436void pde_range_from_vaddr_range(struct vm_gk20a *vm,
439 u64 addr_lo, u64 addr_hi, 437 u64 addr_lo, u64 addr_hi,
440 u32 *pde_lo, u32 *pde_hi); 438 u32 *pde_lo, u32 *pde_hi);
441int gk20a_mm_pde_coverage_bit_count(struct vm_gk20a *vm); 439int gk20a_mm_pde_coverage_bit_count(struct vm_gk20a *vm);
442u32 pte_index_from_vaddr(struct vm_gk20a *vm,
443 u64 addr, enum gmmu_pgsz_gk20a pgsz_idx);
444void free_gmmu_pages(struct vm_gk20a *vm,
445 struct gk20a_mm_entry *entry);
446
447u32 gk20a_mm_get_physical_addr_bits(struct gk20a *g); 440u32 gk20a_mm_get_physical_addr_bits(struct gk20a *g);
448 441
449struct gpu_ops; 442struct gpu_ops;