USB Ethernet adapter not discovered on Ubuntu 22.04.1 after leaving suspend state
STEP 1: Device initialized during the boot process (RTL8152-based 2.5GE Anker USB-C adapter), all works fine
sudo dmesg | grep r8
[ 0.119521] percpu: Embedded 60 pages/cpu s208896 r8192 d28672 u262144
[ 0.119533] pcpu-alloc: s208896 r8192 d28672 u262144 alloc=1*2097152
[ 1.807418] r8152: loading out-of-tree module taints kernel.
[ 1.813359] r8152: module verification failed: signature and/or required key missing - tainting kernel
[ 2.033809] r8152 4-1:1.0 (unnamed net_device) (uninitialized): netif_napi_add() called with weight 256
[ 2.034224] r8152 4-1:1.0 eth0: v2.15.0 (2021/04/15)
[ 2.034229] r8152 4-1:1.0 eth0: This product is covered by one or more of the following patents:
[ 2.034312] usbcore: registered new interface driver r8152
[ 2.054400] r8152 4-1:1.0 enx00e04c92d40b: renamed from eth0
[ 3.757696] r8152 4-1:1.0 eth0: v2.15.0 (2021/04/15)
[ 3.757699] r8152 4-1:1.0 eth0: This product is covered by one or more of the following patents:
[ 3.812033] r8152 4-1:1.0 enx00e04c92d40b: renamed from eth0
[ 6.688353] r8152 4-1:1.0 enx00e04c92d40b: carrier on
STEP 2: device removed and then plugged back in
[ 655.501827] usb 4-1: USB disconnect, device number 2
[ 655.502134] xhci_hcd 0000:37:00.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
[ 667.009502] usb 4-1: new SuperSpeed USB device number 3 using xhci_hcd
[ 667.030503] usb 4-1: New USB device found, idVendor=0bda, idProduct=8156, bcdDevice=31.00
[ 667.030513] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 667.030517] usb 4-1: Product: USB 10/100/1G/2.5G LAN
[ 667.030520] usb 4-1: Manufacturer: Realtek
[ 667.030522] usb 4-1: SerialNumber: 001000001
[ 667.166486] usb 4-1: reset SuperSpeed USB device number 3 using xhci_hcd
STEP 3: suspend the system, remove the adapter, wake the system up, and then plug in he adapter - network did come back up
[ 791.650931] usb 4-1: new SuperSpeed USB device number 4 using xhci_hcd
[ 791.671864] usb 4-1: New USB device found, idVendor=0bda, idProduct=8156, bcdDevice=31.00
[ 791.671879] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 791.671885] usb 4-1: Product: USB 10/100/1G/2.5G LAN
[ 791.671889] usb 4-1: Manufacturer: Realtek
[ 791.671893] usb 4-1: SerialNumber: 001000001
[ 791.811145] usb 4-1: reset SuperSpeed USB device number 4 using xhci_hcd
STEP 4: suspend the system, remove the adapter, (give it some time, about 2 minutes), plug in the adapter, and wake the system up with adapter in, driver is not accessible anymore and network is not visible
[ 906.078174] ACPI: EC: interrupt unblocked
[ 907.712397] xhci_hcd 0000:37:00.0: can't change power state from D3cold to D0 (config space inaccessible)
[ 907.788616] xhci_hcd 0000:37:00.0: can't change power state from D3cold to D0 (config space inaccessible)
[ 907.788639] xhci_hcd 0000:37:00.0: Controller not ready at resume -19
[ 907.788640] xhci_hcd 0000:37:00.0: PCI post-resume error -19!
[ 907.788641] xhci_hcd 0000:37:00.0: HC died; cleaning up
[ 907.788644] PM: dpm_run_callback(): pci_pm_
[ 907.788652] xhci_hcd 0000:37:00.0: PM: failed to resume async: error -19
[ 908.074749] OOM killer enabled.
[ 908.074751] Restarting tasks ... done.
[ 908.085161] mei_hdcp 0000:00:
[ 908.103611] thermal thermal_zone12: failed to read out thermal zone (-61)
[ 908.103904] PM: suspend exit
[ 908.111346] usbcore: registered new interface driver r8152
It *seems* that waking the system up from a suspended state breaks something in the USB adapter initialization process. I am able to reproduce it reliably, i.e., after a clean system reboot, when I repeat step 4 above, I always end up with a broken network adapter irrespective of the installed drivers. If process outlined in step 3 is followed, i.e., adapter is plugged in after the system comes out of suspended state, everything seems to recover correctly and the network adapter comes back online.
Any clue what this might be and how to remedy it?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Marek Hajduczenia
- Solved:
- Last query:
- Last reply: