usb: uas: ignore UAS for ASMT135x bridges (174c:55aa)
Subsystems (3)
PATCH 1/1 usb: uas: ignore UAS for ASMT135x bridges (174c:55aa)
The ASMedia chip detection in uas_use_uas_driver() assumes that every device with idVendor/idProduct 174c:5106 or 174c:55aa reporting a config.MaxPower of 0 is an ASM1153 with working UAS.
ASMT135x bridges (iProduct "ASMT135x") share the same 174c:55aa id and also report MaxPower == 0, so they take the "ASM1153, do nothing" path — but their UAS implementation is broken:
- The first READ(16) issued by sd probing times out after 30 s; enumeration only completes after a uas_eh_abort_handler plus a full uas_eh_host_reset_handler cycle:
scsi 3:0:0:0: Direct-Access ASMT ASMT135x 0 PQ: 0 ANSI: 6
sd 3:0:0:0: [sdb] tag#26 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN sd 3:0:0:0: [sdb] tag#26 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 scsi host3: uas_eh_host_reset_handler start
usb 6-2: reset SuperSpeed USB device number 2 using xhci_hcd
scsi host3: uas_eh_host_reset_handler success
- Under concurrent load the bridge stalls: all inflight commands (20+ UAS tags in the captured incident, mixed READ(16)/WRITE(16)) hit the 30 s UAS timeout in the same event, forcing repeated abort/reset cycles and eventually a USB disconnect. Writes dropped mid-flight during these resets returned zeros to the filesystem (observed as XFS metadata corruption on the mounted volume).
- Sequential-write throughput is ~45 MiB/s under UAS versus ~136 MiB/s after disabling UAS (usb-storage BOT mode), which is fully stable:
several tens of GiB written without a single error.
- Bulk reads of healthy LBA ranges do work under UAS (~190 MiB/s, no errors); the failure pattern is command-timeout at enumeration and under queue depth / write load, not a broken transfer path.
Since 174c:55aa is shared across several ASMedia bridges and enclosure rebrandings, distinguish the ASMT135x by its product string — the same approach used for the HIKSEMI MD202 check a few lines below. The product strings of working bridges using the same id ("ASM1053E", "ASM1153", "ASM1153E", "ASM1351", vendor rebrands such as "YZWY_TECH") do not contain "ASMT135", so the match is safe.
Verified on an ORICO enclosure (iManufacturer "ASMT", iProduct "ASMT135x", bcdDevice 1.00) attached through an Alpine Ridge TB3 dock:
with the equivalent usb-storage quirks parameter (174c:55aa:u) the device is completely stable.
---
lsusb -v for the affected ASMT135x bridge (Bus 006 Dev 002) and the second, unaffected 174c:55aa bridge on the same host (Bus 010, iProduct "YZWY_TECH", keeps working UAS):
Couldn't open device, some information will be missing
Bus 006 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge Negotiated speed: SuperSpeed (5Gbps)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.20
bDeviceClass 0 [unknown] bDeviceSubClass 0 [unknown] bDeviceProtocol 0 bMaxPacketSize0 9 idVendor 0x174c ASMedia Technology Inc. idProduct 0x55aa 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 ASMT iProduct 3 ASMT135x iSerial 1 123456789053 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 USB Attached SCSI
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
bDescriptorTCouldn't open device, some information will be missing
ype 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)
Bus 010 Device 003: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge Negotiated speed: SuperSpeed (5Gbps)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 0 [unknown] bDeviceSubClass 0 [unknown] bDeviceProtocol 0 bMaxPacketSize0 9 idVendor 0x174c ASMedia Technology Inc. idProduct 0x55aa 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 Min Yi USB Device iProduct 3 YZWY_TECH iSerial 1 123456789020 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 USB Attached SCSI
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)
drivers/usb/storage/uas-detect.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/usb/storage/uas-detect.h +6 -1
@@ -78,6 +78,8 @@ static int uas_use_uas_driver(struct usb_interface *intf,* ASM1051 - with broken (*) uas support * ASM1053 - with working uas support, but problems with large xfers * ASM1153 - with working uas support +* ASMT135x - broken uas support, shares the ASM1153 MaxPower == 0 +* signature, identify it by its product string * * Devices with these chips re-use a number of device-ids over the * entire line, so the device-id is useless to determine if we're
@@ -99,7 +101,10 @@ static int uas_use_uas_driver(struct usb_interface *intf, (le16_to_cpu(udev->descriptor.idProduct) == 0x5106 || le16_to_cpu(udev->descriptor.idProduct) == 0x55aa)) {if (udev->actconfig->desc.bMaxPower ==0 ) { -/* ASM1153, do nothing */ +if (udev->product &&strstr (udev->product,"ASMT135" )) +/* ASMT135x, broken uas */ + flags |=US_FL_IGNORE_UAS ; +/* else ASM1153, do nothing */ }else if (udev->speed <USB_SPEED_SUPER ) {/* No streams info, assume ASM1051 */ flags |=US_FL_IGNORE_UAS ;
Signature · 1 line
2.47.3
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 15 lines
The ASMedia chip detection in
uas_use_uas_driver()assumes that every device with idVendor/idProduct 174c:5106 or 174c:55aa reporting a config.MaxPower of 0 is an ASM1153 with working UAS.ASMT135x bridges (iProduct "ASMT135x") share the same 174c:55aa id and also report MaxPower == 0, so they take the "ASM1153, do nothing" path — but their UAS implementation is broken:
- The first READ(16) issued by sd probing times out after 30 s; enumeration only completes after a
uas_eh_abort_handlerplus a fulluas_eh_host_reset_handlercycle:scsi 3:0:0:0: Direct-Access ASMT ASMT135x 0 PQ: 0 ANSI: 6 sd 3:0:0:0: [sdb] tag#26 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN sd 3:0:0:0: [sdb] tag#26 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00
Quoted 6 lines
[ ... ]
with the equivalent usb-storage quirks parameter (174c:55aa:u) the device is completely stable.Signed-off-by Olivier Kaloudoff <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Greg KH
maintainerdrivers/usb/storage/uas-detect.h static int uas_use_uas_driver(struct usb_interface *intf, · line 85
Quoted 13 lines · Olivier Kaloudoff
drivers/usb/storage/uas-detect.h +2
-0@@ -78,6 +78,8 @@ static int uas_use_uas_driver(struct usb_interface *intf,* ASM1051 - with broken (*) uas support * ASM1053 - with working uas support, but problems with large xfers * ASM1153 - with working uas support +* ASMT135x - broken uas support, shares the ASM1153 MaxPower == 0 +* signature, identify it by its product string * * Devices with these chips re-use a number of device-ids over the * entire line, so the device-id is useless to determine if we're
Please always check your patches before sending them out :(
thanks,
greg k-h
PATCH v2 1/1 usb: uas: ignore UAS for ASMT135x bridges (174c:55aa)
In reply to Olivier KaloudoffThe ASMedia chip detection in uas_use_uas_driver() assumes that every device with idVendor/idProduct 174c:5106 or 174c:55aa reporting a config.MaxPower of 0 is an ASM1153 with working UAS.
ASMT135x bridges (iProduct "ASMT135x") share the same 174c:55aa id and also report MaxPower == 0, so they take the "ASM1153, do nothing" path — but their UAS implementation is broken:
- The first READ(16) issued by sd probing times out after 30 s; enumeration only completes after a uas_eh_abort_handler plus a full uas_eh_host_reset_handler cycle:
scsi 3:0:0:0: Direct-Access ASMT ASMT135x 0 PQ: 0 ANSI: 6
sd 3:0:0:0: [sdb] tag#26 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN sd 3:0:0:0: [sdb] tag#26 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 scsi host3: uas_eh_host_reset_handler start
usb 6-2: reset SuperSpeed USB device number 2 using xhci_hcd
scsi host3: uas_eh_host_reset_handler success
- Under concurrent load the bridge stalls: all inflight commands (20+ UAS tags in the captured incident, mixed READ(16)/WRITE(16)) hit the 30 s UAS timeout in the same event, forcing repeated abort/reset cycles and eventually a USB disconnect. Writes dropped mid-flight during these resets returned zeros to the filesystem (observed as XFS metadata corruption on the mounted volume).
- Sequential-write throughput is ~45 MiB/s under UAS versus ~136 MiB/s after disabling UAS (usb-storage BOT mode), which is fully stable:
several tens of GiB written without a single error.
- Bulk reads of healthy LBA ranges do work under UAS (~190 MiB/s, no errors); the failure pattern is command-timeout at enumeration and under queue depth / write load, not a broken transfer path.
Since 174c:55aa is shared across several ASMedia bridges and enclosure rebrandings, distinguish the ASMT135x by its product string — the same approach used for the HIKSEMI MD202 check a few lines below. The product strings of working bridges using the same id ("ASM1053E", "ASM1153", "ASM1153E", "ASM1351", vendor rebrands such as "YZWY_TECH") do not contain "ASMT135", so the match is safe.
Verified on an ORICO enclosure (iManufacturer "ASMT", iProduct "ASMT135x", bcdDevice 1.00) attached through an Alpine Ridge TB3 dock:
with the equivalent usb-storage quirks parameter (174c:55aa:u) the device is completely stable.
---
v2: fix the comment block: added lines were missing the leading
tab, breaking the *-alignment with the rest of the block. Apologies — the v1 diff was mangled by my editor before sending.
drivers/usb/storage/uas-detect.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
drivers/usb/storage/uas-detect.h +6 -1
@@ -78,6 +78,8 @@ static int uas_use_uas_driver(struct usb_interface *intf,* ASM1051 - with broken (*) uas support * ASM1053 - with working uas support, but problems with large xfers * ASM1153 - with working uas support +* ASMT135x - broken uas support, shares the ASM1153 MaxPower == 0 +* signature, identify it by its product string * * Devices with these chips re-use a number of device-ids over the * entire line, so the device-id is useless to determine if we're
@@ -99,7 +101,10 @@ static int uas_use_uas_driver(struct usb_interface *intf, (le16_to_cpu(udev->descriptor.idProduct) == 0x5106 || le16_to_cpu(udev->descriptor.idProduct) == 0x55aa)) {if (udev->actconfig->desc.bMaxPower ==0 ) { -/* ASM1153, do nothing */ +if (udev->product &&strstr (udev->product,"ASMT135" )) +/* ASMT135x, broken uas */ + flags |=US_FL_IGNORE_UAS ; +/* else ASM1153, do nothing */ }else if (udev->speed <USB_SPEED_SUPER ) {/* No streams info, assume ASM1051 */ flags |=US_FL_IGNORE_UAS ;
Signature · 1 line
2.47.3
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 15 lines
The ASMedia chip detection in
uas_use_uas_driver()assumes that every device with idVendor/idProduct 174c:5106 or 174c:55aa reporting a config.MaxPower of 0 is an ASM1153 with working UAS.ASMT135x bridges (iProduct "ASMT135x") share the same 174c:55aa id and also report MaxPower == 0, so they take the "ASM1153, do nothing" path — but their UAS implementation is broken:
- The first READ(16) issued by sd probing times out after 30 s; enumeration only completes after a
uas_eh_abort_handlerplus a fulluas_eh_host_reset_handlercycle:scsi 3:0:0:0: Direct-Access ASMT ASMT135x 0 PQ: 0 ANSI: 6 sd 3:0:0:0: [sdb] tag#26 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN sd 3:0:0:0: [sdb] tag#26 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00
Quoted 6 lines
[ ... ]
with the equivalent usb-storage quirks parameter (174c:55aa:u) the device is completely stable.Signed-off-by Olivier Kaloudoff <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Greg KH
maintainerQuoted 70 lines · Olivier Kaloudoff
The ASMedia chip detection in
uas_use_uas_driver()assumes that every device with idVendor/idProduct 174c:5106 or 174c:55aa reporting a config.MaxPower of 0 is an ASM1153 with working UAS.ASMT135x bridges (iProduct "ASMT135x") share the same 174c:55aa id and also report MaxPower == 0, so they take the "ASM1153, do nothing" path — but their UAS implementation is broken:
- The first READ(16) issued by sd probing times out after 30 s; enumeration only completes after a
uas_eh_abort_handlerplus a fulluas_eh_host_reset_handlercycle:scsi 3:0:0:0: Direct-Access ASMT ASMT135x 0 PQ: 0 ANSI: 6
sd 3:0:0:0: [sdb] tag#26uas_eh_abort_handler0 uas-tag 1 inflight: CMD IN sd 3:0:0:0: [sdb] tag#26 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 scsi host3:uas_eh_host_reset_handlerstart
usb 6-2: reset SuperSpeed USB device number 2 usingxhci_hcd
scsi host3:uas_eh_host_reset_handlersuccess- Under concurrent load the bridge stalls: all inflight commands (20+ UAS tags in the captured incident, mixed READ(16)/WRITE(16)) hit the 30 s UAS timeout in the same event, forcing repeated abort/reset cycles and eventually a USB disconnect. Writes dropped mid-flight during these resets returned zeros to the filesystem (observed as XFS metadata corruption on the mounted volume).
- Sequential-write throughput is ~45 MiB/s under UAS versus ~136 MiB/s after disabling UAS (usb-storage BOT mode), which is fully stable:
several tens of GiB written without a single error.- Bulk reads of healthy LBA ranges do work under UAS (~190 MiB/s, no errors); the failure pattern is command-timeout at enumeration and under queue depth / write load, not a broken transfer path.
Since 174c:55aa is shared across several ASMedia bridges and enclosure rebrandings, distinguish the ASMT135x by its product string — the same approach used for the HIKSEMI MD202 check a few lines below. The product strings of working bridges using the same id ("ASM1053E", "ASM1153", "ASM1153E", "ASM1351", vendor rebrands such as "
YZWY_TECH") do not contain "ASMT135", so the match is safe.Verified on an ORICO enclosure (iManufacturer "ASMT", iProduct "ASMT135x", bcdDevice 1.00) attached through an Alpine Ridge TB3 dock:
with the equivalent usb-storage quirks parameter (174c:55aa:u) the device is completely stable.Signed-off-by Olivier Kaloudoff <[email protected]>---
v2: fix the comment block: added lines were missing the leading
tab, breaking the *-alignment with the rest of the block. Apologies — the v1 diff was mangled by my editor before sending.drivers/usb/storage/uas-detect.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)drivers/usb/storage/uas-detect.h +2
-0@@ -78,6 +78,8 @@ static int uas_use_uas_driver(struct usb_interface *intf,* ASM1051 - with broken (*) uas support * ASM1053 - with working uas support, but problems with large xfers * ASM1153 - with working uas support +* ASMT135x - broken uas support, shares the ASM1153 MaxPower == 0 +* signature, identify it by its product string * * Devices with these chips re-use a number of device-ids over the * entire line, so the device-id is useless to determine if we're
drivers/usb/storage/uas-detect.h static int uas_use_uas_driver(struct usb_interface *intf, · line 106
Quoted 7 lines
drivers/usb/storage/uas-detect.h +3
-1@@ -99,7 +101,10 @@ static int uas_use_uas_driver(struct usb_interface *intf, (le16_to_cpu(udev->descriptor.idProduct) == 0x5106 || le16_to_cpu(udev->descriptor.idProduct) == 0x55aa)) {if (udev->actconfig->desc.bMaxPower ==0 ) { -/* ASM1153, do nothing */ +if (udev->product &&strstr (udev->product,"ASMT135" )) +/* ASMT135x, broken uas */ + flags |=US_FL_IGNORE_UAS ;
You have a 2 line statement after the if () here without any {}.
Yes, it will work (or it should), but it's not good form and will confuse us over time. Please fix this up, odd that checkpatch.pl didn't catch it.
thanks,
greg k-h
Hi,
Quoted 3 lines · Olivier Kaloudoff
The ASMedia chip detection in
uas_use_uas_driver()assumes that every device with idVendor/idProduct 174c:5106 or 174c:55aa reporting a config.MaxPower of 0 is an ASM1153 with working UAS.
have you tried the new quirk reducing the number of streams being used?
Regards
Oliver
A message that is not in the archive (sent off-list or not yet received): CAKLTOU-rb97bv5dNZ0AkzBNORLYeWbK9kJjQUxfveK4aCAUuJQ@mail.gmail.com
Hi,
Quoted 9 lines · Olivier Kaloudoff
Hi Oliver,
Quoted 2 lines · Oliver Neukum
have you tried the new quirk reducing the number of streams being used?
Not directly, but the failure signature doesn't look queue-depth related:
Quoted 6 lines
- The enumeration stall fires with a single inflight command. I reproduced it again this week on kernel 7.3-rc5: with the device bound to uas, sd probing's first READ(16) times out at +30 s with uas-tag 1 inflight, then abort -> host reset -> attach. A stream cap cannot address a wedge that happens before any queueing exists.
True, but just to be clear
1. is this a race that sometimes hits?
2. does the error recover actually work?
Quoted 5 lines
So the two failure modes are probably distinct: a probe-time firmware bug (unfixable by stream limits) and a load-time wedge (possibly helped by a depth cap). Even if
US_FL_QDEPTH_075fully masked the second, the device would still fail enumeration reliably only with UAS disabled entirely.
Yes. The thing is that if we get a rare recoverable error on enumeration, disabling UAS would be overkill. If not, it is what we ought to do.
And an experiment would show us whether UAS could be reenabled if we ever find out what causes the issue on enumeration. I suspect that there's some difference in how we and other OSes read the partition table that triggers a firmware issue.
Regards
Oliver
PATCH v3 1/1 usb: uas: ignore UAS for ASMT135x bridges (174c:55aa)
In reply to Olivier KaloudoffThe ASMedia chip detection in uas_use_uas_driver() assumes that every device with idVendor/idProduct 174c:5106 or 174c:55aa reporting a config.MaxPower of 0 is an ASM1153 with working UAS.
ASMT135x bridges (iProduct "ASMT135x") share the same 174c:55aa id and also report MaxPower == 0, so they take the "ASM1153, do nothing" path — but their UAS implementation is broken:
- The first READ(16) issued by sd probing times out after 30 s; enumeration only completes after a uas_eh_abort_handler plus a full uas_eh_host_reset_handler cycle:
scsi 3:0:0:0: Direct-Access ASMT ASMT135x 0 PQ: 0 ANSI: 6
sd 3:0:0:0: [sdb] tag#26 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN sd 3:0:0:0: [sdb] tag#26 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 scsi host3: uas_eh_host_reset_handler start
usb 6-2: reset SuperSpeed USB device number 2 using xhci_hcd
scsi host3: uas_eh_host_reset_handler success
- Under concurrent load the bridge stalls: all inflight commands (20+ UAS tags in the captured incident, mixed READ(16)/WRITE(16)) hit the 30 s UAS timeout in the same event, forcing repeated abort/reset cycles and eventually a USB disconnect. Writes dropped mid-flight during these resets returned zeros to the filesystem (observed as XFS metadata corruption on the mounted volume).
- Sequential-write throughput is ~45 MiB/s under UAS versus ~136 MiB/s after disabling UAS (usb-storage BOT mode), which is fully stable:
several tens of GiB written without a single error.
- Bulk reads of healthy LBA ranges do work under UAS (~190 MiB/s, no errors); the failure pattern is command-timeout at enumeration and under queue depth / write load, not a broken transfer path.
Since 174c:55aa is shared across several ASMedia bridges and enclosure rebrandings, distinguish the ASMT135x by its product string — the same approach used for the HIKSEMI MD202 check a few lines below. The product strings of working bridges using the same id ("ASM1053E", "ASM1153", "ASM1153E", "ASM1351", vendor rebrands such as "YZWY_TECH") do not contain "ASMT135", so the match is safe.
Verified on an ORICO enclosure (iManufacturer "ASMT", iProduct "ASMT135x", bcdDevice 1.00) attached through an Alpine Ridge TB3 dock:
with the equivalent usb-storage quirks parameter (174c:55aa:u) the device is completely stable.
---
v3: add braces around the if-body (per Greg KH).
v2: fix the comment block: added lines were missing the leading
tab, breaking the *-alignment with the rest of the block.
drivers/usb/storage/uas-detect.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/usb/storage/uas-detect.h +7 -1
@@ -78,6 +78,8 @@ static int uas_use_uas_driver(struct usb_interface *intf,* ASM1051 - with broken (*) uas support * ASM1053 - with working uas support, but problems with large xfers * ASM1153 - with working uas support +* ASMT135x - broken uas support, shares the ASM1153 MaxPower == 0 +* signature, identify it by its product string * * Devices with these chips re-use a number of device-ids over the * entire line, so the device-id is useless to determine if we're
@@ -99,7 +101,11 @@ static int uas_use_uas_driver(struct usb_interface *intf, (le16_to_cpu(udev->descriptor.idProduct) == 0x5106 || le16_to_cpu(udev->descriptor.idProduct) == 0x55aa)) {if (udev->actconfig->desc.bMaxPower ==0 ) { -/* ASM1153, do nothing */ +if (udev->product &&strstr (udev->product,"ASMT135" )) { +/* ASMT135x, broken uas */ + flags |=US_FL_IGNORE_UAS ; + } +/* else ASM1153, do nothing */ }else if (udev->speed <USB_SPEED_SUPER ) {/* No streams info, assume ASM1051 */ flags |=US_FL_IGNORE_UAS ;
Signature · 1 line
2.47.3
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 15 lines
The ASMedia chip detection in
uas_use_uas_driver()assumes that every device with idVendor/idProduct 174c:5106 or 174c:55aa reporting a config.MaxPower of 0 is an ASM1153 with working UAS.ASMT135x bridges (iProduct "ASMT135x") share the same 174c:55aa id and also report MaxPower == 0, so they take the "ASM1153, do nothing" path — but their UAS implementation is broken:
- The first READ(16) issued by sd probing times out after 30 s; enumeration only completes after a
uas_eh_abort_handlerplus a fulluas_eh_host_reset_handlercycle:scsi 3:0:0:0: Direct-Access ASMT ASMT135x 0 PQ: 0 ANSI: 6 sd 3:0:0:0: [sdb] tag#26 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN sd 3:0:0:0: [sdb] tag#26 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00
Quoted 6 lines
[ ... ]
"ASMT135x", bcdDevice 1.00) attached through an Alpine Ridge TB3 dock:
with the equivalent usb-storage quirks parameter (174c:55aa:u) the device is completely stable.Signed-off-by Olivier Kaloudoff <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 46 lines · Olivier Kaloudoff
The ASMedia chip detection in
uas_use_uas_driver()assumes that every device with idVendor/idProduct 174c:5106 or 174c:55aa reporting a config.MaxPower of 0 is an ASM1153 with working UAS.ASMT135x bridges (iProduct "ASMT135x") share the same 174c:55aa id and also report MaxPower == 0, so they take the "ASM1153, do nothing" path — but their UAS implementation is broken:
- The first READ(16) issued by sd probing times out after 30 s; enumeration only completes after a
uas_eh_abort_handlerplus a fulluas_eh_host_reset_handlercycle:scsi 3:0:0:0: Direct-Access ASMT ASMT135x 0 PQ: 0 ANSI: 6
sd 3:0:0:0: [sdb] tag#26uas_eh_abort_handler0 uas-tag 1 inflight: CMD IN sd 3:0:0:0: [sdb] tag#26 CDB: Read(16) 88 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 scsi host3:uas_eh_host_reset_handlerstart
usb 6-2: reset SuperSpeed USB device number 2 usingxhci_hcd
scsi host3:uas_eh_host_reset_handlersuccess- Under concurrent load the bridge stalls: all inflight commands (20+ UAS tags in the captured incident, mixed READ(16)/WRITE(16)) hit the 30 s UAS timeout in the same event, forcing repeated abort/reset cycles and eventually a USB disconnect. Writes dropped mid-flight during these resets returned zeros to the filesystem (observed as XFS metadata corruption on the mounted volume).
- Sequential-write throughput is ~45 MiB/s under UAS versus ~136 MiB/s after disabling UAS (usb-storage BOT mode), which is fully stable:
several tens of GiB written without a single error.- Bulk reads of healthy LBA ranges do work under UAS (~190 MiB/s, no errors); the failure pattern is command-timeout at enumeration and under queue depth / write load, not a broken transfer path.
Since 174c:55aa is shared across several ASMedia bridges and enclosure rebrandings, distinguish the ASMT135x by its product string — the same approach used for the HIKSEMI MD202 check a few lines below. The product strings of working bridges using the same id ("ASM1053E", "ASM1153", "ASM1153E", "ASM1351", vendor rebrands such as "
YZWY_TECH") do not contain "ASMT135", so the match is safe.Verified on an ORICO enclosure (iManufacturer "ASMT", iProduct "ASMT135x", bcdDevice 1.00) attached through an Alpine Ridge TB3 dock:
with the equivalent usb-storage quirks parameter (174c:55aa:u) the device is completely stable.
Quoted 5 lines
Signed-off-by Olivier Kaloudoff <[email protected]>---
v3: add braces around the if-body (per Greg KH).
v2: fix the comment block: added lines were missing the leading
tab, breaking the *-alignment with the rest of the block.
Quoted 36 lines
drivers/usb/storage/uas-detect.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)drivers/usb/storage/uas-detect.h +7
-1@@ -78,6 +78,8 @@ static int uas_use_uas_driver(struct usb_interface *intf,* ASM1051 - with broken (*) uas support * ASM1053 - with working uas support, but problems with large xfers * ASM1153 - with working uas support +* ASMT135x - broken uas support, shares the ASM1153 MaxPower == 0 +* signature, identify it by its product string * * Devices with these chips re-use a number of device-ids over the * entire line, so the device-id is useless to determine if we're @@ -99,7 +101,11 @@ static int uas_use_uas_driver(struct usb_interface *intf, (le16_to_cpu(udev->descriptor.idProduct) == 0x5106 || le16_to_cpu(udev->descriptor.idProduct) == 0x55aa)) {if (udev->actconfig->desc.bMaxPower ==0 ) { -/* ASM1153, do nothing */ +if (udev->product &&strstr (udev->product,"ASMT135" )) { +/* ASMT135x, broken uas */ + flags |=US_FL_IGNORE_UAS ; + } +/* else ASM1153, do nothing */ }else if (udev->speed <USB_SPEED_SUPER ) {/* No streams info, assume ASM1051 */ flags |=US_FL_IGNORE_UAS ;Signature · 6 lines
2.47.3 -- You received this message because you are subscribed to the Google Groups "USB Mass Storage on Linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/lists.one-eyed-alien.net/d/msgid/usb-storage/20261014165741.35758-1-olivier.kaloudoff%40gmail.com.
Hi Oliver,
Quoted 2 lines · Oliver Neukum
1. is this a race that sometimes hits?
2. does the error recovery actually work?
I ran the experiment on the attached enclosure today (kernel 7.3.0-rc5-vanilla, quirks param cleared so the bridge binds uas).
Enumeration battery — authorized-toggle re-enumerations:
* First UAS enumeration after ~3 weeks on usb-storage: STALLED —
exactly the reported signature. sd probing's first READ(16) at
LBA 0 timed out at +30 s with uas-tag 1 inflight, abort ->
host reset -> clean attach in ~140 ms, full 3.73 TiB usable.* The following 16 authorized-toggle cycles: all CLEAN, ~1 s each.
So the stall is a race — but specifically a *cold* one: it fires on the first UAS probe after BOT/power-on, not on warm re-enumerations. That matches the organic hits (Oct 11, Oct 13, ~Oct 28 — all at boot/replug/bridge-reset boundaries), and explains the earlier "reproduce it again this week" observations.
Recovery: works, every time — abort -> host reset -> attach in ~0.14 s. The cost is 30 s of dead I/O per event plus the reset churn, and under write load that recovery window is what corrupted XFS twice.
Load test — sustained mixed randrw (70r/30w, 128k direct I/O, ~75 GiB total) at iodepth 32 -> 24 -> 16, ~8 min: zero aborts, zero resets, zero errors. The full-queue wedge did NOT reproduce in a bounded soak, so I cannot claim a depth cap helps — the historical wedge (20+ tags, all timing out together, write+read interleave) remains organic-only evidence. It either needs a longer/different trigger or is itself a rarer cold-path bug.
One more data point: re-enumerating back onto usb-storage today ALSO stalled ~22 s before a reset+attach — so the probe-time wedge is in the bridge firmware's first-command handling regardless of protocol; IGNORE_UAS only escapes the queued-command load wedge, not the cold probe one.
The wedging CDB is already identified by the abort log: READ(16) at LBA 0 — the 128 KiB partition-table probe. (usbmon isn't available on this kernel — CONFIG_USB_MON=n, can't hot-add without rebuilding usbcore — but the abort CDB narrows it to that one command, which is consistent with your partition-read hypothesis: other OSes typically probe differently, e.g. READ(10)/smaller LBA0 reads.)
Where that leaves the patch: the enumeration stall is now proven cold-rare and cleanly recoverable, which by your rule makes IGNORE_UAS look heavy *for that failure alone*. The justification that stands is the load wedge — two filesystems lost to a failure mode that only exists under queued commands. A depth cap could plausibly mitigate it, but I have no positive repro to prove it does. If you want, I can run a longer soak (hours) at capped depth vs. full depth, and/or test whether a first-probe mitigation (smaller LBA0 read / INITIAL_READ10-style retry) prevents the cold stall — that would let UAS stay on for this bridge with the enum race neutralized separately.
Regards,
Olivier
On 05.11.26 18:32, Olivier Kaloudoff wrote:
Hi,
thank you for testing this hard.
Quoted 6 lines
The wedging CDB is already identified by the abort log: READ(16) at LBA 0 — the 128 KiB partition-table probe. (usbmon isn't available on this kernel —
CONFIG_USB_MON=n, can't hot-add without rebuilding usbcore — but the abort CDB narrows it to that one command, which is consistent with your partition-read hypothesis: other OSes typically probe differently, e.g. READ(10)/smaller LBA0 reads.)
We should definitely get te partition code maintainers involved. But that is secondary priority. This issue does not eat filesystems.
Quoted 11 lines
Where that leaves the patch: the enumeration stall is now proven cold-rare and cleanly recoverable, which by your rule makes
IGNORE_UASlook heavy *for that failure alone*. The justification that stands is the load wedge — two filesystems lost to a failure mode that only exists under queued commands. A depth cap could plausibly mitigate it, but I have no positive repro to prove it does. If you want, I can run a longer soak (hours) at capped depth vs. full depth, and/or test whether a first-probe mitigation (smaller LBA0 read / INITIAL_READ10-style retry) prevents the cold stall — that would let UAS stay on for this bridge with the enum race neutralized separately.
May I ask you to test once more, harder?
If that remains inconclusive, we will go with blacklisting. We cannot risk filesystems.
Regards
Oliver
Quoted 3 lines · Oliver Neukum
May I ask you to test once more, harder?
If that remains inconclusive, we will go with blacklisting. We cannot risk filesystems.
Ran the harder soak. Setup: the same 174c:55aa enclosure (iProduct "ASMT135x") behind a 4 TB disk on xhci_hcd, kernel 7.3.0-rc5-vanilla+. The device was bound to uas for the whole run (rebound after the usb-storage.quirks=174c:55aa:u cmdline override took it at plug-in).
Enumeration: the cold stall reproduced once, at the first UAS probe — the usual READ(16) at LBA 0 timed out, uas_eh_abort_handler followed by uas_eh_host_reset_handler, then clean re-enumeration. Same signature as reported before, still only at enumeration.
Load: three fio runs, all against the device under uas:
1. randrw 64KiB, iodepth=32, 4 procs — 143 GiB total, 30 min
2. seqwrite 64MiB iodepth=8 + randread 64KiB iodepth=16 — 342 GiB written, 75 min
3. randrw 64KiB, iodepth=16, 4 procs — 161 GiB total, 60 min
Roughly 640 GiB of mixed I/O over ~2h45 of sustained queue depth, disk util pegged at ~100%. Result: zero uas_eh events, zero aborts, zero host resets, zero disconnects; every fio job completed without an I/O error.
So by your criteria this stays inconclusive — I cannot reproduce the queue-depth wedge on demand. The enumeration stall remains the only repeatable failure and it self-recovers via the host reset. I still think the blacklist is right for 174c:55aa/ASMT135x: two filesystems were lost to this failure mode in the field, and UAS buys nothing here — BOT gives ~3x the sequential write throughput on this bridge (~136 MiB/s vs ~45 MiB/s) with none of the instability.
dmesg baseline and fio logs available if useful.
Please take the v3 patch.
Regards,
Olivier
Quoted 7 lines · Olivier Kaloudoff
So by your criteria this stays inconclusive — I cannot reproduce the queue-depth wedge on demand. The enumeration stall remains the only repeatable failure and it self-recovers via the host reset. I still think the blacklist is right for 174c:55aa/ASMT135x: two filesystems were lost to this failure mode in the field, and UAS buys nothing here — BOT gives ~3x the sequential write throughput on this bridge (~136 MiB/s vs ~45 MiB/s) with none of the instability.
Indeed. Could you resubmit? I'll ack the patch.
Regards
Oliver
Hi Olivier,
Quoted 7 lines · Olivier Kaloudoff
The ASMedia chip detection in
uas_use_uas_driver()assumes that every device with idVendor/idProduct 174c:5106 or 174c:55aa reporting a config.MaxPower of 0 is an ASM1153 with working UAS.ASMT135x bridges (iProduct "ASMT135x") share the same 174c:55aa id and also report MaxPower == 0, so they take the "ASM1153, do nothing" path — but their UAS implementation is broken:
I've been following this thread with interest as I have a number of 174c:55aa devices in use from different manufacturers.
May I trouble you to say the product/model of the Orico device you have which reports "ASMT135x" as the iProduct? Hopefully that's not too much of a pain to find on the casing or box if you still have it.
Also, is it still running whatever firmware it came with or has that been upgraded?
I'm asking purely for informational purposes. I just thought it would be really useful to have these two things documented in this thread if possible, for the benefit of anyone who might want to debug issues with this hardware in future.
As I'm sure you know, ascertaining the actual chip being used in these products is difficult without opening up the device to inspect the PCB. That's impractical in most cases but product model number can at least give a clue.
Many thanks!
Eddie
Hi Eddie,
Quoted 5 lines · Eddie Chapman
May I trouble you to say the product/model of the Orico device you have which reports "ASMT135x" as the iProduct?
Also, is it still running whatever firmware it came with or has that been upgraded?
It's an ORICO C10 — sold as "ORICO C10 SSD Externe" (4 TB, "800 MB/s" USB enclosure). Stock firmware; it has never been updated, there is no vendor updater for it that I'm aware of.
Identification details for the record: idVendor/idProduct 174c:55aa, iManufacturer "ASMT", iProduct "ASMT135x", bcdDevice 1.00.
Note the model is now discontinued — mine went back under a defect-based refund (reallocated/pending sectors on the SSD itself), which is how the UAS breakage was noticed in the first place.
Hope that helps,
Olivier
Quoted 16 lines · Olivier Kaloudoff
Hi Eddie,
Quoted 5 lines · Eddie Chapman
May I trouble you to say the product/model of the Orico device you have which reports "ASMT135x" as the iProduct?
Also, is it still running whatever firmware it came with or has that been upgraded?
It's an ORICO C10 — sold as "ORICO C10 SSD Externe" (4 TB, "800 MB/s" USB enclosure). Stock firmware; it has never been updated, there is no vendor updater for it that I'm aware of.
Identification details for the record: idVendor/idProduct 174c:55aa, iManufacturer "ASMT", iProduct "ASMT135x", bcdDevice 1.00.
Quoted 6 lines
Note the model is now discontinued — mine went back under a defect-based refund (reallocated/pending sectors on the SSD itself), which is how the UAS breakage was noticed in the first place.
Hope that helps,
Olivier
Thanks Olivier. In my own experience just purchasing and using many Asmedia USB to SATA products over the years, they usually ship with quite old, buggy firmware, and the manufacturer rarely provides a firmware update. But there are various unofficial sources of newer firmware out there if you look. It goes without saying you have to decide for yourself if the obvious risk is worth taking. Generally these are either leaked, or are "extracted" from devices with newer firmware by users and shared. Sometimes one or two "good" manufacturers supply firmware updates for their products and the firmware enthusiast community subsequently finds that these apply fine to other equivalent product with the same chip.
There is an internal Asmedia firmware tool widely available online. If a manufacturer does provide a firmware update it will usually come packaged with that tool. It only runs on Windows (not sure about Mac, definitely not Linux). There are community efforts I've seen trying to develop alternative firmare tools.
Anyway, speaking purely from my own experience, I've always updated the firmware on my devices and there is no doubt in my mind that the newer firmware versions I've applied to my devices have resolved serious bugs in the older versions they were shipped with.
Bringing this a little bit back on topic for issues seen in the Linux kernel with Asmedia USB to SATA devices, I'd be willing to wager that a lot (if not most) of the time, if there is a firmware update out there for a chip, there's an excellent chance it will resolve the issue. But it is a mine field for users who are forced to take risks, and it is a very problematic situation for Linux to deal with to say the least.
Eddie
Quoted 1 line · Eddie Chapman
Bringing this a little bit back on topic for issues seen in the Linux kernel with Asmedia USB to SATA devices, I'd be willing to wager that a lot (if not most) of the time, if there is a firmware update out there for a chip, there's an excellent chance it will resolve the issue. But it is a mine field for users who are forced to take risks, and it is a very problematic situation for Linux to deal with to say the least.
Hi,
do they show a different version number?
If not, I am afraid we will have to be conservative and blacklist everything.
Regards
Oliver
Quoted 11 lines · Oliver Neukum
Quoted 1 line · Eddie Chapman
Bringing this a little bit back on topic for issues seen in the Linux kernel with Asmedia USB to SATA devices, I'd be willing to wager that a lot (if not most) of the time, if there is a firmware update out there for a chip, there's an excellent chance it will resolve the issue. But it is a mine field for users who are forced to take risks, and it is a very problematic situation for Linux to deal with to say the least.
Hi,
do they show a different version number?
If not, I am afraid we will have to be conservative and blacklist everything.Regards
Oliver
Hi Oliver,
Yes totally agreed, if the firmware version cannot be easily read from the device somehow, today, then the only and safest option for the kernel is to treat all such devices as if running older firmware. I mean, it is definitely *possible* to query the device to find its firmware version because Asmedia has firmware update utilities that do that under Windows. But I've no idea how. In an ideal world someone from Asmedia would one day provide a patch that exposes that info to the kernel somehow. In the absence of that perhaps one day someone will have the time to sniff USB packets using Qemu to see how it is done and submit a patch.
In the case of this particular device that reports "ASMT135x" as the iProduct seems it's a little unusual, I'd love to see what's printed on the chip on the PCB to confirm what it actually is, as you can easily write any string you like to iProduct in the Windows firmware utility. I've done that myself when updating firmware, here's one I did recently:
idVendor 0x174c ASMedia Technology Inc.
idProduct 0x235c DD25-C3-GY-BP
bcdDevice 1.00
iManufacturer 2 Orico iProduct 3 DD25-C3-GY-BP iSerial 1 234567890126
That device from Orico that came with much older firmware initially reported a different idVendor and idProduct which I can't recall. But as part of the firmware update those 2 fields changed to the above and it is now recognised correctly by the kernel and works better, which is good. But the string "DD25-C3-GY-BP" *I* chose and set that in the firmware utility, it's just the model number of the device. But I could have set it to "111111" or anything else.
regards,
Eddie
Quoted 1 line · Eddie Chapman
Yes totally agreed, if the firmware version cannot be easily read from the device somehow, today, then the only and safest option for the kernel is to treat all such devices as if running older firmware. I mean, it is definitely *possible* to query the device to find its firmware version because Asmedia has firmware update utilities that do that under Windows. But I've no idea how. In an ideal world someone from Asmedia would one day provide a patch that exposes that info to the kernel somehow. In the absence of that perhaps one day someone will have the time to sniff USB packets using Qemu to see how it is done and submit a patch.
Hi,
do you know whether anyone has tried talking to Asmedia?
Regards
Oliver
Quoted 9 lines · Oliver Neukum
Quoted 1 line · Eddie Chapman
Yes totally agreed, if the firmware version cannot be easily read from the device somehow, today, then the only and safest option for the kernel is to treat all such devices as if running older firmware. I mean, it is definitely *possible* to query the device to find its firmware version because Asmedia has firmware update utilities that do that under Windows. But I've no idea how. In an ideal world someone from Asmedia would one day provide a patch that exposes that info to the kernel somehow. In the absence of that perhaps one day someone will have the time to sniff USB packets using Qemu to see how it is done and submit a patch.
Hi,
do you know whether anyone has tried talking to Asmedia?
Regards
Oliver
Hi Oliver,
Myself I don't think I've ever seen any communication between Asmedia and kernel community about this issue in particular. I definitely have never *heard* of any mentioned in blog posts/forums I've lurked in. But I'm not a kernel developer just a very interested user due to having a good few Asmedia devices in use.
I know that the Asmedia chips are highly regarded by people interested in USB to SATA under Linux, as in general working better than others. Particularly the more recent 10Gbps chips seem to be regarded as the "gold standard" under Linux, especially when you update a device's fw.
I think if Asmedia were to ever make the firmware update process easier and less scary for users (e.g. if like Realtek, Mediatek and others do with many usb net devices they submitted blobs to linux-firmware and did fw loading in the kernel) the popularity of their USB to SATA devices would skyrocket and the devices would work so much better under Linux with the newer fw. As it is, most devices out there are running old buggy fw, even under other OS, and as we know there is only so much the kernel can do about that.
Regards,
Eddie