Bug 216004

Summary: X server restarts when detaching eGPU, even when not used
Product: Drivers Reporter: Roberto (r087r70)
Component: Video(Other)Assignee: drivers_video-other
Status: NEW ---    
Severity: normal CC: r087r70
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.17.0-1003-oem #3-Ubuntu SMP PREEMPT Subsystem:
Regression: No Bisected commit-id:
Attachments: Xorg.0.log

Description Roberto 2022-05-20 06:41:51 UTC
Created attachment 301002 [details]
Xorg.0.log

I have an external egpu (Radeon 6600 RX) connected through thunderbolt3 to a Thinkpad X1 carbon 6th Gen.

Note that no display is attached to the eGPU, since I use it only to offloading the computation using the DRI_PRIME=1 env variable.

Upon connection, the eGPU is recognized, amdgpu driver is loaded, and it becomes available in offloading mode. No Xserver restart occurred at this stage, since the integrated intel gpu is still the one managing the display. So far so good.

Instead, When I disconnect the thunderbolt3 cable I get that Xserver restarts, even though I'm not using the eGPU. This is very annoying, and I see no reasons to kill the Xserver in this situation.

I would expect that the eGPU is released, and that the amdgpu driver being unloaded.
Comment 1 Roberto 2022-05-20 09:07:26 UTC
See also attachments in bug 215958
https://bugzilla.kernel.org/show_bug.cgi?id=215958