|
@@ -163,7 +163,7 @@ static int psp_tmr_init(struct psp_context *psp)
|
|
* Note: this memory need be reserved till the driver
|
|
* Note: this memory need be reserved till the driver
|
|
* uninitializes.
|
|
* uninitializes.
|
|
*/
|
|
*/
|
|
- ret = amdgpu_bo_create_kernel(psp->adev, 0x300000, 0x100000,
|
|
|
|
|
|
+ ret = amdgpu_bo_create_kernel(psp->adev, PSP_TMR_SIZE, 0x100000,
|
|
AMDGPU_GEM_DOMAIN_VRAM,
|
|
AMDGPU_GEM_DOMAIN_VRAM,
|
|
&psp->tmr_bo, &psp->tmr_mc_addr, &psp->tmr_buf);
|
|
&psp->tmr_bo, &psp->tmr_mc_addr, &psp->tmr_buf);
|
|
|
|
|
|
@@ -179,7 +179,9 @@ static int psp_tmr_load(struct psp_context *psp)
|
|
if (!cmd)
|
|
if (!cmd)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
- psp_prep_tmr_cmd_buf(cmd, psp->tmr_mc_addr, 0x300000);
|
|
|
|
|
|
+ psp_prep_tmr_cmd_buf(cmd, psp->tmr_mc_addr, PSP_TMR_SIZE);
|
|
|
|
+ DRM_INFO("reserve 0x%x from 0x%llx for PSP TMR SIZE\n",
|
|
|
|
+ PSP_TMR_SIZE, psp->tmr_mc_addr);
|
|
|
|
|
|
ret = psp_cmd_submit_buf(psp, NULL, cmd,
|
|
ret = psp_cmd_submit_buf(psp, NULL, cmd,
|
|
psp->fence_buf_mc_addr, 1);
|
|
psp->fence_buf_mc_addr, 1);
|