]> 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)
commit264fb4d332f5e76743818480e482464437837c52
treee5119011944a13cbf555dfe7001f2760732dab0d
parent7141394edc05f439751e4eb2e5aedb4889b48e33
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