drm/buddy: Documentation and internal helper cleanup
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 4 repliesIn review
- v22 patches 3 repliesSuperseded
- v12 patches 2 repliesSuperseded
Changes in v3 from the cover letter
- Document reserved bits 8:6 in header layout (Arun)
- Fix checkpatch warning
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | drm/buddy: Add kernel-doc for allocator structures and flagsinclude/ | +103 | 4 replies | |
| 2/2 | drm/buddy: Move internal helpers to buddy.cdrivers/ include/ | +20 | 0 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Arunpravin Paneer Selvam |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] drm/buddy: Documentation and internal helper cleanup
This series improves the GPU buddy allocator by adding missing documentation and cleaning up internal helpers.
It adds kernel-doc for the allocator structures and flags, covering gpu_buddy, gpu_buddy_block, and the allocation flags (RANGE, TOPDOWN, CONTIGUOUS, CLEAR, TRIM_DISABLE) to make the allocator’s design and usage clearer for readers and contributors.
It also reduces the header surface by moving internal helpers from gpu_buddy.h into buddy.c as static functions, since they have no external users, and removes gpu_get_buddy(), an unused exported wrapper around the internal __get_buddy() helper. This clarifies the intended API and avoids exporting unused symbols.
No functional changes.
v2:
- Rebased after DRM buddy allocator moved to drivers/gpu/
- Keep gpu_buddy_block_is_free() in header since it's now used by drm_buddy.c
- Corrected GPU_BUDDY_CLEAR_TREE and GPU_BUDDY_DIRTY_TREE index values (Arun)
- Updated commit message and cover letter to reflect changes
v3:
- Document reserved bits 8:6 in header layout (Arun)
- Fix checkpatch warning
Sanjay Yadav (2):
drm/buddy: Add kernel-doc for allocator structures and flags drm/buddy: Move internal helpers to buddy.c
drivers/gpu/buddy.c | 35 ++++----- include/linux/gpu_buddy.h | 148 +++++++++++++++++++++++++++----------- 2 files changed, 123 insertions(+), 60 deletions(-)
Signature · 1 line
2.52.0