summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2023-01-10 02:08:17 +0300
committerAlex Deucher <alexander.deucher@amd.com>2023-01-12 00:41:03 +0300
commit0c2dece8fb541ab07b68c3312a1065fa9c927a81 (patch)
tree9bc33df388da24fb65dc94cd9c3f9197d487f1bb /tools/perf/scripts/python
parent23b02b0e4678d9d30931eecd5e5dbb06db7f957f (diff)
downloadlinux-0c2dece8fb541ab07b68c3312a1065fa9c927a81.tar.xz
drm/amdkfd: Page aligned memory reserve size
Use page aligned size to reserve memory usage because page aligned TTM BO size is used to unreserve memory usage, otherwise no page aligned size causes memory usage accounting unbalanced. Change vram_used definition type to int64_t to be able to trigger WARN_ONCE(adev && adev->kfd.vram_used < 0, "..."), to help debug the accounting issue with warning and backtrace. 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')
0 files changed, 0 insertions, 0 deletions