Skip to contentSkip to conversation

drm/amdgpu : Updated TCP/UTCL1 programming

PATCH In review Mangesh Gadre 2 participants 2 messages Aug 21, 2023 – Aug 22, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm/amdgpu : Updated TCP/UTCL1 programming

It is required for TCP/UTCL1 thrashing

v2: updated rev_id check

---
 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
index 93590adf2b04..8b84ca80d80b 100644
@@ -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
Reviewed-by on v2 1/1
#1 lore raw
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'.

Thanks,
Lijo

Quoted 22 lines

v2: updated rev_id check

---
  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
index 93590adf2b04..8b84ca80d80b 100644
@@ -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);
  		}
  	}
  }