diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 08c99895..a6d6ee04 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -2583,25 +2583,6 @@ dma_addr_t gk20a_mm_gpuva_to_iova_base(struct vm_gk20a *vm, u64 gpu_vaddr) | |||
2583 | return addr; | 2583 | return addr; |
2584 | } | 2584 | } |
2585 | 2585 | ||
2586 | void gk20a_gmmu_unmap(struct vm_gk20a *vm, | ||
2587 | u64 vaddr, | ||
2588 | u64 size, | ||
2589 | int rw_flag) | ||
2590 | { | ||
2591 | struct gk20a *g = gk20a_from_vm(vm); | ||
2592 | |||
2593 | nvgpu_mutex_acquire(&vm->update_gmmu_lock); | ||
2594 | g->ops.mm.gmmu_unmap(vm, | ||
2595 | vaddr, | ||
2596 | size, | ||
2597 | gmmu_page_size_kernel, | ||
2598 | true, /*va_allocated */ | ||
2599 | rw_flag, | ||
2600 | false, | ||
2601 | NULL); | ||
2602 | nvgpu_mutex_release(&vm->update_gmmu_lock); | ||
2603 | } | ||
2604 | |||
2605 | u64 gk20a_mm_smmu_vaddr_translate(struct gk20a *g, dma_addr_t iova) | 2586 | u64 gk20a_mm_smmu_vaddr_translate(struct gk20a *g, dma_addr_t iova) |
2606 | { | 2587 | { |
2607 | /* ensure it is not vidmem allocation */ | 2588 | /* ensure it is not vidmem allocation */ |