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 16:56:16 +0000 (12:56 -0400)
commitcd3a49af58c23dd5ffa1d4d5a120ee2354d2e8d8
tree88c4ee7019cc15b86adaa54063d806c6265959c9
parent34dfca890835ca9f4a59c8a2ff6be8c0513637c7
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