]> 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)
commita308bda7c7519f52f55186798fbb047ce495121f
treee0cb6cad910e13fbffc703a1c680ae700ba6ce06
parenta0591f662712c7a14d6ef7f067437229c351103d
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