Hello-
We're using usb1 as a 2.0 host and seeing failures with some 3.0 flash drives. The usb1 2.0 PHY connections terminate to a USB 2.0 Type A connector, while the 3.0 PHY connectors are left unconnected on the TX side and connected to ground on the RX side.
For two of the drive failures, we're seeing the drive fall off the bus immediately after insertion. Below is the log from the kernel when that happens.
[ 50.580630] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 50.794464] usb 1-1: New USB device found, idVendor=0951, idProduct=1666
[ 50.794478] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 50.794488] usb 1-1: Product: DataTraveler 3.0
[ 50.794498] usb 1-1: Manufacturer: Kingston
[ 50.794507] usb 1-1: SerialNumber: 408D5C167733B06119140813
[ 50.874048] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 50.882172] scsi host0: usb-storage 1-1:1.0
[ 50.882598] usbcore: registered new interface driver usb-storage
[ 51.880901] scsi 0:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
[ 52.617698] sd 0:0:0:0: [sda] 60632064 512-byte logical blocks: (31.0 GB/28.9 GiB)
[ 52.618268] sd 0:0:0:0: [sda] Write Protect is off
[ 52.618282] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 52.619137] sd 0:0:0:0: [sda] No Caching mode page found
[ 52.629272] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 52.662815] sda: sda1
[ 52.677104] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 53.018162] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[ 53.205797] usb 1-1: USB disconnect, device number 2
[ 53.209418] scsi 0:0:0:0: rejecting I/O to dead device
[ 53.219105] scsi 0:0:0:0: [sda] UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 53.219120] scsi 0:0:0:0: [sda] CDB: opcode=0x28 28 00 00 00 22 a0 00 00 08 00
[ 53.219150] blk_update_request: I/O error, dev sda, sector 8864
[ 53.226546] Buffer I/O error on dev sda1, logical block 100, async page read
[ 53.238656] Buffer I/O error on dev sda, logical block 0, async page read
[ 53.257012] Buffer I/O error on dev sda, logical block 0, async page read
[ 53.275446] Buffer I/O error on dev sda, logical block 0, async page read
[ 53.289524] Buffer I/O error on dev sda, logical block 0, async page read
[ 53.300866] Buffer I/O error on dev sda, logical block 0, async page read
For four of the drive failures, we're seeing errors after 10-50 seconds of writing (doing a "cat /dev/zero > /drive/mount/write_file"). The drive mount/unmount/mount is due to the drives initially being mounted read only and then being remounted read/write. Below is the log from the kernel when that happens:
[ 35.068148] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[ 35.229091] usb 1-1: New USB device found, idVendor=13fe, idProduct=5200
[ 35.229105] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 35.229113] usb 1-1: Product: Patriot Memory
[ 35.229121] usb 1-1: Manufacturer:
[ 35.229128] usb 1-1: SerialNumber: 0701648027279371
[ 35.284480] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 35.291504] scsi host0: usb-storage 1-1:1.0
[ 35.294995] usbcore: registered new interface driver usb-storage
[ 36.291364] scsi 0:0:0:0: Direct-Access Patriot Memory PMAP PQ: 0 ANSI: 6
[ 36.293431] sd 0:0:0:0: [sda] 61865984 512-byte logical blocks: (31.6 GB/29.5 GiB)
[ 36.294276] sd 0:0:0:0: [sda] Write Protect is off
[ 36.294289] sd 0:0:0:0: [sda] Mode Sense: 2b 00 00 08
[ 36.295123] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 36.610763] sda: sda1 sda2
[ 36.657711] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 37.356300] exFAT: Version 1.2.9
[ 37.360072] [EXFAT] trying to mount...
[ 37.430623] [EXFAT] mounted successfully
[ 38.838430] [EXFAT] trying to unmount...
[ 38.838511] [EXFAT] unmounted successfully
[ 38.888214] [EXFAT] trying to mount...
[ 38.957527] [EXFAT] mounted successfully
[ 487.163618] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 491.273580] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 495.383529] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 499.493492] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 499.500304] usb 1-1: USB disconnect, device number 2
[ 499.513493] sd 0:0:0:0: [sda] UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=0x00
[ 499.513510] sd 0:0:0:0: [sda] CDB: opcode=0x2a 2a 00 01 5d 00 08 00 00 f0 00
[ 499.513521] blk_update_request: I/O error, dev sda, sector 22872072
[ 499.522014] sd 0:0:0:0: [sda] UNKNOWN(0x2003) Result: hostbyte=0x01 driverbyte=0x00
[ 499.522050] sd 0:0:0:0: [sda] CDB: opcode=0x2a 2a 00 01 5d 00 f8 00 00 f0 00
[ 499.522059] blk_update_request: I/O error, dev sda, sector 22872312
[ 502.785496] [EXFAT] statfs on device is ejected
[ 502.823495] [EXFAT] trying to unmount...
[ 502.823570] [EXFAT] unmounted with media errors. device's already ejected.
[ 506.693395] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 510.803370] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 514.913606] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 519.023282] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 519.030315] usb usb1-port1: unable to enumerate USB device
We've noticed that, in one case, using a USB (2.0) extension cable made one of the misbehaving flash drives work (this drive previously failed in the first mode I mentioned above). We've also found that this problem does seem to completely resolve when we use an inline (powered) USB 2.0 hub. Thinking our issue might be power related, we powered the flash drive from an independent bench supply and didn't see any change in failure modes.
We'd like to know if anyone has any suggestions on where to go next.
For reference, we're running SDK 02.00.01.07, with Linux kernel version 4.1.13.
Thank you,
Jason