eGPU bootloop issues on Fedora 44

Some people have trouble on Windows from what I’ve seen on Reddit, seems to be gaming handhelds like the XAX and LGo mostly.

I have seen the same Linux issues with the EG02 and AG03 that you mention… It wouldn’t surprise me if they are all using the same or similar firmware though so it can’t be ruled out (yet).

I’m waiting to see what comes of that GPD G2 dock… If that works fine with the same controller and kernels (6.17+) as it advertises, then it makes it quite likely that something on these older docks firmware side is going awry. If it has the same issues and same controller, then we know it’s more likely to be in the kernel. If it’s a different controller and works, then it’s no clearer.

1 Like

CachyOS here on a Z13 Flow 2025 where my DEG2 basically hard freezes on launching games. Running a 9070 XT. But if I put a Club3d R9 280 I found in a dumpster and cleaned up. It will play games without any issues. The performance is bad but it will play PoE2. May be an interesting data point. I see you are looking into it in multiple places.

63:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Tahiti PRO [Radeon HD 7950/8950 OEM / R9 280] (prog-if 00 [VGA controller])
	Subsystem: Hightech Information System Ltd. Device 5000
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupts: pin B disabled, MSI(X) routed to IRQ 183
	IOMMU group: 37
	Region 0: Memory at 4000000000 (64-bit, prefetchable) [size=256M]
	Region 2: Memory at a4000000 (64-bit, non-prefetchable) [size=256K]
	Region 4: I/O ports at 7000 [size=256]
	Expansion ROM at a4040000 [disabled] [size=128K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] Express (v2) Legacy Endpoint, IntMsgNum 0
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
			ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset- TEE-IO-
		DevCtl:	CorrErr- NonFatalErr- FatalErr- UnsupReq-
			RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 128 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr- TransPend+
		LnkCap:	Port #0, Speed 8GT/s, Width x16, ASPM L0s L1, Exit Latency L0s <64ns, L1 <1us
			ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
		LnkCtl:	ASPM Disabled; RCB 64 bytes, LnkDisable- CommClk+
			ExtSynch- ClockPM- AutWidDis+ BWInt- AutBWInt- FltModeDis-
		LnkSta:	Speed 2.5GT/s (downgraded), Width x4 (downgraded)
			TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Not Supported, TimeoutDis- NROPrPrP- LTR-
			 10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix+, MaxEETLPPrefixes 1
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS-
			 AtomicOpsCap: 32bit- 64bit- 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
			 AtomicOpsCtl: ReqEn-
			 IDOReq- IDOCompl- LTR- EmergencyPowerReductionReq-
			 10BitTagReq- OBFF Disabled, EETLPPrefixBlk-
		LnkCap2: Supported Link Speeds: 2.5-8GT/s, Crosslink- Retimer- 2Retimers- DRS-
		LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
		LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete+ EqualizationPhase1-
			 EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
			 Retimer- 2Retimers- CrosslinkRes: unsupported, FltMode-
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee00000  Data: 0000
	Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [150 v2] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
			ECRC- UnsupReq- ACSViol- UncorrIntErr- BlockedTLP- AtomicOpBlocked- TLPBlockedErr-
			PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatBlocked-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP-
			ECRC- UnsupReq- ACSViol- UncorrIntErr- BlockedTLP- AtomicOpBlocked- TLPBlockedErr-
			PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatBlocked-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+
			ECRC- UnsupReq- ACSViol- UncorrIntErr+ BlockedTLP- AtomicOpBlocked- TLPBlockedErr-
			PoisonTLPBlocked- DMWrReqBlocked- IDECheck- MisIDETLP- PCRC_CHECK- TLPXlatBlocked-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout+ AdvNonFatalErr+ CorrIntErr- HeaderOF-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+ CorrIntErr- HeaderOF-
		AERCap:	First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
			MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
		HeaderLog: 00000000 00000000 00000000 00000000
	Capabilities: [200 v1] Physical Resizable BAR
		BAR 0: current size: 256MB, supported: 256MB 512MB 1GB 2GB 4GB
	Capabilities: [270 v1] Secondary PCI Express
		LnkCtl3: LnkEquIntrruptEn- PerformEqu-
		LaneErrStat: 0
	Capabilities: [2b0 v1] Address Translation Service (ATS)
		ATSCap:	Invalidate Queue Depth: 00
		ATSCtl:	Enable-, Smallest Translation Unit: 00
	Capabilities: [2c0 v1] Page Request Interface (PRI)
		PRICtl: Enable- Reset-
		PRISta: RF- UPRGI- Stopped+ PASID-
		Page Request Capacity: 00000020, Page Request Allocation: 00000000
	Capabilities: [2d0 v1] Process Address Space ID (PASID)
		PASIDCap: Exec+ Priv+, Max PASID Width: 10
		PASIDCtl: Enable- Exec- Priv-
	Kernel driver in use: amdgpu
	Kernel modules: radeon, amdgpu

1 Like

@dingo, @parawizard, you guys may want to try these workarounds for AMD GPUs:

  • amdgpu.ppfeaturemask=0xfff7bffb kernel param
  • not using any of DEG2’s downstream ports
1 Like

I’ve already been using a similar feature mask, the thought is appreciated though!

amdgpu.ppfeaturemask=0xfffd7fff, which enables overdrive and disables BACO iirc. That and the gen 4 kernel param gets me to gen4x4, then setting the clocks to highest, or using sysfs to set peak state, gets it mostly stable. Can run demanding games for a few hours with no crashes from timeouts or page faults.

Haven’t tested kernel 7.2 yet on stock setup, only up to 7.1 with the customised params and sysfs.

In my case, the page faults and ring timeouts all coincide with changes in power state… The most common trigger is the VRAM clocks going up and down. Seems latency related, but I can’t be sure as I’m not an AMD or kernel dev :sweat_smile:

Edit: Just checked out that bug report… Rebar wise to get it to recognise the full 16GB, don’t think it can be disabled on the Framework afaik, I have to do the following:

  1. Boot
  2. Connect eGPU
  3. Restart (not shutdown, restart)

Then it seems to configure appropriately. Anything else and it won’t play ball for me, cold boots also seem to crash more often than not.

This is interesting, Framework 13 Pro (Core Ultra 358H X7) (35w) - L1 Articles & Video-related - Level1Techs Forums.

Wendell claiming the TB5 R Core X2 is working with the new Pro:

Thunderbolt 4? New Framework Modular IO
The name of the game is redrivers and retimers. They did a great job here. Thunderbolt works fine; check out the video. iommu=pt is the key to solid passthrough and no kernel oopses.

These modules also have a new design for signal integrity, hence why DP2.1 passthrough is now also possible. Exciting!

I used the Razer Chroma X2 TB5 dock with both a 5060Ti and an an RTX 6000.

I have tried iommu=pt with both AMD and Nvidia eGPUs with the DEG2 but no dice for me. I wonder if this is related to being the new Intel platform, the improved signal integrity, or both… Or even the dock or native TB support instead of USB4 :thinking: Ill have to try when I get mine (batch 3).

1 Like

I already tried this as well. Unfortunately I wasn’t able to really do much. It’s super annoying to try and troubleshoot when it’s hardfreezing.

Looks like this person has it working on Linux with some workarounds? I haven’t bother trying to mess with it

i know im very late to this thread, but just found it… has there been any progress done on how to get it to run on fedora? i have a deg2 with a 9070xt and couldnt make it run on fedora 44. For work matters, had to change OS to windows and there its flawless for the most part. Still, would really want to be able to use it on linux.

Another data point: AMD Radeon AI PRO R9700 (RDNA4, Navi 48, same chip as the 9070 XT) in a DEG2 over USB4 on Linux, on a non-Framework AMD host. @Morgwai, your amdgpu.ppfeaturemask=0xfff7bffb tip fixed the link here. Thanks!

Setup: GMKtec K8 Plus (Ryzen 7 8845HS), AMD USB4. DEG2 (JHL9480, NVM 62.42) in TB5 mode with the 80 Gbps cable from the box. ASRock R9700 32 GB. Arch-based (Omarchy), kernel 7.2.8, linux-firmware 20260916, Mesa 26.2.5.

