diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/mm_gk20a.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c index 32c74f3a..670e16d0 100644 --- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c | |||
@@ -717,21 +717,6 @@ int setup_buffer_kind_and_compression(struct vm_gk20a *vm, | |||
717 | return 0; | 717 | return 0; |
718 | } | 718 | } |
719 | 719 | ||
720 | dma_addr_t gk20a_mm_gpuva_to_iova_base(struct vm_gk20a *vm, u64 gpu_vaddr) | ||
721 | { | ||
722 | struct nvgpu_mapped_buf *buffer; | ||
723 | dma_addr_t addr = 0; | ||
724 | struct gk20a *g = gk20a_from_vm(vm); | ||
725 | |||
726 | nvgpu_mutex_acquire(&vm->update_gmmu_lock); | ||
727 | buffer = __nvgpu_vm_find_mapped_buf(vm, gpu_vaddr); | ||
728 | if (buffer) | ||
729 | addr = nvgpu_mem_get_addr_sgl(g, buffer->sgt->sgl); | ||
730 | nvgpu_mutex_release(&vm->update_gmmu_lock); | ||
731 | |||
732 | return addr; | ||
733 | } | ||
734 | |||
735 | /* for gk20a the "video memory" apertures here are misnomers. */ | 720 | /* for gk20a the "video memory" apertures here are misnomers. */ |
736 | static inline u32 big_valid_pde0_bits(struct gk20a *g, | 721 | static inline u32 big_valid_pde0_bits(struct gk20a *g, |
737 | struct nvgpu_gmmu_pd *pd, u64 addr) | 722 | struct nvgpu_gmmu_pd *pd, u64 addr) |