]> 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)
commitb72ed8a2de8e9dfbd61217d60a7da868ac2cfbff
treee0cb6cad910e13fbffc703a1c680ae700ba6ce06
parent264fb4d332f5e76743818480e482464437837c52
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