Skip to content

Commit b4b7271

Browse files
PhilipYangAalexdeucher
authored andcommitted
drm/amdgpu: Don't enable sdma 4.4.5 CTXEMPTY interrupt
The sdma context empty interrupt is dropped in amdgpu_irq_dispatch as unregistered interrupt src_id 243, this interrupt accounts to 1/3 of total interrupts and causes IH primary ring overflow when running stressful benchmark application. Disable this interrupt has no side effect found. Signed-off-by: Philip Yang <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 34c4eb7 commit b4b7271

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,10 +973,12 @@ static int sdma_v4_4_2_inst_start(struct amdgpu_device *adev,
973973
/* set utc l1 enable flag always to 1 */
974974
temp = RREG32_SDMA(i, regSDMA_CNTL);
975975
temp = REG_SET_FIELD(temp, SDMA_CNTL, UTC_L1_ENABLE, 1);
976-
/* enable context empty interrupt during initialization */
977-
temp = REG_SET_FIELD(temp, SDMA_CNTL, CTXEMPTY_INT_ENABLE, 1);
978-
WREG32_SDMA(i, regSDMA_CNTL, temp);
979976

977+
if (amdgpu_ip_version(adev, SDMA0_HWIP, 0) < IP_VERSION(4, 4, 5)) {
978+
/* enable context empty interrupt during initialization */
979+
temp = REG_SET_FIELD(temp, SDMA_CNTL, CTXEMPTY_INT_ENABLE, 1);
980+
WREG32_SDMA(i, regSDMA_CNTL, temp);
981+
}
980982
if (!amdgpu_sriov_vf(adev)) {
981983
if (adev->firmware.load_type != AMDGPU_FW_LOAD_PSP) {
982984
/* unhalt engine */

0 commit comments

Comments
 (0)