1. PCIe DPM was what broke the link. With the default mask, the JHL9480’s downstream port to the GPU sat at 2.5 GT/s and kept putting its own target speed back to 2.5 GT/s if I set it higher. It also logged RxErr in about half of all 0.5 s windows, even at idle (measured after clearing the sticky AER bits). With ppfeaturemask=0xfff7bffb (default minus PP_PCIE_DPM = 0x4) it trains at 16 GT/s x4 with zero RxErr. pcie_gen_cap, forcing the target speed with setpci, thunderbolt.clx=0 and ASPM made no difference. ASPM was already off.

2. pci=noaer was also needed. At boot the GPU sends an LTR message that its own internal switch (1002:1479) rejects as Unsupported Request. AER recovery then fails (snd_hda_intel: can't recover (no error_detected callback)) and leaves amdgpu in pci_channel_io_perm_failure, with the memory clock stuck and a hang on the first real job.

3. Still open: a hang when a new process starts using the card. A single long-lived llama-server ran two 15-minute soaks with zero errors. Repeated short processes (llama-bench, one model load each) hang on about the 2nd–3rd load after boot: ring gfx_0.0.0 / sdma0 / sdma1 timeout, signaled seq=N, emitted seq=N+1, then MES failed to respond and GPU Recovery Failed. Only a dock power cycle recovers it. Things that did not change this:

  • GFXOFF off (0xfff73ffb) and SCLK deep sleep off (0xfff7bff3)
  • amdgpu.dcdebugmask=0x800
  • keeping the compositor off the card (AQ_DRM_DEVICES pointed at the iGPU)
  • power_dpm_force_performance_level=high
  • a 210 W power cap
  • amdgpu.lockup_timeout=60000
  • GPU Max Read Request 128 bytes

This looks like the same family as drm/amd #5036, #5100 and #5294. When the card is up it runs at full speed: Qwen3-30B-A3B Q4_K_M at ~3,000 tok/s prompt and ~120 tok/s generation in llama.cpp Vulkan.

Also odd: boltctl shows the USB4 link at 20 Gb/s (2 lanes * 10 Gb/s) on both host ports with the 80 Gbps cable, and the host’s USB4 tunnel root port logs BadDLLP continuously, with or without the fix.

Happy to test patches or collect more logs (thunderbolt.dyndbg, full lspci -vvv, devcoredumps). I’m planning to add this to drm/amd #5100 as well.

Full write-up with commands: omarchy-setup/r9700-egpu-thunderbolt.md at master · zoan37/omarchy-setup · GitHub

1 Like

I have a Framework 13 Pro (Intel Ultra X7 358H), DEG2 and Radeon 9060 and am experiencing freezes after a couple of minutes , even if it’s sitting idle. I’m on Ubuntu 26.04 7.0 kernel, I dual boot windows and it works fine on Windows.

I’ve tried setting amdgpu.ppfeaturemask=0xfffd7fff and iommu=pt but no luck.

I had the same/similar problems on my previous laptop, a Lenovo X1 Carbon 7th gen.

If I can provide any information which would help get this fixed please let me know.

@dingo Did you have any luck with your 13 Pro?

:musical_notes: Gold teeth and a curse for this town were all in my mouth
Only I don’t know how they got out dear
Turn me back into the pet I was when we met
I was happier than with no mind-set :guitar:

Anyway, where was I? Oh yes! Would you run dmesg --follow to see if there are any errors preceding a freeze? I assume the machine pulls itself out of the freeze, so the logs should actually reach the disk.

Also, I wonder if 26.04 is too fresh, and downgrading to the prior LTS will resolve your issue.

@new_slang, have you tried similar workarounds as mentioned in the Nvida Gihub issue 979 for Nvida+Intel case? This boils down mainly to limiting PCIe speed to gen3 using setpci.
It would be very informative for others if you verified if it helps also in AMD GPU + Intel host case.

@new_slang I think the mask you tried is the older one… amdgpu.ppfeaturemask=0xfff7bffb and pci=noaer might be worth a shot. Also, most of the successes here were on 7.1/7.2 kernels, so I’d try newer before going back to the old LTS.

It seems I have somewhat positive news for a change:
Yesterday I upgraded AMD microcode package on my HX370-based latop (amd64-microcode on Debian) from version 3.20250311.1 to 3.20260923.1 (binary microcde version from 0x0b204032 to 0x0b204037 per kernel logs) and since around that time, the things have somewhat improved:

  • When using the proprietary flavor of the NV driver with disabled GSP firmware directly on the laptop and a DEG2+RTX3090 is the only eGPU (no daisy-chaining), the connection now seems stable (both for compute and graphic workloads). So far not even a single disconnect in such configuration.
  • I’m also able to daisy-chain a UT4G+RTX3090 eGPU and such setup seems to be stable for compute tasks, but so far I’ve managed to test only layer-split LLMs. I will be testing tensor splitting with NVLink within the next few days.
  • When I attempted to run Elemental Demo on this daisy-chained setup (via Wine + DXVK + DXVK-NVAPI) with a display on iGPU, it apparently tried to use both 3090 and as a result of the limited PCIe link, the thing was very slow (~20fps) and after ~30s the DEG2 disconnected.
  • As previously, an attempt to load GSP firmware, resulted in an immediate reboot, so no improvement in this regard (the UT4G was not daisy-chained during this attempt).
  • Similarly, an attempt to redirect the DEG2 eGPU (also no daisy-chaining) to a VM via VFIO always causes either a reboot of the laptop or a TB disconnect. This happens the moment the guest kernel starts to boot, but Grub stage passes. This happens even if both nvidia and nouveau are blacklisted on the guest.
    This forces installing the F-in NV driver directly on the laptop, which is a terrible idea for multiple reasons of course…

So everyone with an AMD CPU and a TB5 eGPU who has an unstable connection (whether Nvidia or AMD or Intel GPU), please try the new AMD microcode: maybe it will help in your case also.

@Mario_Limonciello, are you aware of any changes in the microcode that could possibly cause this improvement? …Or is just a timing coincidence? I upgraded my kernel from 7.3 to 7.3.3 around that time also, but otherwise I can’t think of any other change that could have such impact (in particular, I have not upgraded the NV driver recently and I’ve been on v610 for months now as since v615 the proprietary flavor was dropped and the open one always loads GSP firmware).

I’m not aware how microcode could impact this issue. It’s more likely kernel changes.

2 Likes

@Squiggler I’m glad you got the reference!

Unfortunately it doesn’t pull itself out of the freeze so I don’t think the errors are making it to disk.

@Morgwai I have tried this now (I think). This was the output of lspci

00:02.0 VGA compatible controller: Intel Corporation Panther Lake \[Arc B390\] (rev 04)
00:04.0 Signal processing controller: Intel Corporation Panther Lake Innovation Platform Framework Processor Participant (rev 04)
00:06.0 PCI bridge: Intel Corporation Core Ultra Processors (Series 3) PCIe Root Port (rev 01)
00:07.0 PCI bridge: Intel Corporation Core Ultra Processors (Series 3) USB Type-C Subsystem PCIe Root Port (rev 01)
00:07.1 PCI bridge: Intel Corporation Core Ultra Processors (Series 3) USB Type-C Subsystem PCIe Root Port (rev 01)
00:07.2 PCI bridge: Intel Corporation Core Ultra Processors (Series 3) USB Type-C Subsystem PCIe Root Port (rev 01)
00:07.3 PCI bridge: Intel Corporation Core Ultra Processors (Series 3) USB Type-C Subsystem PCIe Root Port (rev 01)
00:0a.0 Signal processing controller: Intel Corporation Panther Lake Platform Monitoring Technology (PMT) (rev 04)
00:0b.0 Processing accelerators: Intel Corporation Panther Lake NPU (rev 04)
00:0d.0 USB controller: Intel Corporation Core Ultra Processors (Series 3) Type-C Subsystem xHCI (rev 01)
00:0d.2 USB controller: Intel Corporation Core Ultra Processors (Series 3) Thunderbolt DMA0 (rev 01)
00:0d.3 USB controller: Intel Corporation Core Ultra Processors (Series 3) Thunderbolt DMA1 (rev 01)
00:13.0 Communication controller: Intel Corporation Core Ultra Processors (Series 3) CSME HECI (rev 01)
00:14.0 USB controller: Intel Corporation Core Ultra Processors (Series 3) Standalone xHCI Controller (rev 01)
00:14.2 RAM memory: Intel Corporation Core Ultra Processors (Series 3) Shared SRAM (rev 01)
00:14.3 Network controller: Intel Corporation Core Ultra Processors (Series 3) CNVi Wi-Fi (rev 01)
00:14.7 Bluetooth: Intel Corporation Core Ultra Processors (Series 3) CNVi Bluetooth (rev 01)
00:15.0 Serial bus controller: Intel Corporation Core Ultra Processors (Series 3) I2C (rev 01)
00:15.1 Serial bus controller: Intel Corporation Core Ultra Processors (Series 3) I2C (rev 01)
00:15.2 Serial bus controller: Intel Corporation Core Ultra Processors (Series 3) I2C (rev 01)
00:15.3 Serial bus controller: Intel Corporation Core Ultra Processors (Series 3) I2C (rev 01)
00:16.0 Communication controller: Intel Corporation Core Ultra Processors (Series 3) CSME HECI (rev 01)
00:18.0 Communication controller: Intel Corporation Core Ultra Processors (Series 3) CSME HECI (rev 01)
00:19.0 Serial bus controller: Intel Corporation Core Ultra Processors (Series 3) I2C (rev 01)
00:19.1 Serial bus controller: Intel Corporation Core Ultra Processors (Series 3) I2C (rev 01)
00:1f.0 ISA bridge: Intel Corporation Core Ultra Processors (Series 3) eSPI (rev 01)
00:1f.3 Audio device: Intel Corporation Core Ultra Processors (Series 3) HD Audio (rev 01)
00:1f.4 SMBus: Intel Corporation Core Ultra Processors (Series 3) SMBus (rev 01)
00:1f.5 Serial bus controller: Intel Corporation Core Ultra Processors (Series 3) SPI (flash) Controller (rev 01)
01:00.0 Non-Volatile memory controller: Sandisk Corp WD Blue SN570 NVMe SSD 2TB (rev 01)
2c:00.0 PCI bridge: Intel Corporation JHL9480 Thunderbolt 5 80/120G Bridge \[Barlow Ridge Hub 80G 2023\] (rev 85)
2d:00.0 PCI bridge: Intel Corporation JHL9480 Thunderbolt 5 80/120G Bridge \[Barlow Ridge Hub 80G 2023\] (rev 85)
2d:01.0 PCI bridge: Intel Corporation JHL9480 Thunderbolt 5 80/120G Bridge \[Barlow Ridge Hub 80G 2023\] (rev 85)
2d:02.0 PCI bridge: Intel Corporation JHL9480 Thunderbolt 5 80/120G Bridge \[Barlow Ridge Hub 80G 2023\] (rev 85)
2d:03.0 PCI bridge: Intel Corporation JHL9480 Thunderbolt 5 80/120G Bridge \[Barlow Ridge Hub 80G 2023\] (rev 85)
2e:00.0 PCI bridge: Advanced Micro Devices, Inc. \[AMD/ATI\] Navi 10 XL Upstream Port of PCI Express Switch (rev 25)
2f:00.0 PCI bridge: Advanced Micro Devices, Inc. \[AMD/ATI\] Navi 10 XL Downstream Port of PCI Express Switch (rev 25)
30:00.0 VGA compatible controller: Advanced Micro Devices, Inc. \[AMD/ATI\] Navi 44 \[Radeon RX 9060 XT\] (rev c0)
30:00.1 Audio device: Advanced Micro Devices, Inc. \[AMD/ATI\] Navi 48 HDMI/DP Audio Controller

So I did

sudo setpci -s 0000:2f:00.0 CAP_EXP+30.w=0003:000f
sudo setpci -s 0000:30:00.0 CAP_EXP+30.w=0003:000f
sudo setpci -s 0000:2f:00.0 CAP_EXP+30.w=0020:0020
sudo setpci -s 0000:30:00.0 CAP_EXP+30.w=0020:0020
sudo setpci -s 0000:2f:00.0 CAP_EXP+10.w=0020:0020

Which didn’t help unfortunately.

@ElectricSheep Thank you, I’ve now tried those as well with no luck.

This was all on 7.0 kernel. I had some trouble installing the AMD GPU driver on 7.1 but I will have another go.