The following workaround fixes for me:
https://ubuntuforums.org/showthread.php?t=2226734
Here are the steps adapted for systemd:
- Check the output of `ls /sys/bus/pci/drivers/xhci_hcd`. In my laptop I
see "0000:00:14.0 bind new_id remove_id uevent unbind". The goal is
to get the id of the xhci_hcd, for me it is "0000:00:14.0"(which I will
use in the following steps). Also verify that the output shows "bind"
and "unbind" as directory entries. The following commands should be
executed in a root shell
- Create a script to unbind the xhci:
# cat > /usr/local/bin/unbind-xhci << "EOF"
#!/bin/sh
echo -n '0000:00:14.0' | tee /sys/bus/pci/drivers/xhci_hcd/unbind
EOF
# chmod +x /usr/local/bin/unbind-xhci
- Create a script to rebind the xhci:
# cat > /usr/local/bin/rebind-xhci << "EOF"
#!/bin/sh
echo -n '0000:00:14.0' | tee /sys/bus/pci/drivers/xhci_hcd/bind
EOF
# chmod +x /usr/local/bin/rebind-xhci
- Create a systemd service that runs before sleep:
# cat > /etc/systemd/system/unbind-xhci.service << "EOF"
[Unit]
Description=Unbind xHCI Host Controller Driver before sleep
Before=sleep.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/unbind-xhci
[Install]
WantedBy=sleep.target
EOF
- Create a systemd service that runs after wakeup:
# cat > /etc/systemd/system/rebind-xhci.service << "EOF"
[Unit]
Description=Unbind xHCI Host Controller Driver after wakeup
After=suspend.target
After=hibernate.target
After=hybrid-sleep.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/rebind-xhci
[Install]
WantedBy=suspend.target
WantedBy=hibernate.target
WantedBy=hybrid-sleep.target
EOF
- Reload systemd
# systemctl daemon-reload
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1586195
Title:
Realtek 8153-based ethernet adapter on usb3 eventually stops working
requiring unplug/replug
Status in linux package in Ubuntu:
Expired
Status in linux source package in Xenial:
Expired
Bug description:
Continued in Bug #1622322.
Seems to be paired with dmesg entries like this on the trusty kernel:
[24763.731054] usb 4-4.2: Disable of device-initiated U1 failed.
[24763.734507] usb 4-4.2: Disable of device-initiated U2 failed.
[24763.734594] r815x 4-4.2:2.0 eth3: unregister 'r815x' usb-0000:00:14.0-4.2,
RTL8153 ECM Device
[24763.802963] usb 4-4.2: Set SEL for device-initiated U1 failed.
[24763.806450] usb 4-4.2: Set SEL for device-initiated U2 failed.
[24763.809953] usb 4-4.2: usb_reset_and_verify_device Failed to disable LTM
[24763.809953] .
[24763.810579] usb 4-4.2: USB disconnect, device number 7
[24763.940765] userif-1: sent link down event.
[24763.940769] userif-1: sent link up event.
And like this on mainline:
[ 259.731142] usb 4-3: new SuperSpeed USB device number 4 using xhci_hcd
[ 259.752915] usb 4-3: New USB device found, idVendor=0bda, idProduct=8153
[ 259.752918] usb 4-3: New USB device strings: Mfr=1, Product=2,
SerialNumber=6
[ 259.752920] usb 4-3: Product: USB 10/100/1000 LAN
[ 259.752921] usb 4-3: Manufacturer: Realtek
[ 259.752922] usb 4-3: SerialNumber: 000001000000
[ 259.909368] usb 4-3: reset SuperSpeed USB device number 4 using xhci_hcd
[ 259.993254] r8152 4-3:1.0 eth0: v1.08.3
[ 260.079151] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 296.266600] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 300.785814] r8152 4-3:1.0 eth0: Stop submitting intr, status -71
[ 302.832697] usb 4-3: usb_reset_and_verify_device Failed to disable LTM
[ 302.832697] .
[ 302.833086] usb 4-3: USB disconnect, device number 4
Mainline version fyi:
[ 0.000000] Linux version 4.6.0-040600-generic (kernel@gomeisa) (gcc
version 5.3.1 20160509 (Ubuntu 5.3.1-19ubuntu1) ) #201605151930 SMP Sun May 15
23:32:59 UTC 2016
I also get a similar message about 'Failed to disable LTM' if I just
unplug the device before the breakage occurs.
I've attached lsusb before the breakage occurs (so you can see the
device) from the mainline kernel.
Interestingly it appears the drivers on trusty and wily/mainline are
different (r815x vs r8152) yet still exhibit similar troubles. I'm
still digging around to try and figure out why this doesn't seem to be
working, but I was wondering if you all had any idea what might be
going pear-shaped here.
Thanks!
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1586195/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp