* ID 174c:55aa ASMedia Technology issues with UAS driver
@ 2019-11-24 19:49 Pacho Ramos
2019-11-27 11:54 ` Pacho Ramos
0 siblings, 1 reply; 2+ messages in thread
From: Pacho Ramos @ 2019-11-24 19:49 UTC (permalink / raw)
To: linux-usb
[-- Attachment #1: Type: text/plain, Size: 3419 bytes --]
Hello,
I was reviewing a problem I was hitting with one of my boxes to
connect external drives. The hard disk was working fine when it was
under the original laptop that it belonged to and also works fine if I
move it to a different usb box.
I think it's an issue with this box and it seems a common issue as
reported in other places:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1742318
https://unix.stackexchange.com/questions/441668/debian-usb3-hdd-uas-i-o-errors
https://www.raspberrypi.org/forums/viewtopic.php?t=245931
https://www.raspberrypi.org/forums/viewtopic.php?t=237829
https://forum.manjaro.org/t/usb-disk-not-working-in-a-usb3-0-port/50736
In summary, the disk works fine at the start but, after leaving it
idle some minutes, it reports and I/O error and gets remounted because
of that.
Errors are like:
[243037.109604] Buffer I/O error on dev sdc1, logical block 15262021,
async page read
[243038.045009] Buffer I/O error on dev sdc1, logical block 15262021,
async page read
[243038.750870] Buffer I/O error on dev sdc1, logical block 15262021,
async page read
or also:
[243416.635232] Buffer I/O error on dev sdd1, logical block 15262021,
async page read
[243172.126230] scsi 2:0:0:0: Direct-Access USB 3.0
0 PQ: 0 ANSI: 6
[243172.126564] sd 2:0:0:0: Attached scsi generic sg2 type 0
[243172.127195] sd 2:0:0:0: [sdc] 976773168 512-byte logical blocks:
(500 GB/466 GiB)
[243172.127332] sd 2:0:0:0: [sdc] Write Protect is off
[243172.127333] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
[243172.127494] sd 2:0:0:0: [sdc] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[243172.127732] sd 2:0:0:0: [sdc] Optimal transfer size 33553920 bytes
[243172.166800] sdc: sdc1
[243172.185089] sd 2:0:0:0: [sdc] Attached SCSI disk
[243416.635232] Buffer I/O error on dev sdd1, logical block 15262021,
async page read
[243616.891249] usb 2-3: USB disconnect, device number 6
[243616.893787] sd 2:0:0:0: [sdc] Synchronizing SCSI cache
[243617.013118] sd 2:0:0:0: [sdc] Synchronize Cache(10) failed:
Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[243617.268239] usb 2-3: new SuperSpeed Gen 1 USB device number 7 using xhci_hcd
[243617.281559] usb 2-3: New USB device found, idVendor=174c,
idProduct=55aa, bcdDevice= 1.00
[243617.281560] usb 2-3: New USB device strings: Mfr=2, Product=3,
SerialNumber=1
[243617.281561] usb 2-3: Product: 3.0
[243617.281562] usb 2-3: Manufacturer: USB
[243617.281562] usb 2-3: SerialNumber: 000000000001
[243617.285598] scsi host2: uas
[243617.285946] scsi 2:0:0:0: Direct-Access USB 3.0
0 PQ: 0 ANSI: 6
[243617.286547] sd 2:0:0:0: Attached scsi generic sg2 type 0
[243617.287053] sd 2:0:0:0: [sdc] 976773168 512-byte logical blocks:
(500 GB/466 GiB)
[243617.287171] sd 2:0:0:0: [sdc] Write Protect is off
[243617.287172] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
[243617.287332] sd 2:0:0:0: [sdc] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[243617.287522] sd 2:0:0:0: [sdc] Optimal transfer size 33553920 bytes
[243619.819009] sdc: sdc1
[243619.835850] sd 2:0:0:0: [sdc] Attached SCSI disk
I am running kernel 5.3.11 on Gentoo and I attach the lsusb -v output
for this device. What could I do to contribute to get this problem
solved? Any concrete test? I would like to get this solved as, sadly,
it seems that many hard disk boxes include this chipset and cause this
issues.
Thanks a lot
[-- Attachment #2: 1 --]
[-- Type: application/octet-stream, Size: 5383 bytes --]
Bus 002 Device 010: ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 9
idVendor 0x174c ASMedia Technology Inc.
idProduct 0x55aa Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
bcdDevice 1.00
iManufacturer 2 USB
iProduct 3 3.0
iSerial 1 000000000001
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0079
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
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 0
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
MaxStreams 32
Data-in pipe (0x03)
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
MaxStreams 32
Data-out pipe (0x04)
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
Status pipe (0x02)
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 0
Command pipe (0x01)
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x0016
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x0000f41e
BESL Link Power Management (LPM) Supported
BESL value 1024 us
Deep BESL value 61440 us
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 2047 micro seconds
Device Status: 0x000d
Self Powered
U1 Enabled
U2 Enabled
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ID 174c:55aa ASMedia Technology issues with UAS driver
2019-11-24 19:49 ID 174c:55aa ASMedia Technology issues with UAS driver Pacho Ramos
@ 2019-11-27 11:54 ` Pacho Ramos
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos @ 2019-11-27 11:54 UTC (permalink / raw)
To: linux-usb
As I read in drivers/usb/storage/uas-detect.h it seems that these
problems can hit some 174c:55aa devices and not others as it seems
they are difficult to detect
According to lsusb -v output, my MaxPower is 0mA... that would point
to a ASM1153 - with working uas support... but it's not really working
:/
I have tried on some different systems, and it seems it fails on
laptops (two Dell with Gentoo and kernel 5.3.11 and 5.2.8 and one
Asus with Windows10 (!)). While it seems to work fine with a
non-laptop systems like an Optiplex 7050 (with Gentoo and kernel
5.3.11).
I then tried to see if it was working on another non-laptop system (a
Precision 7920 running Ubuntu 18.10 with their 5.0.0-36 kernel)... but
it fails there too with errors like:
[ 7027.520636] scsi 11:0:0:0: Direct-Access USB 3.0
0 PQ: 0 ANSI: 6
[ 7027.521160] sd 11:0:0:0: Attached scsi generic sg7 type 0
[ 7027.521599] sd 11:0:0:0: [sdg] 976773168 512-byte logical blocks:
(500 GB/466 GiB)
[ 7027.521708] sd 11:0:0:0: [sdg] Write Protect is off
[ 7027.521710] sd 11:0:0:0: [sdg] Mode Sense: 43 00 00 00
[ 7027.521872] sd 11:0:0:0: [sdg] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 7027.522069] sd 11:0:0:0: [sdg] Optimal transfer size 33553920 bytes
[ 7027.544118] sdg: sdg1
[ 7027.545533] sd 11:0:0:0: [sdg] Attached SCSI disk
[ 7124.329288] sd 11:0:0:0: [sdg] tag#17 uas_eh_abort_handler 0
uas-tag 1 inflight: CMD IN
[ 7124.329292] sd 11:0:0:0: [sdg] tag#17 CDB: Read(10) 28 00 39 7c 24
c0 00 01 00 00
[ 7124.332005] sd 11:0:0:0: [sdg] tag#16 uas_eh_abort_handler 0
uas-tag 2 inflight: CMD IN
[ 7124.332006] sd 11:0:0:0: [sdg] tag#16 CDB: Read(10) 28 00 39 7c 23
c0 00 01 00 00
[ 7124.389294] scsi host11: uas_eh_device_reset_handler start
[ 7124.517883] usb 2-6: reset SuperSpeed Gen 1 USB device number 6
using xhci_hcd
[ 7124.541470] scsi host11: uas_eh_device_reset_handler success
[ 7157.097289] sd 11:0:0:0: [sdg] tag#9 uas_eh_abort_handler 0 uas-tag
1 inflight: CMD IN
[ 7157.097294] sd 11:0:0:0: [sdg] tag#9 CDB: Read(10) 28 00 39 7e 86
c0 00 01 00 00
[ 7157.097537] sd 11:0:0:0: [sdg] tag#8 uas_eh_abort_handler 0 uas-tag
2 inflight: CMD IN
[ 7157.097538] sd 11:0:0:0: [sdg] tag#8 CDB: Read(10) 28 00 39 7e 85
c0 00 01 00 00
[ 7157.173290] scsi host11: uas_eh_device_reset_handler start
[ 7157.301822] usb 2-6: reset SuperSpeed Gen 1 USB device number 6
using xhci_hcd
[ 7157.325396] scsi host11: uas_eh_device_reset_handler success
[ 7191.913297] sd 11:0:0:0: [sdg] tag#13 uas_eh_abort_handler 0
uas-tag 1 inflight: CMD IN
[ 7191.913301] sd 11:0:0:0: [sdg] tag#13 CDB: Read(10) 28 00 39 81 ba
c0 00 01 00 00
[ 7191.915558] sd 11:0:0:0: [sdg] tag#12 uas_eh_abort_handler 0
uas-tag 2 inflight: CMD IN
[ 7191.915560] sd 11:0:0:0: [sdg] tag#12 CDB: Read(10) 28 00 39 81 b9
c0 00 01 00 00
[ 7191.981287] scsi host11: uas_eh_device_reset_handler start
[ 7192.109849] usb 2-6: reset SuperSpeed Gen 1 USB device number 6
using xhci_hcd
[ 7192.133493] scsi host11: uas_eh_device_reset_handler success
I am a bit lost then.. maybe it's an issue with the power of the USB
ports? :/ For example in the Ubuntu system, I have just tried to force
it to use usb-storage and it also fails... but going back to the
Optiplex system... it still works fine, like being a completely normal
device. But I don't see what could show my the difference between the
working system and the rest. In any case, I also post here how dmesg
output looks in the system that works fine when I connect the device
to see if maybe you see a difference
[1016267.790343] usb 2-1: new SuperSpeed Gen 1 USB device number 5
using xhci_hcd
[1016267.802969] usb 2-1: New USB device found, idVendor=174c,
idProduct=55aa, bcdDevice= 1.00
[1016267.802970] usb 2-1: New USB device strings: Mfr=2, Product=3,
SerialNumber=1
[1016267.802971] usb 2-1: Product: 3.0
[1016267.802971] usb 2-1: Manufacturer: USB
[1016267.802972] usb 2-1: SerialNumber: 000000000001
[1016267.808691] scsi host4: uas
[1016267.809680] scsi 4:0:0:0: Direct-Access USB 3.0
0 PQ: 0 ANSI: 6
[1016267.810080] sd 4:0:0:0: Attached scsi generic sg2 type 0
[1016267.810744] sd 4:0:0:0: [sdb] 976773168 512-byte logical blocks:
(500 GB/466 GiB)
[1016267.810871] sd 4:0:0:0: [sdb] Write Protect is off
[1016267.810872] sd 4:0:0:0: [sdb] Mode Sense: 43 00 00 00
[1016267.811022] sd 4:0:0:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[1016267.811199] sd 4:0:0:0: [sdb] Optimal transfer size 33553920 bytes
[1016267.833485] sdb: sdb1
[1016267.835000] sd 4:0:0:0: [sdb] Attached SCSI disk
Thanks a lot
El dom., 24 nov. 2019 a las 20:49, Pacho Ramos
(<pachoramos@gmail.com>) escribió:
>
> Hello,
>
> I was reviewing a problem I was hitting with one of my boxes to
> connect external drives. The hard disk was working fine when it was
> under the original laptop that it belonged to and also works fine if I
> move it to a different usb box.
>
> I think it's an issue with this box and it seems a common issue as
> reported in other places:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1742318
> https://unix.stackexchange.com/questions/441668/debian-usb3-hdd-uas-i-o-errors
> https://www.raspberrypi.org/forums/viewtopic.php?t=245931
> https://www.raspberrypi.org/forums/viewtopic.php?t=237829
> https://forum.manjaro.org/t/usb-disk-not-working-in-a-usb3-0-port/50736
>
> In summary, the disk works fine at the start but, after leaving it
> idle some minutes, it reports and I/O error and gets remounted because
> of that.
>
> Errors are like:
> [243037.109604] Buffer I/O error on dev sdc1, logical block 15262021,
> async page read
> [243038.045009] Buffer I/O error on dev sdc1, logical block 15262021,
> async page read
> [243038.750870] Buffer I/O error on dev sdc1, logical block 15262021,
> async page read
>
> or also:
> [243416.635232] Buffer I/O error on dev sdd1, logical block 15262021,
> async page read
>
> [243172.126230] scsi 2:0:0:0: Direct-Access USB 3.0
> 0 PQ: 0 ANSI: 6
> [243172.126564] sd 2:0:0:0: Attached scsi generic sg2 type 0
> [243172.127195] sd 2:0:0:0: [sdc] 976773168 512-byte logical blocks:
> (500 GB/466 GiB)
> [243172.127332] sd 2:0:0:0: [sdc] Write Protect is off
> [243172.127333] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
> [243172.127494] sd 2:0:0:0: [sdc] Write cache: enabled, read cache:
> enabled, doesn't support DPO or FUA
> [243172.127732] sd 2:0:0:0: [sdc] Optimal transfer size 33553920 bytes
> [243172.166800] sdc: sdc1
> [243172.185089] sd 2:0:0:0: [sdc] Attached SCSI disk
> [243416.635232] Buffer I/O error on dev sdd1, logical block 15262021,
> async page read
> [243616.891249] usb 2-3: USB disconnect, device number 6
> [243616.893787] sd 2:0:0:0: [sdc] Synchronizing SCSI cache
> [243617.013118] sd 2:0:0:0: [sdc] Synchronize Cache(10) failed:
> Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
> [243617.268239] usb 2-3: new SuperSpeed Gen 1 USB device number 7 using xhci_hcd
> [243617.281559] usb 2-3: New USB device found, idVendor=174c,
> idProduct=55aa, bcdDevice= 1.00
> [243617.281560] usb 2-3: New USB device strings: Mfr=2, Product=3,
> SerialNumber=1
> [243617.281561] usb 2-3: Product: 3.0
> [243617.281562] usb 2-3: Manufacturer: USB
> [243617.281562] usb 2-3: SerialNumber: 000000000001
> [243617.285598] scsi host2: uas
> [243617.285946] scsi 2:0:0:0: Direct-Access USB 3.0
> 0 PQ: 0 ANSI: 6
> [243617.286547] sd 2:0:0:0: Attached scsi generic sg2 type 0
> [243617.287053] sd 2:0:0:0: [sdc] 976773168 512-byte logical blocks:
> (500 GB/466 GiB)
> [243617.287171] sd 2:0:0:0: [sdc] Write Protect is off
> [243617.287172] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
> [243617.287332] sd 2:0:0:0: [sdc] Write cache: enabled, read cache:
> enabled, doesn't support DPO or FUA
> [243617.287522] sd 2:0:0:0: [sdc] Optimal transfer size 33553920 bytes
> [243619.819009] sdc: sdc1
> [243619.835850] sd 2:0:0:0: [sdc] Attached SCSI disk
>
> I am running kernel 5.3.11 on Gentoo and I attach the lsusb -v output
> for this device. What could I do to contribute to get this problem
> solved? Any concrete test? I would like to get this solved as, sadly,
> it seems that many hard disk boxes include this chipset and cause this
> issues.
>
> Thanks a lot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-27 11:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-24 19:49 ID 174c:55aa ASMedia Technology issues with UAS driver Pacho Ramos
2019-11-27 11:54 ` Pacho Ramos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).