Skip to content

Commit 05ea6ce

Browse files
superm1gregkh
authored andcommitted
drm/amdgpu: Disable PCIe dynamic speed switching on Ryzen Pinnacle Ridge
commit 0148ac3 upstream. AMD Ryzen Pinnacle Ridge (Zen+, family 0x17 model 0x08) CPUs have PCI controllers that don't support PCIe dynamic speed switching, causing system freezes during GPU initialization when enabled. Disable dynamic speed switching when this CPU is detected. Assisted-by: Claude:sonnet Fixes: 466a7d1 ("drm/amd: Use the first non-dGPU PCI device for BW limits") Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/5436 Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Link: https://patch.msgid.link/20260709031520.841611-1-mario.limonciello@amd.com Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 9ceb4e0) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent bfe28ce commit 05ea6ce

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,6 +1757,15 @@ static bool amdgpu_device_pcie_dynamic_switching_supported(struct amdgpu_device
17571757

17581758
if (c->x86_vendor == X86_VENDOR_INTEL)
17591759
return false;
1760+
1761+
/*
1762+
* AMD Ryzen Pinnacle Ridge (Zen+, family 0x17 model 0x08) CPUs don't
1763+
* support PCIe dynamic speed switching.
1764+
* https://gitlab.freedesktop.org/drm/amd/-/work_items/5436
1765+
*/
1766+
if (c->x86_vendor == X86_VENDOR_AMD && c->x86 == 0x17 &&
1767+
c->x86_model == 0x08)
1768+
return false;
17601769
#endif
17611770
return true;
17621771
}

0 commit comments

Comments
 (0)