[xiaomi R3G] HDD USB3 driver not working ( JMS578 )

WIth JMS578 JMicron + HDD is not detected USB\VID_152D&PID_0578
Tested with a normal HDD and a SSD

[ 1254.196443] usb 2-1: new SuperSpeed USB device number 8 using xhci-mtk
[ 1254.230569] scsi host0: uas
[ 1254.234469] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 4
[ 1254.242907] xhci-mtk 1e1c0000.xhci: @000000000f77aab0 0f012000 00000000 05000000 01058000
[ 1254.251055] xhci-mtk 1e1c0000.xhci: ERROR Transfer event for unknown stream ring slot 1 ep 6
[ 1254.259455] xhci-mtk 1e1c0000.xhci: @000000000f77aac0 0f012100 00000000 05000000 01078000
[ 1275.456298] scsi 0:0:0:0: tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN
[ 1275.463865] scsi 0:0:0:0: tag#0 CDB: opcode=0x12 12 00 00 00 24 00
[ 1275.470182] xhci-mtk 1e1c0000.xhci: Mismatch between completed Set TR Deq Ptr command & xHCI internal state.
[ 1275.479971] xhci-mtk 1e1c0000.xhci: ep deq seg = 8f73d680, deq ptr = af77e010
[ 1276.566285] scsi host0: uas_eh_device_reset_handler FAILED to get lock err -16
[ 1276.573505] scsi 0:0:0:0: Device offlined - not ready after error recovery

With others USB3 i have no problems

NorelSys 1066 VID_2537&PID_1066
ASMT 2115 VID_174C&PID_1153
JMicron JMS567 VID_152D&PID_0567

no problem with a YouHua WR1200JS ( Port is USB2 ) ...

try the uas-quirks method
https://en.opensuse.org/SDB:USB_3.0_Hard_Drive_troubleshooting

Should be fixed in kernel 4.14.34, see https://bugs.openwrt.org/index.php?do=details&task_id=1537

4.14.34 ???

My version compiled is:

OpenWrt SNAPSHOT r8773-3c04d10483 /LuCI Master (git-18.350.50885-91a73be)
Version du noyau
4.14.88

port is only USB3

Have you tried the quirks method mentioned by fuller?

quirks method :

I do not know how to do it ... insmod ??

it is not very boring because anyway the speed of the USB3 port is not better than USB2 when a box works !!!

I regret the purchase because compared to the WR1200JS on the one hand it 's really not easy to install OpenWrt, costs a little more expensive, does not have many LEDs to view the operation and USB3 does not work no better than the USB2 of the other case …
also there is not a flash memory SPI to 8 pins easy to replace

Example: https://www.systutorials.com/linux-kernels/61077/uas-ignore-uas-for-norelsys-ns1068x-chips-linux-4-14-14/

JMicron JMS561U also not work.

[    6.066020] init: Console is alive
[    6.069764] init: - watchdog -
[    6.632840] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.720888] usbcore: registered new interface driver usbfs
[    6.726496] usbcore: registered new interface driver hub
[    6.731960] usbcore: registered new device driver usb
[    6.745588] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.750963] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[    6.766359] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x00210010
[    6.774836] xhci-mtk 1e1c0000.xhci: irq 19, io mem 0x1e1c0000
[    6.781592] hub 1-0:1.0: USB hub found
[    6.785406] hub 1-0:1.0: 2 ports detected
[    6.789995] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[    6.795305] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[    6.802818] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0  SuperSpeed
[    6.809437] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.818372] hub 2-0:1.0: USB hub found
[    6.822186] hub 2-0:1.0: 1 port detected
[    6.829029] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.846557] init: - preinit -
[    7.236380] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[    7.318037] random: procd: uninitialized urandom read (4 bytes read)
[    7.548783] mtk_soc_eth 1e100000.ethernet: PPE started
[   10.772498] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 485
[   10.846889] UBIFS (ubi0:1): recovery needed
[   11.031196] UBIFS (ubi0:1): recovery completed
[   11.035776] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.043597] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.053488] UBIFS (ubi0:1): FS size: 112373760 bytes (107 MiB, 885 LEBs), journal size 5586944 bytes (5 MiB, 44 LEBs)
[   11.064058] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.070662] UBIFS (ubi0:1): media format: w4/r0 (latest is w5/r0), UUID A8DAA54C-2A67-4695-BD5A-01ED4419FC18, small LPT model
[   11.095206] mount_root: loading kmods from internal overlay
[   11.288448] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   11.524066] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   11.568643] SCSI subsystem initialized
[   11.585220] ehci-platform: EHCI generic platform driver
[   11.600489] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   11.607713] ohci-platform: OHCI generic platform driver
[   11.620894] uhci_hcd: USB Universal Host Controller Interface driver
[   11.641079] usbcore: registered new interface driver usb-storage
[   11.647391] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   11.874461] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   11.886295] block: extroot: not configured
[   11.938937] mount_root: switching to ubifs overlay
[   11.970943] urandom-seed: Seeding with /etc/urandom.seed
[   12.075819] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
[   12.094261] procd: - early -
[   12.097270] procd: - watchdog -
[   12.776326] procd: - watchdog -
[   12.779772] procd: - ubus -
[   12.844807] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.854894] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.861685] random: ubusd: uninitialized urandom read (4 bytes read)
[   12.868963] procd: - init -
[   13.275491] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.312776] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   13.688633] fuse init (API version 7.26)
[   13.696770] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   13.704760] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   13.713416] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.041807] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   14.258175] usbcore: registered new interface driver ums-alauda
[   14.265132] usbcore: registered new interface driver ums-cypress
[   14.272408] usbcore: registered new interface driver ums-datafab
[   14.279495] usbcore: registered new interface driver ums-freecom
[   14.286702] usbcore: registered new interface driver ums-isd200
[   14.293788] usbcore: registered new interface driver ums-jumpshot
[   14.300983] usbcore: registered new interface driver ums-karma
[   14.309574] usbcore: registered new interface driver ums-sddr09
[   14.316765] usbcore: registered new interface driver ums-sddr55
[   14.323992] usbcore: registered new interface driver ums-usbat
[   14.341020] xt_time: kernel timezone is -0000
[   14.572186] bus=0x1, slot = 0x0, irq=0xff
[   14.576422] mt7603e 0000:01:00.0: ASIC revision: 76030010
[   14.585104] mt7603e 0000:01:00.0: Firmware Version: ap_pcie
[   14.590700] mt7603e 0000:01:00.0: Build Time: 20160107100755
[   14.636157] firmware init done

Hello!

I added in the modprod:

root@office:~# cat /etc/modprobe.d/ignore_uas.conf 
options usb-storage quirks=0bc2:2320:u
options usb-storage quirks=1d6b:0002:u
options usb-storage quirks=1d6b:0003:u

I rebooted, but no change. It is somewhere in the kernel for sure as it works on LEDE:
I wish I could use my overlay in 18.06.2, now is possible.

any update?
here i have same issue:

root@open-:/etc/modprobe.d# 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
root@open-:/etc/modprobe.d#

i could only solve it by using a different usb storage. but now it works perfectly.