drm/amdgpu: Adjust TMR address alignment as per HW requirement
Subsystems (2)
PATCH 1/1 drm/amdgpu: Adjust TMR address alignment as per HW requirement
According to HW engineer, they prefer the TMR address be "naturally aligned", e.g. the start address must be an integer divide of TME size.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +3 -3
@@ -187,13 +187,13 @@ static int psp_tmr_init(struct psp_context *psp)int ret;/* -* Allocate 3M memory aligned to 1M from Frame Buffer (local -* physical). +* According to HW engineer, they prefer the TMR address be "naturally +* aligned" , e.g. the start address be an integer divide of TMR size. * * Note: this memory need be reserved till the driver * uninitializes. */ - ret =amdgpu_bo_create_kernel (psp->adev,PSP_TMR_SIZE ,0x100000 , + ret =amdgpu_bo_create_kernel (psp->adev,PSP_TMR_SIZE ,PSP_TMR_SIZE ,AMDGPU_GEM_DOMAIN_VRAM , &psp->tmr_bo, &psp->tmr_mc_addr, &psp->tmr_buf);
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1553544892-31833-1-git-send-email-shaoyun.liu-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Acked-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Liu, Shaoyun <[email protected]>
Sent: Monday, March 25, 2019 4:14 PM
To: [email protected]
Cc: Liu, Shaoyun
Subject: [PATCH] drm/amdgpu: Adjust TMR address alignment as per HW requirement
According to HW engineer, they prefer the TMR address be "naturally aligned", e.g. the start address must be an integer divide of TME size.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +3 -3
@@ -187,13 +187,13 @@ static int psp_tmr_init(struct psp_context *psp)int ret;/* -* Allocate 3M memory aligned to 1M from Frame Buffer (local -* physical). +* According to HW engineer, they prefer the TMR address be "naturally +* aligned" , e.g. the start address be an integer divide of TMR size. * * Note: this memory need be reserved till the driver * uninitializes. */ - ret =amdgpu_bo_create_kernel (psp->adev,PSP_TMR_SIZE ,0x100000 , + ret =amdgpu_bo_create_kernel (psp->adev,PSP_TMR_SIZE ,PSP_TMR_SIZE ,AMDGPU_GEM_DOMAIN_VRAM , &psp->tmr_bo, &psp->tmr_mc_addr, &psp->tmr_buf);
--
2.7.4
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx