[PATCH 0/4] fdinfo fixes
Tvrtko Ursulin
tursulin at igalia.com
Thu Oct 24 09:23:37 UTC 2024
From: Tvrtko Ursulin <tvrtko.ursulin at igalia.com>
I included two Teddy's patches which have been reviewed and acked and IMO makes
sense to pull them in straight away.
Then patch three does what Christian suggested - stops reporting GWS, GDS, OA
and DOORBELL TTM regions as 'CPU' memory.
Last patch is RFC in case there is value to expose the above mentioned as their
own memory regions. Looks questionable since I only see all zeros so not much
value for a lot of new text to parse?
$ cat /proc/1967/fdinfo/4
pos: 0
flags: 02100002
mnt_id: 24
ino: 1181
drm-driver: amdgpu
drm-client-id: 30
drm-pdev: 0000:04:00.0
pasid: 32785
drm-total-cpu: 0
drm-shared-cpu: 0
drm-active-cpu: 0
drm-resident-cpu: 0
drm-purgeable-cpu: 0
drm-total-gtt: 20 MiB
drm-shared-gtt: 0
drm-active-gtt: 0
drm-resident-gtt: 20 MiB
drm-purgeable-gtt: 0
drm-total-vram: 155068 KiB
drm-shared-vram: 13584 KiB
drm-active-vram: 0
drm-resident-vram: 155068 KiB
drm-purgeable-vram: 0
drm-total-gds: 0
drm-shared-gds: 0
drm-active-gds: 0
drm-resident-gds: 0
drm-purgeable-gds: 0
drm-total-gws: 0
drm-shared-gws: 0
drm-active-gws: 0
drm-resident-gws: 0
drm-purgeable-gws: 0
drm-total-oa: 0
drm-shared-oa: 0
drm-active-oa: 0
drm-resident-oa: 0
drm-purgeable-oa: 0
drm-total-doorbell: 0
drm-shared-doorbell: 0
drm-active-doorbell: 0
drm-resident-doorbell: 0
drm-purgeable-doorbell: 0
drm-memory-vram: 155068 KiB
drm-memory-gtt: 20480 KiB
drm-memory-cpu: 0 KiB
amd-evicted-vram: 0 KiB
amd-requested-vram: 155068 KiB
amd-requested-gtt: 20480 KiB
drm-engine-gfx: 19291217545 ns
Cc: Christian König <christian.koenig at amd.com>
Cc: Yunxiang Li <Yunxiang.Li at amd.com>
Cc: Alex Deucher <alexdeucher at gmail.com>
Tvrtko Ursulin (2):
drm/amdgpu: Stop reporting special chip memory pools as CPU memory in
fdinfo
drm/amdgpu: Expose special on chip memory pools in fdinfo
Yunxiang Li (2):
drm/amdgpu: make drm-memory-* report resident memory
drm/amdgpu: stop tracking visible memory stats
drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c | 23 ++++++++++++---------
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 24 ++--------------------
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 11 ----------
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 11 +++++++++-
4 files changed, 25 insertions(+), 44 deletions(-)
--
2.46.0
More information about the amd-gfx
mailing list