USB resets on ATA smart probing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libatasmart |
Fix Released
|
Medium
|
|||
libatasmart (Ubuntu) |
Fix Released
|
High
|
Martin Pitt |
Bug Description
Related to bug # 387161, found another USB storage device getting reset upon SMART probing. The device always offlines immediately after enumerating. Commenting out the devkit-
skdump output:
farris@bauer:~$ sudo skdump /dev/sdc
Device: sat12:/dev/sdc
Type: 12 Byte SCSI ATA SAT Passthru
Size: 1907348 MiB
Awake: Operation not supported
ATA SMART not supported.
Shortly after getting the skdump, the device was offlined:
/var/log/messages
Nov 4 20:00:02 bauer kernel: [ 4981.580059] usb 1-3: reset high speed USB device using ehci_hcd and address 3
Nov 4 20:00:33 bauer kernel: [ 5012.124040] usb 1-3: reset high speed USB device using ehci_hcd and address 3
Nov 4 20:01:04 bauer kernel: [ 5042.668039] usb 1-3: reset high speed USB device using ehci_hcd and address 3
Nov 4 20:01:14 bauer kernel: [ 5053.024045] usb 1-3: reset high speed USB device using ehci_hcd and address 3
Nov 4 20:01:24 bauer kernel: [ 5063.268100] usb 1-3: USB disconnect, address 3
Nov 4 20:01:24 bauer kernel: [ 5063.268779] scsi 6:0:0:0: Device offlined - not ready after error recovery
Nov 4 20:01:24 bauer kernel: [ 5063.380038] usb 1-3: new high speed USB device using ehci_hcd and address 4
Nov 4 20:01:55 bauer kernel: [ 5093.924038] usb 1-3: new high speed USB device using ehci_hcd and address 5
Nov 4 20:02:25 bauer kernel: [ 5124.468039] usb 1-3: new high speed USB device using ehci_hcd and address 6
Device won't renumerate without power cycling the USB device, unlplug/replug does no good.
lsusb -v:
Bus 001 Device 012: ID 0928:0000 Oxford Semiconductor, Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0928 Oxford Semiconductor, Ltd
idProduct 0x0000
bcdDevice 0.00
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigura
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurat
iConfiguration 5
bmAttributes 0xc0
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 2
bInterfac
bInterfac
bInterfac
iInterface 4
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
Endpoint Descriptor:
bLength 7
Transfer Type Bulk
Synch Type None
Usage Type Data
bInterval 0
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
Related branches
Changed in libatasmart (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in libatasmart: | |
status: | Unknown → Confirmed |
Changed in libatasmart (Ubuntu): | |
assignee: | Martin Pitt (pitti) → nobody |
Changed in libatasmart: | |
status: | Confirmed → Fix Released |
Changed in libatasmart (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
status: | Triaged → In Progress |
Changed in libatasmart: | |
importance: | Unknown → Medium |
Changed in libatasmart: | |
importance: | Medium → Unknown |
Changed in libatasmart: | |
importance: | Unknown → Medium |
We got another report about a device where ata smart probing causes USB resets:
$ sudo skdump /dev/sdc
Device: sat12:/dev/sdc
Type: 12 Byte SCSI ATA SAT Passthru
Size: 1907348 MiB
Awake: Operation not supported
ATA SMART not supported.
Shortly after getting the skdump, the device was offlined:
Nov 4 20:00:02 bauer kernel: [ 4981.580059] usb 1-3: reset high speed USB device using ehci_hcd and address 3
Nov 4 20:00:33 bauer kernel: [ 5012.124040] usb 1-3: reset high speed USB device using ehci_hcd and address 3
Nov 4 20:01:04 bauer kernel: [ 5042.668039] usb 1-3: reset high speed USB device using ehci_hcd and address 3
Nov 4 20:01:14 bauer kernel: [ 5053.024045] usb 1-3: reset high speed USB device using ehci_hcd and address 3
Nov 4 20:01:24 bauer kernel: [ 5063.268100] usb 1-3: USB disconnect, address 3
Nov 4 20:01:24 bauer kernel: [ 5063.268779] scsi 6:0:0:0: Device offlined - not ready after error recovery
(This is with disabling the udev rule for dk-d ata smart probe; with it, the device doesn't appear at all).
(libatasmart 016)
Should I get an strace from the reporter? Or should we just blacklist this device?
lsusb -v: tions 1
Bus 001 Device 012: ID 0928:0000 Oxford Semiconductor, Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0928 Oxford Semiconductor, Ltd
idProduct 0x0000
bcdDevice 0.00
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigura