diff options
| author | Daniel Phillips <daniel.phillips@amd.com> | 2023-03-05 22:54:35 -0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-10-20 12:09:58 -0400 |
| commit | 16df12d7158fb55f20d6e985abd1996cbabab9f8 (patch) | |
| tree | be371cc2a1d1f731d544460587d1994343d18fcd /scripts/objdiff | |
| parent | 44d0d3031e47973ed65fd327669d5e2eaaf6c565 (diff) | |
| download | linux-16df12d7158fb55f20d6e985abd1996cbabab9f8.tar.gz linux-16df12d7158fb55f20d6e985abd1996cbabab9f8.zip | |
amdkfd: Fix memory availability double accounting of kfd pinned objects
Pinned objects that are not kfd objects reduce the total vram available
to kfd, so we subtract the total size of pinned objects from kdf vram
availability. However this double counts objects pinned by kfd itself,
because they are counted both as used and pinned. So track the total
size of objects pinned by kfd and add it back to kfd availability to
remove the double accounting.
Signed-off-by: Daniel Phillips <daniel.phillips@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit b8257bdb26ca5d9a75f4b81f629422f17afa221b)
Cc: stable@vger.kernel.org
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
