]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: make drm-memory-* report resident memory
authorYunxiang Li <Yunxiang.Li@amd.com>
Thu, 24 Oct 2024 09:23:38 +0000 (10:23 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Nov 2024 16:30:58 +0000 (11:30 -0500)
commitf2863650384b32f1a511e338f102b819044ca930
tree6b0eac3985e68ca7c84958198080b089e4745fde
parenta1144da794adedb9447437c57d69add56494309d
drm/amdgpu: make drm-memory-* report resident memory

The old behavior reports the resident memory usage for this key and the
documentation say so as well. However this was accidentally changed to
include buffers that was evicted.

Fixes: 04bdba46542c ("drm/amdgpu: Use drm_print_memory_stats helper from fdinfo")
Signed-off-by: Yunxiang Li <Yunxiang.Li@amd.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h