Lacie Rugged USB3-FW does not work with UAS

Julian Sikorski
2019-08-23T13:31:45Z

Dear list,

it appears that lacie rugged usb3-fw is not compatible with UAS.
I have just connected my few years old Lacie Rugged USB3-FW to my new
desktop PC to see if the backups I have been creating on the laptop can
actually be restored. I have then noticed that the drive does not work
in the default configuration and the following is written to dmesg
(tested with 5.2.9-200.fc30.x86_64):

[15737.797937] usb 6-3.4.2: new SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[15737.810713] usb 6-3.4.2: New USB device found, idVendor=059f,
idProduct=1061, bcdDevice= 0.01

[15737.810716] usb 6-3.4.2: New USB device strings: Mfr=2, Product=3,
SerialNumber=1

[15737.810718] usb 6-3.4.2: Product: Rugged USB3-FW

[15737.810720] usb 6-3.4.2: Manufacturer: LaCie

[15737.810722] usb 6-3.4.2: SerialNumber: 00000000157f928920fa

[15737.814775] scsi host12: uas

[15737.815237] scsi 12:0:0:0: Direct-Access LaCie Rugged FW USB3
051E PQ: 0 ANSI: 6

[15737.815879] sd 12:0:0:0: Attached scsi generic sg1 type 0

[15737.824985] sd 12:0:0:0: [sdb] 1953525168 512-byte logical blocks:
(1.00 TB/932 GiB)

[15737.825098] sd 12:0:0:0: [sdb] Write Protect is off

[15737.825101] sd 12:0:0:0: [sdb] Mode Sense: 43 00 00 00

[15737.825259] sd 12:0:0:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA

[15767.920938] sd 12:0:0:0: tag#24 uas_eh_abort_handler 0 uas-tag 1
inflight: IN

[15767.920942] sd 12:0:0:0: tag#24 CDB: Report supported operation codes
a3 0c 01 12 00 00 00 00 02 00 00 00

[15767.926963] scsi host12: uas_eh_device_reset_handler start

[15767.991093] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[15768.004434] scsi host12: uas_eh_device_reset_handler success

[15798.123965] scsi host12: uas_eh_device_reset_handler start

[15798.123996] sd 12:0:0:0: tag#4 uas_zap_pending 0 uas-tag 1 inflight:

[15798.124000] sd 12:0:0:0: tag#4 CDB: Report supported operation codes
a3 0c 01 12 00 00 00 00 02 00 00 00

[15798.188039] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[15798.201126] scsi host12: uas_eh_device_reset_handler success

[15828.333035] scsi host12: uas_eh_device_reset_handler start

[15828.333081] sd 12:0:0:0: tag#5 uas_zap_pending 0 uas-tag 1 inflight:

[15828.333085] sd 12:0:0:0: tag#5 CDB: Report supported operation codes
a3 0c 01 12 00 00 00 00 02 00 00 00

[15828.397330] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[15828.410190] scsi host12: uas_eh_device_reset_handler success

[15858.542068] scsi host12: uas_eh_device_reset_handler start

[15858.542145] sd 12:0:0:0: tag#6 uas_zap_pending 0 uas-tag 1 inflight:

[15858.542149] sd 12:0:0:0: tag#6 CDB: Report supported operation codes
a3 0c 01 12 00 00 00 00 02 00 00 00

[15858.606350] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[15858.619513] scsi host12: uas_eh_device_reset_handler success

[15888.753114] sd 12:0:0:0: tag#7 uas_eh_abort_handler 0 uas-tag 1
inflight: IN

[15888.753120] sd 12:0:0:0: tag#7 CDB: Report supported operation codes
a3 0c 01 93 00 00 00 00 02 00 00 00

[15888.759101] scsi host12: uas_eh_device_reset_handler start

[15888.823237] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[15888.836526] scsi host12: uas_eh_device_reset_handler success

[15918.956115] scsi host12: uas_eh_device_reset_handler start

[15918.956160] sd 12:0:0:0: tag#8 uas_zap_pending 0 uas-tag 1 inflight:

[15918.956164] sd 12:0:0:0: tag#8 CDB: Report supported operation codes
a3 0c 01 93 00 00 00 00 02 00 00 00

[15919.021247] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[15919.038474] scsi host12: uas_eh_device_reset_handler success

[15949.170156] scsi host12: uas_eh_device_reset_handler start

[15949.170198] sd 12:0:0:0: tag#9 uas_zap_pending 0 uas-tag 1 inflight:

[15949.170203] sd 12:0:0:0: tag#9 CDB: Report supported operation codes
a3 0c 01 93 00 00 00 00 02 00 00 00

[15949.234229] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[15949.247353] scsi host12: uas_eh_device_reset_handler success

[15979.371204] scsi host12: uas_eh_device_reset_handler start

[15979.371248] sd 12:0:0:0: tag#10 uas_zap_pending 0 uas-tag 1 inflight:

[15979.371252] sd 12:0:0:0: tag#10 CDB: Report supported operation codes
a3 0c 01 93 00 00 00 00 02 00 00 00

[15979.435356] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[15979.448616] scsi host12: uas_eh_device_reset_handler success

[16009.585216] sd 12:0:0:0: tag#11 uas_eh_abort_handler 0 uas-tag 1
inflight: IN

[16009.585221] sd 12:0:0:0: tag#11 CDB: Report supported operation codes
a3 0c 01 41 00 00 00 00 02 00 00 00

[16009.591243] scsi host12: uas_eh_device_reset_handler start

[16009.655518] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[16009.668915] scsi host12: uas_eh_device_reset_handler success

[16039.788257] scsi host12: uas_eh_device_reset_handler start

