summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-11-25 00:12:15 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-11-25 00:12:15 +0000
commit279f17e8c26828dd9479876ec4ce66808afc1bd8 (patch)
treeec71de2f15e9624b51d4e0340f02e75bae5a4b20
parent800cc5195eb1645f36422cbfc6c5d30519d18680 (diff)
drm/amd: Fix initialization mistake for NBIO 7.7.0
From Vijendar Mukunda 5e91cd9a34171171c83d462256626c6a8deec2a0 in linux-6.6.y/6.6.63 7013a8268d311fded6c7a6528fc1de82668e75f6 in mainline linux
-rw-r--r--sys/dev/pci/drm/amd/amdgpu/nbio_v7_7.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/nbio_v7_7.c b/sys/dev/pci/drm/amd/amdgpu/nbio_v7_7.c
index def89379b51..d23e7391c6f 100644
--- a/sys/dev/pci/drm/amd/amdgpu/nbio_v7_7.c
+++ b/sys/dev/pci/drm/amd/amdgpu/nbio_v7_7.c
@@ -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,