]> git.itanic.dy.fi Git - linux-stable/commit
drm/amdgpu: change the alignment size of TMR BO to 1M
authorYang Wang <KevinYang.Wang@amd.com>
Fri, 9 Sep 2022 03:06:50 +0000 (11:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Sep 2022 18:26:59 +0000 (14:26 -0400)
commit36de13fdb04abef3ee03ade5129ab146de63983b
tree6a9dd6226726f0aba94946e7c6c6375c6ccae00a
parentdf2c6e0c95ca22db5d6bea7e8169841c95426f8d
drm/amdgpu: change the alignment size of TMR BO to 1M

align TMR BO size TO tmr size is not necessary,
modify the size to 1M to avoid re-create BO fail
when serious VRAM fragmentation.

v2:
add new macro PSP_TMR_ALIGNMENT for TMR BO alignment size

Signed-off-by: Yang Wang <KevinYang.Wang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h