[16039.788310] sd 12:0:0:0: tag#18 uas_zap_pending 0 uas-tag 1 inflight:

[16039.788314] sd 12:0:0:0: tag#18 CDB: Report supported operation codes
a3 0c 01 41 00 00 00 00 02 00 00 00

[16039.852343] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[16039.865416] scsi host12: uas_eh_device_reset_handler success

[16069.996177] scsi host12: uas_eh_device_reset_handler start

[16069.996377] sd 12:0:0:0: tag#19 uas_zap_pending 0 uas-tag 1 inflight:

[16069.996383] sd 12:0:0:0: tag#19 CDB: Report supported operation codes
a3 0c 01 41 00 00 00 00 02 00 00 00

[16070.060474] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[16070.073580] scsi host12: uas_eh_device_reset_handler success

[16100.204124] scsi host12: uas_eh_device_reset_handler start

[16100.204194] sd 12:0:0:0: tag#0 uas_zap_pending 0 uas-tag 1 inflight:

[16100.204198] sd 12:0:0:0: tag#0 CDB: Report supported operation codes
a3 0c 01 41 00 00 00 00 02 00 00 00

[16100.268426] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[16100.281565] scsi host12: uas_eh_device_reset_handler success

[16100.281680] sd 12:0:0:0: [sdb] Optimal transfer size 33553920 bytes

[16130.417121] sd 12:0:0:0: tag#4 uas_eh_abort_handler 0 uas-tag 1
inflight: IN

[16130.417126] sd 12:0:0:0: tag#4 CDB: Report supported operation codes
a3 0c 01 12 00 00 00 00 02 00 00 00

[16130.423122] scsi host12: uas_eh_device_reset_handler start

[16130.488247] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[16130.501550] scsi host12: uas_eh_device_reset_handler success

[16160.624027] scsi host12: uas_eh_device_reset_handler start

[16160.624073] sd 12:0:0:0: tag#5 uas_zap_pending 0 uas-tag 1 inflight:

[16160.624077] sd 12:0:0:0: tag#5 CDB: Report supported operation codes
a3 0c 01 12 00 00 00 00 02 00 00 00

[16160.688329] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[16160.701498] scsi host12: uas_eh_device_reset_handler success

[16190.827973] scsi host12: uas_eh_device_reset_handler start

[16190.828050] sd 12:0:0:0: tag#6 uas_zap_pending 0 uas-tag 1 inflight:

[16190.828054] sd 12:0:0:0: tag#6 CDB: Report supported operation codes
a3 0c 01 12 00 00 00 00 02 00 00 00

[16190.892234] usb 6-3.4.2: reset SuperSpeed Gen 1 USB device number 4
using xhci_hcd

[16190.905298] scsi host12: uas_eh_device_reset_handler success

[16216.299763] usb 6-3.4.2: USB disconnect, device number 4

[16216.350027] print_req_error: I/O error, dev sdb, sector 0 flags 0

[16216.350031] Buffer I/O error on dev sdb, logical block 0, async page read

[16216.350066] print_req_error: I/O error, dev sdb, sector 0 flags 0

[16216.350073] Buffer I/O error on dev sdb, logical block 0, async page read

[16216.350093] print_req_error: I/O error, dev sdb, sector 0 flags 0

[16216.350095] Buffer I/O error on dev sdb, logical block 0, async page read

[16216.350103] ldm_validate_partition_table(): Disk read failed.

[16216.350121] print_req_error: I/O error, dev sdb, sector 0 flags 0

[16216.350123] Buffer I/O error on dev sdb, logical block 0, async page read

[16216.350143] print_req_error: I/O error, dev sdb, sector 0 flags 0

[16216.350145] Buffer I/O error on dev sdb, logical block 0, async page read

[16216.350167] print_req_error: I/O error, dev sdb, sector 0 flags 0

[16216.350169] Buffer I/O error on dev sdb, logical block 0, async page read

[16216.350189] print_req_error: I/O error, dev sdb, sector 0 flags 0

[16216.350191] Buffer I/O error on dev sdb, logical block 0, async page read

[16216.350199] Dev sdb: unable to read RDB block 0

[16216.350215] print_req_error: I/O error, dev sdb, sector 0 flags 0

[16216.350217] Buffer I/O error on dev sdb, logical block 0, async page read

[16216.350231] print_req_error: I/O error, dev sdb, sector 0 flags 0

[16216.350233] Buffer I/O error on dev sdb, logical block 0, async page read

[16216.350239] sdb: unable to read partition table

[16216.514973] sd 12:0:0:0: [sdb] Read Capacity(16) failed: Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK

[16216.514977] sd 12:0:0:0: [sdb] Sense not available.

[16216.634949] sd 12:0:0:0: [sdb] Read Capacity(10) failed: Result:
hostbyte=DID_ERROR driverbyte=DRIVER_OK

[16216.634952] sd 12:0:0:0: [sdb] Sense not available.

[16216.682978] sd 12:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)

[16216.835113] sd 12:0:0:0: [sdb] Attached SCSI disk

After some quick digging I have noticed that I have added the following
quirk to my laptop's /etc/modprobe.d back in the day:

options usb-storage quirks=059f:1061:u

Adding the same quirk to the desktop has allowed the drive to work.
Strangely enough it was only needed for USB3, connecting via USB2 cable
worked without the quirk.

There are several other reports of this drive not working with uas:

https://www.reddit.com/r/archlinux/comments/bzm443/external_hdd_not_getting_recognised_on_relatively/
https://bbs.archlinux.org/viewtopic.php?id=211523

Hopefully UAS can be fixed for this USB drive, otherwise maybe the quirk
could be integrated upstream for others to benefit from.