diff options
| author | Philip Yang <Philip.Yang@amd.com> | 2024-10-04 16:28:07 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-17 15:08:57 +0100 |
| commit | 4c332037fcbb9bb53c46ba4f156951429acc4d97 (patch) | |
| tree | 820273693923683a00189a41e2c4a83cf5758657 /arch | |
| parent | 4a57f42e5ed42cb8f1beb262c4f6d3e698939e4e (diff) | |
| download | linux-4c332037fcbb9bb53c46ba4f156951429acc4d97.tar.gz linux-4c332037fcbb9bb53c46ba4f156951429acc4d97.tar.bz2 linux-4c332037fcbb9bb53c46ba4f156951429acc4d97.zip | |
drm/amdkfd: Accounting pdd vram_usage for svm
[ Upstream commit 68d26c10ef503175df3142db6fcd75dd94860592 ]
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 98c0b0efcc11f2a5ddf3ce33af1e48eedf808b04)
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions
