Created attachment 307062 [details] Error after USB4 cable is disconnected and Hi, my current setup is a Lenovo Legion Go with a USB4 based external GPU (Onex GPU with a 7600M XT). I am running these tests on EndeavorOS with 6.12 rc4 kernel and stock 6.11.2-arch kernel. My device crashes and hard locks when the USB4 cable is disconnected or when the device is not inaccessible upon a sleep and wake cycle. I have been able to reliably crash system with this external GPU with the following steps: 1. Connect my eGPU dock 2. Wait a few seconds 3. Put the device to sleep 4. Wait for the device to sleep 5. Disconnect the USB4 cable 6. Wake the device up and the system will hard lock I attached a photo of the logs. The error message is: 'Unable to change power state from Dcold to DO, device inaccessible' and this occurs for all PCI devices on the USB4 dock. The above also occurs intermittently even when I have the cable attached. To isolate if it was my device or the USB4 eGPU enclosure, I have also tried a Thunderbolt 3 laptop dock and that works reliably. I am able to disconnect the TB3 device during sleep and my system successfully recovers.
I also tested the above steps on a HP Zbook Firefly 14 with Thunderbolt. The system proceeds to hard crash with same hard lock and messages. This bug may be related to: https://bugzilla.kernel.org/show_bug.cgi?id=216728
I did a quick test with the latest 6.13 rc3 kernel and I am seeing the exact same crash. The kernel does not how to handle abrupt USB4/TB4 cable disconnects.