You are not logged in.

#1 2024-05-18 15:26:32

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,641

[Solved] Failed to set U1 timeout error message on poweroff

I've been having this error message when I reboot or poweroff:

usb 2-6 Failed to set U1 timeout to 0x0 code -113

And this applies to usb 2-4 as well.

dmesg lists these devices as:

[    4.525024] usb 2-4: new SuperSpeed USB device number 2 using xhci_hcd
[    4.626112] usb 2-4: New USB device found, idVendor=2109, idProduct=0813, bcdDevice=90.11
[    4.626127] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.626134] usb 2-4: Product: USB3.0 Hub
[    4.626140] usb 2-4: Manufacturer: VIA Labs, Inc.
[    5.010547] usb 2-6: new SuperSpeed USB device number 3 using xhci_hcd
[    5.029241] usb 2-6: New USB device found, idVendor=174c, idProduct=3074, bcdDevice= 1.00
[    5.029244] usb 2-6: New USB device strings: Mfr=2, Product=3, SerialNumber=0
[    5.029245] usb 2-6: Product: ASM107x
[    5.029246] usb 2-6: Manufacturer: ASRock

So it looks like their part of the motherboard.

Any lead on how to debug this?

Last edited by d_fajardo (2024-07-28 19:18:23)

Offline

#2 2024-05-23 08:13:02

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,641

Re: [Solved] Failed to set U1 timeout error message on poweroff

I have decided to see if I can disable the U1/U2 switches by writing a udev rule. However the rule is not triggering. If anyone can help.
I have this udev attribute-walk for the device:

  looking at device '/devices/pci0000:00/0000:00:14.0/usb2/2-4':
    KERNEL=="2-4"
    SUBSYSTEM=="usb"
    DRIVER=="usb"
    ATTR{authorized}=="1"
    ATTR{avoid_reset_quirk}=="0"
    ATTR{bConfigurationValue}=="1"
    ATTR{bDeviceClass}=="09"
    ATTR{bDeviceProtocol}=="03"
    ATTR{bDeviceSubClass}=="00"
    ATTR{bMaxPacketSize0}=="9"
    ATTR{bMaxPower}=="0mA"
    ATTR{bNumConfigurations}=="1"
    ATTR{bNumInterfaces}==" 1"
    ATTR{bcdDevice}=="9011"
    ATTR{bmAttributes}=="e0"
    ATTR{busnum}=="2"
    ATTR{configuration}==""
    ATTR{devnum}=="2"
    ATTR{devpath}=="4"
    ATTR{idProduct}=="0813"
    ATTR{idVendor}=="2109"
    ATTR{ltm_capable}=="no"
    ATTR{manufacturer}=="VIA Labs, Inc."
    ATTR{maxchild}=="4"
    ATTR{physical_location/dock}=="no"
    ATTR{physical_location/horizontal_position}=="left"
    ATTR{physical_location/lid}=="no"
    ATTR{physical_location/panel}=="top"
    ATTR{physical_location/vertical_position}=="upper"
    ATTR{power/active_duration}=="3327"
    ATTR{power/autosuspend}=="0"
    ATTR{power/autosuspend_delay_ms}=="0"
    ATTR{power/connected_duration}=="2483814"
    ATTR{power/control}=="auto"
    ATTR{power/level}=="auto"
    ATTR{power/runtime_active_time}=="3724"
    ATTR{power/runtime_status}=="suspended"
    ATTR{power/runtime_suspended_time}=="2479531"
    ATTR{power/usb3_hardware_lpm_u1}=="enabled"
    ATTR{power/usb3_hardware_lpm_u2}=="enabled"
    ATTR{power/wakeup}=="disabled"
    ATTR{power/wakeup_abort_count}==""
    ATTR{power/wakeup_active}==""
    ATTR{power/wakeup_active_count}==""
    ATTR{power/wakeup_count}==""
    ATTR{power/wakeup_expire_count}==""
    ATTR{power/wakeup_last_time_ms}==""
    ATTR{power/wakeup_max_time_ms}==""
    ATTR{power/wakeup_total_time_ms}==""
    ATTR{product}=="USB3.0 Hub"
    ATTR{quirks}=="0x0"
    ATTR{removable}=="removable"
    ATTR{remove}=="(not readable)"
    ATTR{rx_lanes}=="1"
    ATTR{speed}=="5000"
    ATTR{tx_lanes}=="1"
    ATTR{urbnum}=="53"
    ATTR{version}==" 3.00"

And here is my udev rule:

