mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: VM map path refactoring
Final VM mapping refactoring. Move most of the logic in the VM map path to the common/mm/vm.c code and use the generic APIs previously implemented to deal with comptags and map caching. This also updates the mapped_buffer struct to finally be free of the Linux dma_buf and scatter gather table pointers. This is replaced with the nvgpu_os_buffer struct. JIRA NVGPU-30 JIRA NVGPU-71 JIRA NVGPU-224 Change-Id: If5b32886221c3e5af2f3d7ddd4fa51dd487bb981 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1583987 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8428c82c81
commit
01c98eb680
@@ -64,7 +64,7 @@ static dma_addr_t gpuva_to_iova_base(struct vm_gk20a *vm, u64 gpu_vaddr)
|
||||
nvgpu_mutex_acquire(&vm->update_gmmu_lock);
|
||||
buffer = __nvgpu_vm_find_mapped_buf(vm, gpu_vaddr);
|
||||
if (buffer)
|
||||
addr = nvgpu_mem_get_addr_sgl(g, buffer->sgt->sgl);
|
||||
addr = nvgpu_mem_get_addr_sgl(g, buffer->os_priv.sgt->sgl);
|
||||
nvgpu_mutex_release(&vm->update_gmmu_lock);
|
||||
|
||||
return addr;
|
||||
|
||||
Reference in New Issue
Block a user