Re: Regression: USB 3.0 stick only running at USB 2.0 speed

2014-09-28 Thread Julian Andres Klode
On Mon, Sep 15, 2014 at 4:14 PM, Greg KH g...@kroah.com wrote:
 On Mon, Sep 15, 2014 at 04:07:30PM +0200, Julian Andres Klode wrote:
 [Originally reported at
 https://bugzilla.kernel.org/show_bug.cgi?id=84611, gregkh told me to
 report it here]

 My brother's USB 3.0 stick is only recognized as USB 2.0.

 I reproduced this bug in kernels 3.14.15, 3.16, and 3.16.2; as built by 
 Debian.
 It used to work correctly in 3.14-rc6. The data below is from 3.14.15.

 What does older kernels show differently?

Sorry, I did not have any older kernels to try, but it turns out that
it works again in 3.16.3:

[253555.332809] usb 4-2: new SuperSpeed USB device number 3 using xhci_hcd
[253555.349384] usb 4-2: New USB device found, idVendor=8564, idProduct=1000
[253555.349402] usb 4-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[253555.349405] usb 4-2: Product: Mass Storage Device
[253555.349407] usb 4-2: Manufacturer: JetFlash
[253555.349409] usb 4-2: SerialNumber: 4208253730
[253555.349790] usb-storage 4-2:1.0: USB Mass Storage device detected
[253555.349867] scsi8 : usb-storage 4-2:1.0
[253556.349529] scsi 8:0:0:0: Direct-Access JetFlash Transcend
32GB   1.00 PQ: 0 ANSI: 6
[253556.350344] sd 8:0:0:0: Attached scsi generic sg2 type 0
[253556.353751] sd 8:0:0:0: [sdc] 61734912 512-byte logical blocks:
(31.6 GB/29.4 GiB)
[253556.353912] sd 8:0:0:0: [sdc] Write Protect is off
[253556.353919] sd 8:0:0:0: [sdc] Mode Sense: 23 00 00 00
[253556.354061] sd 8:0:0:0: [sdc] Write cache: disabled, read cache:
disabled, doesn't support DPO or FUA
[253556.355885]  sdc: sdc1
[253556.356771] sd 8:0:0:0: [sdc] Attached SCSI removable disk
[253556.555460] FAT-fs (sdc1): utf8 is not a recommended IO charset
for FAT filesystems, filesystem will be case sensitive!
[253556.557563] FAT-fs (sdc1): Volume was not properly unmounted. Some
data may be corrupt. Please run fsck.

It's not entirely clear why, though - I don't see anything related in
the 3.16.3 changelog or the Debian packaging changelog. It's also
reporting different values in lsusb now (especially serial, not sure
if important, and the bus number is different; but there is only one
xhci bus in the laptop, so it must be the same one):

Bus 004 Device 003: ID 8564:1000
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   3.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 9
  idVendor   0x8564
  idProduct  0x1000
  bcdDevice   10.75
  iManufacturer   1 JetFlash
  iProduct2 Mass Storage Device
  iSerial 3 4208253730
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   44
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0
bmAttributes 0x80
  (Bus Powered)
MaxPower   76mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass 8 Mass Storage
  bInterfaceSubClass  6 SCSI
  bInterfaceProtocol 80 Bulk-Only
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02  EP 2 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0400  1x 1024 bytes
bInterval   0
bMaxBurst  15
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0400  1x 1024 bytes
bInterval   0
bMaxBurst  15
Binary Object Store Descriptor:
  bLength 5
  bDescriptorType15
  wTotalLength   22
  bNumDeviceCaps  2
  USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType16
bDevCapabilityType  2
bmAttributes   0x0002
  Link Power Management (LPM) Supported
  SuperSpeed USB Device Capability:
bLength10
bDescriptorType16
bDevCapabilityType  3
bmAttributes 0x00
wSpeedsSupported   0x000e
  Device can operate at Full Speed (12Mbps)
  Device can operate at High Speed (480Mbps)
  Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport   1
  Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat  10 micro seconds

Regression: USB 3.0 stick only running at USB 2.0 speed

2014-09-15 Thread Julian Andres Klode
[Originally reported at
https://bugzilla.kernel.org/show_bug.cgi?id=84611, gregkh told me to
report it here]

My brother's USB 3.0 stick is only recognized as USB 2.0.

I reproduced this bug in kernels 3.14.15, 3.16, and 3.16.2; as built by Debian.
It used to work correctly in 3.14-rc6. The data below is from 3.14.15.

Dmesg
==
[   17.490026] usb 1-2: new high-speed USB device number 2 using xhci_hcd
[   17.681501] usb 1-2: New USB device found, idVendor=8564, idProduct=1000
[   17.681508] usb 1-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[   17.681512] usb 1-2: Product: Mass Storage Device
[   17.681515] usb 1-2: Manufacturer: JetFlash
[   17.681517] usb 1-2: SerialNumber: ID8UQEDI

Controller
==
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family
USB xHCI Host Controller (rev 04) (prog-if 30 [XHCI])
Subsystem: Lenovo Device 21fa
Flags: bus master, medium devsel, latency 0, IRQ 40
Memory at f252 (64-bit, non-prefetchable) [size=64K]
Capabilities: access denied
Kernel driver in use: xhci_hcd

Device
==
Bus 001 Device 002: ID 8564:1000
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  idVendor   0x8564
  idProduct  0x1000
  bcdDevice1.00
  iManufacturer   1 JetFlash
  iProduct2 Mass Storage Device
  iSerial 3 ID8UQEDI
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   32
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0
bmAttributes 0x80
  (Bus Powered)
MaxPower  100mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass 8 Mass Storage
  bInterfaceSubClass  6 SCSI
  bInterfaceProtocol 80 Bulk-Only
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82  EP 2 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
Device Qualifier (for other device speed):
  bLength10
  bDescriptorType 6
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  bNumConfigurations  1
Device Status: 0x
  (Bus Powered)

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html