drm/amdgpu : Updated TCP/UTCL1 programming
Subsystems (2)
PATCH v2 1/1 drm/amdgpu : Updated TCP/UTCL1 programming
It is required for TCP/UTCL1 thrashing
v2: updated rev_id check
Signed-off-by Mangesh Gadre <[email protected]>
Reviewed-by Hawking Zhang <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +3 -0
@@ -203,6 +203,9 @@ static void gfx_v9_4_3_init_golden_registers(struct amdgpu_device *adev)if (adev->rev_id ==0 ) {WREG32_FIELD15_PREREG (GC , dev_inst,TCP_UTCL1_CNTL1 ,REDUCE_FIFO_DEPTH_BY_2 ,2 ); + }else { +WREG32_FIELD15_PREREG (GC , dev_inst,TCP_UTCL1_CNTL2 , +SPARE ,0x1 ); } } }
Signature · 1 line
2.34.1
Quoted 2 lines · Mangesh Gadre
It is required for TCP/UTCL1 thrashing
Description looks a bit odd. You may rephrase as 'Update TCP/UTCL1 thrashing control settings'.
Reviewed-by Lijo Lazar <[email protected]>
Thanks,
Lijo
Quoted 22 lines
v2: updated
rev_idcheckSigned-off-by Mangesh Gadre <[email protected]>Reviewed-by Hawking Zhang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +3
-0@@ -203,6 +203,9 @@ static void gfx_v9_4_3_init_golden_registers(struct amdgpu_device *adev)if (adev->rev_id ==0 ) {WREG32_FIELD15_PREREG (GC , dev_inst,TCP_UTCL1_CNTL1 ,REDUCE_FIFO_DEPTH_BY_2 ,2 ); + }else { +WREG32_FIELD15_PREREG (GC , dev_inst,TCP_UTCL1_CNTL2 , +SPARE ,0x1 ); } } }