ACTION=="add|change", KERNEL=="2-4", SUBSYSTEM=="usb", ATTR{idVendor}=="2109", ATTR{idProduct}=="0813", ATTR{power/usb3_hardware_lpm_u1}="disabled", ATTR{power/usb3_hardware_lpm_u2}="disabled"
ACTION=="add|change", KERNEL=="2-6", SUBSYSTEM=="usb", ATTR{idVendor}=="174c", ATTR{idProduct}=="3074", ATTR{power/usb3_hardware_lpm_u1}="disabled", ATTR{power/usb3_hardware_lpm_u2}="disabled"

Any help to make this work?

Offline

#3 2024-05-24 09:20:52

bml
Member
Registered: 2024-05-24
Posts: 1

Re: [Solved] Failed to set U1 timeout error message on poweroff

Hi,

I have exactly the same problem, it started a few days ago, on shutdown I have these 3 errors:

usb 2-1.1 Failed to set U1 timeout to 0x0, error code -113
usb 2-1.1 Failed to set U1 timeout to 0x29, error code -113
usb 2-1.1 Failed to set U2 timeout to 0x3f, error code -113

dmesg lists:

[    2.308023] usb 2-1.1: new SuperSpeed USB device number 4 using xhci_hcd
[    2.339819] usb 2-1.1: New USB device found, idVendor=0bda, idProduct=0411, bcdDevice= 1.17
[    2.339830] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.339835] usb 2-1.1: Product: 4-Port USB 3.0 Hub
[    2.339838] usb 2-1.1: Manufacturer: Generic

lsusb:

Bus 001 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. RTS5411 Hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            9 Hub
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         2 TT per port
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x5411 RTS5411 Hub
  bcdDevice            1.17
  iManufacturer           1 Generic
  iProduct                2 4-Port USB 2.0 Hub
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0029
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      1 Single TT
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      2 TT per port
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x002a
  bNumDeviceCaps          3
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x0000f41e
      BESL Link Power Management (LPM) Supported
    BESL value     1024 us
    Deep BESL value    61440 us
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat        1023 micro seconds
  Container ID Device Capability:
    bLength                20
    bDescriptorType        16
    bDevCapabilityType      4
    bReserved               0
    ContainerID             {20b9cde5-7039-e011-a935-0002a5d5c51b}
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x00a9
    Per-port power switching
    Per-port overcurrent protection
    TT think time 16 FS bits
    Port indicators
  bPwrOn2PwrGood        0 * 2 milli seconds
  bHubContrCurrent    100 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
Hub Port Status:
   Port 1: 0000.0507 highspeed power suspend enable connect
   Port 2: 0000.0100 power
   Port 3: 0000.0100 power
   Port 4: 0000.0100 power
Device Status:     0x0001
  Self Powered

Bus 002 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. Hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x0411 Hub
  bcdDevice            1.17
  iManufacturer           1 Generic
  iProduct                2 4-Port USB 3.0 Hub
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x001f
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4 USB3.0 Hub
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              5 Interrupt In Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes           19
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Feedback
        wMaxPacketSize     0x0002  1x 2 bytes
        bInterval               8
        bMaxBurst               0
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength       0x002a
  bNumDeviceCaps          3
  USB 2.0 Extension Device Capability:
    bLength                 7
    bDescriptorType        16
    bDevCapabilityType      2
    bmAttributes   0x0000f41e
      BESL Link Power Management (LPM) Supported
    BESL value     1024 us
    Deep BESL value    61440 us
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x00
    wSpeedsSupported   0x000e
      Device can operate at Full Speed (12Mbps)
      Device can operate at High Speed (480Mbps)
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   1
      Lowest fully-functional device speed is Full Speed (12Mbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat        1023 micro seconds
  Container ID Device Capability:
    bLength                20
    bDescriptorType        16
    bDevCapabilityType      4
    bReserved               0
    ContainerID             {20b9cde5-7039-e011-a935-0002a5d5c51b}
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             4
  wHubCharacteristic 0x0009
    Per-port power switching
    Per-port overcurrent protection
  bPwrOn2PwrGood        0 * 2 milli seconds
  bHubContrCurrent      8 milli Ampere
  bHubDecLat          0.2 micro seconds
  wHubDelay          3202 nano seconds
  DeviceRemovable    0x00
Hub Port Status:
   Port 1: 0000.0263 5Gbps power suspend enable connect
   Port 2: 0000.02a0 5Gbps power Rx.Detect
   Port 3: 0000.02a0 5Gbps power Rx.Detect
   Port 4: 0000.02a0 5Gbps power Rx.Detect
Device Status:     0x000d
  Self Powered
  U1 Enabled
  U2 Enabled

Any thoughts on how can I troubleshoot this?

Offline

#4 2024-05-24 11:25:16

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,641

Re: [Solved] Failed to set U1 timeout error message on poweroff

It's good to know I'm not the only one having this issue. It is looking more like a kernel regression I suspect on usbcore. The issue it seams only occurs only with Hubs. As my post above I tried to create a udev rule to disable U1 and U2 for the device. When I test the rule I get these errors:

2-4: /etc/udev/rules.d/50-usb_power_save.rules:1 ATTR '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4/power/usb3_hardware_lpm_u1' writing 'disabled'
2-4: /etc/udev/rules.d/50-usb_power_save.rules:1 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4/power/usb3_hardware_lpm_u1}, ignoring: Permission denied
2-4: /etc/udev/rules.d/50-usb_power_save.rules:2 ATTR '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4/power/usb3_hardware_lpm_u2' writing 'disabled'
2-4: /etc/udev/rules.d/50-usb_power_save.rules:2 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4/power/usb3_hardware_lpm_u2}, ignoring: Permission denied

