summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
diff options
context:
space:
mode:
authorOak Zeng <Oak.Zeng@amd.com>2021-03-01 17:36:19 -0600
committerAlex Deucher <alexander.deucher@amd.com>2021-03-23 23:00:51 -0400
commit47bfa5f60fbfd7a1c5b4d5ba8c1ab45bc9c81bc8 (patch)
tree4d07f3740a16f1ee3da11f344db92b8a92d5fdc2 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
parentc3c9e0faf46bde786ef34ed47ef66d70a29b1f4b (diff)
downloadlinux-stable-47bfa5f60fbfd7a1c5b4d5ba8c1ab45bc9c81bc8.tar.gz
linux-stable-47bfa5f60fbfd7a1c5b4d5ba8c1ab45bc9c81bc8.tar.bz2
linux-stable-47bfa5f60fbfd7a1c5b4d5ba8c1ab45bc9c81bc8.zip
drm/amdgpu: Increase PSP runtime TMR region size
Aldebaran uses more than 4M runtime TMR. The current hard coded 4M TMR is not big enough for Aldebaran. Increase it to 8M. v2: Only do 8M size for ALDEBARAN (Hawking) Signed-off-by: Oak Zeng <Oak.Zeng@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index 691629293d72..d9856cae9a39 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -387,7 +387,7 @@ static int psp_tmr_init(struct psp_context *psp)
* Note: this memory need be reserved till the driver
* uninitializes.
*/
- tmr_size = PSP_TMR_SIZE;
+ tmr_size = PSP_TMR_SIZE(psp->adev);
/* For ASICs support RLC autoload, psp will parse the toc
* and calculate the total size of TMR needed */
@@ -403,7 +403,7 @@ static int psp_tmr_init(struct psp_context *psp)
}
pptr = amdgpu_sriov_vf(psp->adev) ? &tmr_buf : NULL;
- ret = amdgpu_bo_create_kernel(psp->adev, tmr_size, PSP_TMR_SIZE,
+ ret = amdgpu_bo_create_kernel(psp->adev, tmr_size, PSP_TMR_SIZE(psp->adev),
AMDGPU_GEM_DOMAIN_VRAM,
&psp->tmr_bo, &psp->tmr_mc_addr, pptr);