drm/helpers: Make the suballocation manager drm generic
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest3 patches 5 repliesIn review
- v33 patches 0 repliesSuperseded
- v13 patches 8 repliesSuperseded
Changes in v4 from the cover letter
- Avoid 64-bit integer divisions (kernel test robot <[email protected]>)
- Use size_t rather than u64 for the managed range. (Thomas)
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | drm/suballoc: Extract amdgpu_sa.c as generic suballocation helperdrivers/ drivers/ drivers/ +1 more | +572 | 0 replies | |
| 2/3 | drm/amd: Convert amdgpu to use suballocation helper.drivers/ drivers/ drivers/ +3 more | +45 | 0 replies | |
| 3/3 | drm/radeon: Use the drm suballocation manager implementation.drivers/ drivers/ drivers/ +3 more | +57 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Christian König |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/3] drm/helpers: Make the suballocation manager drm generic
This series (or at least the suballocator helper) is a prerequisite for the new Xe driver.
There was an unresolved issue when the series was last up for review, and that was the per allocation aligment. Last message was from Maarten Lankhorst arguing that the larger per-driver alignment used would only incur a small memory cost. This new variant resolves that.
The generic suballocator has been tested with the Xe driver, and a kunit test is under development.
The amd- and radeon adaptations are only compile-tested.
v3:
- Remove stale author information (Christian König)
- Update Radeon Kconfig (Thomas Hellström)
v4:
- Avoid 64-bit integer divisions (kernel test robot <[email protected]>)
- Use size_t rather than u64 for the managed range. (Thomas)
Maarten Lankhorst (3):
drm/suballoc: Extract amdgpu_sa.c as generic suballocation helper drm/amd: Convert amdgpu to use suballocation helper. drm/radeon: Use the drm suballocation manager implementation.
drivers/gpu/drm/Kconfig | 4 + drivers/gpu/drm/Makefile | 3 + drivers/gpu/drm/amd/amdgpu/Kconfig | 1 + drivers/gpu/drm/amd/amdgpu/amdgpu.h | 26 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 5 +- drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 23 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 3 +- drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c | 324 +-------------- drivers/gpu/drm/drm_suballoc.c | 457 +++++++++++++++++++++ drivers/gpu/drm/radeon/Kconfig | 1 + drivers/gpu/drm/radeon/radeon.h | 55 +-- drivers/gpu/drm/radeon/radeon_ib.c | 12 +- drivers/gpu/drm/radeon/radeon_object.h | 25 +- drivers/gpu/drm/radeon/radeon_sa.c | 316 ++------------ drivers/gpu/drm/radeon/radeon_semaphore.c | 4 +- include/drm/drm_suballoc.h | 108 +++++ 16 files changed, 674 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