Skip to content

Implement multi-GPU DMA mappings for KFD

Felix Kuehling amd-gfx dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm/amdgpu: Rename kfd_bo_va_list to kfd_mem_attachmentdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c+104 -1130 replies
2/9drm/amdgpu: Keep a bo-reference per-attachmentdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c+17 -50 replies
3/9drm/amdgpu: Simplify AQL queue mappingdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c+48 -550 replies
4/9drm/amdgpu: Add multi-GPU DMA mapping helpersdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c+152 -110 replies
5/9drm/amdgpu: DMA map/unmap when updating GPU mappingsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c+29 -270 replies
6/9drm/amdgpu: Move kfd_mem_attach outside reservationdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c+42 -300 replies
7/9drm/amdgpu: Add DMA mapping of GTT BOsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c+75 -10 replies
8/9drm/ttm: Don't count pages in SG BOs against pages_limitdrivers/gpu/drm/ttm/ttm_tt.c+18 -91 reply
9/9drm/amdgpu: Lock the attached dmabuf in unpopulatedrivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c+13 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Implement multi-GPU DMA mappings for KFD

This patch series fixes DMA-mappings of system memory (GTT and userptr) for KFD running on multi-GPU systems with IOMMU enabled. One SG-BO per GPU is needed to maintain the DMA mappings of each BO.

I ran into some reservation issues when unmapping or freeing DMA-buf imports. There are a few FIXME comments in this patch series where I'm hoping for some expert advice. Patches 8 and 9 are some related fixes in TTM and amdgpu_ttm. I'm pretty sure patch 9 is not the right way to do this.

Felix Kuehling (9):
drm/amdgpu: Rename kfd_bo_va_list to kfd_mem_attachment drm/amdgpu: Keep a bo-reference per-attachment drm/amdgpu: Simplify AQL queue mapping drm/amdgpu: Add multi-GPU DMA mapping helpers drm/amdgpu: DMA map/unmap when updating GPU mappings drm/amdgpu: Move kfd_mem_attach outside reservation drm/amdgpu: Add DMA mapping of GTT BOs
drm/ttm: Don't count pages in SG BOs against pages_limit drm/amdgpu: Lock the attached dmabuf in unpopulate

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h    |  18 +-
 .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c  | 535 ++++++++++++------
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c       |  13 +
 drivers/gpu/drm/ttm/ttm_tt.c                  |  27 +-
 4 files changed, 420 insertions(+), 173 deletions(-)
Signature · 6 lines
2.31.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel