uas: Add US_FL_NO_ATA_1X quirk for one more Seagate device
Subsystems (4)
PATCH 1/1 uas: Add US_FL_NO_ATA_1X quirk for one more Seagate device
Just like all previous UAS capable Seagate disk enclosures, this one needs a US_FL_NO_ATA_1X quirk.
--- drivers/usb/storage/unusual_uas.h | 7 +++++++ 1 file changed, 7 insertions(+)
drivers/usb/storage/unusual_uas.h +7 -0
@@ -121,6 +121,13 @@ UNUSUAL_DEV(0x0bc2, 0xab2a, 0x0000, 0x9999, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_NO_ATA_1X), +/* Reported-by: Andrey Astafyev <[email protected]> */ +UNUSUAL_DEV (0x0bc2 ,0xab30 ,0x0000 ,0x9999 , +"Seagate" , +"BUP BK" , +USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , +US_FL_NO_ATA_1X ), +/* Reported-by: Benjamin Tissoires <[email protected]> */ UNUSUAL_DEV(0x13fd, 0x3940, 0x0000, 0x9999, "Initio Corporation",
Signature · 1 line
2.14.3
Quoted 4 lines · On Fri, 10 Nov 2017 16:13:44 +0100 Hans de Goede <[email protected]> wrote:
Just like all previous UAS capable Seagate disk enclosures, this one needs a
US_FL_NO_ATA_1Xquirk.
[...]
+/* Reported-by: Andrey Astafyev <[email protected]> */
Hi Andrey,
I notice that you have an external Seagate SMR drive, I am encountering some trouble and was wondering if you (or anyone in CC) could have some feedback.
While the drives I have (PID 0xab45, "Backup+ Hub BK") are used without problem with very light loads, I'm starting to get annoyed when doing more serious work.
Here is a series of messages (v4.14) I have when simply trying to balance 1 chunk of BTRFS data, ie. write 5 GiB, and waiting a long time in-between:
Nov 12 16:15:35 Bidule kernel: sd 22:0:0:0: [sdaa] tag#7 uas_eh_abort_handler 0 uas-tag 8 inflight: CMD OUT Nov 12 16:15:35 Bidule kernel: sd 22:0:0:0: [sdaa] tag#7 CDB: Write(16) 8a 00 00 00 00 00 00 00 11 00 00 00 00 80 00 00 Nov 12 16:15:35 Bidule kernel: sd 22:0:0:0: [sdaa] tag#6 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD OUT Nov 12 16:15:35 Bidule kernel: sd 22:0:0:0: [sdaa] tag#6 CDB: Write(16) 8a 00 00 00 00 00 00 00 11 80 00 00 00 80 00 00 Nov 12 16:15:35 Bidule kernel: sd 22:0:0:0: [sdaa] tag#5 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD OUT Nov 12 16:15:35 Bidule kernel: sd 22:0:0:0: [sdaa] tag#5 CDB: Write(16) 8a 00 00 00 00 00 00 bf fd 80 00 00 00 80 00 00 Nov 12 16:15:35 Bidule kernel: sd 22:0:0:0: [sdaa] tag#4 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD OUT Nov 12 16:15:35 Bidule kernel: sd 22:0:0:0: [sdaa] tag#4 CDB: Write(16) 8a 00 00 00 00 00 00 bf fd 00 00 00 00 80 00 00 Nov 12 16:15:35 Bidule kernel: scsi host22: uas_eh_device_reset_handler start Nov 12 16:15:35 Bidule kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 9 using xhci_hcd Nov 12 16:15:35 Bidule kernel: scsi host22: uas_eh_device_reset_handler success
Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#3 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD IN Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#3 CDB: Read(16) 88 00 00 00 00 00 01 02 53 80 00 00 00 80 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#13 uas_eh_abort_handler 0 uas-tag 14 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#13 CDB: Write(16) 8a 00 00 00 00 00 01 02 3b c0 00 00 00 20 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#2 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#2 CDB: Write(16) 8a 00 00 00 00 00 01 02 41 00 00 00 01 00 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#12 uas_eh_abort_handler 0 uas-tag 13 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#12 CDB: Write(16) 8a 00 00 00 00 00 01 02 3c a0 00 00 00 20 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#11 uas_eh_abort_handler 0 uas-tag 12 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#11 CDB: Write(16) 8a 00 00 00 00 00 01 02 62 00 00 00 00 80 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#1 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#1 CDB: Write(16) 8a 00 00 00 00 00 01 02 61 80 00 00 00 80 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#10 uas_eh_abort_handler 0 uas-tag 11 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#10 CDB: Write(16) 8a 00 00 00 00 00 01 02 61 00 00 00 00 80 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#9 uas_eh_abort_handler 0 uas-tag 10 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#9 CDB: Write(16) 8a 00 00 00 00 00 01 02 60 80 00 00 00 80 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#8 uas_eh_abort_handler 0 uas-tag 9 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#8 CDB: Write(16) 8a 00 00 00 00 00 01 02 60 00 00 00 00 80 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#7 uas_eh_abort_handler 0 uas-tag 8 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#7 CDB: Write(16) 8a 00 00 00 00 00 01 02 5f 80 00 00 00 80 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#6 uas_eh_abort_handler 0 uas-tag 7 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#6 CDB: Write(16) 8a 00 00 00 00 00 01 02 5f 00 00 00 00 80 00 00 Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#5 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD OUT Nov 12 16:20:28 Bidule kernel: sd 22:0:0:0: [sdaa] tag#5 CDB: Write(16) 8a 00 00 00 00 00 01 02 50 00 00 00 00 80 00 00 Nov 12 16:20:28 Bidule kernel: scsi host22: uas_eh_device_reset_handler start Nov 12 16:20:28 Bidule kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 9 using xhci_hcd Nov 12 16:20:28 Bidule kernel: scsi host22: uas_eh_device_reset_handler success
Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#2 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#2 CDB: Write(16) 8a 00 00 00 00 00 20 00 08 00 00 00 00 08 00 00 Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#1 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#1 CDB: Write(16) 8a 00 00 00 00 00 00 02 08 00 00 00 00 08 00 00 Nov 12 16:21:29 Bidule kernel: sd 22:0:0:0: [sdaa] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD Nov 12 16:21:29 Bidule kernel: sd 22:0:0:0: [sdaa] tag#0 CDB: Synchronize Cache(10) 35 00 00 00 00 00 00 00 00 00 Nov 12 16:21:29 Bidule kernel: scsi host22: uas_eh_device_reset_handler start Nov 12 16:21:29 Bidule kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 9 using xhci_hcd Nov 12 16:21:29 Bidule kernel: scsi host22: uas_eh_device_reset_handler success
Do you see such things?
I understand that latencies can climb to several seconds as the disks can do GC, and suspect that the issues (sometimes the USB reset doesn't work and a reboot is needed...) are due to some unawareness of that, but I don't know.
There are several threads on distribution forums & bug trackers, but nothing really helpful, and I didn't see much on LKML.
Regards,
Signature · 1 line
Jérôme
A message that is not in the archive (sent off-list or not yet received): [email protected]
13.11.2017 00:42, Jérôme Carretero пишет:
Quoted 11 lines
Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#2 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#2 CDB: Write(16) 8a 00 00 00 00 00 20 00 08 00 00 00 00 08 00 00 Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#1 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#1 CDB: Write(16) 8a 00 00 00 00 00 00 02 08 00 00 00 00 08 00 00 Nov 12 16:21:29 Bidule kernel: sd 22:0:0:0: [sdaa] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD Nov 12 16:21:29 Bidule kernel: sd 22:0:0:0: [sdaa] tag#0 CDB: Synchronize Cache(10) 35 00 00 00 00 00 00 00 00 00 Nov 12 16:21:29 Bidule kernel: scsi host22: uas_eh_device_reset_handler start Nov 12 16:21:29 Bidule kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 9 using xhci_hcd Nov 12 16:21:29 Bidule kernel: scsi host22: uas_eh_device_reset_handler success
Quoted 2 lines
Do you see such things?
Hi, I've seen dmesg output like this so I've added my device to quirks list like any other Seagate USB drive.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 8 lines · On Mon, 13 Nov 2017 07:01:30 +0300 Andrey Astafyev <[email protected]> wrote:
13.11.2017 00:42, Jérôme Carretero пишет:
Quoted 5 lines
Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#2
uas_eh_abort_handler0 uas-tag 3 inflight: CMD OUT [...]
Do you see such things?Hi, I've seen dmesg output like this so I've added my device to quirks list like any other Seagate USB drive.
Hi Andrey, Hans,
For my devices, adding US_FL_NO_ATA_1X to unusual_uas.h didn't change anything, and while adding US_FL_IGNORE_UAS (using quirks=0bc2:ab34:u,0bc2:ab38:u) there are still device resets, but they cause shorter hangs in system activity (~1 second when UAS was more like ~20).
Is the US_FL_NO_ATA_1X supposed to get rid of the R/W errors? The first entry I saw about this quirk was so that the device can be used at all (wouldn't be able to mount without it).
I'll follow up: when scrubbing the devices after a sequence of experiments, there were checksum errors, so I'll retry with a more reproducible sequence to try and get something more solid. I wouldn't want to disable UAS just to see that reliability has been reduced (one Arch bug report mentions something like that
https://bugs.archlinux.org/task/48362).
Regards,
Signature · 6 lines
Jérôme PS: The controllers I tested do the same: 09:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10) 0c:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
13.11.2017 09:14, Jérôme Carretero пишет:
Quoted 5 lines
For my devices, adding
US_FL_NO_ATA_1Xtounusual_uas.hdidn't change anything, and while addingUS_FL_IGNORE_UAS(using quirks=0bc2:ab34:u,0bc2:ab38:u) there are still device resets, but they cause shorter hangs in system activity (~1 second when UAS was more like ~20).
Maybe you should try like this: quirks=0bc2:ab34:ut,0bc2:ab38:ut ?
Quoted 8 lines · On Mon, 13 Nov 2017 09:16:39 +0300 Andrey Astafyev <[email protected]> wrote:
13.11.2017 09:14, Jérôme Carretero пишет:
Quoted 5 lines
For my devices, adding
US_FL_NO_ATA_1Xtounusual_uas.hdidn't change anything, and while addingUS_FL_IGNORE_UAS(using quirks=0bc2:ab34:u,0bc2:ab38:u) there are still device resets, but they cause shorter hangs in system activity (~1 second when UAS was more like ~20).Maybe you should try like this: quirks=0bc2:ab34:ut,0bc2:ab38:ut ?
It looks like "ut" would do the same as "u" alone, as US_FL_NO_ATA_1X is only used inside uas.ko.
For some reason, first I wanted to go in the .h, and it's only after, when the trial and error went more intense, that I used the command-line parameters.
Will follow up later... I hope the drives won't end up costing more than 12Gb/s SAS drives on an expensive HBA... as they are definitely not hassle-free so far.
I had gotten the first 8 TB model in 2015 and had issues, but my simple, background workload (attic/borg) could afford to use a workaround of throttling writes*.
Signature · 3 lines
Jérôme * https://bugzilla.kernel.org/show_bug.cgi?id=93581#c129
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
Quoted 12 lines · Jérôme Carretero
Quoted 8 lines · On Mon, 13 Nov 2017 07:01:30 +0300 Andrey Astafyev <[email protected]> wrote:
13.11.2017 00:42, Jérôme Carretero пишет:
Quoted 5 lines
Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#2
uas_eh_abort_handler0 uas-tag 3 inflight: CMD OUT [...]
Do you see such things?Hi, I've seen dmesg output like this so I've added my device to quirks list like any other Seagate USB drive.
Quoted 8 lines
Hi Andrey, Hans,
For my devices, adding
US_FL_NO_ATA_1Xtounusual_uas.hdidn't change anything, and while addingUS_FL_IGNORE_UAS(using quirks=0bc2:ab34:u,0bc2:ab38:u) there are still device resets, but they cause shorter hangs in system activity (~1 second when UAS was more like ~20).
The errors you are seeing are write errors. If you're seeing these errors with both the usb-storage and uas drivers then there likely is something wrong with your setup / hardware.
Does the drive in question use an external power-supply or is it USB bus-powered? If it is the latter then that is likely the problem.
Anyways things I would check and try to swap are both the cable used, the power-supply used (if any), the USB-port used as well as trying the disk on a completely different computer.
I've the feeling something is busted with your hardware, it could be the disk itself. Did you mention that this was the first release of a new higher capacity ? Those often have some kinks which are worked out in later revisions.
Regards,
Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 3d276729-63f7-9727-4a22-55849712439c-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Hi Hans,
Quoted 18 lines · On Mon, 13 Nov 2017 10:04:53 +0100 Hans de Goede…
Hi,
Quoted 9 lines · Jérôme Carretero
Quoted 5 lines · On Mon, 13 Nov 2017 07:01:30 +0300 Andrey Astafyev <[email protected]> wrote:
13.11.2017 00:42, Jérôme Carretero пишет:
Quoted 4 lines
Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#2
uas_eh_abort_handler0 uas-tag 3 inflight: CMD OUT [...]
Do you see such things?Quoted 5 lines
For my devices, adding
US_FL_NO_ATA_1Xtounusual_uas.hdidn't change anything, and while addingUS_FL_IGNORE_UAS(using quirks=0bc2:ab34:u,0bc2:ab38:u) there are still device resets, but they cause shorter hangs in system activity (~1 second when UAS was more like ~20).
Quoted 3 lines
The errors you are seeing are write errors. If you're seeing these errors with both the usb-storage and uas drivers then there likely is something wrong with your setup / hardware.
My latest drives are Seagate Backup+ Hub 8TB and have ~ 50 hours of uptime. I have connected them to different controllers and they do the same as the first generation of the same capacity from 2015.
SMART says that everything is OK on these disks (I have another that was RMA'ed and the symptoms of failure are something else), and if there were USB errors, the messages wouldn't be at the higher SCSI level, I guess I would see "xact failed" USB errors... no?
Quoted 2 lines
Does the drive in question use an external power-supply or is it USB bus-powered? If it is the latter then that is likely the problem.
External power supply & ~2-ft cable provided by Seagate.
Quoted 3 lines
Anyways things I would check and try to swap are both the cable used, the power-supply used (if any), the USB-port used as well as trying the disk on a completely different computer.
I did that. The same thing happens.
Quoted 4 lines
I've the feeling something is busted with your hardware, it could be the disk itself. Did you mention that this was the first release of a new higher capacity ? Those often have some kinks which are worked out in later revisions.
No, that's about the 3rd release I think.
I really suspect this has to do with GC activity of these SMR drives, as if the write activity is throttled or in more spaced bursts (same USB-level intensity), then there is no problem.
I will do longer tests and see if only some of them do that, after they have been subjected to similar usage history.
Best regards,
Signature · 5 lines
Jérôme -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Seagate External SMR drive USB resets (was: Re: [PATCH] uas: Add US_FL_NO_ATA_1X quirk for one more Seagate device)
Hi Hans,
Tests are currently undergoing with drives operating in plain USB mass storage class. In a first time, I'm filling drives with data (uncontrolled corpus, just TBs that I have on hand). It looks like the drives with most usage history are the ones that drop most often.
kernel: usb 3-4.1.1: reset SuperSpeed USB device number 6 using xhci_hcd
kernel: usb 3-4.2.1: reset SuperSpeed USB device number 7 using xhci_hcd
kernel: usb 3-4.3.1.1: reset SuperSpeed USB device number 13 using xhci_hcd
kernel: usb 3-4.3.2.1: reset SuperSpeed USB device number 14 using xhci_hcd
kernel: usb 3-4.4: reset SuperSpeed USB device number 8 using xhci_hcd
kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 8 using xhci_hcd
kernel: usb 6-4.3.3.1: reset SuperSpeed USB device number 9 using xhci_hcd
kernel: usb 6-4.4.1: reset SuperSpeed USB device number 6 using xhci_hcd
Will provide some more interesting/visual data later.
I'm surprised that the message "reset SuperSpeed USB device ..." is displayed without prior information about why.
Someone with more background could give hints?
I took a look at the USB MSC code and have few questions / observations:
- It looks like (haven't tested it yet) the CONFIG_DYNAMIC_DEBUG isn't used with the USB mass storage debugging infrastructure, please confirm? If unused, are we interested to have a patch that would go back to regular pr_debug() that can work with dynamic debugging?
Because with several of these drives / lots of activity / occasional issues, it looks like it will be hard to catch (yes I can use usbmon).
- It looks like there is no configurable timeout for USB MSC requests. Perhaps the device is not responding in time and this is why it's reset?
Best regards,
Signature · 4 lines
Jérôme On Mon, 13 Nov 2017 12:38:14 -0500
Quoted 60 lines · Jérôme Carretero
Hi Hans,
Quoted 18 lines · On Mon, 13 Nov 2017 10:04:53 +0100 Hans de Goede…
Hi,
Quoted 9 lines · Jérôme Carretero
Quoted 5 lines · On Mon, 13 Nov 2017 07:01:30 +0300 Andrey Astafyev <[email protected]> wrote:
13.11.2017 00:42, Jérôme Carretero пишет:
Quoted 4 lines
Nov 12 16:20:59 Bidule kernel: sd 22:0:0:0: [sdaa] tag#2
uas_eh_abort_handler0 uas-tag 3 inflight: CMD OUT [...]
Do you see such things?Quoted 5 lines
For my devices, adding
US_FL_NO_ATA_1Xtounusual_uas.hdidn't change anything, and while addingUS_FL_IGNORE_UAS(using quirks=0bc2:ab34:u,0bc2:ab38:u) there are still device resets, but they cause shorter hangs in system activity (~1 second when UAS was more like ~20).Quoted 3 lines
The errors you are seeing are write errors. If you're seeing these errors with both the usb-storage and uas drivers then there likely is something wrong with your setup / hardware.
My latest drives are Seagate Backup+ Hub 8TB and have ~ 50 hours of uptime. I have connected them to different controllers and they do the same as the first generation of the same capacity from 2015.
SMART says that everything is OK on these disks (I have another that was RMA'ed and the symptoms of failure are something else), and if there were USB errors, the messages wouldn't be at the higher SCSI level, I guess I would see "xact failed" USB errors... no?
Quoted 3 lines
Does the drive in question use an external power-supply or is it USB bus-powered? If it is the latter then that is likely the problem.
External power supply & ~2-ft cable provided by Seagate.
Quoted 3 lines
Anyways things I would check and try to swap are both the cable used, the power-supply used (if any), the USB-port used as well as trying the disk on a completely different computer.
I did that. The same thing happens.
Quoted 4 lines
I've the feeling something is busted with your hardware, it could be the disk itself. Did you mention that this was the first release of a new higher capacity ? Those often have some kinks which are worked out in later revisions.
No, that's about the 3rd release I think.
I really suspect this has to do with GC activity of these SMR drives, as if the write activity is throttled or in more spaced bursts (same USB-level intensity), then there is no problem.
Quoted 6 lines
I will do longer tests and see if only some of them do that, after they have been subjected to similar usage history.
Best regards,
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: Seagate External SMR drive USB resets (was: Re: [PATCH] uas: Add US_FL_NO_ATA_1X quirk for one more Seagate device)
(Adding Tejun Heo who was assigned on still-open bugzilla #93581 which is about SATA but seems terribly related.)
Quoted 38 lines · On Wed, 15 Nov 2017 16:43:14 -0500 Jérôme Carretero…
Hi Hans,
Tests are currently undergoing with drives operating in plain USB mass storage class. In a first time, I'm filling drives with data (uncontrolled corpus, just TBs that I have on hand). It looks like the drives with most usage history are the ones that drop most often.
kernel: usb 3-4.1.1: reset SuperSpeed USB device number 6 using
xhci_hcdkernel: usb 3-4.2.1: reset SuperSpeed USB device number 7 usingxhci_hcdkernel: usb 3-4.3.1.1: reset SuperSpeed USB device number 13 usingxhci_hcdkernel: usb 3-4.3.2.1: reset SuperSpeed USB device number 14 usingxhci_hcdkernel: usb 3-4.4: reset SuperSpeed USB device number 8 usingxhci_hcdkernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 8 usingxhci_hcdkernel: usb 6-4.3.3.1:
reset SuperSpeed USB device number 9 usingxhci_hcdkernel: usb 6-4.4.1: reset SuperSpeed USB device number 6 usingxhci_hcdWill provide some more interesting/visual data later.
I'm surprised that the message "reset SuperSpeed USB device ..." is displayed without prior information about why.
Someone with more background could give hints?I took a look at the USB MSC code and have few questions / observations:
- It looks like (haven't tested it yet) the
CONFIG_DYNAMIC_DEBUGisn't used with the USB mass storage debugging infrastructure, please confirm? If unused, are we interested to have a patch that would go back to regularpr_debug()that can work with dynamic debugging?Because with several of these drives / lots of activity / occasional issues, it looks like it will be hard to catch (yes I can use
usbmon).
Quoted 6 lines
- It looks like there is no configurable timeout for USB MSC requests. Perhaps the device is not responding in time and this is why it's reset?
Best regards,
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: Seagate External SMR drive USB resets (was: Re: [PATCH] uas: Add US_FL_NO_ATA_1X quirk for one more Seagate device)
Quoted 30 lines · Jérôme Carretero
(Adding Tejun Heo who was assigned on still-open bugzilla #93581 which is about SATA but seems terribly related.)
Quoted 24 lines · On Wed, 15 Nov 2017 16:43:14 -0500 Jérôme Carretero…
Hi Hans,
Tests are currently undergoing with drives operating in plain USB mass storage class. In a first time, I'm filling drives with data (uncontrolled corpus, just TBs that I have on hand). It looks like the drives with most usage history are the ones that drop most often.
kernel: usb 3-4.1.1: reset SuperSpeed USB device number 6 using
xhci_hcdkernel: usb 3-4.2.1: reset SuperSpeed USB device number 7 usingxhci_hcdkernel: usb 3-4.3.1.1: reset SuperSpeed USB device number 13 usingxhci_hcdkernel: usb 3-4.3.2.1: reset SuperSpeed USB device number 14 usingxhci_hcdkernel: usb 3-4.4: reset SuperSpeed USB device number 8 usingxhci_hcdkernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 8 usingxhci_hcdkernel: usb 6-4.3.3.1:
reset SuperSpeed USB device number 9 usingxhci_hcdkernel: usb 6-4.4.1: reset SuperSpeed USB device number 6 usingxhci_hcdWill provide some more interesting/visual data later.
I'm surprised that the message "reset SuperSpeed USB device ..." is displayed without prior information about why.
Someone with more background could give hints?
usb-storage resets a drive whenever the SCSI layer tells it to or when a protocol error occurs. As far as I know, the SCSI layer issues these resets only when a command has timed out.
Quoted 7 lines
Quoted 7 lines
I took a look at the USB MSC code and have few questions / observations:
- It looks like (haven't tested it yet) the
CONFIG_DYNAMIC_DEBUGisn't used with the USB mass storage debugging infrastructure, please confirm? If unused, are we interested to have a patch that would go back to regularpr_debug()that can work with dynamic debugging?
dev_dbg() please, not pr_debug(). But yes, that would be worthwhile.
Note, however, that usb-storage debugging is meant only for debugging problems in the usb-storage driver itself, not for debugging problems in attached devices. We use usbmon or wireshark for the latter.
Quoted 7 lines
Quoted 7 lines
Because with several of these drives / lots of activity / occasional issues, it looks like it will be hard to catch (yes I can use
usbmon).- It looks like there is no configurable timeout for USB MSC requests. Perhaps the device is not responding in time and this is why it's reset?
Timeouts are set by the SCSI layer. I believe they are rather long (30 seconds, by default). Presumably they are configurable, although I would have to do some digging to figure out how.
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
James Bottomley
maintainerRe: Seagate External SMR drive USB resets (was: Re: [PATCH] uas: Add US_FL_NO_ATA_1X quirk for one more Seagate device)
Quoted 7 lines · Alan Stern
Quoted 1 line · Jérôme Carretero
Quoted 1 line
Because with several of these drives / lots of activity /
occasional
Quoted 4 lines
Quoted 4 lines
issues, it looks like it will be hard to catch (yes I can use usbmon).
- It looks like there is no configurable timeout for USB MSC
Quoted 8 lines
requests.
Quoted 1 line
Quoted 1 line
Perhaps the device is not responding in time and this is why
it's
Quoted 1 line
Quoted 1 line
reset?
Timeouts are set by the SCSI layer. I believe they are rather long (30 seconds, by default). Presumably they are configurable, although I would have to do some digging to figure out how.
They're in /sys/class/scsi_device/<id>/device/timeout
jejb@bedivere:~> ls -l /sys/class/scsi_device/0\:0\:0\:0/device/timeout -rw-r--r-- 1 root root 4096 Nov 15 14:37 /sys/class/scsi_device/0:0:0:0/device/timeout jejb@bedivere:~> cat /sys/class/scsi_device/0\:0\:0\:0/device/timeout
30
You can actually have a udev rule adjust them on a per device id basis.
James
Re: Seagate External SMR drive USB resets (was: Re: [PATCH] uas: Add US_FL_NO_ATA_1X quirk for one more Seagate device)
Hi,
Quoted 10 lines · On Thu, 16 Nov 2017 07:40:08 +0900 James Bottomley…
Quoted 9 lines · Alan Stern
Quoted 1 line · Jérôme Carretero
Quoted 1 line
Because with several of these drives / lots of activity /
occasional
Quoted 4 lines
Quoted 4 lines
issues, it looks like it will be hard to catch (yes I can use usbmon).
- It looks like there is no configurable timeout for USB MSCrequests.
Quoted 1 line
Quoted 1 line
Perhaps the device is not responding in time and this is why
Quoted 8 lines
Quoted 6 lines
it's
Quoted 1 line
Quoted 1 line
reset?
Timeouts are set by the SCSI layer. I believe they are rather long (30 seconds, by default). Presumably they are configurable, although I would have to do some digging to figure out how.
They're in /sys/class/scsi_device/<id>/device/timeout
I'll use wireshark to check the cause: for sure, the drives are not "timing out" after 30 seconds (indeed the reported value
in /sys/class/scsi_device/.../timeout or /sys/block/*/device/timeout), because I see (in dstat) that a disk is busy until the right about the moment where its reset message appears.
Is it possible that the SCSI timeout doesn't get set into an USB URB timeout (I'll check by myself, but asking doesn't hurt) ?
Thank you,
Signature · 1 line
Jérôme
Re: Seagate External SMR drive USB resets (XHCI transfer error, not timeout)
Hi,
Quoted 30 lines · On Wed, 15 Nov 2017 18:17:08 -0500 Jérôme Carretero <[email protected]> wrote:
Hi,
Quoted 14 lines · On Thu, 16 Nov 2017 07:40:08 +0900 James Bottomley…
Quoted 13 lines · Alan Stern
Quoted 2 lines · Jérôme Carretero
Quoted 2 lines
Because with several of these drives / lots of
activity /occasional
Quoted 6 lines
Quoted 6 lines
issues, it looks like it will be hard to catch (yes I can use
usbmon).
- It looks like there is no configurable timeout for USB MSCrequests.
Quoted 2 lines
Quoted 2 lines
Perhaps the device is not responding in time and this is why
Quoted 8 lines
Quoted 6 lines
it's
Quoted 1 line
Quoted 1 line
reset?
Timeouts are set by the SCSI layer. I believe they are rather long (30 seconds, by default). Presumably they are configurable, although I would have to do some digging to figure out how.
They're in /sys/class/scsi_device/<id>/device/timeout
Quoted 8 lines
I'll use wireshark to check the cause: for sure, the drives are not "timing out" after 30 seconds (indeed the reported value
in/sys/class/scsi_device/.../timeoutor/sys/block/*/device/timeout), because I see (in dstat) that a disk is busy until the right about the moment where its reset message appears.Is it possible that the SCSI timeout doesn't get set into an USB URB timeout (I'll check by myself, but asking doesn't hurt) ?
I performed an usbmon capture extract, centered around the event (there was a few hundred MBs written for this to happen):
Nov 15 22:16:33 Bidule kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 8 using xhci_hcd
I can see that the computer is sending a write request, and sees a -EPROTO in answer (capture in attachment), so scratch the timeout issue (and actually when thinking about it, this matches what UAS was saying, except that UAS was taking ages to recover).
Looked for EPROTO in the usb code, and found a dynamic debug printf in XHCI; after enabling it:
Nov 15 22:45:03 Bidule kernel: xhci_hcd 0000:07:00.0: Transfer error for slot 13 ep 3 on endpoint Nov 15 22:45:03 Bidule kernel: xhci_hcd 0000:07:00.0: Transfer error for slot 12 ep 3 on endpoint Nov 15 22:45:03 Bidule kernel: usb 6-4.3.3.1: reset SuperSpeed USB device number 9 using xhci_hcd Nov 15 22:45:03 Bidule kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 8 using xhci_hcd
First, I understand that a bad USB device could poison the kernel log, but shouldn't that xhci_dbg() (and others eg. babble) be at least an xhci_info() (I saw 2a9227a5)?
Then... I don't know enough to attribute the issue the upstream USB hub(s) or the drive endpoint not behaving properly, or the kernel... what should I do with these messages?
I'm still filling the drives, will perform a scrub after, to see if the issue causes data loss...
Signature · 4 lines
Jérôme PS: BTW, thanks a lot for the help so far. PPS: It would be so nice if someone from Seagate was reading this.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: Seagate External SMR drive USB resets (XHCI transfer error, not timeout)
Quoted 14 lines · Jérôme Carretero
I performed an usbmon capture extract, centered around the event (there was a few hundred MBs written for this to happen):
Nov 15 22:16:33 Bidule kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 8 using xhci_hcdI can see that the computer is sending a write request, and sees a
-EPROTOin answer (capture in attachment), so scratch the timeout issue (and actually when thinking about it, this matches what UAS was saying, except that UAS was taking ages to recover).Looked for EPROTO in the usb code, and found a dynamic debug printf in XHCI; after enabling it:
Quoted 8 lines
Nov 15 22:45:03 Bidule kernel: xhci_hcd 0000:07:00.0: Transfer error for slot 13 ep 3 on endpoint Nov 15 22:45:03 Bidule kernel: xhci_hcd 0000:07:00.0: Transfer error for slot 12 ep 3 on endpoint Nov 15 22:45:03 Bidule kernel: usb 6-4.3.3.1: reset SuperSpeed USB device number 9 using xhci_hcd Nov 15 22:45:03 Bidule kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 8 using xhci_hcdFirst, I understand that a bad USB device could poison the kernel log, but shouldn't that
xhci_dbg()(and others eg. babble) be at least anxhci_info()(I saw2a9227a5)?
I suspect that if every USB error got printed in the kernel log, people would be upset at how much useless information was added.
Quoted 3 lines
Then... I don't know enough to attribute the issue the upstream USB hub(s) or the drive endpoint not behaving properly, or the kernel... what should I do with these messages?
Here's the error:
b5251480 0.505661 S Bo:6:008:2 -115 196608 = 540a2813 1a33dd99 ab76840c bf72fc6b 60f9fcaf 4d61822c c007ff4e ab72d022 b5251480 0.506280 C Bo:6:008:2 -71 86016 >
This means the kernel tried to write 196608 bytes to the drive. After 86016 had been transferred, the drive did not reply correctly to the next output transaction, causing the kernel to perform a reset. That's what happened, according to the viewpoint of the xhci-hcd driver.
In theory it's possible that the drive did respond correctly and the information get messed up on the USB cable or on the computer's end. Since we can't see what signals were actually sent on the USB bus, there's no way to be certain. But it seems most likely that the drive (or rather, its USB interface) was at fault.
Alan Stern
Quoted 2 lines
I'm still filling the drives, will perform a scrub after, to see if the issue causes data loss...
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Seagate External SMR drive USB resets (XHCI transfer error, not timeout)
Hi,
Quoted 23 lines · On Thu, 16 Nov 2017 14:42:51 -0500 (EST) Alan Stern…
Quoted 21 lines · Jérôme Carretero
I performed an usbmon capture extract, centered around the event (there was a few hundred MBs written for this to happen):
Nov 15 22:16:33 Bidule kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 8 using xhci_hcdI can see that the computer is sending a write request, and sees a
-EPROTOin answer (capture in attachment), so scratch the timeout issue (and actually when thinking about it, this matches what UAS was saying, except that UAS was taking ages to recover).Looked for EPROTO in the usb code, and found a dynamic debug printf in XHCI; after enabling it:
Nov 15 22:45:03 Bidule kernel: xhci_hcd 0000:07:00.0: Transfer error for slot 13 ep 3 on endpoint Nov 15 22:45:03 Bidule kernel: xhci_hcd 0000:07:00.0: Transfer error for slot 12 ep 3 on endpoint Nov 15 22:45:03 Bidule kernel: usb 6-4.3.3.1: reset SuperSpeed USBdevice number 9 using
xhci_hcdNov 15 22:45:03 Bidule kernel: usb 6-4.3.2.1: reset SuperSpeed USB device number 8 usingxhci_hcd
Quoted 6 lines
Quoted 3 lines
First, I understand that a bad USB device could poison the kernel log, but shouldn't that
xhci_dbg()(and others eg. babble) be at least anxhci_info()(I saw2a9227a5)?I suspect that if every USB error got printed in the kernel log, people would be upset at how much useless information was added.
So it turns out that one of the 2 drives that produced most of these errors died overnight (the kernel first reported failure at READ DMA EXT, SMART seeing 6k Current_Pending_Sector / Offline_Uncorrectable, then the drive just lost it and wouldn't even complete USB enumeration now.
IMHO too much information is perhaps better than not enough, and I bet that people would reconsider purchasing low-quality hardware if they noticed these (unless they can happen for no reason).
Quoted 10 lines
Quoted 4 lines
Then... I don't know enough to attribute the issue the upstream USB hub(s) or the drive endpoint not behaving properly, or the kernel... what should I do with these messages?
Here's the error:
b52514800.505661 S Bo:6:008:2 -115 196608 =540a28131a33dd99ab76840cbf72fc6b60f9fcaf4d61822cc007ff4eab72d022b52514800.506280 C Bo:6:008:2 -71 86016 >
Out of curiosity, which tool produced this condensed output?
Quoted 8 lines
This means the kernel tried to write 196608 bytes to the drive. After 86016 had been transferred, the drive did not reply correctly to the next output transaction, causing the kernel to perform a reset. That's what happened, according to the viewpoint of the xhci-hcd driver.
In theory it's possible that the drive did respond correctly and the information get messed up on the USB cable or on the computer's end.
Wow, that sucks.
I had a mental image where the transactions used FEC and it would be obviously possible to differentiate between cable/hub/endpoint errors.
Quoted 3 lines
Since we can't see what signals were actually sent on the USB bus, there's no way to be certain. But it seems most likely that the drive (or rather, its USB interface) was at fault.
I would speculate (with high confidence) that the drive itself is doing unexpected stuff, because of that bugzilla issue showing that these SMR drives also behave strangely when connected on SATA.
I have had in circulation 10 of these 8 TB SMR drives, 1 SATA and 9 USB, and all of them are generating unexpected kernel logging to some extent, when subject to write-intensive loads.
2 from 2015 and SMART says they're all good; the rest since 10 days ago, one was DOA (very early SMART bad sectors) and tonight's failure has an S/N consecutive to that first DOA one, which smells a little.
Quoted 2 lines
Quoted 2 lines
I'm still filling the drives, will perform a scrub after, to see if the issue causes data loss...
To be continued... since it looks like there's no fundamental issue with the kernel itself and this is turning into a rant on hardware, I'll just direct follow-up e-mails to the ML only, tell me if you want to stay in CC.
Thanks again,
Signature · 1 line
Jérôme
=== START OF INFORMATION SECTION ===
Device Model: ST8000DM004-2CX188 Serial Number: XXXXXXXX LU WWN Device Id: XXXXXXXXXXXXXXXXXX Firmware Version: 0001 User Capacity: 8,001,563,222,016 bytes [8.00 TB] Sector Sizes: 512 bytes logical, 4096 bytes physical Rotation Rate: 5425 rpm Device is: Not in smartctl database [for details use: -P showall] ATA Version is: ACS-3 T13/2161-D revision 5 SATA Version is: SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s) Local Time is: Thu Nov 16 23:36:32 2017 EST SMART support is: Available - device has SMART capability. SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED See vendor-specific Attribute list for marginal Attributes.
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error. Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever been run.
Total time to complete Offline
data collection: ( 0) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support. Suspend Offline collection upon new command.
Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 951) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x30a5) SCT Status supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 058 049 006 Pre-fail Always - 179381080 3 Spin_Up_Time 0x0003 093 093 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 38 5 Reallocated_Sector_Ct 0x0033 099 099 010 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 074 060 045 Pre-fail Always - 23699800 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 189 (82 112 0) 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 38 183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0 184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0 187 Reported_Uncorrect 0x0032 084 084 000 Old_age Always - 16 188 Command_Timeout 0x0032 099 092 000 Old_age Always - 115965888471 189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0 190 Airflow_Temperature_Cel 0x0022 051 040 040 Old_age Always In_the_past 49 (Min/Max 37/50) 191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 66 193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 55 194 Temperature_Celsius 0x0022 049 060 000 Old_age Always - 49 (0 19 0 0 0) 195 Hardware_ECC_Recovered 0x001a 083 065 000 Old_age Always - 179381080 197 Current_Pending_Sector 0x0012 081 081 000 Old_age Always - 6264 198 Offline_Uncorrectable 0x0010 081 081 000 Old_age Offline - 6264 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 129 (54 58 0) 241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 5193420925 242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 4503355540
SMART Error Log Version: 1
ATA Error Count: 16 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]Powered_Up_Time is measured from power on, and printed as DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 16 occurred at disk power-on lifetime: 187 hours (7 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 d5 80 ff ff ff 4f 00 4d+03:49:10.331 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:49:10.330 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:49:10.329 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:49:10.328 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:49:10.066 READ DMA EXT
Error 15 occurred at disk power-on lifetime: 187 hours (7 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 d5 80 ff ff ff 4f 00 4d+03:49:03.920 READ DMA EXT 25 d5 08 ff ff ff 4f 00 4d+03:49:03.907 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:49:03.899 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:49:03.635 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:49:03.633 READ DMA EXT
Error 14 occurred at disk power-on lifetime: 187 hours (7 days + 19 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 d5 80 ff ff ff 4f 00 4d+03:47:44.792 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:47:44.789 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:47:44.780 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:47:44.779 READ DMA EXT 25 d5 80 ff ff ff 4f 00 4d+03:47:44.756 READ DMA EXT
Error 13 occurred at disk power-on lifetime: 145 hours (6 days + 1 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 d5 80 ff ff ff 4f 00 2d+10:36:05.555 READ DMA EXT 25 d5 38 ff ff ff 4f 00 2d+10:36:05.548 READ DMA EXT 25 d5 10 ff ff ff 4f 00 2d+10:36:05.547 READ DMA EXT 25 d5 80 ff ff ff 4f 00 2d+10:36:05.532 READ DMA EXT 25 d5 80 ff ff ff 4f 00 2d+10:36:05.479 READ DMA EXT
Error 12 occurred at disk power-on lifetime: 145 hours (6 days + 1 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 ff ff ff 0f Error: UNC at LBA = 0x0fffffff = 268435455
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 d5 80 ff ff ff 4f 00 2d+10:36:00.813 READ DMA EXT 25 d5 80 ff ff ff 4f 00 2d+10:36:00.800 READ DMA EXT 25 d5 80 ff ff ff 4f 00 2d+10:36:00.714 READ DMA EXT 25 d5 80 ff ff ff 4f 00 2d+10:36:00.627 READ DMA EXT 25 d5 80 00 4d 72 4c 00 2d+10:36:00.547 READ DMA EXT
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testingSelective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
Alan Stern
maintainerRe: Seagate External SMR drive USB resets (XHCI transfer error, not timeout)
Quoted 7 lines · Jérôme Carretero
Quoted 5 lines
Here's the error:
b52514800.505661 S Bo:6:008:2 -115 196608 =540a28131a33dd99ab76840cbf72fc6b60f9fcaf4d61822cc007ff4eab72d022b52514800.506280 C Bo:6:008:2 -71 86016 >Out of curiosity, which tool produced this condensed output?
I wrote a program for myself to translate pcap files into usbmon's text format. I find that format a lot easier to read than trying to deal with wireshark's "one packet at a time" approach.
Quoted 6 lines
Quoted 6 lines
This means the kernel tried to write 196608 bytes to the drive. After 86016 had been transferred, the drive did not reply correctly to the next output transaction, causing the kernel to perform a reset. That's what happened, according to the viewpoint of the xhci-hcd driver.
Quoted 6 lines
Quoted 2 lines
In theory it's possible that the drive did respond correctly and the information get messed up on the USB cable or on the computer's end.
Wow, that sucks.
I had a mental image where the transactions used FEC and it would be obviously possible to differentiate between cable/hub/endpoint errors.
I don't see how FEC could help in a situation where a device sends a properly formatted message and then some component closer to the kernel improperly rejects it.
Alan Stern
Re: Seagate External SMR drive USB resets... why? / USB storage debugging
In reply to Alan SternQuoted 7 lines · On Wed, 15 Nov 2017 17:02:39 -0500 (EST) Alan Stern…
Quoted 5 lines
Quoted 5 lines
- It looks like (haven't tested it yet) the
CONFIG_DYNAMIC_DEBUGisn't used with the USB mass storage debugging infrastructure, please confirm? If unused, are we interested to have a patch that would go back to regularpr_debug()that can work with dynamic debugging?
dev_dbg()please, notpr_debug(). But yes, that would be worthwhile.
Yes obviously.
Adding Joe Perches to the loop as he did a refactor of USB mass storage a while ago.
Quoted 3 lines
Note, however, that usb-storage debugging is meant only for debugging problems in the usb-storage driver itself, not for debugging problems in attached devices. We use usbmon or wireshark for the latter.
OK but I find that a "reset" message without any reason is not as helpful as it could have been. At the minimum I'll try to scratch my own itch and see if I can go at the bottom of my issue.
Regards,
Signature · 1 line
Jérôme
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: Seagate External SMR drive USB resets... why? / USB storage debugging
T24gV2VkLCAyMDE3LTExLTE1IGF0IDE4OjI3IC0wNTAwLCBKw6lyw7RtZSBDYXJyZXRlcm8gd3Jv dGU6DQo+IE9LIGJ1dCBJIGZpbmQgdGhhdCBhICJyZXNldCIgbWVzc2FnZSB3aXRob3V0IGFueSBy ZWFzb24gaXMgbm90DQo+IGFzIGhlbHBmdWwgYXMgaXQgY291bGQgaGF2ZSBiZWVuLiBBdCB0aGUg bWluaW11bSBJJ2xsIHRyeSB0byBzY3JhdGNoIG15DQo+IG93biBpdGNoIGFuZCBzZWUgaWYgSSBj YW4gZ28gYXQgdGhlIGJvdHRvbSBvZiBteSBpc3N1ZS4NCg0KSWYgeW91IHdhbnQgbW9yZSBpbmZv cm1hdGlvbiBhYm91dCBTQ1NJIGVycm9yIGhhbmRsZXIgZGVjaXNpb25zLCBvYnNlcnZpbmcNCnRo ZSBvdXRwdXQgc2VudCBieSB0aGUgZm9sbG93aW5nIGNvbW1hbmQgdG8gdGhlIHN5c3RlbSBsb2cg d2lsbCBwcm9iYWJseSBoZWxwOg0KDQplY2hvIDYzID4gL3N5cy9tb2R1bGUvc2NzaV9tb2QvcGFy YW1ldGVycy9zY3NpX2xvZ2dpbmdfbGV2ZWwNCg0KU2VlIGFsc28NCmh0dHBzOi8vZ2l0Lmtlcm5l bC5vcmcvcHViL3NjbS9saW51eC9rZXJuZWwvZ2l0L3RvcnZhbGRzL2xpbnV4LmdpdC90cmVlL2Ry aXZlcnMvc2NzaS9zY3NpX2xvZ2dpbmcuaA0KQmFydC4=
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html