XHCI device probe inconsistency

Mike Tancsa mike at sentex.net
Tue Oct 7 19:04:44 UTC 2014


Hi,
	on r272695 AMD64, I have a USB 3.0 CF reader/writer that does not 
consistently work the same.  At bootup time, if I have the reader 
attached, it connects as a USB 2.0 device. If I disconnect and reconnect 
it, it attaches and seems to function at the proper speed.

after physically disconnecting and reconnecting it shows as

  usbconfig
ugen0.1: <XHCI root HUB 0x8086> at usbus0, cfg=0 md=HOST spd=SUPER 
(5.0Gbps) pwr=SAVE (0mA)
ugen1.1: <EHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=SAVE (0mA)
ugen2.1: <EHCI root HUB Intel> at usbus2, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=SAVE (0mA)
ugen0.2: <USB-Serial Controller Prolific Technology Inc.> at usbus0, 
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen1.2: <product 0x8008 vendor 0x8087> at usbus1, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen2.2: <product 0x8000 vendor 0x8087> at usbus2, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.3: <Generic USB KB vendor 0x13ba> at usbus0, cfg=0 md=HOST spd=LOW 
(1.5Mbps) pwr=ON (100mA)
ugen0.5: <Virtual Keyboard and Mouse American Megatrends Inc.> at 
usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA)
ugen0.4: <USB3.0 Media Reader Kingston> at usbus0, cfg=0 md=HOST 
spd=SUPER (5.0Gbps) pwr=ON (200mA)



ugen0.4: <USB3.0 Media Reader Kingston> at usbus0, cfg=0 md=HOST 
spd=SUPER (5.0Gbps) pwr=ON (200mA)

   bLength = 0x0012
   bDescriptorType = 0x0001
   bcdUSB = 0x0300
   bDeviceClass = 0x0000
   bDeviceSubClass = 0x0000
   bDeviceProtocol = 0x0000
   bMaxPacketSize0 = 0x0009
   idVendor = 0x11b0
   idProduct = 0x6348
   bcdDevice = 0x0308
   iManufacturer = 0x0001  <Kingston>
   iProduct = 0x0002  <USB3.0 Media Reader>
   iSerialNumber = 0x0003  <08735342214972>
   bNumConfigurations = 0x0001

At bootup time, dmesg shows

ugen0.4: <Kingston> at usbus0
umass0: <Bulk-In, Bulk-Out, Interface> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:7:0:-1: Attached to scbus7
da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
da0: < FCR-HS3       -0 1.00> Removable Direct Access SCSI-4 device
da0: Serial Number 08735342214972
da0: 40.000MB/s transfers
da0: 1919MB (3931200 512 byte sectors: 255H 63S/T 244C)
da0: quirks=0x2<NO_6_BYTE>
da1 at umass-sim0 bus 0 scbus7 target 0 lun 1
da1: < FCR-HS3       -1 1.00> Removable Direct Access SCSI-4 device
da1: Serial Number 08735342214972
da1: 40.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
da1: quirks=0x2<NO_6_BYTE>
da2 at umass-sim0 bus 0 scbus7 target 0 lun 2
da2: < FCR-HS3       -2 1.00> Removable Direct Access SCSI-4 device
da2: Serial Number 08735342214972
da2: 40.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
da2: quirks=0x2<NO_6_BYTE>
da3 at umass-sim0 bus 0 scbus7 target 0 lun 3
da3: < FCR-HS3       -3 1.00> Removable Direct Access SCSI-4 device
da3: Serial Number 08735342214972
da3: 40.000MB/s transfers
da3: Attempt to query device size failed: NOT READY, Medium not present
da3: quirks=0x2<NO_6_BYTE>
Root mount waiting for: usbus0

and then disconnect
..
(da2:umass-sim0:0:0:2): Periph destroyed
(da3:umass-sim0:0:0:3): Periph destroyed
ugen0.4: <Kingston> at usbus0
umass0: <Bulk-In, Bulk-Out, Interface> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x4000
umass0:7:0:-1: Attached to scbus7
(probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 
10 00 00
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid 
field in CDB)
(probe0:umass-sim0:0:0:0): Error 22, Unretryable error
da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
da0: < FCR-HS3       -0 1.00> Removable Direct Access SCSI-6 device
da0: Serial Number 08735342214972
da0: 400.000MB/s transfers
da0: 1919MB (3931200 512 byte sectors: 255H 63S/T 244C)
da0: quirks=0x2<NO_6_BYTE>
da1 at umass-sim0 bus 0 scbus7 target 0 lun 1
da1: < FCR-HS3       -1 1.00> Removable Direct Access SCSI-6 device
da1: Serial Number 08735342214972
da1: 400.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
da1: quirks=0x2<NO_6_BYTE>
da2 at umass-sim0 bus 0 scbus7 target 0 lun 2
da2: < FCR-HS3       -2 1.00> Removable Direct Access SCSI-6 device
da2: Serial Number 08735342214972
da2: 400.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
da2: quirks=0x2<NO_6_BYTE>
da3 at umass-sim0 bus 0 scbus7 target 0 lun 3
da3: < FCR-HS3       -3 1.00> Removable Direct Access SCSI-6 device
da3: Serial Number 08735342214972
da3: 400.000MB/s transfers
da3: Attempt to query device size failed: NOT READY, Medium not present
da3: quirks=0x2<NO_6_BYTE>

and its the proper speed.

MB is
BIOS Information
         Vendor: Intel Corp.
         Version: S1200RP.86B.01.04.0002.011020141517
         Release Date: 01/10/2014
Base Board Information
         Manufacturer: Intel Corporation
         Product Name: S1200RP_SE
         Version: G62252-406

xhci0 at pci0:0:20:0:      class=0x0c0330 card=0x35b78086 chip=0x8c318086 
rev=0x05 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'Lynx Point USB xHCI Host Controller'
     class      = serial bus
     subclass   = USB
     bar   [10] = type Memory, range 64, base 0xc0120000, size 65536, 
enabled
     cap 01[70] = powerspec 2  supports D0 D3  current D0
     cap 05[80] = MSI supports 8 messages, 64 bit enabled with 1 message
ehci0 at pci0:0:26:0:      class=0x0c0320 card=0x35b78086 chip=0x8c2d8086 
rev=0x05 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = 'Lynx Point USB Enhanced Host Controller'
     class      = serial bus
     subclass   = USB
     bar   [10] = type Memory, range 32, base 0xc1420000, size 1024, enabled
     cap 01[50] = powerspec 2  supports D0 D3  current D0
     cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14
     cap 13[98] = PCI Advanced Features: FLR TP



-- 
-------------------
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, mike at sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/


More information about the freebsd-usb mailing list