Thread (4 messages) 4 messages, 3 authors, 2024-08-28

`powertop --auto-tune` results in `WARN: xHC restore state timeout` and lost USB devices

From: Paul Menzel <hidden>
Date: 2024-08-19 08:58:38
Also in: linux-pci, linux-pm, linux-usb, lkml

Dear Linux folks,


On an Intel Kaby Lake laptop Dell XPS 13 9360 connecting a Bizlink DELL 
DA300 USB-C mobile adapter to the left USB-C port, and connecting a 
network cable, and then running `sudo powertop --auto-tune` (*powertop* 
2.15-3), after the while the network link is lost.

     [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.11.0-rc4 
root=UUID=32e29882-d94d-4a92-9ee4-4d03002bfa29 ro quiet pci=noaer 
mem_sleep_default=deep log_buf_len=8M cryptomgr.notests
     […]
     [    0.000000] DMI: Dell Inc. XPS 13 9360/0596KF, BIOS 2.21.0 
06/02/2022
     […]
     [   58.478482] r8152-cfgselector 4-1.2: reset SuperSpeed USB device 
number 3 using xhci_hcd
     [   58.501314] r8152 4-1.2:1.0 (unnamed net_device) 
(uninitialized): Using pass-thru MAC addr 18:db:f2:2d:cc:f3
     [   58.547913] r8152 4-1.2:1.0 eth0: v1.12.13
     […]
     [   61.237907] r8152 4-1.2:1.0 enp57s0u1u2: carrier on
     [   62.575204] rfkill: input handler disabled
     [  617.828880] NOHZ tick-stop error: local softirq work is pending, 
handler #08!!!
     [  617.828954] NOHZ tick-stop error: local softirq work is pending, 
handler #08!!!
     [  617.829014] NOHZ tick-stop error: local softirq work is pending, 
handler #08!!!
     [  650.597050] NOHZ tick-stop error: local softirq work is pending, 
handler #08!!!
     [  735.588700] NOHZ tick-stop error: local softirq work is pending, 
handler #08!!!
     [  956.771529] NOHZ tick-stop error: local softirq work is pending, 
handler #08!!!
     [  979.298882] NOHZ tick-stop error: local softirq work is pending, 
handler #08!!!
     [ 1003.874549] NOHZ tick-stop error: local softirq work is pending, 
handler #08!!!
     [ 1031.528218] NOHZ tick-stop error: local softirq work is pending, 
handler #08!!!
     [ 1039.713989] NOHZ tick-stop error: local softirq work is pending, 
handler #08!!!
     [ 2193.529223] kauditd_printk_skb: 24 callbacks suppressed
     [ 2193.529227] audit: type=1400 audit(1724048032.697:36): 
apparmor="DENIED" operation="capable" class="cap" 
profile="/usr/sbin/cupsd" pid=9103 comm="cupsd" capability=12 
capname="net_admin"
     [ 3411.471079] xhci_hcd 0000:39:00.0: WARN: xHC restore state timeout
     [ 3411.471097] xhci_hcd 0000:39:00.0: PCI post-resume error -110!
     [ 3411.471100] xhci_hcd 0000:39:00.0: HC died; cleaning up
     [ 3411.471118] usb 3-1: USB disconnect, device number 2
     [ 3411.471120] usb 3-1.1: USB disconnect, device number 3
     [ 3411.471230] usb 4-1: USB disconnect, device number 2
     [ 3411.471233] r8152-cfgselector 4-1.2: USB disconnect, device number 3

Trying to disable auto-suspend for the device, PowerTOP hangs:

     $ LANG= sudo strace powertop
     […]
  
readlink("/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/0000:02:02.0/0000:39:00.0/usb3", 
0x7ffecaa12c80, 1023) = -1 EINVAL (Invalid argument)
     openat(AT_FDCWD, "/sys/bus/usb/devices/usb3/bDeviceClass", 
O_RDONLY) = 4
     read(4, "09\n", 8191)                   = 3
     close(4)                                = 0
     openat(AT_FDCWD, "/sys/bus/usb/devices/usb3/manufacturer", 
O_RDONLY) = 4
     read(4,

After re-connecting the device, PowerTOP shows:

     Bad           Autosuspend for USB device DELL DA300 [Bizlink] 

     Bad           Autosuspend for USB device USB 10/100/1000 LAN [Realtek]

The power usage of the laptop is pretty high (> 10 Watts), so trying to 
decrease the power usage for longer usage time on battery is my goal.


Kind regards,

Paul

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help