-
- Downloads
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> (cherry picked from commit 98c0b0ef)
Showing
- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 3 additions, 3 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_chardev.c
- drivers/gpu/drm/amd/amdkfd/kfd_priv.h 1 addition, 1 deletiondrivers/gpu/drm/amd/amdkfd/kfd_priv.h
- drivers/gpu/drm/amd/amdkfd/kfd_process.c 2 additions, 2 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_process.c
- drivers/gpu/drm/amd/amdkfd/kfd_svm.c 26 additions, 0 deletionsdrivers/gpu/drm/amd/amdkfd/kfd_svm.c
Loading
Please register or sign in to comment