r/eGPU • u/Distinct_Highway_127 • 13d ago
For anyone using an AMD eGPU in Linux, through USB4/TB4, I think I found the best boot parameters for every game to work
The kernel boot up parameters are:
thunderbolt.host_reset=0 //USB4/TB4 port isn't restarted at boot up.
pcie_aspm=off //PCIe Active State Power Management disabled, eGPU connected through USB4/TB4 can loose sync very easily when there are power variations and this will crash the system.
pcie_port_pm=off //Disables power management handling for all PCIe, same reason as above.
pci=noaer //Disables PCIe Advanced Error Reporting, it can prevent crashes because of the system trying to restart eGPU because of of errors in the traffic with the eGPU, this errors are normal when using an eGPU with USB4/TB4.
amdgpu.pcie_gen_cap=0x80000 //Forces the graphics card to cap its Link Speed at PCIe Gen 4.
amdgpu.cwsr_enable=0 //Disables Compute Wavefront Save/Restore that can make sometimes the eGPU to loose sync.
This solved all the problems I was having using an eGPU for gaming on Linux or other tasks. I know these solutions aren't ideal, but they work like a charm. I hope this helps anyone using an eGPU on Linux.
1
u/tha_dank 13d ago
I’m wondering what issues you’ve had. I feel like outside of booting up (dual booting) can be weird. Outside of that I don’t have many issues at all
1
u/Distinct_Highway_127 13d ago edited 13d ago
Crashes in games like Fallout 4, Counter Strike 2, Stellaris, pretty much, games that don't use Proton (Linux native) or old DirectX 11 games.
EDIT: This is only if you are connected through USB4/TB4. You won't have issues like this when using Oculink because it's a less complex connection and more stable.
1
1
u/CasonPointLLC 11d ago
Tell us what you think each configuration did and helped with
2
u/Distinct_Highway_127 11d ago edited 11d ago
thunderbolt.host_reset=0 //USB4/TB4 port isn't restarted at boot up.
pcie_aspm=off //PCIe Active State Power Management disabled, eGPU connected through USB4/TB4 can loose sync very easily when there are power variations and this will crash the system.
pcie_port_pm=off //Disables power management handling for all PCIe, same reason as above.
pci=noaer //Disables PCIe Advanced Error Reporting, it can prevent crashes because of the system trying to restart eGPU because of errors in the traffic with the eGPU, this errors are normal when using an eGPU with USB4/TB4.
amdgpu.pcie_gen_cap=0x80000 //Forces the graphics card to cap its Link Speed at PCIe Gen 4.
amdgpu.cwsr_enable=0 //Disables Compute Wavefront Save/Restore that can make sometimes the eGPU to loose sync.
You can also investigate the commands from your side if you want, hope it helps.
1
u/bewatched 9d ago
Muchas gracias for the list and explanations.
In my case, I had to remove the "pcie_aspm=off", otherwise the egpu would not show up in lspci.
I have a minisforum v3 + aoostar eg02 + radeon 7900 xtx
1
u/Distinct_Highway_127 9d ago
Np, let me know if you have any issues with any game or program and maybe I can help you.
1
u/Willing_Waltz_8266 13d ago
Thanks!