summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorYunxiang Li <Yunxiang.Li@amd.com>2024-10-24 10:23:38 +0100
committerAlex Deucher <alexander.deucher@amd.com>2024-11-04 11:30:58 -0500
commitf2863650384b32f1a511e338f102b819044ca930 (patch)
tree6b0eac3985e68ca7c84958198080b089e4745fde /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parenta1144da794adedb9447437c57d69add56494309d (diff)
downloadlinux-f2863650384b32f1a511e338f102b819044ca930.tar.gz
linux-f2863650384b32f1a511e338f102b819044ca930.tar.bz2
linux-f2863650384b32f1a511e338f102b819044ca930.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_object.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
index 7260349917ef..a5653f474f85 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
@@ -142,7 +142,6 @@ struct amdgpu_bo_vm {
struct amdgpu_mem_stats {
struct drm_memory_stats drm;
- uint64_t total;
uint64_t visible;
uint64_t evicted;
uint64_t evicted_visible;