[PATCH 0/5] Fdinfo memory stats clarification and amdgpu refactor

Tvrtko Ursulin tursulin at igalia.com
Mon May 6 16:59:54 UTC 2024


From: Tvrtko Ursulin <tvrtko.ursulin at igalia.com>

Following on from the recent discussion from:
  https://lore.kernel.org/dri-devel/ZjjTaeZYNqVSj2y-@phenom.ffwll.local/T/#mb8105d8d7de055d3068975d27c428525e55cff84

I included some old three patches to start with, since the last in the series
depends on first, plus first had a bug which is now fixed.

Apart from extending drm-usage-stats.rst with some more information on what
various keys should contain, on a suggestion from Alex, in the last patch I also
attempt to refactor amdgpu to use DRM common drm_print_memory_stats.

There are perhaps a couple discussion points there so see what you think please.

Cc: Alex Deucher <alexander.deucher at amd.com>
Cc: Christian König <christian.koenig at amd.com>
Cc: Daniel Vetter <daniel at ffwll.ch>
Cc: Rob Clark <robdclark at chromium.org>

Tvrtko Ursulin (5):
  drm/amdgpu: Add amdgpu_bo_is_vm_bo helper
  drm/amdgpu: Reduce mem_type to domain double indirection
  drm/amdgpu: Describe all object placements in debugfs
  Documentation/gpu: Document the situation with unqualified drm-memory-
  drm/amdgpu: Use drm_print_memory_stats helper from fdinfo

 Documentation/gpu/drm-usage-stats.rst       |  25 +++-
 drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c |   3 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c  |  47 +++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c     |   2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c  | 126 +++++++++++++-------
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h  |  35 ++----
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h     |   1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c      |  61 ++++++----
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h      |   5 +-
 9 files changed, 189 insertions(+), 116 deletions(-)

-- 
2.44.0



More information about the amd-gfx mailing list