Skip to content

Commit

Permalink
drm/amd: Fix initialization mistake for NBIO 7.7.0
Browse files Browse the repository at this point in the history
There is a strapping issue on NBIO 7.7.0 that can lead to spurious PME
events while in the D0 state.

Co-developed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20241112161142.28974-1-mario.limonciello@amd.com
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 447a54a)
Cc: stable@vger.kernel.org
  • Loading branch information
Vijendar Mukunda authored and Alex Deucher committed Nov 12, 2024
1 parent 5f77ee2 commit 7013a82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/nbio_v7_7.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ static void nbio_v7_7_init_registers(struct amdgpu_device *adev)
if (def != data)
WREG32_SOC15(NBIO, 0, regBIF0_PCIE_MST_CTRL_3, data);

switch (adev->ip_versions[NBIO_HWIP][0]) {
case IP_VERSION(7, 7, 0):
data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF5_STRAP4) & ~BIT(23);
WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF5_STRAP4, data);
break;
}
}

static void nbio_v7_7_update_medium_grain_clock_gating(struct amdgpu_device *adev,
Expand Down

0 comments on commit 7013a82

Please sign in to comment.