Skip to content

Commit 349af06

Browse files
superm1alexdeucher
authored andcommitted
drm/amd: Fix initialization mistake for NBIO 7.11 devices
There is a strapping issue on NBIO 7.11.x that can lead to spurious PME events while in the D0 state. Cc: [email protected] Reviewed-by: Alex Deucher <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 902fbbf commit 349af06

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,15 @@ static void nbio_v7_11_init_registers(struct amdgpu_device *adev)
275275
if (def != data)
276276
WREG32_SOC15(NBIO, 0, regBIF_BIF256_CI256_RC3X4_USB4_PCIE_MST_CTRL_3, data);
277277

278+
switch (adev->ip_versions[NBIO_HWIP][0]) {
279+
case IP_VERSION(7, 11, 0):
280+
case IP_VERSION(7, 11, 1):
281+
case IP_VERSION(7, 11, 2):
282+
case IP_VERSION(7, 11, 3):
283+
data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF5_STRAP4) & ~BIT(23);
284+
WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF5_STRAP4, data);
285+
break;
286+
}
278287
}
279288

280289
static void nbio_v7_11_update_medium_grain_clock_gating(struct amdgpu_device *adev,

0 commit comments

Comments
 (0)