Skip to content

Best effort contiguous VRAM allocation

Philip Yang amd-gfx 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest5 patches 1 replyIn review
  2. v56 patches 7 repliesSuperseded
  3. v47 patches 3 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v37 patches4 repliesSuperseded
v26 patches2 repliesSuperseded
v16 patches2 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/amdgpu: Support contiguous VRAM allocationdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c include/uapi/linux/kfd_ioctl.h+5 -00 replies
2/5drm/amdgpu: Handle sg size limit for contiguous allocationdrivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c+6 -60 replies
3/5drm/amdgpu: Evict BOs from same process for contiguous allocationdrivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c+2 -10 replies
4/5drm/amdkfd: Evict BO itself for contiguous allocationdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c+18 -10 replies
5/5drm/amdkfd: Bump kfd version for contiguous VRAM allocationinclude/uapi/linux/kfd_ioctl.h+2 -10 replies

Reviews trailers per patch

2 of 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchChristian KönigFelix Kuehling
SeriesR-b
1/5
2/5R-b
3/5R-b
4/5
5/5

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

Read the v6 thread

Cover letter [PATCH v6 0/5] Best effort contiguous VRAM allocation

This patch series implement new KFD memory alloc flag for best effort contiguous VRAM allocation, to support peer direct access RDMA device with limited scatter-gather dma capability.

v2: rebase on patch ("drm/amdgpu: Modify the contiguous flags behaviour")
to avoid adding the new GEM flag

v3: add patch 2 to handle sg segment size limit (Christian)

v4: remove the buddy block size limit from vram mgr because sg table creation already
remove the limit, and resource uses u64 to handle block start, size (Christian)

v5: remove patch 7 which is not for upstream, add AMDGPU prefix to the macro name.

v6: use shorter flag name, use interruptible wait ctx, drop patch 5/6 (Felix)

Philip Yang (5):
drm/amdgpu: Support contiguous VRAM allocation drm/amdgpu: Handle sg size limit for contiguous allocation drm/amdgpu: Evict BOs from same process for contiguous allocation drm/amdkfd: Evict BO itself for contiguous allocation drm/amdkfd: Bump kfd version for contiguous VRAM allocation

 .../gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c  | 23 ++++++++++++++++++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c       |  3 ++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c  | 12 +++++-----
 include/uapi/linux/kfd_ioctl.h                |  4 +++-
 4 files changed, 33 insertions(+), 9 deletions(-)
Signature · 1 line
2.43.2