]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: DMA map/unmap when updating GPU mappings
authorFelix Kuehling <Felix.Kuehling@amd.com>
Sat, 10 Apr 2021 07:48:56 +0000 (03:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:43:59 +0000 (22:43 -0400)
commit5f5097b94a76b334f2dc14e5138b70391d96278d
treee0cb6cad910e13fbffc703a1c680ae700ba6ce06
parentc6b84819c92ed9c0fd89831d2261458f35cec7ec
drm/amdgpu: DMA map/unmap when updating GPU mappings

DMA map kfd_mem_attachments in update_gpuvm_pte. This function is called
with the BO and page tables reserved, so we can safely update the DMA
mapping.

DMA unmap when a BO is unmapped from a GPU and before updating mappings
in restore workers.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Oak Zeng <Oak.Zeng@amd.com>
Acked-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c