USB 3.0, PCIe & SATA Lane Mapping Configurations 6,usb3.0 random drop disk ,with error code -71

background: custorm carrier board, Jetpack4.4,select USB 3.0, PCIe & SATA Lane Mapping Configurations 6
We have a usb3.0 hub on board and the upstream EYE diagram test is pass.USB_drop_Log.txt (3.7 KB)

What is the error code -71?

error lof as below:
Aug 26 21:57:38 ubuntu-desktop kernel: usb 2-1.1: Failed to set U1 timeout to 0x0,error code -71
Aug 26 21:57:38 ubuntu-desktop kernel: usb 2-1.1: Set SEL for device-initiated U1 failed.
Aug 26 21:57:38 ubuntu-desktop kernel: usb 2-1.1: Set SEL for device-initiated U2 failed.

Hi,
Does it happen to other USB3 devices? Would like to know if it is specific to certain device. Does it happen every time?

A possible rootcause is power supply is not stable. May try to connect the device to a external hub with power supply and try again.

Hi DaneLLL,
It happen to some other USB3 devices, but not every one.
So maybe through a external hub and with out power it will not heppen.
It happen every around 30 min.
And it seem’s like drop the on board USB3 hub.
The HUB IC is TUSB8020BIPHPRQ1 of TI.

We will try to connect to a external hub with power supply.

We want to know what the error code -71 means.

Hi,
Please check
About USB UVC issue - #10 by sk1977.huang
include/linux/errno.h - pub/scm/linux/kernel/git/nico/archive - Git at Google

Hi DaneLLL,
We tried to connect to a external hub with power supply.
And it happened again.
We want to know what the error code -71 means.
Did the wrong device tree setting meke it happen?

error lof as below:
Aug 27 01:09:24 ubuntu-desktop kernel: usb 2-1.1: USB disconnect, device number 19
Aug 27 01:09:38 ubuntu-desktop kernel: usb 2-1.1: new SuperSpeed USB device number 20 using tegra-xusb
Aug 27 01:09:38 ubuntu-desktop kernel: usb 2-1.1: New USB device found, idVendor=2109, idProduct=0822
Aug 27 01:09:38 ubuntu-desktop kernel: usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 27 01:09:38 ubuntu-desktop kernel: usb 2-1.1: Product: USB3.1 Hub
Aug 27 01:09:38 ubuntu-desktop kernel: usb 2-1.1: Manufacturer: VIA Labs, Inc.
Aug 27 01:09:38 ubuntu-desktop kernel: usb 2-1.1: SerialNumber: 000000001
Aug 27 01:09:39 ubuntu-desktop kernel: usb 2-1.1.1: new SuperSpeed USB device number 21 using tegra-xusb
Aug 27 01:09:39 ubuntu-desktop kernel: usb 2-1.1.1: New USB device found, idVendor=1005, idProduct=b168
Aug 27 01:09:39 ubuntu-desktop kernel: usb 2-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 27 01:09:39 ubuntu-desktop kernel: usb 2-1.1.1: Product: USB 3.0 DISK
Aug 27 01:09:39 ubuntu-desktop kernel: usb 2-1.1.1: Manufacturer:
Aug 27 01:09:39 ubuntu-desktop kernel: usb 2-1.1.1: SerialNumber: 19001458934DFC04
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1.1: Failed to set U1 timeout to 0x0,error code -71
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1.1: Set SEL for device-initiated U1 failed.
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1.1: Set SEL for device-initiated U2 failed.
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1.1: usb_reset_and_verify_device Failed to disable LPM
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1-port1: cannot disable (err = -71)
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1: USB disconnect, device number 18
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1: USB disconnect, device number 20
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1.1: USB disconnect, device number 21
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1: new SuperSpeed USB device number 22 using tegra-xusb
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1: New USB device found, idVendor=0451, idProduct=8025
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1: new SuperSpeed USB device number 23 using tegra-xusb
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1: New USB device found, idVendor=2109, idProduct=0822
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1: Product: USB3.1 Hub
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1: Manufacturer: VIA Labs, Inc.
Aug 27 01:18:28 ubuntu-desktop kernel: usb 2-1.1: SerialNumber: 000000001
Aug 27 01:18:29 ubuntu-desktop kernel: usb 2-1.1.1: new SuperSpeed USB device number 24 using tegra-xusb
Aug 27 01:18:29 ubuntu-desktop kernel: usb 2-1.1.1: New USB device found, idVendor=1005, idProduct=b168
Aug 27 01:18:29 ubuntu-desktop kernel: usb 2-1.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 27 01:18:29 ubuntu-desktop kernel: usb 2-1.1.1: Product: USB 3.0 DISK
Aug 27 01:18:29 ubuntu-desktop kernel: usb 2-1.1.1: Manufacturer:
Aug 27 01:18:29 ubuntu-desktop kernel: usb 2-1.1.1: SerialNumber: 19001458934DFC04

ubuntu@ubuntu-desktop:~$ ls -lh /proc/device-tree/chosen/plugin-manager/odm-data/ total 0
-r–r–r-- 1 root root 4 6月 7 08:46 android-build
-r–r–r-- 1 root root 4 6月 7 08:46 disable-pmic-wdt
-r–r–r-- 1 root root 4 6月 7 08:46 disable-sdmmc-hwcq
-r–r–r-- 1 root root 4 6月 7 08:46 disable-tegra-wdt
-r–r–r-- 1 root root 4 6月 7 08:46 enable-debug-console
-r–r–r-- 1 root root 4 6月 7 08:46 enable-denver-wdt
-r–r–r-- 1 root root 4 6月 7 08:46 enable-pcie-on-uphy-lane2 (is it lane3 in config 6?)
-r–r–r-- 1 root root 4 6月 7 08:46 enable-pcie-on-uphy-lane4
-r–r–r-- 1 root root 4 6月 7 08:46 enable-sata-on-uphy-lane5
-r–r–r-- 1 root root 4 6月 7 08:46 enable-xusb-on-uphy-lane0
-r–r–r-- 1 root root 4 6月 7 08:46 enable-xusb-on-uphy-lane1
-r–r–r-- 1 root root 9 6月 7 08:46 name
-r–r–r-- 1 root root 4 6月 7 08:46 no-battery
-r–r–r-- 1 root root 4 6月 7 08:46 normal-flashed

Hi,
Device tree is good since we can see SuperSpeed enumeration. It is enumerated as SuperSpeed but fails at next stage. The phenomenon is more like an issue in unstable signals. Since you have passed compliance test, probably the issue is power supply is not stable.

Software device tree should be ready. If device tree is wrong, generally it will not go to this print:

Aug 27 01:09:38 ubuntu-desktop kernel: usb 2-1.1: new SuperSpeed USB device number 20 using tegra-xusb

I have not seen this before, but a power saving mode issue does not surprise me (a common issue is handling of power saving mode in USB…not just on Jetsons). I found this which might be of interest in addition to the other threads mentioned:
https://linux-usb.vger.kernel.narkive.com/nmQviXNt/set-sel-for-device-initiated-u1-failed-errors

The error which led me to this web URL is:

[203282.992904] usb 4-1: Set SEL for device-initiated U1 failed.
[203282.992909] usb 4-1: Set SEL for device-initiated U2 failed.
1 Like