[FS#4033] Kmod-usb-storage-uas bug with USB3.0

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Sun Sep 12 01:18:27 PDT 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Nautilus Chan (NautilusChan) 

Attached to Project - OpenWrt/LEDE Project
Summary - Kmod-usb-storage-uas bug with USB3.0
Task Type - Bug Report
Category - Kernel
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - High
Priority - Very Low
Reported Version - All
Due in Version - Undecided
Due Date - Undecided
Details - netgear R8000,OpenWrt 21.02.0 r16279-5cc0535800.
It can't recognize the attached USB storage device(a disk bay,Terra Master DAS) when the device plugin USB3.0 port.
__lsusb info:__

root at OpenWrt:~# lsusb
Bus 001 Device 009: ID 0480:a004 Toshiba External USB HDD
Bus 002 Device 001: ID 1d6b:0001 Linux 5.4.143 ohci_hcd Generic Platform OHCI controller
Bus 004 Device 013: ID 0480:a006 Terra Master DAS
Bus 001 Device 008: ID 174c:2074 Asmedia ASM107x
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.143 ehci_hcd EHCI Host Controller
Bus 004 Device 012: ID 0480:a006 Terra Master DAS
Bus 004 Device 011: ID 174c:3074 Asmedia ASM107x
Bus 004 Device 001: ID 1d6b:0003 Linux 5.4.143 xhci-hcd xHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux 5.4.143 xhci-hcd xHCI Host Controller
root at OpenWrt:~# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 11, If 0, Class=, Driver=hub/4p, 5000M
        |__ Port 1: Dev 12, If 0, Class=, Driver=, 5000M
        |__ Port 2: Dev 13, If 0, Class=, Driver=usb-storage, 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 1: Dev 8, If 0, Class=, Driver=hub/4p, 480M
        |__ Port 4: Dev 9, If 0, Class=, Driver=usb-storage, 480M

__dmesg info:__

Sun Sep 12 11:58:22 2021 kern.info kernel: [ 1720.747499] usb 1-1: USB disconnect, device number 6
Sun Sep 12 11:58:22 2021 kern.info kernel: [ 1720.752537] usb 1-1.4: USB disconnect, device number 7
Sun Sep 12 11:58:22 2021 kern.info kernel: [ 1721.561019] usb 4-1: USB disconnect, device number 8
Sun Sep 12 11:58:22 2021 kern.info kernel: [ 1721.566026] usb 4-1.1: USB disconnect, device number 9
Sun Sep 12 11:58:22 2021 kern.info kernel: [ 1721.578058] usb 4-1.2: USB disconnect, device number 10
Sun Sep 12 11:58:51 2021 kern.info kernel: [ 1750.400485] usb 1-1: new high-speed USB device number 8 using ehci-platform
Sun Sep 12 11:58:51 2021 kern.info kernel: [ 1750.420607] usb 4-1: new SuperSpeed Gen 1 USB device number 11 using xhci-hcd
Sun Sep 12 11:58:51 2021 kern.info kernel: [ 1750.453562] hub 4-1:1.0: USB hub found
Sun Sep 12 11:58:51 2021 kern.info kernel: [ 1750.457539] hub 4-1:1.0: 4 ports detected
Sun Sep 12 11:58:51 2021 kern.info kernel: [ 1750.604136] hub 1-1:1.0: USB hub found
Sun Sep 12 11:58:51 2021 kern.info kernel: [ 1750.608113] hub 1-1:1.0: 4 ports detected
Sun Sep 12 11:58:52 2021 kern.info kernel: [ 1750.940480] usb 1-1.4: new high-speed USB device number 9 using ehci-platform
Sun Sep 12 11:58:52 2021 kern.info kernel: [ 1751.133105] usb-storage 1-1.4:1.0: USB Mass Storage device detected
Sun Sep 12 11:58:52 2021 kern.info kernel: [ 1751.139840] scsi host0: usb-storage 1-1.4:1.0
Sun Sep 12 11:58:53 2021 kern.notice kernel: [ 1752.577398] scsi 0:0:0:0: Direct-Access     Toshiba  External USB HDD      PQ: 0 ANSI: 4
Sun Sep 12 11:58:53 2021 kern.notice kernel: [ 1752.585952] sd 0:0:0:0: Attached scsi generic sg0 type 0
Sun Sep 12 11:58:53 2021 kern.notice kernel: [ 1752.592743] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
Sun Sep 12 11:58:53 2021 kern.notice kernel: [ 1752.606867] sd 0:0:0:0: [sda] Write Protect is off
Sun Sep 12 11:58:53 2021 kern.debug kernel: [ 1752.611692] sd 0:0:0:0: [sda] Mode Sense: 38 00 00 00
Sun Sep 12 11:58:53 2021 kern.err kernel: [ 1752.623293] sd 0:0:0:0: [sda] No Caching mode page found
Sun Sep 12 11:58:53 2021 kern.err kernel: [ 1752.628629] sd 0:0:0:0: [sda] Assuming drive cache: write through
Sun Sep 12 11:58:54 2021 kern.info kernel: [ 1752.708545]  sda: sda1 sda2
Sun Sep 12 11:58:54 2021 kern.notice kernel: [ 1752.727161] sd 0:0:0:0: [sda] Attached SCSI disk
Sun Sep 12 11:58:54 2021 kern.info kernel: [ 1753.460544] usb 4-1.1: new SuperSpeed Gen 1 USB device number 12 using xhci-hcd
Sun Sep 12 11:58:54 2021 kern.err kernel: [ 1753.493498] xhci-hcd 18023000.usb: ERROR: unexpected command completion code 0x11.
Sun Sep 12 11:58:54 2021 kern.warn kernel: [ 1753.540653] uas: probe of 4-1.1:1.0 failed with error -12
Sun Sep 12 11:58:56 2021 kern.info kernel: [ 1754.740535] usb 4-1.2: new SuperSpeed Gen 1 USB device number 13 using xhci-hcd
Sun Sep 12 11:58:56 2021 kern.info kernel: [ 1754.772215] usb-storage 4-1.2:1.0: USB Mass Storage device detected
Sun Sep 12 11:58:56 2021 kern.info kernel: [ 1754.778761] scsi host1: usb-storage 4-1.2:1.0
Sun Sep 12 11:58:57 2021 kern.notice kernel: [ 1755.790941] scsi 1:0:0:0: Direct-Access     Terra    Master DAS       0    PQ: 0 ANSI: 6
Sun Sep 12 11:58:57 2021 kern.notice kernel: [ 1755.799452] scsi 1:0:0:0: Attached scsi generic sg1 type 0
Sun Sep 12 11:58:57 2021 kern.notice kernel: [ 1755.808390] sd 1:0:0:0: [sdb] Attached SCSI removable disk



But the usb device can use normally when the device plugin USB2.0 port.
__lsusb info:__

root at OpenWrt:~# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux 5.4.143 ohci_hcd Generic Platform OHCI controller
Bus 004 Device 001: ID 1d6b:0003 Linux 5.4.143 xhci-hcd xHCI Host Controller
Bus 001 Device 013: ID 0480:a006 Terra Master DAS
Bus 001 Device 012: ID 0480:a004 Toshiba External USB HDD
Bus 003 Device 001: ID 1d6b:0002 Linux 5.4.143 xhci-hcd xHCI Host Controller
Bus 001 Device 011: ID 0480:a006 Terra Master DAS
Bus 001 Device 010: ID 174c:2074 Asmedia ASM107x
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.143 ehci_hcd EHCI Host Controller
root at OpenWrt:~# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 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 10, If 0, Class=, Driver=hub/4p, 480M
        |__ Port 1: Dev 11, If 0, Class=, Driver=uas, 480M
        |__ Port 2: Dev 13, If 0, Class=, Driver=usb-storage, 480M
        |__ Port 4: Dev 12, If 0, Class=, Driver=usb-storage, 480M

__dmesg info:__

Sun Sep 12 12:02:08 2021 kern.info kernel: [ 1946.910147] usb 1-1: USB disconnect, device number 8
Sun Sep 12 12:02:08 2021 kern.info kernel: [ 1946.915191] usb 1-1.4: USB disconnect, device number 9
Sun Sep 12 12:02:09 2021 kern.info kernel: [ 1947.720650] usb 4-1: USB disconnect, device number 11
Sun Sep 12 12:02:09 2021 kern.info kernel: [ 1947.725813] usb 4-1.1: USB disconnect, device number 12
Sun Sep 12 12:02:09 2021 kern.info kernel: [ 1947.732134] usb 4-1.2: USB disconnect, device number 13
Sun Sep 12 12:02:12 2021 kern.info kernel: [ 1950.970532] usb 1-2: new high-speed USB device number 10 using ehci-platform
Sun Sep 12 12:02:12 2021 kern.info kernel: [ 1951.174088] hub 1-2:1.0: USB hub found
Sun Sep 12 12:02:12 2021 kern.info kernel: [ 1951.178103] hub 1-2:1.0: 4 ports detected
Sun Sep 12 12:02:12 2021 kern.info kernel: [ 1951.510538] usb 1-2.1: new high-speed USB device number 11 using ehci-platform
Sun Sep 12 12:02:12 2021 kern.info kernel: [ 1951.684641] scsi host0: uas
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.692236] scsi 0:0:0:0: Direct-Access     Terra    Master DAS       0    PQ: 0 ANSI: 6
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.705425] sd 0:0:0:0: Attached scsi generic sg0 type 0
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.714350] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.716739] scsi 0:0:0:1: Direct-Access     Terra    Master DAS       0    PQ: 0 ANSI: 6
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.722135] sd 0:0:0:0: [sda] 4096-byte physical blocks
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.735647] sd 0:0:0:0: [sda] Write Protect is off
Sun Sep 12 12:02:13 2021 kern.debug kernel: [ 1951.740473] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.740712] scsi 0:0:0:1: Attached scsi generic sg1 type 0
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.753032] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Sun Sep 12 12:02:13 2021 kern.warn kernel: [ 1951.764344] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.776495] sd 0:0:0:1: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.784335] sd 0:0:0:1: [sdb] 4096-byte physical blocks
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.818852] sd 0:0:0:1: [sdb] Write Protect is off
Sun Sep 12 12:02:13 2021 kern.info kernel: [ 1951.820730] usb 1-2.4: new high-speed USB device number 12 using ehci-platform
Sun Sep 12 12:02:13 2021 kern.debug kernel: [ 1951.823696] sd 0:0:0:1: [sdb] Mode Sense: 43 00 00 00
Sun Sep 12 12:02:13 2021 kern.info kernel: [ 1951.832953]  sda: sda1 sda2
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.840255] sd 0:0:0:1: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Sun Sep 12 12:02:13 2021 kern.warn kernel: [ 1951.851773] sd 0:0:0:1: [sdb] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.871480] sd 0:0:0:0: [sda] Attached SCSI disk
Sun Sep 12 12:02:13 2021 kern.info kernel: [ 1951.942551]  sdb: sdb1
Sun Sep 12 12:02:13 2021 kern.notice kernel: [ 1951.966381] sd 0:0:0:1: [sdb] Attached SCSI disk
Sun Sep 12 12:02:13 2021 kern.info kernel: [ 1952.033628] usb-storage 1-2.4:1.0: USB Mass Storage device detected
Sun Sep 12 12:02:13 2021 kern.info kernel: [ 1952.040812] scsi host1: usb-storage 1-2.4:1.0
Sun Sep 12 12:02:14 2021 kern.info kernel: [ 1952.780527] usb 1-2.2: new high-speed USB device number 13 using ehci-platform
Sun Sep 12 12:02:14 2021 kern.info kernel: [ 1952.953315] usb-storage 1-2.2:1.0: USB Mass Storage device detected
Sun Sep 12 12:02:14 2021 kern.info kernel: [ 1952.959853] scsi host2: usb-storage 1-2.2:1.0
Sun Sep 12 12:02:14 2021 kern.notice kernel: [ 1953.076019] scsi 1:0:0:0: Direct-Access     Toshiba  External USB HDD      PQ: 0 ANSI: 4
Sun Sep 12 12:02:14 2021 kern.notice kernel: [ 1953.084585] scsi 1:0:0:0: Attached scsi generic sg2 type 0
Sun Sep 12 12:02:14 2021 kern.notice kernel: [ 1953.091610] sd 1:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/466 GiB)
Sun Sep 12 12:02:14 2021 kern.notice kernel: [ 1953.105617] sd 1:0:0:0: [sdc] Write Protect is off
Sun Sep 12 12:02:14 2021 kern.debug kernel: [ 1953.110429] sd 1:0:0:0: [sdc] Mode Sense: 38 00 00 00
Sun Sep 12 12:02:14 2021 kern.err kernel: [ 1953.121859] sd 1:0:0:0: [sdc] No Caching mode page found
Sun Sep 12 12:02:14 2021 kern.err kernel: [ 1953.127249] sd 1:0:0:0: [sdc] Assuming drive cache: write through
Sun Sep 12 12:02:14 2021 kern.info kernel: [ 1953.510664]  sdc: sdc1 sdc2
Sun Sep 12 12:02:14 2021 kern.notice kernel: [ 1953.529533] sd 1:0:0:0: [sdc] Attached SCSI disk
Sun Sep 12 12:02:15 2021 kern.notice kernel: [ 1954.031640] scsi 2:0:0:0: Direct-Access     Terra    Master DAS       0    PQ: 0 ANSI: 6
Sun Sep 12 12:02:15 2021 kern.notice kernel: [ 1954.040175] scsi 2:0:0:0: Attached scsi generic sg3 type 0
Sun Sep 12 12:02:15 2021 kern.notice kernel: [ 1954.049394] sd 2:0:0:0: [sdd] Attached SCSI removable disk


More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=4033

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list