Skip to content

Enable integration of KFD with DRM GEM_VA ioctl

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11drm/amdgpu: Fix possible null pointer dereferencedrivers/gpu/drm/amd/amdgpu/amdgpu_vm.c+2 -11 reply
2/11drm/amdgpu: Reserve fences for VM updatedrivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c+4 -10 replies
3/11drm/amdkfd: Improve amdgpu_vm_handle_moveddrivers/gpu/drm/amd/amdgpu/amdgpu_cs.c drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +1 more+18 -281 reply
4/11drm/amdgpu: Attach eviction fence on allocdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c+48 -310 replies
5/11drm/amdgpu: update mappings not managed by KFDdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c+22 -60 replies
6/11drm/amdkfd: Move TLB flushing logic into amdgpudrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +3 more+57 -670 replies
7/11drm/amdgpu: New VM state for evicted user BOsdrivers/gpu/drm/amd/amdgpu/amdgpu_vm.c drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h+21 -10 replies
8/11drm/amdgpu: Auto-validate DMABuf imports in compute VMsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +4 more+164 -110 replies
9/11drm/amdkfd: Export DMABufs from KFD using GEM handlesdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c +1 more+44 -90 replies
10/11drm/amdkfd: Import DMABufs for interop through DRMdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c drivers/gpu/drm/amd/amdkfd/kfd_chardev.c+52 -360 replies
11/11drm/amdkfd: Bump KFD ioctl versioninclude/uapi/linux/kfd_ioctl.h+2 -10 replies

Reviews trailers per patch

6 of 11 patches have a Reviewed-by or Acked-by.

PatchChristian König
1/11R-b
2/11R-b
3/11R-b
4/11A-b
5/11A-b
6/11R-b
7/11
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/11] Enable integration of KFD with DRM GEM_VA ioctl

This patch series enables better integration of KFD memory management with the DRM GEM ioctl API. It allow managing virtual address mappings in compute VMs with the GEM_VA ioctl after importing DMABufs exported from KFD into libdrm.

This will enable more flexible virtual address management for ROCm user mode, better interoperability between compute and graphics, as well as sharing of memory between processes using DMABufs.

Felix Kuehling (11):
drm/amdgpu: Fix possible null pointer dereference drm/amdgpu: Reserve fences for VM update drm/amdkfd: Improve amdgpu_vm_handle_moved drm/amdgpu: Attach eviction fence on alloc drm/amdgpu: update mappings not managed by KFD drm/amdkfd: Move TLB flushing logic into amdgpu drm/amdgpu: New VM state for evicted user BOs drm/amdgpu: Auto-validate DMABuf imports in compute VMs drm/amdkfd: Export DMABufs from KFD using GEM handles drm/amdkfd: Import DMABufs for interop through DRM drm/amdkfd: Bump KFD ioctl version

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c    |  40 +---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h    |  22 +-
 .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c  | 207 ++++++++++++------
 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c        |  22 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c   |  11 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c       |  26 +++
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c        | 198 ++++++++++++++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h        |  17 +-
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c      |  19 +-
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h         |  10 +-
 drivers/gpu/drm/amd/amdkfd/kfd_process.c      |  31 ---
 include/uapi/linux/kfd_ioctl.h                |   3 +-
 12 files changed, 424 insertions(+), 182 deletions(-)
Signature · 1 line
2.34.1