not working xhci-mtk USB 3.0
Username: Юрий Дигтярь
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1862
-
Xiaomi Mi WiFi Router 3G
-
OpenWrt 18.06.1 r7258-5eb05530
-
After connecting the docking station(USB3.0 HDD docking station)- an error occurs, as indicated in the logs below.
• kernel log
[ 6.723777] usbcore: registered new interface driver usbfs
[ 6.729399] usbcore: registered new interface driver hub
[ 6.734904] usbcore: registered new device driver usb
[ 6.748554] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 6.753899] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[ 6.765068] xhci-mtk 1e1c0000.xhci: hcc params 0×01401198 hci version 0×96 quirks 0×00210010 [ 6.773554] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[ 6.780252] hub 1-0:1.0: USB hub found
[ 6.784063] hub 1-0:1.0: 2 ports detected
[ 6.788660] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 6.793968] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[ 6.801458] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[ 6.808059] usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
[ 6.816957] hub 2-0:1.0: USB hub found
[ 6.820769] hub 2-0:1.0: 1 port detected
[ 6.827692] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.845190] init: - preinit -
[ 7.235077] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 7.319396] random: procd: uninitialized urandom read (4 bytes read)
[ 7.550284] mtk_soc_eth 1e100000.ethernet: PPE started
[ 10.771163] UBIFS (ubi0:1): background thread “ubifs_bgt0_1” started, PID 485
[ 10.845628] UBIFS (ubi0:1): recovery needed
[ 11.031450] UBIFS (ubi0:1): recovery completed
[ 11.036066] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name “rootfs_data” [ 11.043862] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 11.053756] UBIFS (ubi0:1): FS size: 112373760 bytes (107 MiB, 885 LEBs), journal size 5586944 bytes (5 MiB, 44 LEBs)
[ 11.064327] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[ 11.070963] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 2748C915-40E4-4121-B2E0-E1B496DE7D66, small LPT model
[ 11.095502] mount_root: loading kmods from internal overlay
[ 11.222556] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[ 11.463453] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 11.508096]
SCSI
subsystem initialized
[ 11.524655] ehci-platform: EHCI generic platform driver
[ 11.544381] usbcore: registered new interface driver usb-storage
[ 11.556203] scsi host0: uas
[ 11.559794] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 4
[ 11.568217] xhci-mtk 1e1c0000.xhci: @000000000f79b170 0ea7e000 00000000 05000000 01058001
[ 11.576364] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 6
[ 11.584771] xhci-mtk 1e1c0000.xhci: @000000000f79b180 0ea7e100 00000000 05000000 01078001
[ 32.574874] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[ 32.582434] scsi 0:0:0:0: tag#0 CDB: opcode=0×12 12 00 00 00 24 00
[ 32.588688] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[ 32.598474] xhci-mtk 1e1c0000.xhci: ep deq seg = 8e9ce700, deq ptr = ae9fb010
[ 33.684839] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
[ 33.692042] scsi 0:0:0:0: Device offlined - not ready after error recovery
[ 33.699312] usbcore: registered new interface driver uas
[ 33.705028] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[ 33.937005] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[ 33.950739] block: extroot: not configured
[ 33.998265] mount_root: switching to ubifs overlay
• system log
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.723777] usbcore: registered new interface driver usbfs
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.729399] usbcore: registered new interface driver hub
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.734904] usbcore: registered new device driver usb
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.748554] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.753899] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.765068] xhci-mtk 1e1c0000.xhci: hcc params 0×01401198 hci version 0×96 quirks 0×00210010 Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.773554] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.780252] hub 1-0:1.0: USB hub found
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.784063] hub 1-0:1.0: 2 ports detected
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.788660] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.793968] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.801458] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.808059] usb usb2: We don’t know the algorithms for LPM for this host, disabling LPM.
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.816957] hub 2-0:1.0: USB hub found
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 6.820769] hub 2-0:1.0: 1 port detected
Thu Sep 20 12:22:42 2018 user.info kernel: [ 6.827692] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
Thu Sep 20 12:22:42 2018 user.info kernel: [ 6.845190] init: - preinit -
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 7.235077] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
Thu Sep 20 12:22:42 2018 kern.notice kernel: [ 7.319396] random: procd: uninitialized urandom read (4 bytes read)
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 7.550284] mtk_soc_eth 1e100000.ethernet: PPE started
Thu Sep 20 12:22:42 2018 kern.notice kernel: [ 10.771163] UBIFS (ubi0:1): background thread “ubifs_bgt0_1” started, PID 485
Thu Sep 20 12:22:42 2018 kern.notice kernel: [ 10.845628] UBIFS (ubi0:1): recovery needed
Thu Sep 20 12:22:42 2018 kern.notice kernel: [ 11.031450] UBIFS (ubi0:1): recovery completed
Thu Sep 20 12:22:42 2018 kern.notice kernel: [ 11.036066] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name “rootfs_data” Thu Sep 20 12:22:42 2018 kern.notice kernel: [ 11.043862] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
Thu Sep 20 12:22:42 2018 kern.notice kernel: [ 11.053756] UBIFS (ubi0:1): FS size: 112373760 bytes (107 MiB, 885 LEBs), journal size 5586944 bytes (5 MiB, 44 LEBs)
Thu Sep 20 12:22:42 2018 kern.notice kernel: [ 11.064327] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
Thu Sep 20 12:22:42 2018 kern.notice kernel: [ 11.070963] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 2748C915-40E4-4121-B2E0-E1B496DE7D66, small LPT model
Thu Sep 20 12:22:42 2018 user.info kernel: [ 11.095502] mount_root: loading kmods from internal overlay
Thu Sep 20 12:22:42 2018 user.info kernel: [ 11.222556] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 11.463453] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
Thu Sep 20 12:22:42 2018 kern.notice kernel: [ 11.508096]
SCSI
subsystem initialized
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 11.524655] ehci-platform: EHCI generic platform driver
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 11.544381] usbcore: registered new interface driver usb-storage
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 11.556203] scsi host0: uas
Thu Sep 20 12:22:42 2018 kern.err kernel: [ 11.559794] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 4
Thu Sep 20 12:22:42 2018 kern.err kernel: [ 11.568217] xhci-mtk 1e1c0000.xhci: @000000000f79b170 0ea7e000 00000000 05000000 01058001
Thu Sep 20 12:22:42 2018 kern.err kernel: [ 11.576364] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 6
Thu Sep 20 12:22:42 2018 kern.err kernel: [ 11.584771] xhci-mtk 1e1c0000.xhci: @000000000f79b180 0ea7e100 00000000 05000000 01078001
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 32.574874] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 32.582434] scsi 0:0:0:0: tag#0 CDB: opcode=0×12 12 00 00 00 24 00
Thu Sep 20 12:22:42 2018 kern.warn kernel: [ 32.588688] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
Thu Sep 20 12:22:42 2018 kern.warn kernel: [ 32.598474] xhci-mtk 1e1c0000.xhci: ep deq seg = 8e9ce700, deq ptr = ae9fb010
Thu Sep 20 12:22:42 2018 kern.err kernel: [ 33.684839] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 33.692042] scsi 0:0:0:0: Device offlined - not ready after error recovery
Thu Sep 20 12:22:42 2018 kern.info kernel: [ 33.699312] usbcore: registered new interface driver uas
• dmesg | grep usb
[ 6.723777] usbcore: registered new interface driver usbfs
[ 6.729399] usbcore: registered new interface driver hub
[ 6.734904] usbcore: registered new device driver usb
[ 6.808059] usb usb2: We don’t know the algorithms for LPM for this host, dis abling LPM.
[ 7.235077] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 11.544381] usbcore: registered new interface driver usb-storage
[ 33.699312] usbcore: registered new interface driver uas
• lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M
• list-installed | grep usb
kmod-usb-core - 4.14.63-1
kmod-usb-ehci - 4.14.63-1
kmod-usb-ledtrig-usbport - 4.14.63-1
kmod-usb-storage - 4.14.63-1
kmod-usb-storage-uas - 4.14.63-1
kmod-usb2 - 4.14.63-1
kmod-usb3 - 4.14.63-1
libusb-1.0 - 1.0.22-1
usbutils - 007-7
• lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub