Skip to content

drm/helpers: Make the suballocation manager drm generic.

Maarten Lankhorst dri-devel intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm: Extract amdgpu_sa.c as a generic suballocation helperdrivers/gpu/drm/Kconfig drivers/gpu/drm/Makefile drivers/gpu/drm/drm_suballoc.c +1 more+511 -00 replies
2/3drm/amd: Convert amdgpu to use suballocation helper.drivers/gpu/drm/Kconfig drivers/gpu/drm/amd/amdgpu/amdgpu.h drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +2 more+40 -3360 replies
3/3drm/radeon: Use the drm suballocation manager implementation.drivers/gpu/drm/Kconfig drivers/gpu/drm/radeon/radeon.h drivers/gpu/drm/radeon/radeon_ib.c +3 more+52 -3570 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/3] drm/helpers: Make the suballocation manager drm generic.

Second version of the patch. I didn't fix the copyright (which ame up in the previous version), as I feel the original author should send a patch for that.

I've made the suballocator into its own module, and did a cleanup pass on it. The suballocator is generic enough to be useful for any resource that can be subdivided and is guarded by a completion fence.

Maarten Lankhorst (3):
drm: Extract amdgpu_sa.c as a generic suballocation helper drm/amd: Convert amdgpu to use suballocation helper. drm/radeon: Use the drm suballocation manager implementation.

 drivers/gpu/drm/Kconfig                    |   6 +
 drivers/gpu/drm/Makefile                   |   3 +
 drivers/gpu/drm/amd/amdgpu/amdgpu.h        |  29 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c     |   5 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h |  21 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c     | 320 +---------------
 drivers/gpu/drm/drm_suballoc.c             | 426 +++++++++++++++++++++
 drivers/gpu/drm/radeon/radeon.h            |  55 +--
 drivers/gpu/drm/radeon/radeon_ib.c         |  10 +-
 drivers/gpu/drm/radeon/radeon_object.h     |  23 +-
 drivers/gpu/drm/radeon/radeon_sa.c         | 314 ++-------------
 drivers/gpu/drm/radeon/radeon_semaphore.c  |   6 +-
 include/drm/drm_suballoc.h                 |  78 ++++
 13 files changed, 603 insertions(+), 693 deletions(-)
 create mode 100644 drivers/gpu/drm/drm_suballoc.c
 create mode 100644 include/drm/drm_suballoc.h
Signature · 1 line
2.34.1