Rozbitý USB3 UAS po update (restartu) na 3.11.3

Zdravím,
před týdnem (26.3.) mi router poslal mailovou notifikaci, že potřebuje restart. Nevěnoval jsem tomu pozornost a router se 29.3. restartoval.

Pravděpodobně od té doby nejede USB3 a UAS. Mám externí rámeček na dva disky, který před restartem fungoval a na jiném stroji se mi hlásí jako UAS kompatibilní.

Na turrisu vypisuje v dmesg toto:

[ 3327.468869] usb 5-1: new SuperSpeed USB device number 4 using xhci-hcd
[ 3327.490089] usb 5-1: USB controller f10f8000.usb3 does not support streams, which are required by the UAS driver.
[ 3327.490099] usb 5-1: Please try an other USB controller if you wish to use UAS.
[ 3327.490105] usb-storage 5-1:1.0: USB Mass Storage device detected
[ 3327.493700] scsi host5: usb-storage 5-1:1.0
[ 3350.087394] usb 5-1: reset SuperSpeed USB device number 4 using xhci-hcd

a lsusb -t:
|__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M

Bohužel disky nepřipojí ani v TOS režimu.

|Device |Turris Omnia - rtrom01|
|Turris OS version |3.11.3|
|Kernel version |4.4.176-7bc33afbb1b35f5830b2b1b42c9cd8a0-0|

Co s tím?

Vypadá to podobně, jako následující chyby popisující chybu přímo v jádře v UAS modulu:
https://bugs.openwrt.org/index.php?do=details&task_id=1637
https://bugs.openwrt.org/index.php?do=details&task_id=1305&pagenum=7

Tak je rozbitá celá řada 3.11.x a na 3.10.8 se mi nepodařilo downgradovat.

Podíváme se na to, děkujeme za nahlášení.

Je nějaká možnost downgrade na 3.10.8 a níže? Abych mohl disky rozjet aspoň v nějakém režimu.

Pokud downgrade pustím podle: https://doc.turris.cz/doc/cs/howto/downgrade_packages

Tak mi to skončí chybou DIE: a nějaké neexistující řádky či co (zapomněl jsem si ji poznamenat).

Nebo musím flashnout “nový” starý OS pomocí medkitu?

Chybu potvrzuji i u svého USB 3.0 UAS compatible rámečku, chipset JMS580, nicméně disk se i přesto připojí a je ho možné provozovat s driverem usb-storage.

776921.977643] usb 3-1: new SuperSpeed USB device number 3 using xhci-hcd
[776921.999008] usb 3-1: USB controller f10f0000.usb3 does not support streams, which are required by the UAS driver.
[776921.999019] usb 3-1: Please try an other USB controller if you wish to use UAS.
[776921.999025] usb-storage 3-1:1.0: USB Mass Storage device detected
[776922.003704] scsi host3: usb-storage 3-1:1.0
[776922.997850] scsi 3:0:0:0: Direct-Access     ST500LM0 00-SSHD-8GB      0202 PQ: 0 ANSI: 6
[776925.367942] sd 3:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[776925.368125] sd 3:0:0:0: [sdb] Write Protect is off
[776925.368132] sd 3:0:0:0: [sdb] Mode Sense: 47 00 00 08
[776925.368305] sd 3:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[776925.369378]  sdb: sdb1
[776925.371077] sd 3:0:0:0: [sdb] Attached SCSI disk

Připojí se ti sám od sebe nebo si s tím musel něco dělat? Mě se totiž ani nepřipojí.

Jinak mě rámeček běží na JMS56x:

[96862.208725] usb 1-1.5: New USB device found, idVendor=152d, idProduct=8561
[96862.208741] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[96862.208750] usb 1-1.5: Product: JMS56x Series
[96862.208758] usb 1-1.5: Manufacturer: JMicron

Já neměl problém ani tak s nepřipojením disku, jako s tím, že se mi právě nechtěl načíst UAS driver, a proto jsem tady. Otázka je, jestli Váš řadič umí připojení bez UAS.
Když tak mi sem můžete hodit výpis z opkg list-installed | grep usb a lsusb -v -d 152d:8561

Podle mě to řadič v rámečku umí. Teď jede v rPI 3B+ kde píše, že UAS taky nejede, ale připojí se:

[96862.208750] usb 1-1.5: Product: JMS56x Series
[96862.208758] usb 1-1.5: Manufacturer: JMicron
[96862.208766] usb 1-1.5: SerialNumber: 00A12345680E
[96862.210060] usb 1-1.5: The driver for the USB controller dwc_otg_hcd does not support scatter-gather which is
[96862.210071] usb 1-1.5: required by the UAS driver. Please try an other USB controller if you wish to use UAS.
[96862.210082] usb-storage 1-1.5:1.0: USB Mass Storage device detected

A výpis opkg list-installed | grep usb:

kmod-ledtrig-usbdev - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-core - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-net - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-net-cdc-ether - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-net-qmi-wwan - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-net-rndis - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-serial - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-serial-option - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-serial-qualcomm - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-serial-wwan - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-storage - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-storage-extras - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-storage-uas - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-uhci - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb-wdm - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb2 - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
kmod-usb3 - 4.4.176+0-1-7bc33afbb1b35f5830b2b1b42c9cd8a0-0
libusb-1.0 - 1.0.19-1
usb-modeswitch - 2014-08-26-993a9a542791953c4804f7ddbb3a07756738e37a
usbutils - 007-1

Následuje lsusb -v -d 152d:8561:

Bus 003 Device 002: ID 152d:8561 JMicron Technology Corp. / JMicron USA Technology Corp. 
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               3.00
bDeviceClass            0 (Defined at Interface level)
bDeviceSubClass         0 
bDeviceProtocol         0 
bMaxPacketSize0         9
idVendor           0x152d JMicron Technology Corp. / JMicron USA Technology Corp.
idProduct          0x8561 
bcdDevice            1.07
iManufacturer           1 JMicron
iProduct                2 JMS56x Series
iSerial                 5 00A12345680E
bNumConfigurations      1
Configuration Descriptor:
bLength                 9
bDescriptorType         2
wTotalLength          121
bNumInterfaces          1
bConfigurationValue     1
iConfiguration          4 USB Mass Storage
bmAttributes         0xc0
Self Powered
MaxPower                2mA
Interface Descriptor:
bLength                 9
bDescriptorType         4
bInterfaceNumber        0
bAlternateSetting       0
bNumEndpoints           2
bInterfaceClass         8 Mass Storage
bInterfaceSubClass      6 SCSI
bInterfaceProtocol     80 Bulk-Only
iInterface              6 MSC Bulk-Only Transfer
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x81  EP 1 IN
bmAttributes            2
Transfer Type            Bulk
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0400  1x 1024 bytes
bInterval               0
bMaxBurst              15
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x02  EP 2 OUT
bmAttributes            2
Transfer Type            Bulk
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0400  1x 1024 bytes
bInterval               0
bMaxBurst              15
Interface Descriptor:
bLength                 9
bDescriptorType         4
bInterfaceNumber        0
bAlternateSetting       1
bNumEndpoints           4
bInterfaceClass         8 Mass Storage
bInterfaceSubClass      6 SCSI
bInterfaceProtocol     98 
iInterface             10 MSC BOT/UAS Transfer
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x01  EP 1 OUT
bmAttributes            2
Transfer Type            Bulk
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0400  1x 1024 bytes
bInterval               0
bMaxBurst               0
Command pipe (0x01)
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x82  EP 2 IN
bmAttributes            2
Transfer Type            Bulk
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0400  1x 1024 bytes
bInterval               0
bMaxBurst               0
MaxStreams             32
Status pipe (0x02)
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x83  EP 3 IN
bmAttributes            2
Transfer Type            Bulk
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0400  1x 1024 bytes
bInterval               0
bMaxBurst              15
MaxStreams             32
Data-in pipe (0x03)
Endpoint Descriptor:
bLength                 7
bDescriptorType         5
bEndpointAddress     0x04  EP 4 OUT
bmAttributes            2
Transfer Type            Bulk
Synch Type               None
Usage Type               Data
wMaxPacketSize     0x0400  1x 1024 bytes
bInterval               0
bMaxBurst              15
MaxStreams             32
Data-out pipe (0x04)
Binary Object Store Descriptor:
bLength                 5
bDescriptorType        15
wTotalLength           22
bNumDeviceCaps          2
USB 2.0 Extension Device Capability:
bLength                 7
bDescriptorType        16
bDevCapabilityType      2
bmAttributes   0x00000f0e
Link Power Management (LPM) Supported
SuperSpeed USB Device Capability:
bLength                10
bDescriptorType        16
bDevCapabilityType      3
bmAttributes         0x00
wSpeedsSupported   0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport   1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat          10 micro seconds
bU2DevExitLat          32 micro seconds
Device Status:     0x0001
Self Powered

Ale když se teď dívám do dmesg, tak mi ty disky Turris teď připojil. To je pro mě velká záhada.

[248589.483419] usb 3-1: new SuperSpeed USB device number 2 using xhci-hcd
[248589.505105] usb 3-1: USB controller f10f0000.usb3 does not support streams, which are required by the UAS driver.
[248589.505114] usb 3-1: Please try an other USB controller if you wish to use UAS.
[248589.505120] usb-storage 3-1:1.0: USB Mass Storage device detected
[248589.505310] scsi host2: usb-storage 3-1:1.0
[248590.503660] scsi 2:0:0:0: Direct-Access     WDC WD10 JPVX-08JC3T5     0107 PQ: 0 ANSI: 6
[248590.504579] scsi 2:0:0:1: Direct-Access     WDC WD75 00BPVT-08HXZT3   0107 PQ: 0 ANSI: 6
[248590.504860] sd 2:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[248590.505228] sd 2:0:0:0: [sda] Write Protect is off
[248590.505236] sd 2:0:0:0: [sda] Mode Sense: 47 00 10 08
[248590.505333] sd 2:0:0:1: [sdb] 1465149168 512-byte logical blocks: (750 GB/699 GiB)
[248590.505892] sd 2:0:0:0: [sda] No Caching mode page found
[248590.511348] sd 2:0:0:0: [sda] Assuming drive cache: write through
[248590.517955] sd 2:0:0:1: [sdb] Write Protect is off
[248590.517964] sd 2:0:0:1: [sdb] Mode Sense: 47 00 10 08
[248590.518464] sd 2:0:0:1: [sdb] No Caching mode page found
[248590.523926] sd 2:0:0:1: [sdb] Assuming drive cache: write through
[248590.695835]  sda: sda1
[248590.696269]  sdb: sdb1
[248590.698965] sd 2:0:0:0: [sda] Attached SCSI disk
[248590.699181] sd 2:0:0:1: [sdb] Attached SCSI disk

Mohu poprosit o radu jak provozovat rámeček s driverem usb-storage?

Mám podobný problém s MOX modulem F, kde se rámeček připojí a použije UAS driver. Následně se každých 20-30 vteřin resetuje.

Zkusil jsem postupovat podle těchto návodů ale nějak se mi nedaří: