diff options
author | Philip Yang <Philip.Yang@amd.com> | 2024-10-04 16:28:07 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-10-15 11:22:19 -0400 |
commit | 98c0b0efcc11f2a5ddf3ce33af1e48eedf808b04 (patch) | |
tree | 17f81a9f43c8417c4947de63278cc017b07af22e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bfaf1883605fd0c0dbabacd67ed49708470d5ea4 (diff) |
drm/amdkfd: Accounting pdd vram_usage for svm
Process device data pdd->vram_usage is read by rocm-smi via sysfs, this
is currently missing the svm_bo usage accounting, so "rocm-smi
--showpids" per process VRAM usage report is incorrect.
Add pdd->vram_usage accounting when svm_bo allocation and release,
change to atomic64_t type because it is updated outside process mutex
now.
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions