LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   USB 3.0 on kernel >3.4 (http://www.linuxquestions.org/questions/slackware-14/usb-3-0-on-kernel-3-4-a-4175450855/)

gablek 02-19-2013 05:04 PM

USB 3.0 on kernel >3.4
 
I am having difficulty with a USB 3.0 drive not being recognized when using any kernel newer than the 3.4 series (stock slackware-current 3.7.1 in particular, but I see the same thing with 3.5.5, 3.6.1, and 3.8.0). With kernel 3.4.24, the drive is recognized and I can mount:

Code:

dmesg:
[  96.720739] usb 4-2: new SuperSpeed USB device number 2 using  xhci_hcd
[  96.733321] usb 4-2: New USB device found, idVendor=152d, idProduct=2509
[  96.733331] usb 4-2: New USB device strings: Mfr=10, Product=11, SerialNumber=3
[  96.733337] usb 4-2: Product: Usb production
[  96.733341] usb 4-2: Manufacturer: Jmicron Corp.
[  96.733345] usb 4-2: SerialNumber: 00A123456AA5
[  96.734009] scsi8 : usb-storage 4-2:1.0
[  97.736612] scsi 8:0:0:0: Direct-Access    WDC WD16 00BEVS-08RST2        PQ: 0 ANSI: 2 CCS
[  97.737233] sd 8:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[  97.737564] sd 8:0:0:0: [sdb] Write Protect is off
[  97.737575] sd 8:0:0:0: [sdb] Mode Sense: 28 00 00 00
[  97.737962] sd 8:0:0:0: [sdb] No Caching mode page present
[  97.737970] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[  97.739531] sd 8:0:0:0: [sdb] No Caching mode page present
[  97.739539] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[  97.807695]  sdb: sdb1 sdb2 sdb3
[  97.809279] sd 8:0:0:0: [sdb] No Caching mode page present
[  97.809288] sd 8:0:0:0: [sdb] Assuming drive cache: write through
[  97.809294] sd 8:0:0:0: [sdb] Attached SCSI disk

/var/log/messages:
Jan  9 08:20:34 kpgx1c kernel: [  96.720739] usb 4-2: new SuperSpeed USB device number 2 using xhci_hcd
Jan  9 08:20:34 kpgx1c kernel: [  96.733321] usb 4-2: New USB device found, idVendor=152d, idProduct=2509
Jan  9 08:20:34 kpgx1c kernel: [  96.733331] usb 4-2: New USB device strings: Mfr=10, Product=11, SerialNumber=3
Jan  9 08:20:34 kpgx1c kernel: [  96.733337] usb 4-2: Product: Usb production
Jan  9 08:20:34 kpgx1c kernel: [  96.733341] usb 4-2: Manufacturer: Jmicron Corp.
Jan  9 08:20:34 kpgx1c kernel: [  96.733345] usb 4-2: SerialNumber: 00A123456AA5
Jan  9 08:20:34 kpgx1c kernel: [  96.734009] scsi8 : usb-storage 4-2:1.0
Jan  9 08:20:34 kpgx1c mtp-probe: checking bus 4, device 2: "/sys/devices/pci0000:00/0000:00:14.0/usb4/4-2"
Jan  9 08:20:34 kpgx1c mtp-probe: bus: 4, device: 2 was not an MTP device
Jan  9 08:20:35 kpgx1c kernel: [  97.736612] scsi 8:0:0:0: Direct-Access    WDC WD16 00BEVS-08RST2        PQ: 0 ANSI: 2 CCS
Jan  9 08:20:35 kpgx1c kernel: [  97.737233] sd 8:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB)
Jan  9 08:20:35 kpgx1c kernel: [  97.737564] sd 8:0:0:0: [sdb] Write Protect is off
Jan  9 08:20:35 kpgx1c kernel: [  97.807695]  sdb: sdb1 sdb2 sdb3
Jan  9 08:20:35 kpgx1c kernel: [  97.809294] sd 8:0:0:0: [sdb] Attached SCSI disk

With 3.7.1, I get:
Code:

dmesg:
[  52.039733] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[  52.052343] usb 2-2: New USB device found, idVendor=152d, idProduct=2509
[  52.052353] usb 2-2: New USB device strings: Mfr=10, Product=11, SerialNumber=3
[  52.052358] usb 2-2: Product: Usb production
[  52.052362] usb 2-2: Manufacturer: Jmicron Corp.
[  52.052366] usb 2-2: SerialNumber: 00A123456AA5
[  52.053089] usb 2-2: Set SEL for device-initiated U1 failed.
[  57.050162] usb 2-2: Set SEL for device-initiated U2 failed.
[  57.050548] scsi8 : usb-storage 2-2:1.0
[  62.047597] usb 2-2: Set SEL for device-initiated U1 failed.
[  67.045040] usb 2-2: Set SEL for device-initiated U2 failed.

/var/log/messages:
Jan  9 08:24:33 kpgx1c kernel: [  52.039733] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
Jan  9 08:24:33 kpgx1c kernel: [  52.052343] usb 2-2: New USB device found, idVendor=152d, idProduct=2509
Jan  9 08:24:33 kpgx1c kernel: [  52.052353] usb 2-2: New USB device strings: Mfr=10, Product=11, SerialNumber=3
Jan  9 08:24:33 kpgx1c kernel: [  52.052358] usb 2-2: Product: Usb production
Jan  9 08:24:33 kpgx1c kernel: [  52.052362] usb 2-2: Manufacturer: Jmicron Corp.
Jan  9 08:24:33 kpgx1c kernel: [  52.052366] usb 2-2: SerialNumber: 00A123456AA5
Jan  9 08:24:38 kpgx1c kernel: [  57.050548] scsi8 : usb-storage 2-2:1.0
Jan  9 08:24:48 kpgx1c mtp-probe: checking bus 2, device 2: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-2"
Jan  9 08:24:48 kpgx1c mtp-probe: bus: 2, device: 2 was not an MTP device
Jan  9 08:25:09 kpgx1c kernel: [  88.859921] usb 2-2: USB disconnect, device number 2
Jan  9 08:25:09 kpgx1c kernel: [  88.859930] scsi 8:0:0:0: Device offlined - not ready after error recovery

Googling has not led me to anything helpful. Any ideas how to fix this?

EDDY1 02-19-2013 05:27 PM

You may have to compile in kernel
http://hvera.wordpress.com/2009/06/1...-linux-kernel/

gablek 02-19-2013 06:32 PM

I've got the same XHCI kernel configuration options in both:

3.4.24:

CONFIG_USB_ARCH_HAS_XHCI=y
CONFIG_USB_XHCI_HCD=y
# CONFIG_USB_XHCI_HCD_DEBUGGING is not set

3.7.1:
CONFIG_USB_ARCH_HAS_XHCI=y
CONFIG_USB_XHCI_HCD=y
# CONFIG_USB_XHCI_HCD_DEBUGGING is not set

Thus my confusion.

EDDY1 02-19-2013 07:48 PM

Have you checked that driver is loaded
lsmod

Also read this post which is solved also there are several options which seem to work
https://bbs.archlinux.org/viewtopic.php?id=119676

gablek 02-19-2013 08:10 PM

Um, the driver is compiled into the kernel and there is no module to load.

I did try changing that and manually loading xhci (even blacklisting the USB 2.0 modules)--no difference.

I had found the ArchLinux thread and tried removing mtp-probe (actually, just chmod'd it to make it nonexecutable)--the MTP message disappeared, but nothing else changed. 3.4.24 worked, 3.7.1 didn't. Concluded the MTP message is a red herring.


All times are GMT -5. The time now is 07:16 PM.