mbox series

[0/2] DRM fdinfo legacy drm-memory- clarification and amdgpu update

Message ID 20240813135712.82611-1-tursulin@igalia.com (mailing list archive)
Headers show
Series DRM fdinfo legacy drm-memory- clarification and amdgpu update | expand

Message

Tvrtko Ursulin Aug. 13, 2024, 1:57 p.m. UTC
From: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>

Re-sending these two since they garnered little attention last time round.

First patch clarifies what drm-memory- is, and that it is legacy, and second
patch updates amdgpu to start emitting new keys together with the legacy (by
using the common DRM helper).

With that gputop will show the resident usage (not just total) and as bonus I
added active and purgeable.

Tvrtko Ursulin (2):
  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_fdinfo.c | 48 +++++++----
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 96 +++++++++++++++-------
 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     | 20 +++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h     |  3 +-
 7 files changed, 144 insertions(+), 84 deletions(-)