[PATCH v1 0/3] drm_buddy regresion fix and minor improvements

Pierre-Eric Pelloux-Prayer pierre-eric.pelloux-prayer at amd.com
Wed Jul 2 16:12:01 UTC 2025


Hi,

The first patch fixes a performance issue caused by a change in
drm_buddy ("drm/buddy: Implement tracking clear page feature").
It may be related to https://gitlab.freedesktop.org/drm/amd/-/issues/4260.

The other 2 patches are improvements based on my limited understanding
of the code and that seem to work as expected.


Pierre-Eric Pelloux-Prayer (3):
  drm/buddy: add a flag to disable trimming of non cleared blocks
  drm/buddy: use DRM_BUDDY_CLEAR_ALLOCATION as a hint, not a hard req
  drm/buddy: dont go over the higher orders multiple times

 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 10 ++-
 drivers/gpu/drm/drm_buddy.c                  | 61 ++++++++++------
 drivers/gpu/drm/tests/drm_buddy_test.c       | 75 +++-----------------
 include/drm/drm_buddy.h                      |  3 +-
 4 files changed, 57 insertions(+), 92 deletions(-)

-- 
2.43.0



More information about the amd-gfx mailing list