Implement multi-GPU DMA mappings for KFD
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest10 patches 21 repliesIn review
- v19 patches 10 repliesSuperseded
Changes in v2 from the cover letter
- Made the original BO parent of the SG BO to fix bo destruction order
- Removed individualiation hack that is, not needed with parent BO
- Removed resv locking hace in amdgpu_ttm_unpopulate, not needed without the individualization hack
- Added a patch to enable the Intel IOMMU driver in rock-dbg_defconfig
- Added a patch to move dmabuf attach/detach into backend_(un)bind
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | rock-dbg_defconfig: Enable Intel IOMMUarch/ | +10 | 0 replies | |
| 2/10 | drm/amdgpu: Rename kfd_bo_va_list to kfd_mem_attachmentdrivers/ drivers/ | +104 | 1 reply | |
| 3/10 | drm/amdgpu: Keep a bo-reference per-attachmentdrivers/ | +17 | 1 reply | |
| 4/10 | drm/amdgpu: Simplify AQL queue mappingdrivers/ | +48 | 3 replies | |
| 5/10 | drm/amdgpu: Add multi-GPU DMA mapping helpersdrivers/ drivers/ | +145 | 3 replies | |
| 6/10 | drm/amdgpu: DMA map/unmap when updating GPU mappingsdrivers/ | +29 | 3 replies | |
| 7/10 | drm/amdgpu: Move kfd_mem_attach outside reservationdrivers/ | +44 | 1 reply | |
| 8/10 | drm/amdgpu: Add DMA mapping of GTT BOsdrivers/ drivers/ | +77 | 5 replies | |
| 9/10 | drm/ttm: Don't count pages in SG BOs against pages_limitdrivers/ | +18 | 1 reply | |
| 10/10 | drm/amdgpu: Move dmabuf attach/detach to backend_(un)binddrivers/ drivers/ | +25 | 2 replies |
Reviews trailers per patch
9 of 10 patches have a Reviewed-by or Acked-by.
| Patch | Christian König | Ramesh Errabolu |
|---|---|---|
| 1/10 | ||
| 2/10 | A-b | |
| 3/10 | A-b | |
| 4/10 | A-b | |
| 5/10 | A-b | |
| 6/10 | A-b | |
| 7/10 | A-b | |
| 8/10 | A-b | |
| 9/10 | A-b | |
| 10/10 | R-b R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/10] 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.
Changes in v2:
- Made the original BO parent of the SG BO to fix bo destruction order
- Removed individualiation hack that is, not needed with parent BO
- Removed resv locking hace in amdgpu_ttm_unpopulate, not needed without the individualization hack
- Added a patch to enable the Intel IOMMU driver in rock-dbg_defconfig
- Added a patch to move dmabuf attach/detach into backend_(un)bind
I'm still seeing some IOMMU access faults in the eviction test. They seem to be related to userptr handling. They happen even without this patch series on a single-GPU system, where this patch series is not needed. I believe this is an old problem in KFD or amdgpu that is being exposed by device isolation from the IOMMU. I'm debugging it, but it should not hold up this patch series.
"drm/ttm: Don't count pages in SG BOs against pages_limit" was already applied to drm-misc (I think). I'm still including it here because my patches depend on it. Without that, the SG BOs created for DMA mappings cause many tests fail because TTM incorrectly thinks it's out of memory.
Felix Kuehling (10):
rock-dbg_defconfig: Enable Intel IOMMU 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: Move dmabuf attach/detach to backend_(un)bind
arch/x86/configs/rock-dbg_defconfig | 11 +- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h | 18 +- .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 530 ++++++++++++------ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 51 +- drivers/gpu/drm/ttm/ttm_tt.c | 27 +- 5 files changed, 437 insertions(+), 200 deletions(-)
Signature · 6 lines
2.31.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel