On Tue, 30 Aug 2016 12:40:48 +0200, Oliver Neukum wrote: > On Thu, 2016-08-25 at 22:55 -0400, Robert Krawitz wrote: >> Then, when I write large volumes of data to the drive, I get the >> following every few minutes or so, with the drive temporarily >> stalling. The result is that on a drive capable of about 120 MB/sec I >> actually get 40-60 MB/sec (it varies). >> >> [ 475.006500] sd 6:0:0:0: [sdd] tag#15 uas_eh_abort_handler 0 uas-tag >> 16 inflight: CMD IN >> [ 475.006509] sd 6:0:0:0: [sdd] tag#15 CDB: Read(16) 88 00 00 00 00 >> 00 a3 81 00 4f 00 00 00 08 00 00 > > This is the typical error handling of UAS, which works in your case, > albeit with a performance penalty. But the actual cause of kicking in > the error handler is missing in your log. You cut too much at the > beginning. Here's an excerpt from the full log, from the very first message after I physically plugged in the drive: [67070.554819] usb 3-1: new SuperSpeed USB device number 29 using xhci_hcd [67070.577539] usb 3-1: New USB device found, idVendor=0bc2, idProduct=ab28 [67070.577547] usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1 [67070.577552] usb 3-1: Product: BUP BK [67070.577557] usb 3-1: Manufacturer: Seagate [67070.577562] usb 3-1: SerialNumber: NA7PJA0K [67070.581748] scsi host6: uas [67070.582566] scsi 6:0:0:0: Direct-Access Seagate BUP BK 0304 PQ: 0 ANSI: 6 [67070.614993] sd 6:0:0:0: Attached scsi generic sg4 type 0 [67070.615100] sd 6:0:0:0: [sdd] Spinning up disk... [67071.618564] .......ready [67077.646605] sd 6:0:0:0: [sdd] 7814037167 512-byte logical blocks: (4.00 TB/3.64 TiB) [67077.646608] sd 6:0:0:0: [sdd] 2048-byte physical blocks [67077.714588] sd 6:0:0:0: [sdd] Write Protect is off [67077.714596] sd 6:0:0:0: [sdd] Mode Sense: 4f 00 00 00 [67077.714945] sd 6:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [67077.915152] sd 6:0:0:0: [sdd] Attached SCSI disk [67086.589616] device-mapper: table: 254:0: adding target device sdd caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=0, start=4096 [67086.589621] device-mapper: table: 254:0: adding target device sdd caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=0, start=4096 [67086.822573] device-mapper: table: 254:0: adding target device sdd caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=0, start=33553920 [67086.822578] device-mapper: table: 254:0: adding target device sdd caused an alignment inconsistency: physical_block_size=4096, logical_block_size=512, alignment_offset=0, start=33553920 [67112.197916] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null) [67570.133929] sd 6:0:0:0: [sdd] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT [67570.133935] sd 6:0:0:0: [sdd] tag#0 CDB: Write(16) 8a 00 00 00 00 00 89 9c 7f ff 00 00 04 00 00 00 [67570.134140] sd 6:0:0:0: [sdd] tag#7 uas_eh_abort_handler 0 uas-tag 8 inflight: CMD OUT [67570.134143] sd 6:0:0:0: [sdd] tag#7 CDB: Write(16) 8a 00 00 00 00 00 89 9c 7b ff 00 00 04 00 00 00 [67570.134408] sd 6:0:0:0: [sdd] tag#18 uas_eh_abort_handler 0 uas-tag 19 inflight: CMD OUT [67570.134411] sd 6:0:0:0: [sdd] tag#18 CDB: Write(16) 8a 00 00 00 00 00 89 9c 77 ff 00 00 04 00 00 00 [67570.134657] sd 6:0:0:0: [sdd] tag#6 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD OUT [67570.134660] sd 6:0:0:0: [sdd] tag#6 CDB: Write(16) 8a 00 00 00 00 00 89 9c 73 ff 00 00 04 00 00 00 [67570.134918] sd 6:0:0:0: [sdd] tag#22 uas_eh_abort_handler 0 uas-tag 23 inflight: CMD OUT [67570.134921] sd 6:0:0:0: [sdd] tag#22 CDB: Write(16) 8a 00 00 00 00 00 89 9c 6f ff 00 00 04 00 00 00 [67570.135122] sd 6:0:0:0: [sdd] tag#5 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD OUT [67570.135127] sd 6:0:0:0: [sdd] tag#5 CDB: Write(16) 8a 00 00 00 00 00 89 9c 6b ff 00 00 04 00 00 00 [67570.135221] sd 6:0:0:0: [sdd] tag#4 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD OUT [67570.135224] sd 6:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 89 9c 67 ff 00 00 04 00 00 00 [67570.135413] sd 6:0:0:0: [sdd] tag#19 uas_eh_abort_handler 0 uas-tag 20 inflight: CMD OUT [67570.135415] sd 6:0:0:0: [sdd] tag#19 CDB: Write(16) 8a 00 00 00 00 00 89 9c 63 ff 00 00 04 00 00 00 [67571.085955] sd 6:0:0:0: [sdd] tag#2 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT [67571.085966] sd 6:0:0:0: [sdd] tag#2 CDB: Write(16) 8a 00 00 00 00 00 89 9c 83 ff 00 00 04 00 00 00 [67571.086072] scsi host6: uas_eh_bus_reset_handler start [67571.088126] sd 6:0:0:0: [sdd] tag#1 uas_zap_pending 0 uas-tag 2 inflight: CMD [67571.088129] sd 6:0:0:0: [sdd] tag#1 CDB: Write(16) 8a 00 00 00 00 00 89 9c 8f ff 00 00 04 00 00 00 [67571.088131] sd 6:0:0:0: [sdd] tag#8 uas_zap_pending 0 uas-tag 9 inflight: CMD [67571.088133] sd 6:0:0:0: [sdd] tag#8 CDB: Write(16) 8a 00 00 00 00 00 89 9c 97 ff 00 00 04 00 00 00 [67571.088135] sd 6:0:0:0: [sdd] tag#16 uas_zap_pending 0 uas-tag 17 inflight: CMD [67571.088137] sd 6:0:0:0: [sdd] tag#16 CDB: Write(16) 8a 00 00 00 00 00 89 9c 9b ff 00 00 04 00 00 00 [67571.088139] sd 6:0:0:0: [sdd] tag#17 uas_zap_pending 0 uas-tag 18 inflight: CMD [67571.088140] sd 6:0:0:0: [sdd] tag#17 CDB: Write(16) 8a 00 00 00 00 00 89 9c 87 ff 00 00 04 00 00 00 [67571.088142] sd 6:0:0:0: [sdd] tag#21 uas_zap_pending 0 uas-tag 22 inflight: CMD [67571.088144] sd 6:0:0:0: [sdd] tag#21 CDB: Write(16) 8a 00 00 00 00 00 89 9c 93 ff 00 00 04 00 00 00 [67571.088146] sd 6:0:0:0: [sdd] tag#24 uas_zap_pending 0 uas-tag 25 inflight: CMD [67571.088147] sd 6:0:0:0: [sdd] tag#24 CDB: Write(16) 8a 00 00 00 00 00 89 9c 8b ff 00 00 04 00 00 00 [67571.088149] sd 6:0:0:0: [sdd] tag#26 uas_zap_pending 0 uas-tag 27 inflight: CMD [67571.088151] sd 6:0:0:0: [sdd] tag#26 CDB: Write(16) 8a 00 00 00 00 00 89 9c 9f ff 00 00 04 00 00 00 [67571.088153] sd 6:0:0:0: [sdd] tag#27 uas_zap_pending 0 uas-tag 28 inflight: CMD [67571.088154] sd 6:0:0:0: [sdd] tag#27 CDB: Write(16) 8a 00 00 00 00 00 e8 c5 07 bf 00 00 01 70 00 00 [67571.199110] usb 3-1: reset SuperSpeed USB device number 29 using xhci_hcd [67571.220456] scsi host6: uas_eh_bus_reset_handler success -- Robert Krawitz <rlk@xxxxxxxxxxxx> *** MIT Engineers A Proud Tradition http://mitathletics.com *** Member of the League for Programming Freedom -- http://ProgFree.org Project lead for Gutenprint -- http://gimp-print.sourceforge.net "Linux doesn't dictate how I work, I dictate how Linux works." --Eric Crampton -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html