]> 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)
commita0591f662712c7a14d6ef7f067437229c351103d
treee5119011944a13cbf555dfe7001f2760732dab0d
parentbf523ee58c1c02ed4d3ad4dc94d841a111d3d0bb
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