RX 7900XTX - aspm not functioning correctly
Brief summary of the problem:
Card switches to PCIe gen1 @ 1x speed at random and doesn't automatically switch back to PCIe gen4 @16x when doing something graphically intensive e.g running a game or even doing some hardware acceleration.
It can stay stuck at gen1 @ 1x for quite a while I just have to wait or restart the computer or restart the graphical environment to get back to normal PCIe speeds.
Hardware description:
- CPU: AMD Ryzen 9 7900X
- GPU: VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX] [1002:744c] (rev c8)
- System Memory: 32GiB
- Display(s): 1x 2560x1440@144Hz
- Type of Display Connection: DP
System information:
- Distro name and Version: Arch Linux
- Kernel version: Linux the-hive 6.2.1-273-tkg-cfs #1 (closed) SMP PREEMPT_DYNAMIC TKG Mon, 27 Feb 2023 00:32:59 +0000 x86_64 GNU/Linux
How to reproduce the issue:
Check PCIe speeds with nvtop
if running at gen1 @1x try to launch steam or a game and get unbearable performance.
Sometimes the issue is apparent as soon as I boot up into the graphical environment other times it can take over 30 mins to show.
Attached files:
Screenshots/video files
Card running at PCIe gen1 @1x using 100% GPU just running steam slows my whole machine down.
Log files (for system lockups / game freezes / crashes)
Workarounds
setting amdgpu.aspm=0
in kernel boot params solves the issue for me.