OpenWrt/LEDE Project

Attached to Project: OpenWrt/LEDE Project
Opened by Dmitry Gubin - 07.07.2018

FS#1637 - Xiaomi Mi WiFi Router 3G does not working with USB3.0 HDD docking station Maiwo K308(JMS567 chipset)

- Xiaomi Mi WiFi Router 3G
- OpenWrt 18.06.0-rc1 r7090-d2aa3a1b62 / LuCI openwrt-18.06 branch (git-18.163.60998-c379f00)
- After connecting the docking station(USB3.0 HDD docking station Maiwo K308(JMS567 chipset) - an error occurs, as indicated in the logs below.
On stock firmware it's working without problems, on Padavan rt-n56u too.
dmesg

[    0.000000] Linux version 4.14.50 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6984-fa0275b)) #0 SMP Fri Jun 22 10:22:57 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Xiaomi Mi Router 3G
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat 80543e00, node_mem_map 81003000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] random: get_random_bytes called from 0x80547740 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81210000 s26256 r8192 d22896 u57344
[    0.000000] pcpu-alloc: s26256 r8192 d22896 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00011020
[    0.000000] Readback ErrCtl register=00011020
[    0.000000] Memory: 253660K/262144K available (4589K kernel code, 238K rwdata, 564K rodata, 228K init, 275K bss, 8484K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 4880645118ns
[    0.007810] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073970] pid_max: default: 32768 minimum: 301
[    0.078735] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085242] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.093942] Hierarchical SRCU implementation.
[    0.099007] smp: Bringing up secondary CPUs ...
[    0.104173] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.104182] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.104194] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.104334] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163753] Synchronize counters for CPU 1: done.
[    0.198312] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.198321] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.198330] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.198405] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.254840] Synchronize counters for CPU 2: done.
[    0.285278] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.285285] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.285293] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.285371] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.340021] Synchronize counters for CPU 3: done.
[    0.369881] smp: Brought up 1 node, 4 CPUs
[    0.377576] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.387361] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.393653] pinctrl core: initialized pinctrl subsystem
[    0.399470] NET: Registered protocol family 16
[    0.409679] Can't analyze schedule() prologue at 80476f64
[    0.415043] FPU Affinity set after 11720 emulations
[    0.415750] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.720900] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.725932] ***** Xtal 40MHz *****
[    0.729306] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.734412] Port 0 N_FTS = 1b105000
[    0.737854] Port 1 N_FTS = 1b105000
[    0.741314] Port 2 N_FTS = 1b102800
[    1.896374] PCIE2 no card, disable it(RST&CLK)
[    1.900722]  -> 21007f2
[    1.903135] PCIE0 enabled
[    1.905726] PCIE1 enabled
[    1.908347] PCI host bridge /pcie@1e140000 ranges:
[    1.913091]  MEM 0x0000000060000000..0x000000006fffffff
[    1.918259]   IO 0x000000001e160000..0x000000001e16ffff
[    1.923463] PCI coherence region base: 0x8fc35cf0, mask/settings: 0x60000000
[    1.938845] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.944744] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.950499] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.957458] PCI host bridge to bus 0000:00
[    1.961489] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.968345] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.974177] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.980935] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.988824] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.988865] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.988878] pci 0000:00:00.0: reg 0x14: [mem 0x60300000-0x6030ffff]
[    1.988943] pci 0000:00:00.0: supports D1
[    1.988952] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.989205] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.989242] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.989261] pci 0000:00:01.0: reg 0x14: [mem 0x60310000-0x6031ffff]
[    1.989324] pci 0000:00:01.0: supports D1
[    1.989333] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.989803] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    1.989856] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    1.989984] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.990180] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.990405] pci 0000:02:00.0: [14c3:7662] type 00 class 0x028000
[    1.990467] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.990513] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.990609] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    1.990808] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.990834] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    1.990909] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    1.997459] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.004333] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.010916] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.017817] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.024579] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    2.031289] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x602fffff pref]
[    2.038482] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.045211] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.051972] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    2.058684] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.063634] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.070354] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bit]
[    2.077630] pci 0000:02:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref]
[    2.084769] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.089716] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    2.096438] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff pref]
[    2.104993] clocksource: Switched to clocksource GIC
[    2.111407] NET: Registered protocol family 2
[    2.116540] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.123424] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.129870] TCP: Hash tables configured (established 2048 bind 2048)
[    2.136287] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.142049] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.148533] NET: Registered protocol family 1
[    2.152868] PCI: CLS 0 bytes, default 32
[    2.384942] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.391343] Crashlog allocated RAM at address 0x3f00000
[    2.396687] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.404912] random: fast init done
[    2.410539] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.416318] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    2.429400] io scheduler noop registered
[    2.433238] io scheduler deadline registered (default)
[    2.439026] gpio-export gpio_export: 1 gpio(s) exported
[    2.444882] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.453852] console [ttyS0] disabled
[    2.457479] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud = 3125000) is a 16550A
[    2.466496] console [ttyS0] enabled
[    2.473348] bootconsole [early0] disabled
[    2.482241] cacheinfo: Failed to find cpu0 device node
[    2.487404] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.494304] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.501445] Allocate 16 byte aligned buffer: 805b7ed0
[    2.506518] Enable NFI Clock
[    2.509384] # MTK NAND # : Use HW ECC
[    2.513042] Device found in MTK table, ID: c8d1, EXT_ID: 809540
[    2.518959] Support this Device in MTK table! c8d1
[    2.523907] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.530377] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    2.536713] nand: ESMT NAND 128MiB 3,3V 8-bit
[    2.541049] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.548604] Scanning device for bad blocks
[    2.697019] 10 fixed-partitions partitions found on MTD device MT7621-NAND
[    2.703860] Creating 10 MTD partitions on "MT7621-NAND":
[    2.709168] 0x000000000000-0x000000080000 : "Bootloader"
[    2.715605] 0x000000080000-0x0000000c0000 : "Config"
[    2.721544] 0x0000000c0000-0x000000100000 : "Bdata"
[    2.727378] 0x000000100000-0x000000140000 : "Factory"
[    2.733371] 0x000000140000-0x000000180000 : "crash"
[    2.739233] 0x000000180000-0x0000001c0000 : "crash_syslog"
[    2.745747] 0x0000001c0000-0x000000200000 : "reserved0"
[    2.751941] 0x000000200000-0x000000600000 : "kernel_stock"
[    2.758465] 0x000000600000-0x000000a00000 : "kernel"
[    2.764398] 0x000000a00000-0x000007f80000 : "ubi"
[    2.771067] [mtk_nand] probe successfully!
[    2.775900] Signature matched and data read!
[    2.780148] load_fact_bbt success 1023
[    2.784635] libphy: Fixed MDIO Bus: probed
[    2.857534] libphy: mdio: probed
[    4.261146] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.267827] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 20
[    4.278580] NET: Registered protocol family 10
[    4.284643] Segment Routing with IPv6
[    4.288457] NET: Registered protocol family 17
[    4.292952] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    4.305864] 8021q: 802.1Q VLAN Support v1.8
[    4.312990] UBI: auto-attach mtd9
[    4.316370] ubi0: attaching mtd9
[    4.461474] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[    5.429019] ubi0: scanning is finished
[    5.449109] ubi0: attached mtd9 (name "ubi", size 117 MiB)
[    5.454586] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.461470] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.468245] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.475187] ubi0: good PEBs: 940, bad PEBs: 0, corrupted PEBs: 0
[    5.481163] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    5.488363] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 687133564
[    5.497380] ubi0: available PEBs: 0, total reserved PEBs: 940, PEBs reserved for bad PEB handling: 20
[    5.506590] ubi0: background thread "ubi_bgt0d" started, PID 387
[    5.508389] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.508401] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.508418] hctosys: unable to open rtc device (rtc0)
[    5.537185] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.544797] Freeing unused kernel memory: 228K
[    5.549260] This architecture does not have kernel memory protection.
[    6.066583] init: Console is alive
[    6.070218] init: - watchdog -
[    6.146572] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    6.632043] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.720511] usbcore: registered new interface driver usbfs
[    6.726121] usbcore: registered new interface driver hub
[    6.731594] usbcore: registered new device driver usb
[    6.745791] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.751131] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    6.765180] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[    6.773665] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[    6.780440] hub 1-0:1.0: USB hub found
[    6.784257] hub 1-0:1.0: 2 ports detected
[    6.788934] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.794245] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    6.801735] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0  SuperSpeed
[    6.808355] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.817321] hub 2-0:1.0: USB hub found
[    6.821132] hub 2-0:1.0: 1 port detected
[    6.828283] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.845358] init: - preinit -
[    6.901556] mtk_soc_eth 1e100000.ethernet eth0: port 2 link down
[    7.225172] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[    7.304253] random: procd: uninitialized urandom read (4 bytes read)
[    7.531222] mtk_soc_eth 1e100000.ethernet: PPE started
[   10.292596] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[   10.751693] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 484
[   10.826593] UBIFS (ubi0:1): recovery needed
[   11.000433] UBIFS (ubi0:1): recovery completed
[   11.005062] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.012858] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.022746] UBIFS (ubi0:1): FS size: 112373760 bytes (107 MiB, 885 LEBs), journal size 5586944 bytes (5 MiB, 44 LEBs)
[   11.033315] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.039915] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID 81367A9F-39E5-4CEC-A7E5-22AF05B270C8, small LPT model
[   11.064431] mount_root: loading kmods from internal overlay
[   11.153260] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   11.407918] SCSI subsystem initialized
[   11.442899] usbcore: registered new interface driver usb-storage
[   11.455482] scsi host0: uas
[   11.459086] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 4
[   11.467505] xhci-mtk 1e1c0000.xhci: @000000000f78b190 0e9ae000 00000000 05000000 01058001
[   11.475647] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 6
[   11.484046] xhci-mtk 1e1c0000.xhci: @000000000f78b1a0 0e9ae100 00000000 05000000 01078001
[   32.575006] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[   32.582562] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[   32.588806] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[   32.598592] xhci-mtk 1e1c0000.xhci: ep deq seg = 8ea5ef00, deq ptr = aea6b010
[   33.684978] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
[   33.692180] scsi 0:0:0:0: Device offlined - not ready after error recovery
[   33.699447] usbcore: registered new interface driver uas
[   33.705098] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   33.932535] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   33.943699] block: extroot: not configured
[   33.988383] mount_root: switching to ubifs overlay
[   34.020262] urandom-seed: Seeding with /etc/urandom.seed
[   34.120351] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   34.138950] procd: - early -
[   34.141928] procd: - watchdog -
[   34.835159] procd: - watchdog -
[   34.838603] procd: - ubus -
[   34.904456] random: ubusd: uninitialized urandom read (4 bytes read)
[   34.915756] random: ubusd: uninitialized urandom read (4 bytes read)
[   34.922515] random: ubusd: uninitialized urandom read (4 bytes read)
[   34.929772] procd: - init -
[   35.294249] kmodloader: loading kernel modules from /etc/modules.d/*
[   35.304919] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   35.641767] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   35.649783] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   35.658312] ip_tables: (C) 2000-2006 Netfilter Core Team
[   36.010163] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   36.222225] xt_time: kernel timezone is -0000
[   36.469843] bus=0x1, slot = 0x0, irq=0xff
[   36.474058] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   36.482777] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   36.488374] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   36.514986] firmware init done
[   36.701302] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   36.708452] bus=0x2, slot = 0x1, irq=0xff
[   36.712701] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   36.745757] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[   36.856607] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   36.862095] mt76x2e 0000:02:00.0: Build: 1
[   36.866202] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   36.895066] mt76x2e 0000:02:00.0: Firmware running!
[   36.901443] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   36.909160] PPP generic driver version 2.4.2
[   36.914863] NET: Registered protocol family 24
[   36.921990] kmodloader: done loading kernel modules from /etc/modules.d/*
[   37.506856] urandom_read: 5 callbacks suppressed
[   37.506868] random: jshn: uninitialized urandom read (4 bytes read)
[   43.328603] mtk_soc_eth 1e100000.ethernet: PPE started
[   43.339035] device eth0 entered promiscuous mode
[   43.339679] random: crng init done
[   43.349998] br-lan: port 1(eth0.1) entered blocking state
[   43.355455] br-lan: port 1(eth0.1) entered disabled state
[   43.361540] device eth0.1 entered promiscuous mode
[   43.369853] br-lan: port 1(eth0.1) entered blocking state
[   43.375326] br-lan: port 1(eth0.1) entered forwarding state
[   43.381418] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   44.095081] pppoe-wan: renamed from ppp0
[   44.395639] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  161.234025] xhci-mtk 1e1c0000.xhci: Cannot set link state.
[  161.239536] usb usb2-port1: cannot disable (err = -32)
[  161.244695] usb 2-1: USB disconnect, device number 2
[  161.249997] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[  161.259783] xhci-mtk 1e1c0000.xhci: ep deq seg = 8ea5e680, deq ptr = af7fc010
[  173.723928] usb 2-1: new SuperSpeed USB device number 3 using xhci-mtk
[  173.758634] scsi host0: uas
[  173.762521] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 4
[  173.770987] xhci-mtk 1e1c0000.xhci: @000000000f78b400 0e9ae200 00000000 05000000 01058001
[  173.779174] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 6
[  173.787585] xhci-mtk 1e1c0000.xhci: @000000000f78b410 0e9ae100 00000000 05000000 01078001
[  195.773489] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[  195.781053] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[  195.787337] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[  195.797126] xhci-mtk 1e1c0000.xhci: ep deq seg = 8f7fde80, deq ptr = ae9ca010
[  196.863444] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
[  196.870659] scsi 0:0:0:0: Device offlined - not ready after error recovery
[ 7816.444318] mtk_soc_eth 1e100000.ethernet eth0: port 2 link down
[13923.944394] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[13931.685420] mtk_soc_eth 1e100000.ethernet eth0: port 2 link down
[13934.647389] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[13935.481016] mtk_soc_eth 1e100000.ethernet eth0: port 2 link down
[13938.603966] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[27277.718233] xhci-mtk 1e1c0000.xhci: Cannot set link state.
[27277.723745] usb usb2-port1: cannot disable (err = -32)
[27277.728908] usb 2-1: USB disconnect, device number 3
[27277.734217] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[27277.744004] xhci-mtk 1e1c0000.xhci: ep deq seg = 8f7f8c80, deq ptr = ae92e010
[27289.778016] usb 2-1: new SuperSpeed USB device number 4 using xhci-mtk
[27289.812666] scsi host0: uas
[27289.816561] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 4
[27289.825022] xhci-mtk 1e1c0000.xhci: @000000000f78b670 0e9ae000 00000000 05000000 01058001
[27289.833207] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 6
[27289.841619] xhci-mtk 1e1c0000.xhci: @000000000f78b680 0e9ae100 00000000 05000000 01078001
[27311.067752] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[27311.075319] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[27311.081591] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[27311.091378] xhci-mtk 1e1c0000.xhci: ep deq seg = 8f7a4680, deq ptr = ae9ca010
[27312.177719] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
[27312.184941] scsi 0:0:0:0: Device offlined - not ready after error recovery

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 152d:0567 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


Dmitry Gubin commented on 16.07.2018 19:11

After update to 18.06 RC2 the same...

[    0.000000] Linux version 4.14.54 (buildbot@builds-03.infra.lede-project.org)                                                                                                                                                              (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9)) #0 SMP Sat Jul 14 13:48:1                                                                                                                                                             4 2018
[    0.000000] SoC Type: MediaTek MT7621 ver:1 eco:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[    0.000000] MIPS: machine is Xiaomi Mi Router 3G
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] VPE topology {2,2} total 4
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                                                             es
[    0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat 80545e00, node_mem_map 8100300                                                                                                                                                             0
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] random: get_random_bytes called from 0x80549740 with crng_init=0
[    0.000000] percpu: Embedded 14 pages/cpu @81210000 s26256 r8192 d22896 u5734                                                                                                                                                             4
[    0.000000] pcpu-alloc: s26256 r8192 d22896 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,j                                                                                                                                                             ffs2
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Writing ErrCtl register=00011020
[    0.000000] Readback ErrCtl register=00011020
[    0.000000] Memory: 253664K/262144K available (4593K kernel code, 242K rwdata                                                                                                                                                             , 564K rodata, 220K init, 270K bss, 8480K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS: 256
[    0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478ab                                                                                                                                                             b4, max_idle_ns: 440795247997 ns
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_i                                                                                                                                                             dle_ns: 4343773742 ns
[    0.000010] sched_clock: 32 bits at 440MHz, resolution 2ns, wraps every 48806                                                                                                                                                             45118ns
[    0.007813] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[    0.073974] pid_max: default: 32768 minimum: 301
[    0.078747] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.085254] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.093968] Hierarchical SRCU implementation.
[    0.099025] smp: Bringing up secondary CPUs ...
[    0.105930] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.105940] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                                                             es
[    0.105951] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.106092] CPU1 revision is: 0001992f (MIPS 1004Kc)
[    0.163773] Synchronize counters for CPU 1: done.
[    0.200061] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.200070] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                                                             es
[    0.200078] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.200151] CPU2 revision is: 0001992f (MIPS 1004Kc)
[    0.254855] Synchronize counters for CPU 2: done.
[    0.287022] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.287030] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 byt                                                                                                                                                             es
[    0.287038] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[    0.287116] CPU3 revision is: 0001992f (MIPS 1004Kc)
[    0.340039] Synchronize counters for CPU 3: done.
[    0.369898] smp: Brought up 1 node, 4 CPUs
[    0.377542] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma                                                                                                                                                             x_idle_ns: 19112604462750000 ns
[    0.387329] futex hash table entries: 1024 (order: 3, 32768 bytes)
[    0.393627] pinctrl core: initialized pinctrl subsystem
[    0.399439] NET: Registered protocol family 16
[    0.409164] Can't analyze schedule() prologue at 80477e04
[    0.414524] FPU Affinity set after 11720 emulations
[    0.415195] pull PCIe RST: RALINK_RSTCTRL = 4000000
[    0.720409] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.725457] ***** Xtal 40MHz *****
[    0.728813] release PCIe RST: RALINK_RSTCTRL = 7000000
[    0.733910] Port 0 N_FTS = 1b105000
[    0.737377] Port 1 N_FTS = 1b105000
[    0.740823] Port 2 N_FTS = 1b102800
[    1.896048] PCIE2 no card, disable it(RST&CLK)
[    1.900408]  -> 21007f2
[    1.902813] PCIE0 enabled
[    1.905402] PCIE1 enabled
[    1.908005] PCI host bridge /pcie@1e140000 ranges:
[    1.912780]  MEM 0x0000000060000000..0x000000006fffffff
[    1.917935]   IO 0x000000001e160000..0x000000001e16ffff
[    1.923138] PCI coherence region base: 0xbfbf8000, mask/settings: 0x60000000
[    1.938908] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.944795] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.950555] mt7621_gpio 1e000600.gpio: registering 32 gpios
[    1.957595] PCI host bridge to bus 0000:00
[    1.961625] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.968480] pci_bus 0000:00: root bus resource [io  0xffffffff]
[    1.974312] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    1.981071] pci_bus 0000:00: No busn resource found for root bus, will use [b                                                                                                                                                             us 00-ff]
[    1.988960] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[    1.989001] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.989014] pci 0000:00:00.0: reg 0x14: [mem 0x60300000-0x6030ffff]
[    1.989079] pci 0000:00:00.0: supports D1
[    1.989088] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.989344] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[    1.989387] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[    1.989404] pci 0000:00:01.0: reg 0x14: [mem 0x60310000-0x6031ffff]
[    1.989465] pci 0000:00:01.0: supports D1
[    1.989474] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.989935] pci 0000:01:00.0: [14c3:7603] type 00 class 0x028000
[    1.989989] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    1.990117] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.990310] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.990547] pci 0000:02:00.0: [14c3:7662] type 00 class 0x028000
[    1.990610] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.990656] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.990749] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    1.990944] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.990970] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[    1.991052] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[    1.997623] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.004558] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[    2.011096] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[    2.018033] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    2.024757] pci 0000:00:01.0: BAR 8: assigned [mem 0x60100000-0x601fffff]
[    2.031515] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x602fffff pref                                                                                                                                                             ]
[    2.038664] pci 0000:00:00.0: BAR 1: assigned [mem 0x60300000-0x6030ffff]
[    2.045423] pci 0000:00:01.0: BAR 1: assigned [mem 0x60310000-0x6031ffff]
[    2.052147] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff]
[    2.058903] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.063803] pci 0000:00:00.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.070576] pci 0000:02:00.0: BAR 0: assigned [mem 0x60100000-0x601fffff 64bi                                                                                                                                                             t]
[    2.077814] pci 0000:02:00.0: BAR 6: assigned [mem 0x60200000-0x6020ffff pref                                                                                                                                                             ]
[    2.084986] pci 0000:00:01.0: PCI bridge to [bus 02]
[    2.089895] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff]
[    2.096651] pci 0000:00:01.0:   bridge window [mem 0x60200000-0x602fffff pref                                                                                                                                                             ]
[    2.105145] clocksource: Switched to clocksource GIC
[    2.111693] NET: Registered protocol family 2
[    2.116771] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.123664] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    2.130111] TCP: Hash tables configured (established 2048 bind 2048)
[    2.136516] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    2.142277] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    2.148767] NET: Registered protocol family 1
[    2.153089] PCI: CLS 0 bytes, default 32
[    2.385117] 4 CPUs re-calibrate udelay(lpj = 2924544)
[    2.391570] Crashlog allocated RAM at address 0x3f00000
[    2.396998] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    2.405320] random: fast init done
[    2.413030] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.418802] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORIT                                                                                                                                                             Y) (c) 2001-2006 Red Hat, Inc.
[    2.431636] io scheduler noop registered
[    2.435506] io scheduler deadline registered (default)
[    2.441167] gpio-export gpio_export: 1 gpio(s) exported
[    2.447063] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    2.456044] console [ttyS0] disabled
[    2.459585] 1e000c00.uartlite: ttyS0 at MMIO 0x1e000c00 (irq = 18, base_baud                                                                                                                                                              = 3125000) is a 16550A
[    2.468594] console [ttyS0] enabled
[    2.475466] bootconsole [early0] disabled
[    2.484047] cacheinfo: Failed to find cpu0 device node
[    2.489225] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.496203] MediaTek Nand driver init, version v2.1 Fix AHB virt2phys error
[    2.503271] Enable NFI Clock
[    2.506199] # MTK NAND # : Use HW ECC
[    2.509865] Device found in MTK table, ID: c8d1, EXT_ID: 809540
[    2.515771] Support this Device in MTK table! c8d1
[    2.520719] [NAND]select ecc bit:4, sparesize :64 spare_per_sector=16
[    2.527188] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    2.533509] nand: ESMT NAND 128MiB 3,3V 8-bit
[    2.537856] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB siz                                                                                                                                                             e: 64
[    2.545416] Scanning device for bad blocks
[    2.694071] 10 fixed-partitions partitions found on MTD device MT7621-NAND
[    2.700926] Creating 10 MTD partitions on "MT7621-NAND":
[    2.706234] 0x000000000000-0x000000080000 : "Bootloader"
[    2.712472] 0x000000080000-0x0000000c0000 : "Config"
[    2.718283] 0x0000000c0000-0x000000100000 : "Bdata"
[    2.723941] 0x000000100000-0x000000140000 : "Factory"
[    2.729840] 0x000000140000-0x000000180000 : "crash"
[    2.735593] 0x000000180000-0x0000001c0000 : "crash_syslog"
[    2.741875] 0x0000001c0000-0x000000200000 : "reserved0"
[    2.747966] 0x000000200000-0x000000600000 : "kernel_stock"
[    2.754325] 0x000000600000-0x000000a00000 : "kernel"
[    2.760160] 0x000000a00000-0x000007f80000 : "ubi"
[    2.766742] [mtk_nand] probe successfully!
[    2.771552] Signature matched and data read!
[    2.775818] load_fact_bbt success 1023
[    2.780144] libphy: Fixed MDIO Bus: probed
[    2.847699] libphy: mdio: probed
[    4.251300] mtk_soc_eth 1e100000.ethernet: loaded mt7530 driver
[    4.257882] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe                                                                                                                                                             100000, irq 20
[    4.268291] NET: Registered protocol family 10
[    4.274313] Segment Routing with IPv6
[    4.278108] NET: Registered protocol family 17
[    4.282597] bridge: filtering via arp/ip/ip6tables is no longer available by                                                                                                                                                              default. Update your scripts to load br_netfilter if you need this.
[    4.295510] 8021q: 802.1Q VLAN Support v1.8
[    4.302470] UBI: auto-attach mtd9
[    4.305844] ubi0: attaching mtd9
[    4.429564] mtk_soc_eth 1e100000.ethernet eth0: port 1 link up
[    5.415758] ubi0: scanning is finished
[    5.435635] ubi0: attached mtd9 (name "ubi", size 117 MiB)
[    5.441109] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    5.447982] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    5.454736] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    5.461679] ubi0: good PEBs: 940, bad PEBs: 0, corrupted PEBs: 0
[    5.467670] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 12                                                                                                                                                             8
[    5.474859] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequ                                                                                                                                                             ence number: 687133564
[    5.483871] ubi0: available PEBs: 0, total reserved PEBs: 940, PEBs reserved                                                                                                                                                              for bad PEB handling: 20
[    5.493088] ubi0: background thread "ubi_bgt0d" started, PID 388
[    5.495155] block ubiblock0_0: created from ubi0:0(rootfs)
[    5.495169] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    5.495190] hctosys: unable to open rtc device (rtc0)
[    5.523779] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    5.531425] Freeing unused kernel memory: 220K
[    5.535887] This architecture does not have kernel memory protection.
[    6.056805] init: Console is alive
[    6.060437] init: - watchdog -
[    6.300199] mtk_soc_eth 1e100000.ethernet eth0: port 2 link up
[    6.632058] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.720785] usbcore: registered new interface driver usbfs
[    6.726383] usbcore: registered new interface driver hub
[    6.731840] usbcore: registered new device driver usb
[    6.745571] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.750905] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus numb                                                                                                                                                             er 1
[    6.765337] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 qu                                                                                                                                                             irks 0x00210010
[    6.773836] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[    6.780571] hub 1-0:1.0: USB hub found
[    6.784387] hub 1-0:1.0: 2 ports detected
[    6.788941] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.794247] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus numb                                                                                                                                                             er 2
[    6.801748] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0  SuperSpeed
[    6.808397] usb usb2: We don't know the algorithms for LPM for this host, dis                                                                                                                                                             abling LPM.
[    6.817296] hub 2-0:1.0: USB hub found
[    6.821110] hub 2-0:1.0: 1 port detected
[    6.827911] kmodloader: done loading kernel modules from /etc/modules-boot.d/                                                                                                                                                             *
[    6.855498] init: - preinit -
[    7.215381] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[    7.303829] random: procd: uninitialized urandom read (4 bytes read)
[    7.536553] mtk_soc_eth 1e100000.ethernet: PPE started
[   10.762272] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 486
[   10.836749] UBIFS (ubi0:1): recovery needed
[   10.981963] UBIFS (ubi0:1): recovery completed
[   10.986597] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "root                                                                                                                                                             fs_data"
[   10.994392] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O u                                                                                                                                                             nit sizes: 2048 bytes/2048 bytes
[   11.004289] UBIFS (ubi0:1): FS size: 112373760 bytes (107 MiB, 885 LEBs), jou                                                                                                                                                             rnal size 5586944 bytes (5 MiB, 44 LEBs)
[   11.014865] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.021476] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID F9A6D                                                                                                                                                             695-AC85-4455-B95C-05B702D3E093, small LPT model
[   11.043695] mount_root: loading kmods from internal overlay
[   11.184354] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/mo                                                                                                                                                             dules-boot.d/*
[   11.435891] SCSI subsystem initialized
[   11.471121] usbcore: registered new interface driver usb-storage
[   11.483653] scsi host0: uas
[   11.487304] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream r                                                                                                                                                             ing slot 1 ep 4
[   11.495721] xhci-mtk 1e1c0000.xhci: @000000000f759190 0e99f000 00000000 05000                                                                                                                                                             000 01058001
[   11.503861] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream r                                                                                                                                                             ing slot 1 ep 6
[   11.512259] xhci-mtk 1e1c0000.xhci: @000000000f7591a0 0e99f100 00000000 05000                                                                                                                                                             000 01078001
[   32.575166] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CM                                                                                                                                                             D IN
[   32.582725] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[   32.588980] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr                                                                                                                                                              command & xHCI internal state.
[   32.598766] xhci-mtk 1e1c0000.xhci: ep deq seg = 8e94b100, deq ptr = ae94a010
[   33.665127] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -1                                                                                                                                                             6
[   33.672331] scsi 0:0:0:0: Device offlined - not ready after error recovery
[   33.679599] usbcore: registered new interface driver uas
[   33.685301] kmodloader: done loading kernel modules from /tmp/overlay/upper/e                                                                                                                                                             tc/modules-boot.d/*
[   33.912697] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   33.925628] block: extroot: not configured
[   33.967971] mount_root: switching to ubifs overlay
[   33.999828] urandom-seed: Seeding with /etc/urandom.seed
[   34.099170] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x8081                                                                                                                                                             8
[   34.116675] procd: - early -
[   34.119656] procd: - watchdog -
[   34.855318] procd: - watchdog -
[   34.858768] procd: - ubus -
[   34.922633] random: ubusd: uninitialized urandom read (4 bytes read)
[   34.933870] random: ubusd: uninitialized urandom read (4 bytes read)
[   34.940690] random: ubusd: uninitialized urandom read (4 bytes read)
[   34.947985] procd: - init -
[   35.317713] kmodloader: loading kernel modules from /etc/modules.d/*
[   35.328432] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   35.712815] Loading modules backported from Linux version wt-2017-11-01-0-gfe                                                                                                                                                             248fc2c180
[   35.720852] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   35.729377] ip_tables: (C) 2000-2006 Netfilter Core Team
[   36.060322] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   36.264742] usbcore: registered new interface driver ums-alauda
[   36.271769] usbcore: registered new interface driver ums-cypress
[   36.278954] usbcore: registered new interface driver ums-datafab
[   36.286034] usbcore: registered new interface driver ums-freecom
[   36.293139] usbcore: registered new interface driver ums-isd200
[   36.300241] usbcore: registered new interface driver ums-jumpshot
[   36.307391] usbcore: registered new interface driver ums-karma
[   36.315954] usbcore: registered new interface driver ums-sddr09
[   36.323074] usbcore: registered new interface driver ums-sddr55
[   36.330303] usbcore: registered new interface driver ums-usbat
[   36.347035] xt_time: kernel timezone is -0000
[   36.580259] bus=0x1, slot = 0x0, irq=0xff
[   36.584458] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   36.593183] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   36.598781] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   36.625137] firmware init done
[   36.812700] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   36.819874] bus=0x2, slot = 0x1, irq=0xff
[   36.824156] mt76x2e 0000:02:00.0: ASIC revision: 76120044
[   36.855935] mt76x2e 0000:02:00.0: ROM patch build: 20141115060606a
[   36.967305] mt76x2e 0000:02:00.0: Firmware Version: 0.0.00
[   36.972794] mt76x2e 0000:02:00.0: Build: 1
[   36.976901] mt76x2e 0000:02:00.0: Build Time: 201507311614____
[   37.005199] mt76x2e 0000:02:00.0: Firmware running!
[   37.011551] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   37.019478] PPP generic driver version 2.4.2
[   37.025286] NET: Registered protocol family 24
[   37.032284] kmodloader: done loading kernel modules from /etc/modules.d/*
[   37.622147] urandom_read: 5 callbacks suppressed
[   37.622157] random: jshn: uninitialized urandom read (4 bytes read)
[   43.473159] random: crng init done
[   43.503649] mtk_soc_eth 1e100000.ethernet: PPE started
[   43.515606] device eth0 entered promiscuous mode
[   43.522595] br-lan: port 1(eth0.1) entered blocking state
[   43.528282] br-lan: port 1(eth0.1) entered disabled state
[   43.534447] device eth0.1 entered promiscuous mode
[   43.544216] br-lan: port 1(eth0.1) entered blocking state
[   43.549689] br-lan: port 1(eth0.1) entered forwarding state
[   43.555730] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   44.195354] pppoe-wan: renamed from ppp0
[   44.555862] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   45.946098] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   45.956897] br-lan: port 2(wlan0) entered blocking state
[   45.962599] br-lan: port 2(wlan0) entered disabled state
[   45.968887] device wlan0 entered promiscuous mode
[   47.911791] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   47.918728] br-lan: port 2(wlan0) entered blocking state
[   47.924042] br-lan: port 2(wlan0) entered forwarding state
[  270.236297] xhci-mtk 1e1c0000.xhci: Cannot set link state.
[  270.241969] usb usb2-port1: cannot disable (err = -32)
[  270.247219] usb 2-1: USB disconnect, device number 2
[  270.252577] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr                                                                                                                                                              command & xHCI internal state.
[  270.262366] xhci-mtk 1e1c0000.xhci: ep deq seg = 8e99d880, deq ptr = af78c010
[  283.426008] usb 2-1: new SuperSpeed USB device number 3 using xhci-mtk
[  283.460244] scsi host0: uas
[  283.464155] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream r                                                                                                                                                             ing slot 1 ep 4
[  283.472616] xhci-mtk 1e1c0000.xhci: @000000000f759400 0e99f200 00000000 05000                                                                                                                                                             000 01058001
[  283.480798] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream r                                                                                                                                                             ing slot 1 ep 6
[  283.489211] xhci-mtk 1e1c0000.xhci: @000000000f759410 0e99f100 00000000 05000                                                                                                                                                             000 01078001
[  304.565705] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CM                                                                                                                                                             D IN
[  304.573272] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[  304.579561] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr                                                                                                                                                              command & xHCI internal state.
[  304.589346] xhci-mtk 1e1c0000.xhci: ep deq seg = 8e99d500, deq ptr = ae95e010
[  305.655721] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -1                                                                                                                                                             6
[  305.662980] scsi 0:0:0:0: Device offlined - not ready after error recovery

Installed packages

base-files
190-r7141-e4d0ee5af5
block-mount
2018-04-16-e2436836-1
busybox
1.28.3-4
dnsmasq
2.80test2-3
dropbear
2017.75-5
firewall
2018-05-14-b45e162e-1
fstools
2018-04-16-e2436836-1
fwtool
1
hostapd-common 2018-04-09-fa617ee6-5
ip6tables 1.6.2-1
iptables 1.6.2-1
iw 4.14-1
iwinfo 2018-02-15-223e09bf-1
jshn 2018-04-12-6eff829d-1
jsonfilter 2018-02-04-c7e938d6-1
kernel 4.14.54-1-582c8de6645..421
kmod-cfg80211 4.14.54+2017-11-01-9
kmod-crypto-crc32c 4.14.54-1
kmod-crypto-hash 4.14.54-1
kmod-fs-ext4 4.14.54-1
kmod-gpio-button-hotplug 4.14.54-2
kmod-ip6tables 4.14.54-1
kmod-ipt-conntrack 4.14.54-1
kmod-ipt-core 4.14.54-1
kmod-ipt-nat 4.14.54-1
kmod-ipt-offload 4.14.54-1
kmod-leds-gpio 4.14.54-1
kmod-lib-crc-ccitt 4.14.54-1
kmod-lib-crc16 4.14.54-1
kmod-mac80211 4.14.54+2017-11-01-9
kmod-mt76-core 4.14.54+2018-07-13-67..2-1
kmod-mt7603 4.14.54+2018-07-13-67..2-1
kmod-mt76x2 4.14.54+2018-07-13-67..2-1
kmod-nf-conntrack 4.14.54-1
kmod-nf-conntrack6 4.14.54-1
kmod-nf-flow 4.14.54-1
kmod-nf-ipt 4.14.54-1
kmod-nf-ipt6 4.14.54-1
kmod-nf-nat 4.14.54-1
kmod-nf-reject 4.14.54-1
kmod-nf-reject6 4.14.54-1
kmod-nls-base 4.14.54-1
kmod-ppp 4.14.54-1
kmod-pppoe 4.14.54-1
kmod-pppox 4.14.54-1
kmod-scsi-core 4.14.54-1
kmod-slhc 4.14.54-1
kmod-usb-core 4.14.54-1
kmod-usb-dwc3 4.14.54-1
kmod-usb-ledtrig-usbport 4.14.54-1
kmod-usb-storage 4.14.54-1
kmod-usb-storage-extras 4.14.54-1
kmod-usb-storage-uas 4.14.54-1
kmod-usb3 4.14.54-1
libblobmsg-json 2018-04-12-6eff829d-1
libc 1.1.19-1
libgcc 7.3.0-1
libip4tc 1.6.2-1
libip6tc 1.6.2-1
libiwinfo 2018-02-15-223e09bf-1
libiwinfo-lua 2018-02-15-223e09bf-1
libjson-c 0.12.1-1
libjson-script 2018-04-12-6eff829d-1
liblua 5.1.5-1
liblucihttp 2018-05-18-cb119ded-1
liblucihttp-lua 2018-05-18-cb119ded-1
libnl-tiny 0.1-5
libpthread 1.1.19-1
libubox 2018-04-12-6eff829d-1
libubus 2018-01-16-5bae22eb-1
libubus-lua 2018-01-16-5bae22eb-1
libuci 2018-03-24-5d2bf09e-1
libuclient 2017-11-02-4b87d831-1
libxtables 1.6.2-1
logd 2018-02-14-128bc35f-2
lua 5.1.5-1
luci git-18.196.56128-9112198-1
luci-app-firewall git-18.196.56128-9112198-1
luci-base git-18.196.56128-9112198-1
luci-i18n-base-ru git-18.196.56128-9112198-1
luci-i18n-firewall-ru git-18.196.56128-9112198-1
luci-lib-ip git-18.196.56128-9112198-1
luci-lib-jsonc git-18.196.56128-9112198-1
luci-lib-nixio git-18.196.56128-9112198-1
luci-mod-admin-full git-18.196.56128-9112198-1
luci-proto-ipv6 git-18.196.56128-9112198-1
luci-proto-ppp git-18.196.56128-9112198-1
luci-theme-bootstrap git-18.196.56128-9112198-1
mtd 21
netifd 2018-05-30-a580028d-1
odhcp6c 2018-04-29-5316d7f8-12
odhcpd-ipv6only 1.7-1
openwrt-keyring 2018-05-18-103a32e9-1
opkg 2017-12-07-3b417b9f-2
ppp 2.4.7-12
ppp-mod-pppoe 2.4.7-12
procd 2018-03-28-dfb68f85-1
rpcd 2018-05-13-82062195-1
rpcd-mod-rrdns 20170710
swconfig 11
ubi-utils 2.0.2-1
uboot-envtools 2018.03-1
ubox 2018-02-14-128bc35f-2
ubus 2018-01-16-5bae22eb-1
ubusd 2018-01-16-5bae22eb-1
uci 2018-03-24-5d2bf09e-1
uclient-fetch 2017-11-02-4b87d831-1
uhttpd 2018-06-26-796d42bc-1
uhttpd-mod-ubus 2018-06-26-796d42bc-1
usign 2015-07-04-ef641914-1
wireless-regdb 2017-10-20-4343d359
wpad-mini 2018-04-09-fa617ee6-5
Pavel Ondračka commented on 14.08.2018 10:51

I'm not sure if this is the same bug (please correct me if not and I'll open a new one, the error seems very similar, but the devices differ) but I have also problems when connecting external USB3 HDD to my DIR-860L router (Mediatek MT7621AT). The error messages are nearly identical and no drive is detected:

[ 119.878829] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[ 119.922416] scsi host0: uas
[ 119.929178] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 6
[ 119.945991] xhci-mtk 1e1c0000.xhci: @0000000007766170 06d77000 00000000 05000000 01078001
[ 119.962256] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 2
[ 119.979037] xhci-mtk 1e1c0000.xhci: @0000000007766180 06d77100 00000000 05000000 01038001
[ 141.408717] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[ 141.423832] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[ 141.436312] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[ 141.455886] xhci-mtk 1e1c0000.xhci: ep deq seg = 86f7d800, deq ptr = a6332010
[ 142.548599] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
[ 142.563028] scsi 0:0:0:0: Device offlined - not ready after error recovery

lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0bc2:2322 Seagate RSS LLC SRD0NF1 Expansion Portable (STEA)
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

This used to work fine in 15.05.1 but is broken now after update to 18.06.0

VIktor Elfutin commented on 19.08.2018 14:08

i have this trouble too:

[ 1119.706517] usb 2-1-port1: cannot disable (err = -71)
[ 1119.711790] usb 1-1-port1: attempt power cycle
[ 1119.716307] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1119.722269] usb 2-1-port4: cannot reset (err = -71)
[ 1119.727189] usb 2-1-port4: cannot reset (err = -71)
[ 1119.732090] usb 2-1-port4: cannot reset (err = -71)
[ 1119.737009] usb 2-1-port4: cannot reset (err = -71)
[ 1119.741910] usb 2-1-port4: cannot reset (err = -71)
[ 1119.741923] usb 2-1-port4: Cannot enable. Maybe the USB cable is bad?
[ 1119.746833] usb 2-1-port4: cannot disable (err = -71)
[ 1119.753300] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1119.758376] usb 2-1-port4: cannot reset (err = -71)
[ 1119.764315] usb 2-1-port4: cannot reset (err = -71)
[ 1119.769234] usb 2-1-port4: cannot reset (err = -71)
[ 1119.774135] usb 2-1-port4: cannot reset (err = -71)
[ 1119.779057] usb 2-1-port4: cannot reset (err = -71)
[ 1119.779070] usb 2-1-port4: Cannot enable. Maybe the USB cable is bad?
[ 1119.783959] usb 2-1-port4: cannot disable (err = -71)
[ 1119.788894] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1119.789001] usb 2-1-port4: cannot reset (err = -71)
[ 1119.795498] usb 2-1-port4: cannot reset (err = -71)
[ 1119.800618] usb 2-1-port4: cannot reset (err = -71)
[ 1119.806577] usb 2-1-port4: cannot reset (err = -71)
[ 1119.811479] usb 2-1-port4: cannot reset (err = -71)
[ 1119.811485] usb 2-1-port4: Cannot enable. Maybe the USB cable is bad?
[ 1119.816431] usb 2-1-port4: cannot disable (err = -71)
[ 1119.821338] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1119.826260] usb 2-1-port4: cannot reset (err = -71)
[ 1119.831160] usb 2-1-port4: cannot reset (err = -71)
[ 1119.837636] usb 2-1-port4: cannot reset (err = -71)
[ 1119.842709] usb 2-1-port4: cannot reset (err = -71)
[ 1119.848665] usb 2-1-port4: cannot reset (err = -71)
[ 1119.848679] usb 2-1-port4: Cannot enable. Maybe the USB cable is bad?
[ 1119.853568] usb 2-1-port4: cannot disable (err = -71)
[ 1119.858487] usb 2-1-port4: cannot disable (err = -71)
[ 1119.889778] usb 2-1: USB disconnect, device number 9
[ 1119.895346] usb 2-1-port1: attempt power cycle
[ 1120.234989] usb 2-1.4: USB disconnect, device number 10
[ 1120.264868] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[ 1120.273378] sd 0:0:0:0: [sda] Sense not available.
[ 1120.278317] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[ 1120.284608] sd 0:0:0:0: [sda] 0-byte physical blocks
[ 1120.289860] sd 0:0:0:0: [sda] Write Protect is off
[ 1120.294739] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
[ 1120.300003] sd 0:0:0:0: [sda] Asking for cache data failed
[ 1120.305787] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 1120.313317] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x01 driverbyte=0x00
[ 1120.322020] sd 0:0:0:0: [sda] Sense not available.
[ 1120.327252] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1120.574659] usb 1-1: new high-speed USB device number 10 using xhci-mtk
[ 1125.904651] usb 1-1: device descriptor read/all, error -145
[ 1126.134700] usb 2-1: new SuperSpeed USB device number 15 using xhci-mtk
[ 1126.171008] hub 2-1:1.0: USB hub found
[ 1126.175211] hub 2-1:1.0: 4 ports detected
[ 1126.534536] usb 1-1: new high-speed USB device number 11 using xhci-mtk
[ 1126.729797] hub 1-1:1.0: USB hub found
[ 1126.734040] hub 1-1:1.0: 4 ports detected
[ 1126.814894] usb 2-1.1: new SuperSpeed USB device number 16 using xhci-mtk
[ 1126.850545] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[ 1126.857635] scsi host0: usb-storage 2-1.1:1.0
[ 1126.871901] usb 1-1: USB disconnect, device number 11
[ 1126.998955] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1127.015232] usb 2-1-port4: cannot reset (err = -71)
[ 1127.020278] usb 2-1-port4: cannot reset (err = -71)
[ 1127.025563] usb 2-1-port4: cannot reset (err = -71)
[ 1127.030637] usb 2-1-port4: cannot reset (err = -71)
[ 1127.035594] usb 2-1-port4: Cannot enable. Maybe the USB cable is bad?
[ 1127.042285] usb 2-1-port4: cannot disable (err = -71)
[ 1127.047764] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1127.053805] usb 2-1-port4: cannot reset (err = -71)
[ 1127.059095] usb 2-1-port4: cannot reset (err = -71)
[ 1127.064113] usb 2-1-port4: cannot reset (err = -71)
[ 1127.069202] usb 2-1-port4: cannot reset (err = -71)
[ 1127.074327] usb 2-1-port4: cannot reset (err = -71)
[ 1127.079319] usb 2-1-port4: Cannot enable. Maybe the USB cable is bad?
[ 1127.086210] usb 2-1-port4: cannot disable (err = -71)
[ 1127.091486] usb 2-1-port4: attempt power cycle
[ 1127.096157] usb 2-1: USB disconnect, device number 15
[ 1127.434532] usb 1-1: new high-speed USB device number 12 using xhci-mtk
[ 1127.644586] xhci-mtk 1e1c0000.xhci: ERROR: unexpected setup address command completion code 0x11.
[ 1127.864530] xhci-mtk 1e1c0000.xhci: ERROR: unexpected setup address command completion code 0x11.
[ 1128.084511] usb 1-1: device not accepting address 12, error -22
[ 1128.454515] usb 1-1: new high-speed USB device number 13 using xhci-mtk
[ 1128.636661] usb 2-1.1: USB disconnect, device number 16
[ 1128.646814] hub 1-1:1.0: USB hub found
[ 1128.650947] hub 1-1:1.0: 4 ports detected
[ 1129.132091] usb 1-1: USB disconnect, device number 13
[ 1129.684519] usb 1-1: new high-speed USB device number 14 using xhci-mtk
[ 1129.844579] xhci-mtk 1e1c0000.xhci: ERROR: unexpected setup address command completion code 0x11.
[ 1130.064598] xhci-mtk 1e1c0000.xhci: ERROR: unexpected setup address command completion code 0x11.
[ 1130.284508] usb 1-1: device not accepting address 14, error -22
[ 1130.514629] usb 2-1: new SuperSpeed USB device number 21 using xhci-mtk
[ 1130.550838] hub 2-1:1.0: USB hub found
[ 1130.555067] hub 2-1:1.0: 4 ports detected
[ 1130.914513] usb 1-1: new high-speed USB device number 15 using xhci-mtk
[ 1131.109411] hub 1-1:1.0: USB hub found
[ 1131.113613] hub 1-1:1.0: 4 ports detected
[ 1131.188147] usb 1-1: USB disconnect, device number 15
[ 1131.314343] usb 2-1.1: Device not responding to setup address.
[ 1131.404523] usb 2-1: USB disconnect, device number 21
[ 1131.534687] usb 2-1.1: new SuperSpeed USB device number 22 using xhci-mtk
[ 1131.744576] usb 1-1: new high-speed USB device number 16 using xhci-mtk
[ 1137.024586] xhci-mtk 1e1c0000.xhci: Timeout while waiting for setup device command
[ 1137.244554] xhci-mtk 1e1c0000.xhci: ERROR: unexpected setup address command completion code 0x11.
[ 1137.464510] usb 1-1: device not accepting address 16, error -22
[ 1137.694637] usb 2-1: new SuperSpeed USB device number 23 using xhci-mtk
[ 1137.731071] hub 2-1:1.0: USB hub found
[ 1137.735292] hub 2-1:1.0: 4 ports detected
[ 1138.094522] usb 1-1: new high-speed USB device number 17 using xhci-mtk
[ 1138.289982] hub 1-1:1.0: USB hub found
[ 1138.294251] hub 1-1:1.0: 4 ports detected
[ 1138.374878] usb 2-1.1: new SuperSpeed USB device number 24 using xhci-mtk
[ 1138.410412] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[ 1138.417650] scsi host0: usb-storage 2-1.1:1.0
[ 1138.514627] usb 2-1.4: new SuperSpeed USB device number 25 using xhci-mtk
[ 1138.546952] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[ 1138.553804] usb-storage 2-1.4:1.0: Quirks match for vid 152d pid 0567: 5000000
[ 1138.561324] scsi host1: usb-storage 2-1.4:1.0
[ 1138.933882] usb 1-1: USB disconnect, device number 17
[ 1139.154533] usb 2-1: USB disconnect, device number 23
[ 1139.159582] usb 2-1.1: USB disconnect, device number 24
[ 1139.205863] usb 2-1.4: USB disconnect, device number 25
[ 1139.484560] usb 1-1: new high-speed USB device number 18 using xhci-mtk
[ 1144.864632] usb 1-1: device descriptor read/all, error -145
[ 1145.094672] usb 2-1: new SuperSpeed USB device number 26 using xhci-mtk
[ 1145.131044] hub 2-1:1.0: USB hub found
[ 1145.135252] hub 2-1:1.0: 4 ports detected
[ 1145.494523] usb 1-1: new high-speed USB device number 19 using xhci-mtk
[ 1145.689866] hub 1-1:1.0: USB hub found
[ 1145.694356] hub 1-1:1.0: 4 ports detected
[ 1145.774863] usb 2-1.1: new SuperSpeed USB device number 27 using xhci-mtk
[ 1145.810266] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[ 1145.817465] scsi host0: usb-storage 2-1.1:1.0
[ 1145.914643] usb 2-1.4: new SuperSpeed USB device number 28 using xhci-mtk
[ 1145.946904] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[ 1145.953718] usb-storage 2-1.4:1.0: Quirks match for vid 152d pid 0567: 5000000
[ 1145.961356] scsi host1: usb-storage 2-1.4:1.0
[ 1146.685383] usb 1-1: USB disconnect, device number 19
[ 1146.865129] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1146.871135] usb 2-1-port1: cannot reset (err = -71)
[ 1146.876131] usb 2-1-port1: cannot reset (err = -71)
[ 1146.881077] usb 2-1-port1: cannot reset (err = -71)
[ 1146.886087] usb 2-1-port1: cannot reset (err = -71)
[ 1146.891043] usb 2-1-port1: cannot reset (err = -71)
[ 1146.895927] usb 2-1-port1: Cannot enable. Maybe the USB cable is bad?
[ 1146.902436] usb 2-1-port1: cannot disable (err = -71)
[ 1146.907540] usb 2-1: USB disconnect, device number 26
[ 1146.912623] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1146.912628] usb 2-1.1: USB disconnect, device number 27
[ 1147.006030] usb 2-1.4: USB disconnect, device number 28
[ 1147.234683] usb 1-1: new high-speed USB device number 20 using xhci-mtk
[ 1147.717673] hub 1-1:1.0: USB hub found
[ 1147.723061] hub 1-1:1.0: 4 ports detected
[ 1147.854688] usb 2-1: new SuperSpeed USB device number 29 using xhci-mtk
[ 1147.888820] hub 2-1:1.0: USB hub found
[ 1147.892973] hub 2-1:1.0: 4 ports detected
[ 1148.214649] usb 2-1.4: new SuperSpeed USB device number 30 using xhci-mtk
[ 1148.246859] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[ 1148.253845] usb-storage 2-1.4:1.0: Quirks match for vid 152d pid 0567: 5000000
[ 1148.261554] scsi host0: usb-storage 2-1.4:1.0
[ 1149.345196] scsi 0:0:0:0: Direct-Access     JMicron  Generic          0124 PQ: 0 ANSI: 6
[ 1149.356174] sd 0:0:0:0: [sda] Unit Not Ready
[ 1149.360448] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
[ 1149.365772] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
[ 1169.354762] usb 2-1.1: new SuperSpeed USB device number 31 using xhci-mtk
[ 1169.390075] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[ 1169.397510] scsi host1: usb-storage 2-1.1:1.0
[ 1170.465839] scsi 1:0:0:0: Direct-Access     Generic  MassStorageClass 1536 PQ: 0 ANSI: 6
[ 1170.478366] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 1175.688986] usb 1-1: USB disconnect, device number 20
[ 1175.815347] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1175.821353] usb 2-1-port4: cannot reset (err = -71)
[ 1175.826415] usb 2-1-port4: cannot reset (err = -71)
[ 1175.831366] usb 2-1-port4: cannot reset (err = -71)
[ 1175.836394] usb 2-1-port4: cannot reset (err = -71)
[ 1175.841347] usb 2-1-port4: cannot reset (err = -71)
[ 1175.846241] usb 2-1-port4: Cannot enable. Maybe the USB cable is bad?
[ 1175.852751] usb 2-1-port4: cannot disable (err = -71)
[ 1175.857936] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1175.863927] usb 2-1-port4: cannot reset (err = -71)
[ 1175.868903] usb 2-1-port4: cannot reset (err = -71)
[ 1175.873846] usb 2-1-port4: cannot reset (err = -71)
[ 1175.878821] usb 2-1-port4: cannot reset (err = -71)
[ 1175.883766] usb 2-1-port4: cannot reset (err = -71)
[ 1175.888663] usb 2-1-port4: Cannot enable. Maybe the USB cable is bad?
[ 1175.895197] usb 2-1-port4: cannot disable (err = -71)
[ 1175.900326] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1175.904366] usb 2-1: USB disconnect, device number 29
[ 1175.904381] usb 2-1.1: USB disconnect, device number 31
[ 1176.244362] usb 1-1: new high-speed USB device number 22 using xhci-mtk
[ 1176.514462] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x07 driverbyte=0x00
[ 1176.523012] sd 0:0:0:0: [sda] Sense not available.
[ 1176.527859] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[ 1176.534015] sd 0:0:0:0: [sda] 0-byte physical blocks
[ 1176.734441] sd 0:0:0:0: [sda] Write Protect is off
[ 1176.739227] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
[ 1176.944448] sd 0:0:0:0: [sda] Asking for cache data failed
[ 1176.950040] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 1177.814457] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x07 driverbyte=0x00
[ 1177.822968] sd 0:0:0:0: [sda] Sense not available.
[ 1178.614427] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1178.735516] usb 2-1.4: USB disconnect, device number 30
[ 1181.744423] usb 1-1: unable to get BOS descriptor
[ 1186.784370] usb 1-1: unable to read config index 0 descriptor/start: -145
[ 1186.791159] usb 1-1: can't read configurations, error -145
[ 1187.164268] usb 1-1: new high-speed USB device number 23 using xhci-mtk
[ 1188.325768] hub 1-1:1.0: USB hub found
[ 1188.424057] hub 1-1:1.0: 4 ports detected
[ 1189.560485] usb 1-1: USB disconnect, device number 23
[ 1190.124384] usb 2-1: new SuperSpeed USB device number 32 using xhci-mtk
[ 1190.158477] hub 2-1:1.0: USB hub found
[ 1190.162697] hub 2-1:1.0: 4 ports detected
[ 1190.894241] usb 1-1: new high-speed USB device number 24 using xhci-mtk
[ 1191.089180] hub 1-1:1.0: USB hub found
[ 1191.094592] hub 1-1:1.0: 4 ports detected
[ 1191.174560] usb 2-1.1: new SuperSpeed USB device number 33 using xhci-mtk
[ 1191.210184] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[ 1191.217580] scsi host0: usb-storage 2-1.1:1.0
[ 1192.225707] scsi 0:0:0:0: Direct-Access     Generic  MassStorageClass 1536 PQ: 0 ANSI: 6
[ 1192.237854] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 1206.904171] usb 1-1: USB disconnect, device number 24
[ 1207.124133] usb 2-1: USB disconnect, device number 32
[ 1207.129183] usb 2-1.1: USB disconnect, device number 33
[ 1207.454137] usb 1-1: new high-speed USB device number 25 using xhci-mtk
[ 1207.949770] hub 1-1:1.0: USB hub found
[ 1207.955155] hub 1-1:1.0: 4 ports detected
[ 1208.084273] usb 2-1: new SuperSpeed USB device number 34 using xhci-mtk
[ 1208.096882] usb 1-1: USB disconnect, device number 25
[ 1213.324190] usb 2-1: device descriptor read/8, error -145
[ 1213.444095] usb 2-1: new SuperSpeed USB device number 34 using xhci-mtk
[ 1218.574153] usb 2-1: device descriptor read/8, error -145
[ 1218.694080] xhci-mtk 1e1c0000.xhci: Cannot set link state.
[ 1218.699613] usb usb2-port1: cannot disable (err = -32)
[ 1218.854047] usb 1-1: new high-speed USB device number 26 using xhci-mtk
[ 1219.040968] hub 1-1:1.0: USB hub found
[ 1219.045257] hub 1-1:1.0: 4 ports detected
[ 1219.264205] usb 2-1: new SuperSpeed USB device number 35 using xhci-mtk
[ 1219.298117] hub 2-1:1.0: USB hub found
[ 1219.302246] hub 2-1:1.0: 4 ports detected
[ 1219.624343] usb 2-1.1: new SuperSpeed USB device number 36 using xhci-mtk
[ 1219.660048] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[ 1219.667098] scsi host0: usb-storage 2-1.1:1.0
[ 1220.705540] scsi 0:0:0:0: Direct-Access     Generic  MassStorageClass 1536 PQ: 0 ANSI: 6
[ 1220.717621] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 1228.208261] usb 1-1: USB disconnect, device number 26
[ 1228.424184] usb 2-1: USB disconnect, device number 35
[ 1228.429396] usb 2-1.1: USB disconnect, device number 36
[ 1228.764064] usb 1-1: new high-speed USB device number 27 using xhci-mtk
[ 1229.317788] hub 1-1:1.0: USB hub found
[ 1229.323199] hub 1-1:1.0: 4 ports detected
[ 1230.414132] usb 2-1: new SuperSpeed USB device number 37 using xhci-mtk
[ 1234.384188] hub 1-1:1.0: Using single TT (err -145)
[ 1234.389947] hub 2-1:1.0: USB hub found
[ 1234.394098] hub 2-1:1.0: 4 ports detected
[ 1239.424014] hub 1-1:1.0: config failed, can't get hub status (err -145)
[ 1239.431370] usb 1-1: USB disconnect, device number 27
[ 1239.783915] usb 1-1: new high-speed USB device number 28 using xhci-mtk
[ 1239.978389] hub 1-1:1.0: USB hub found
[ 1239.983851] hub 1-1:1.0: 4 ports detected
[ 1240.064261] usb 2-1.1: new SuperSpeed USB device number 38 using xhci-mtk
[ 1240.099764] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[ 1240.106997] scsi host0: usb-storage 2-1.1:1.0
[ 1241.185420] scsi 0:0:0:0: Direct-Access     Generic  MassStorageClass 1536 PQ: 0 ANSI: 6
[ 1241.197660] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 1244.814769] usb 1-1: USB disconnect, device number 28
[ 1245.033903] usb 2-1: USB disconnect, device number 37
[ 1245.038952] usb 2-1.1: USB disconnect, device number 38
[ 1245.363917] usb 1-1: new high-speed USB device number 29 using xhci-mtk
[ 1245.890921] hub 1-1:1.0: USB hub found
[ 1245.896347] hub 1-1:1.0: 4 ports detected
[ 1246.024065] usb 2-1: new SuperSpeed USB device number 39 using xhci-mtk
[ 1246.058245] hub 2-1:1.0: USB hub found
[ 1246.062414] hub 2-1:1.0: 4 ports detected
[ 1246.097079] usb 1-1: USB disconnect, device number 29
[ 1246.223360] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1246.313884] usb 2-1: USB disconnect, device number 39
[ 1246.653879] usb 1-1: new high-speed USB device number 30 using xhci-mtk
[ 1248.294033] usb 2-1: new SuperSpeed USB device number 40 using xhci-mtk
[ 1248.328247] hub 2-1:1.0: USB hub found
[ 1248.332436] hub 2-1:1.0: 4 ports detected
[ 1252.223939] usb 1-1: unable to read config index 0 descriptor/start: -145
[ 1252.230715] usb 1-1: can't read configurations, error -145
[ 1252.603847] usb 1-1: new high-speed USB device number 31 using xhci-mtk
[ 1252.798059] hub 1-1:1.0: USB hub found
[ 1252.803516] hub 1-1:1.0: 4 ports detected
[ 1252.884166] usb 2-1.1: new SuperSpeed USB device number 41 using xhci-mtk
[ 1252.918669] usb 2-1.1: rejected 1 configuration due to insufficient available bus power
[ 1252.926769] usb 2-1.1: no configuration chosen from 1 choice
[ 1254.484517] usb 1-1: USB disconnect, device number 31
[ 1254.703875] usb 2-1: USB disconnect, device number 40
[ 1254.708925] usb 2-1.1: USB disconnect, device number 41
[ 1255.033854] usb 1-1: new high-speed USB device number 32 using xhci-mtk
[ 1255.558331] hub 1-1:1.0: USB hub found
[ 1255.563684] hub 1-1:1.0: 4 ports detected
[ 1255.693989] usb 2-1: new SuperSpeed USB device number 42 using xhci-mtk
[ 1255.728220] hub 2-1:1.0: USB hub found
[ 1255.732389] hub 2-1:1.0: 4 ports detected
[ 1255.879985] usb 1-1: USB disconnect, device number 32
[ 1256.006214] hub 2-1:1.0: hub_ext_port_status failed (err = -71)
[ 1256.093820] usb 2-1: USB disconnect, device number 42
[ 1256.433830] usb 1-1: new high-speed USB device number 33 using xhci-mtk
[ 1256.955018] hub 1-1:1.0: USB hub found
[ 1256.960421] hub 1-1:1.0: 4 ports detected
[ 1257.030927] usb 1-1: USB disconnect, device number 33
[ 1257.093984] xhci-mtk 1e1c0000.xhci: ERROR: unexpected setup address command completion code 0x11.
[ 1257.313867] xhci-mtk 1e1c0000.xhci: ERROR: unexpected setup address command completion code 0x11.
[ 1257.533814] usb 2-1: device not accepting address 43, error -22
[ 1257.539772] xhci-mtk 1e1c0000.xhci: Cannot set link state.
[ 1257.545306] usb usb2-port1: cannot disable (err = -32)
[ 1257.693797] usb 1-1: new high-speed USB device number 34 using xhci-mtk
[ 1257.880806] hub 1-1:1.0: USB hub found
[ 1257.884972] hub 1-1:1.0: 4 ports detected
[ 1258.103959] usb 2-1: new SuperSpeed USB device number 44 using xhci-mtk
[ 1258.138094] hub 2-1:1.0: USB hub found
[ 1258.142272] hub 2-1:1.0: 4 ports detected
[ 1258.464112] usb 2-1.1: new SuperSpeed USB device number 45 using xhci-mtk
[ 1258.499635] usb-storage 2-1.1:1.0: USB Mass Storage device detected
[ 1258.506601] scsi host0: usb-storage 2-1.1:1.0
[ 1260.335451] usb 2-1.1: USB disconnect, device number 45
ryu4184152419 commented on 28.08.2018 11:39

I'm Similar troubles "xhci-hcd"

dmesg | grep usb

[4.974102] usbcore: registered new interface driver usbfs
[4.979684] usbcore: registered new interface driver hub
[4.985067] usbcore: registered new device driver usb
[5.010360] bcm_ns_usb 3 18105000.usb 3-phy: Registered Broadcom Northstar USB 3.0 PHY driver
[5.097450] bcm_ns_usb 3 18105000.usb 3-phy: Timeout waiting for register c 8 acb 000
[5.179270] usb usb 4: We do not know the algorithms for LPM for this host, disabling LPM.
[5.697683] usb 4-1: new SuperSpeed ​​USB device number 2 using xhci-hcd
[6.297454] usb 2-2: new high-speed USB device number 3 using ehci-platform
[330.633215] usb-storage 2 - 2: 1.0: USB Mass Storage device detected
[330.639724] scsi host 0: usb-storage 2 - 2: 1.0
[330.644416] usbcore: registered new interface driver usb-storage
lsusb -t

/: Bus 04.Port 1: Dev 1, Class = root_hub, Driver = xhci-hcd / 1p, 5000 M
    | __ Port 1: Dev 2, If 0, Class = Mass Storage, Driver =, 5000 M
/: Bus 03. Port 1: Dev 1, Class = root_hub, Driver = xhci-hcd / 0p, 480 M
/: Bus 02.Port 1: Dev 1, Class = root_hub, Driver = ehci-platform / 2p, 480M
    | __ Port 2: Dev 3, If 0, Class = Mass Storage, Driver = usb-storage, 480 M
/: Bus 01.Port 1: Dev 1, Class = root_hub, Driver = ohci-platform / 2p, 12M
Юрий Дигтярь commented on 20.09.2018 15:37

- Xiaomi Mi WiFi Router 3G
- OpenWrt 18.06.1 r7258-5eb055306f
- After connecting the docking station(USB3.0 HDD docking station (JMS567 chipset) - 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 0x01401198 hci version 0x96 quirks 0x00210010
[ 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=0x12 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 0x01401198 hci version 0x96 quirks 0x00210010
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=0x12 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

ryu4184152419 commented on 28.09.2018 09:58

update 18.06.1 (BCM53xx wzr-1750dhp)

kernel log

[ 4.985278] usbcore: registered new interface driver usbfs
[ 4.990906] usbcore: registered new interface driver hub
[ 4.996302] usbcore: registered new device driver usb
[ 5.005484] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.012955] ehci-platform: EHCI generic platform driver
[ 5.020115] ehci-platform 18021000.ehci: EHCI Host Controller
[ 5.025878] ehci-platform 18021000.ehci: new USB bus registered, assigned bus number 1
[ 5.029930] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.030835] ohci-platform: OHCI generic platform driver
[ 5.031082] ohci-platform 18022000.ohci: Generic Platform OHCI controller
[ 5.031112] ohci-platform 18022000.ohci: new USB bus registered, assigned bus number 2
[ 5.031280] ohci-platform 18022000.ohci: irq 37, io mem 0x18022000
[ 5.066172] ehci-platform 18021000.ehci: irq 37, io mem 0x18021000
[ 5.098464] ehci-platform 18021000.ehci: USB 2.0 started, EHCI 1.00
[ 5.101756] hub 2-0:1.0: USB hub found
[ 5.101861] hub 2-0:1.0: 2 ports detected
[ 5.113185] hub 1-0:1.0: USB hub found
[ 5.116998] hub 1-0:1.0: 2 ports detected
[ 5.176990] xhci-hcd 18023000.xhci: xHCI Host Controller
[ 5.182324] xhci-hcd 18023000.xhci: new USB bus registered, assigned bus number 3
[ 5.190159] xhci-hcd 18023000.xhci: hcc params 0x02501164 hci version 0x100 quirks 0x20010010
[ 5.198727] xhci-hcd 18023000.xhci: irq 38, io mem 0x18023000
[ 5.205217] hub 3-0:1.0: USB hub found
[ 5.209215] hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
[ 5.216570] xhci-hcd 18023000.xhci: xHCI Host Controller
[ 5.221916] xhci-hcd 18023000.xhci: new USB bus registered, assigned bus number 4
[ 5.229402] xhci-hcd 18023000.xhci: Host supports USB 3.0 SuperSpeed
[ 5.247110] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 5.255814] hub 4-0:1.0: USB hub found
[ 5.259789] hub 4-0:1.0: 1 port detected
[ 5.268090] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.277267] init: - preinit -
[ 5.677701] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 6.227213] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6.233166] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[ 6.318479] usb 1-2: new high-speed USB device number 3 using ehci-platform
[ 7.318527] bgmac_bcma bcma0:3 eth0: Link is Up - 1Gbps/Full - flow control off
[ 7.325852] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 7.332483] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[ 9.450586] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 595
[ 9.509607] UBIFS (ubi0:1): recovery needed
[ 9.627679] UBIFS (ubi0:1): recovery completed
[ 9.632238] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[ 9.640085] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 9.649977] UBIFS (ubi0:1): FS size: 118976512 bytes (113 MiB, 937 LEBs), journal size 5967872 bytes (5 MiB, 47 LEBs)
[ 9.660556] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[ 9.667160] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID E23764AF-743D-4B32-BDD3-7A392255A5BD, small LPT model
[ 9.687112] mount_root: loading kmods from internal overlay
[ 9.803893] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[ 9.979783] SCSI subsystem initialized
[ 10.000707] usb-storage 1-2:1.0: USB Mass Storage device detected
[ 10.007366] scsi host0: usb-storage 1-2:1.0
[ 10.012088] usbcore: registered new interface driver usb-storage
[ 10.023237] xhci-hcd 18023000.xhci: ERROR: unexpected command completion code 0x11. [ 10.068592] uas: probe of 4-1:1.0 failed with error -12 [ 10.073911] usbcore: registered new interface driver uas
[ 10.079418] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[ 10.241576] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[ 10.253047] block: extroot: not configured
[ 10.288947] mount_root: switching to ubifs overlay
[ 10.311661] urandom-seed: Seeding with /etc/urandom.seed
[ 10.428056] procd: - early -
[ 10.431095] procd: - watchdog -
[ 11.078648] procd: - watchdog -
[ 11.082064] procd: - ubus -
[ 11.160543] scsi 0:0:0:0: Direct-Access PT P-US16G2-SL PMAP PQ: 0 ANSI: 6
[ 11.170632] procd: - init -
[ 11.475598] kmodloader: loading kernel modules from /etc/modules.d/*
[ 11.490261] zram: Added device: zram0
[ 11.497308] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 11.827022] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 11.835064] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 11.843646] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 12.169206] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[ 12.342467] usbcore: registered new interface driver ums-alauda
[ 12.349489] usbcore: registered new interface driver ums-cypress
[ 12.356602] usbcore: registered new interface driver ums-datafab
[ 12.363743] usbcore: registered new interface driver ums-freecom
[ 12.371141] usbcore: registered new interface driver ums-isd200
[ 12.378278] usbcore: registered new interface driver ums-jumpshot
[ 12.385616] usbcore: registered new interface driver ums-karma
[ 12.392806] usbcore: registered new interface driver ums-sddr09
[ 12.400042] usbcore: registered new interface driver ums-sddr55
[ 12.407279] usbcore: registered new interface driver ums-usbat

lsusb

Bus 001 Device 003: ID 13fe:4100 Kingston Technology Company Inc. Flash drive
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 152d:0567 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb -t

/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M

  |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=, 5000M

/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/0p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/2p, 480M

  |__ Port 2: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M

opkg list-installed | grep usb

kmod-phy-bcm-ns-usb2 - 4.14.63-1
kmod-phy-bcm-ns-usb3 - 4.14.63-1
kmod-usb-bcma - 4.14.63-1
kmod-usb-core - 4.14.63-1
kmod-usb-ehci - 4.14.63-1
kmod-usb-ledtrig-usbport - 4.14.63-1
kmod-usb-ohci - 4.14.63-1
kmod-usb-storage - 4.14.63-1
kmod-usb-storage-extras - 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

starP-W commented on 02.11.2018 16:55

I have the similar trouble. All of my mobile HDD are unable to connect to the router, but USB flash disks works well.

Device: Newifi D2

OpenWrt SNAPSHOT r8407-dceee8cc09

  • dmesg
[  302.359587] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[  302.395742] scsi host0: uas
[  302.399870] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 6
[  302.408318] xhci-mtk 1e1c0000.xhci: @000000000f5da170 0f0cf000 00000000 05000000 01078001
[  302.416499] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 2
[  302.424916] xhci-mtk 1e1c0000.xhci: @000000000f5da180 0f0cf100 00000000 05000000 01038001
[  323.160143] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN 
[  323.167714] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[  323.174029] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[  323.183823] xhci-mtk 1e1c0000.xhci: ep deq seg = 8e740380, deq ptr = aeaf0010
[  324.270371] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
[  324.277602] scsi 0:0:0:0: Device offlined - not ready after error recovery
  • lsusb && lsusb -t
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 4971:1024 SimpleTech
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
/:  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
  • opkg list-installed | grep usb
kmod-usb-core - 4.14.78-1
kmod-usb-ledtrig-usbport - 4.14.78-1
kmod-usb-storage - 4.14.78-1
kmod-usb-storage-extras - 4.14.78-1
kmod-usb-storage-uas - 4.14.78-1
kmod-usb3 - 4.14.78-1
libusb-1.0 - 1.0.22-1
usbutils - 007-9
Chilau He commented on 11.11.2018 15:49

It's caused by UAS kernel module, which is a much fast protocol for USB3 storage device.
However, seems currently it work not so good. The driver cannot interpret USB3 OUT ENDPOINT correctly when UAS has done some work on the device node (maybe DMA align or bulk transfer size).
One not so good neither bad solution is to DISABLE UAS SUPPORT in OpenWRT building system.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing