Re: XHCI issues: WD MyBook 1230 - reset SuperSpeed USB device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alan,

Thank you for your response.

I have just tried the drive with 3.12.7 without CONFIG_PM (the config.gz is attached just in case I misconfigured the kernel in some way I could correct) - unfortunately, no change whatsoever:

!!!
!!! The drive is plugged in:
!!!

root@bach:~# dmesg -c
usb 4-2: new SuperSpeed USB device number 4 using xhci_hcd
usb 4-2: New USB device found, idVendor=1058, idProduct=1230
usb 4-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
usb 4-2: Product: My Book 1230
usb 4-2: Manufacturer: Western Digital
usb 4-2: SerialNumber: 574D43344E30323438393836
usb-storage 4-2:1.0: USB Mass Storage device detected
scsi8 : usb-storage 4-2:1.0
scsi 8:0:0:0: Direct-Access     WD       My Book 1230     1050 PQ: 0 ANSI: 6
scsi 8:0:0:1: Enclosure         WD       SES Device       1050 PQ: 0 ANSI: 6
sd 8:0:0:0: Attached scsi generic sg2 type 0
scsi 8:0:0:1: Attached scsi generic sg3 type 13
sd 8:0:0:0: [sdb] Spinning up disk...
.........ready
sd 8:0:0:0: [sdb] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 8:0:0:0: [sdb] Write Protect is off
sd 8:0:0:0: [sdb] Mode Sense: 53 00 10 08
sd 8:0:0:0: [sdb] No Caching mode page found
sd 8:0:0:0: [sdb] Assuming drive cache: write through
sd 8:0:0:0: [sdb] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 8:0:0:0: [sdb] No Caching mode page found
sd 8:0:0:0: [sdb] Assuming drive cache: write through
 sdb: unknown partition table
sd 8:0:0:0: [sdb] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 8:0:0:0: [sdb] No Caching mode page found
sd 8:0:0:0: [sdb] Assuming drive cache: write through
sd 8:0:0:0: [sdb] Attached SCSI disk

!!!
!!! Now the "dreaded" gdisk command:
!!!

root@bach:~# time gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.
Disk /dev/sdb: 732558336 sectors, 2.7 TiB
Logical sector size: 4096 bytes
Disk identifier (GUID): F267EE12-3BAA-4612-8C85-0B644ED6A9C9
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 732558330
Partitions will be aligned on 256-sector boundaries
Total free space is 732558325 sectors (2.7 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name

real    0m31.764s
user    0m0.004s
sys    0m0.004s

!!!
!!! Notice it took over 30 seconds to return because of the unresponsive drive.
!!! Repeated command returns immediately:
!!!

root@bach:~# time gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.
Disk /dev/sdb: 732558336 sectors, 2.7 TiB
Logical sector size: 4096 bytes
Disk identifier (GUID): 984D50AC-1FE2-48F0-94B6-38FCC06EB3DF
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 732558330
Partitions will be aligned on 256-sector boundaries
Total free space is 732558325 sectors (2.7 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name

real    0m0.016s
user    0m0.012s
sys    0m0.002s

!!!
!!! dmesg now shows:
!!!

root@bach:~# dmesg
usb 4-2: reset SuperSpeed USB device number 4 using xhci_hcd
xhci_hcd 0000:26:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88042adff200 xhci_hcd 0000:26:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff88042adff240
root@bach:~#

=======================================================

The interesting thing is that the same happens even if the drive is plugged into an USB 2.0 port in the same notebook:

root@bach:~# dmesg -c
usb 3-1.1: new high-speed USB device number 5 using ehci-pci
usb 3-1.1: New USB device found, idVendor=1058, idProduct=1230
usb 3-1.1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
usb 3-1.1: Product: My Book 1230
usb 3-1.1: Manufacturer: Western Digital
usb 3-1.1: SerialNumber: 574D43344E30323438393836
usb-storage 3-1.1:1.0: USB Mass Storage device detected
scsi10 : usb-storage 3-1.1:1.0
scsi 10:0:0:0: Direct-Access WD My Book 1230 1050 PQ: 0 ANSI: 6 scsi 10:0:0:1: Enclosure WD SES Device 1050 PQ: 0 ANSI: 6
sd 10:0:0:0: Attached scsi generic sg2 type 0
scsi 10:0:0:1: Attached scsi generic sg3 type 13
sd 10:0:0:0: [sdb] Spinning up disk...
.........ready
sd 10:0:0:0: [sdb] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 10:0:0:0: [sdb] Write Protect is off
sd 10:0:0:0: [sdb] Mode Sense: 53 00 10 08
sd 10:0:0:0: [sdb] No Caching mode page found
sd 10:0:0:0: [sdb] Assuming drive cache: write through
sd 10:0:0:0: [sdb] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 10:0:0:0: [sdb] No Caching mode page found
sd 10:0:0:0: [sdb] Assuming drive cache: write through
 sdb: unknown partition table
sd 10:0:0:0: [sdb] 732558336 4096-byte logical blocks: (3.00 TB/2.72 TiB)
sd 10:0:0:0: [sdb] No Caching mode page found
sd 10:0:0:0: [sdb] Assuming drive cache: write through
sd 10:0:0:0: [sdb] Attached SCSI disk
root@bach:~# time gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.
Disk /dev/sdb: 732558336 sectors, 2.7 TiB
Logical sector size: 4096 bytes
Disk identifier (GUID): E2D26EE9-FC4F-49C8-94A7-92B599334779
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 732558330
Partitions will be aligned on 256-sector boundaries
Total free space is 732558325 sectors (2.7 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name

real    0m31.631s
user    0m0.008s
sys    0m0.002s
root@bach:~# dmesg
usb 3-1.1: reset high-speed USB device number 5 using ehci-pci
root@bach:~# time gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: not present
  BSD: not present
  APM: not present
  GPT: not present

Creating new GPT entries.
Disk /dev/sdb: 732558336 sectors, 2.7 TiB
Logical sector size: 4096 bytes
Disk identifier (GUID): 0230C34F-1D95-4710-BFA3-2D016E495FD2
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 732558330
Partitions will be aligned on 256-sector boundaries
Total free space is 732558325 sectors (2.7 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name

real    0m0.015s
user    0m0.009s
sys    0m0.003s
root@bach:~#

Any ideas or suggestions?

Thank you very much!

Best regards,
Peter



On 14.01.2014 18:07, Alan Stern wrote:
On Tue, 14 Jan 2014, Peter Palúch wrote:

Dear friends,

So far, there has been no response to this issue report. I understand
this is not a help desk with guaranteed replies but the fact that there
was no response whatsoever is surprising to me.
This means that nobody who has looked at your information knows what
the problem is.

I would like to at least kindly ask that someone looks at the traces and
tells me if this is a possible software issue, or a hardware quirk that
can hardly be worked around. A "no, we won't fix this" or even "this is
not the proper mailing list for this" type of answer would be welcome at
this point. It is kind of frustrating to report an USB-related issue to
linux-usb mailing list, keep it updated, and yet receive absolutely no
reaction in almost a month. If I knew how to fix this, I would - but I
am no expert in USB stuff myself, so I am turning to experts...
Nothing stands out in the logs.  It may be a power management issue.
Have you tried using a kernel with CONFIG_PM not set?

Alan Stern

Attachment: config.gz
Description: GNU Zip compressed data


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux