aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
diff options
context:
space:
mode:
authorFeifei Xu <Feifei.Xu@amd.com>2018-08-13 22:33:25 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-08-27 12:10:39 -0400
commit3082be1aeaeef52a907b9d5bff3c50011504c687 (patch)
treeee1796d6ec011cd68d4230a763b4dffbf3e6d6f8 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
parent218a9fbc8a28f63dc0990070b81ad5574e87846c (diff)
drm/amdgpu/psp: Enlarge PSP TMR SIZE from 3M to 4M.
Enlarge the PSP TMR SIZE to 4M for dual UVD fw front-door loading. Signed-off-by: Feifei Xu <Feifei.Xu@amd.com> Reviewed-by: Evan Quan <evan.quan@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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
index ab324e34cadb..58e20385eab5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
@@ -163,7 +163,7 @@ static int psp_tmr_init(struct psp_context *psp)
163 * Note: this memory need be reserved till the driver 163 * Note: this memory need be reserved till the driver
164 * uninitializes. 164 * uninitializes.
165 */ 165 */
166 ret = amdgpu_bo_create_kernel(psp->adev, 0x300000, 0x100000, 166 ret = amdgpu_bo_create_kernel(psp->adev, PSP_TMR_SIZE, 0x100000,
167 AMDGPU_GEM_DOMAIN_VRAM, 167 AMDGPU_GEM_DOMAIN_VRAM,
168 &psp->tmr_bo, &psp->tmr_mc_addr, &psp->tmr_buf); 168 &psp->tmr_bo, &psp->tmr_mc_addr, &psp->tmr_buf);
169 169
@@ -179,7 +179,9 @@ static int psp_tmr_load(struct psp_context *psp)
179 if (!cmd) 179 if (!cmd)
180 return -ENOMEM; 180 return -ENOMEM;
181 181
182 psp_prep_tmr_cmd_buf(cmd, psp->tmr_mc_addr, 0x300000); 182 psp_prep_tmr_cmd_buf(cmd, psp->tmr_mc_addr, PSP_TMR_SIZE);
183 DRM_INFO("reserve 0x%x from 0x%llx for PSP TMR SIZE\n",
184 PSP_TMR_SIZE, psp->tmr_mc_addr);
183 185
184 ret = psp_cmd_submit_buf(psp, NULL, cmd, 186 ret = psp_cmd_submit_buf(psp, NULL, cmd,
185 psp->fence_buf_mc_addr, 1); 187 psp->fence_buf_mc_addr, 1);