I have no idea why permission is denied.

Offline

#5 2024-07-18 03:19:28

splurben
Member
From: Augusta, Western Australia
Registered: 2014-02-28
Posts: 38
Website

Re: [Solved] Failed to set U1 timeout error message on poweroff

I have these errors on poweroff as well recently. I couldn't get DMESG or journalctl to report these errors. I had a take a photo of the poweroff screen and transcribe them here.

] usb 2-4.4: Failed to set U1 timout to 0x0, error code -113
] usb 2-4.4: Failed to set U1 timout to 0x29, error code -113
] usb 2-4.4: Failed to set U2 timout to 0x3f, error code -113
] usb 2-4: Failed to set U1 timout to 0x0, error code -113
] usb 2-4: Failed to set U1 timout to 0x1e, error code -113
] usb 2-4: Failed to set U2 timout to 0x3f, error code -113
] usb 2-2: Failed to set U1 timout to 0x0, error code -113
] usb 2-2: Failed to set U1 timout to 0x1e, error code -113
] usb 2-2: Failed to set U2 timout to 0x3f, error code -113
% uname -a
Linux control 6.9.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 12 Jul 2024 00:06:53 +0000 x86_64 GNU/Linux
Jul 15 12:11:12 control kernel: usb 2-4: new SuperSpeed USB device number 3 using xhci_hcd
Jul 15 12:11:12 control kernel: usb 2-4: New USB device found, idVendor=2109, idProduct=0813, bcdDevice= 2.21
Jul 15 12:11:12 control kernel: usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 15 12:11:12 control kernel: usb 2-4: Product: USB3.0 Hub             
Jul 15 12:11:12 control kernel: usb 2-4: Manufacturer: VIA Labs, Inc.         
Jul 15 12:11:12 control kernel: usb 2-4.4: new SuperSpeed USB device number 4 using xhci_hcd
Jul 15 12:11:12 control kernel: usb 2-4.4: New USB device found, idVendor=2109, idProduct=0813, bcdDevice= 2.21
Jul 15 12:11:12 control kernel: usb 2-4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 15 12:11:12 control kernel: usb 2-4.4: Product: USB3.0 Hub             
Jul 15 12:11:12 control kernel: usb 2-4.4: Manufacturer: VIA Labs, Inc.
Motherboard:
control                     
    description: Desktop Computer
    product: MS-7D15 (Default string)
    vendor: Micro-Star International Co., Ltd.
    version: 1.0
    serial: Default string
    width: 64 bits
    capabilities: smbios-3.5.0 dmi-3.5.0 smp vsyscall32
    configuration: boot=normal chassis=desktop family=Default string sku=Default string uuid=8cb66896-8384-9a17-a90b-d8bbc19cfdd3
  *-core
       description: Motherboard
       product: MAG B560 TOMAHAWK WIFI (MS-7D15)
       vendor: Micro-Star International Co., Ltd.
       physical id: 0
       version: 1.0
       serial: 07D1513_LA1E171937
       slot: Default string
     *-firmware
          description: BIOS
          vendor: American Megatrends International, LLC.
          physical id: 0
          version: 2.90
          date: 06/07/2023
          size: 64KiB
          capacity: 32MiB
          capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppynec int13floppytoshiba int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb biosbootspecification uefi
core/linux-firmware 20240703.e94a2a3b-1 [installed]
core/linux-firmware-qlogic 20240703.e94a2a3b-1 [installed]
core/linux-firmware-whence 20240703.e94a2a3b-1 [installed]
extra/edk2-ovmf 202311-1 [installed]
extra/qemu-system-x86-firmware 9.0.1-1 [installed]

Output of last DMESG.

Offline

#6 2024-07-27 09:20:03

jade
Member
Registered: 2023-08-25
Posts: 1

Re: [Solved] Failed to set U1 timeout error message on poweroff

I was able to fix the issue by creating a udev rule to disable USB autosuspend:

ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="on"

Offline

#7 2024-07-28 19:17:52

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,641

Re: [Solved] Failed to set U1 timeout error message on poweroff

@Jade Thanks. The simple rule works.

Offline

Board footer

Powered by FluxBB