summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
diff options
context:
space:
mode:
authorPhilip Yang <Philip.Yang@amd.com>2023-01-09 18:08:17 -0500
committerAlex Deucher <alexander.deucher@amd.com>2023-01-11 16:41:03 -0500
commit0c2dece8fb541ab07b68c3312a1065fa9c927a81 (patch)
tree9bc33df388da24fb65dc94cd9c3f9197d487f1bb /drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
parent23b02b0e4678d9d30931eecd5e5dbb06db7f957f (diff)
downloadlinux-stable-0c2dece8fb541ab07b68c3312a1065fa9c927a81.tar.gz
linux-stable-0c2dece8fb541ab07b68c3312a1065fa9c927a81.tar.bz2
linux-stable-0c2dece8fb541ab07b68c3312a1065fa9c927a81.zip
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 'drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c')
0 files changed, 0 insertions, 0 deletions