]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Add multi-GPU DMA mapping helpers
authorFelix Kuehling <Felix.Kuehling@amd.com>
Sat, 10 Apr 2021 07:43:58 +0000 (03:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:43:56 +0000 (22:43 -0400)
commitc6b84819c92ed9c0fd89831d2261458f35cec7ec
treee5119011944a13cbf555dfe7001f2760732dab0d
parentd4f1046b7f71fb000ffb90c828459a9ff39a040b
drm/amdgpu: Add multi-GPU DMA mapping helpers

Add BO-type specific helpers functions to DMA-map and unmap
kfd_mem_attachments. Implement this functionality for userptrs by creating
one SG BO per GPU and filling it with a DMA mapping of the pages from the
original mem->bo.

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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c