Commit fab40995 authored by Mukul Joshi's avatar Mukul Joshi Committed by Alex Deucher
Browse files

drm/amdgpu: Disable TCP Early Write Ack for GFX 12.1



Disable the TCP Early Write Ack feature on GFX 12.1.

Signed-off-by: default avatarMukul Joshi <mukul.joshi@amd.com>
Reviewed-by: default avatarAlex Sierra <alex.sierra@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e418a8fd
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2657,6 +2657,17 @@ static void gfx_v12_1_xcc_disable_burst(struct amdgpu_device *adev,
	WREG32_SOC15(GC, GET_INST(GC, xcc_id), regGLARB_DRAM_BURST_CTRL, 0xf);
}

static void gfx_v12_1_xcc_disable_early_write_ack(struct amdgpu_device *adev,
					int xcc_id)
{
	uint32_t data;

	data = RREG32_SOC15(GC, GET_INST(GC, xcc_id), regTCP_CNTL3);
	data = REG_SET_FIELD(data, TCP_CNTL3, DISABLE_EARLY_WRITE_ACK, 0x1);

	WREG32_SOC15(GC, GET_INST(GC, xcc_id), regTCP_CNTL3, data);
}

static void gfx_v12_1_init_golden_registers(struct amdgpu_device *adev)
{
	int i;
@@ -2665,6 +2676,7 @@ static void gfx_v12_1_init_golden_registers(struct amdgpu_device *adev)
		gfx_v12_1_xcc_disable_burst(adev, i);
		gfx_v12_1_xcc_enable_atomics(adev, i);
		gfx_v12_1_xcc_setup_tcp_thrashing_ctrl(adev, i);
		gfx_v12_1_xcc_disable_early_write_ack(adev, i);
	}
}