View previous topic :: View next topic |
Author |
Message |
CompileMe n00b
Joined: 18 Oct 2013 Posts: 17
|
Posted: Sun Oct 27, 2013 8:46 pm Post subject: [solved] USB 3.0 Not working |
|
|
Hello Everyone I am having a problem with my usb 3 ports. My wired keyboard , wired mouse and speakers work pluged in but my usb hard drive, flash drive or my wireless keyboard will not work I have the XHCI compiled into my kernel. Here is a portion of my dmesg the entire thing is:
Code: |
[ 302.315967] xhci_hcd 0000:04:00.0: @00000000cec3e330 00000000 00000000 00000000 00000000
[ 302.315968] xhci_hcd 0000:04:00.0: @00000000cec3e340 00000000 00000000 00000000 00000000
[ 302.315970] xhci_hcd 0000:04:00.0: @00000000cec3e350 00000000 00000000 00000000 00000000
[ 302.315971] xhci_hcd 0000:04:00.0: @00000000cec3e360 00000000 00000000 00000000 00000000
[ 302.315973] xhci_hcd 0000:04:00.0: @00000000cec3e370 00000000 00000000 00000000 00000000
[ 302.315974] xhci_hcd 0000:04:00.0: @00000000cec3e380 00000000 00000000 00000000 00000000
[ 302.315976] xhci_hcd 0000:04:00.0: @00000000cec3e390 00000000 00000000 00000000 00000000
[ 302.315977] xhci_hcd 0000:04:00.0: @00000000cec3e3a0 00000000 00000000 00000000 00000000
[ 302.315979] xhci_hcd 0000:04:00.0: @00000000cec3e3b0 00000000 00000000 00000000 00000000
[ 302.315980] xhci_hcd 0000:04:00.0: @00000000cec3e3c0 00000000 00000000 00000000 00000000
[ 302.315982] xhci_hcd 0000:04:00.0: @00000000cec3e3d0 00000000 00000000 00000000 00000000
[ 302.315983] xhci_hcd 0000:04:00.0: @00000000cec3e3e0 00000000 00000000 00000000 00000000
[ 302.315985] xhci_hcd 0000:04:00.0: @00000000cec3e3f0 cec3e000 00000000 00000000 00001802
[ 302.315986] xhci_hcd 0000:04:00.0: Ring deq = ffff8800cec3e100 (virt), 0xcec3e100 (dma)
[ 302.315987] xhci_hcd 0000:04:00.0: Ring deq updated 16 times
[ 302.315988] xhci_hcd 0000:04:00.0: Ring enq = ffff8800cec3e100 (virt), 0xcec3e100 (dma)
[ 302.315990] xhci_hcd 0000:04:00.0: Ring enq updated 16 times
[ 302.315993] xhci_hcd 0000:04:00.0: // xHC command ring deq ptr low bits + flags = @00000008
[ 302.315995] xhci_hcd 0000:04:00.0: // xHC command ring deq ptr high bits = @00000000
[ 362.475502] xhci_hcd 0000:00:14.0: Poll event ring: 4295029760
[ 362.475513] xhci_hcd 0000:00:14.0: op reg status = 0x0
[ 362.475517] xhci_hcd 0000:00:14.0: ir_set 0 pending = 0x2
[ 362.475520] xhci_hcd 0000:00:14.0: HC error bitmask = 0x4
[ 362.475522] xhci_hcd 0000:00:14.0: Event ring:
[ 362.475526] xhci_hcd 0000:00:14.0: @00000000cec0a400 cec83bb0 00000000 01000000 02038001
[ 362.475529] xhci_hcd 0000:00:14.0: @00000000cec0a410 cec83bc0 00000000 01000000 02038001
[ 362.475533] xhci_hcd 0000:00:14.0: @00000000cec0a420 cec83bd0 00000000 01000000 02038001
[ 362.475536] xhci_hcd 0000:00:14.0: @00000000cec0a430 cec83be0 00000000 01000000 02038001
[ 422.636177] xhci_hcd 0000:00:14.0: Ring deq = ffff8800cec0a0d0 (virt), 0xcec0a0d0 (dma)
[ 422.636179] xhci_hcd 0000:00:14.0: Ring deq updated 13 times
[ 422.636180] xhci_hcd 0000:00:14.0: Ring enq = ffff8800cec0a0d0 (virt), 0xcec0a0d0 (dma)
[ 422.636181] xhci_hcd 0000:00:14.0: Ring enq updated 13 times
[ 422.636184] xhci_hcd 0000:00:14.0: // xHC command ring deq ptr low bits + flags = @00000008
[ 422.636185] xhci_hcd 0000:00:14.0: // xHC command ring deq ptr high bits = @00000000
[ 422.636187] xhci_hcd 0000:00:14.0: Dev 1 endpoint ring 0:
[ 422.636583] xhci_hcd 0000:04:00.0: Poll event ring: 4295089920
[ 422.636586] xhci_hcd 0000:04:00.0: op reg status = 0x0
[ 422.636589] xhci_hcd 0000:04:00.0: ir_set 0 pending = 0x2
[ 422.636590] xhci_hcd 0000:04:00.0: HC error bitmask = 0x0
[ 422.636591] xhci_hcd 0000:04:00.0: Event ring:
[ 422.636790] xhci_hcd 0000:04:00.0: @00000000cec3e3f0 cec3e000 00000000 00000000 00001802
[ 422.636792] xhci_hcd 0000:04:00.0: Ring deq = ffff8800cec3e100 (virt), 0xcec3e100 (dma)
[ 422.636793] xhci_hcd 0000:04:00.0: Ring deq updated 16 times
[ 422.636794] xhci_hcd 0000:04:00.0: Ring enq = ffff8800cec3e100 (virt), 0xcec3e100 (dma)
[ 422.636795] xhci_hcd 0000:04:00.0: Ring enq updated 16 times
[ 422.636799] xhci_hcd 0000:04:00.0: // xHC command ring deq ptr low bits + flags = @00000008
[ 422.636801] xhci_hcd 0000:04:00.0: // xHC command ring deq ptr high bits = @00000000
|
Please let me know if you need anything else.
Last edited by CompileMe on Thu Oct 31, 2013 1:41 pm; edited 1 time in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Mon Oct 28, 2013 7:22 am Post subject: |
|
|
Code: | emerge pciutils usbutils
lspci -k | grep -i -a2 "usb 3" | ???
if that gives nothing:
Code: | lspci -k | grep -i -a2 usb 3 | ???
???
working usb3 here yields: Quote: | dmesg | grep -i xhc
[ 0.823285] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 0.823961] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 7
[ 0.824748] xhci_hcd 0000:03:00.0: irq 73 for MSI/MSI-X
[ 0.826191] usb usb7: Product: xHCI Host Controller
[ 0.826905] usb usb7: Manufacturer: Linux 3.11.6-gentoo xhci_hcd
[ 0.828360] xHCI xhci_add_endpoint called for root hub
[ 0.828361] xHCI xhci_check_bandwidth called for root hub
[ 0.829799] xhci_hcd 0000:03:00.0: xHCI Host Controller
[ 0.830523] xhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 8
[ 0.832670] usb usb8: Product: xHCI Host Controller
[ 0.833364] usb usb8: Manufacturer: Linux 3.11.6-gentoo xhci_hcd
[ 0.834832] xHCI xhci_add_endpoint called for root hub
[ 0.834833] xHCI xhci_check_bandwidth called for root hub
[ 0.836296] xhci_hcd 0000:04:00.0: xHCI Host Controller
[ 0.836999] xhci_hcd 0000:04:00.0: new USB bus registered, assigned bus number 9
[ 0.837789] xhci_hcd 0000:04:00.0: irq 74 for MSI/MSI-X |
The garbage in your dmesg probably comes from having Quote: | Debugging for the xHCI host controller | enabled in your kernel _________________ Defund the FCC. |
|
Back to top |
|
|
CompileMe n00b
Joined: 18 Oct 2013 Posts: 17
|
Posted: Tue Oct 29, 2013 2:36 pm Post subject: |
|
|
Thanks for the reply your right I had debug enabled just recompiled kernel here is the output.
lspci -k | grep -i -a2 "usb 3":
Code: |
Subsystem: XFX Pine Group Inc. Device aa38
Kernel driver in use: snd_hda_intel
04:00.0 USB controller: VIA Technologies, Inc. VL80x xHCI USB 3.0 Controller (rev 03)
Subsystem: Giga-byte Technology Device 5007
Kernel driver in use: xhci_hcd
|
lsusb:
Code: |
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 06a3:0ccc Saitek PLC
Bus 003 Device 003: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
|
|
|
Back to top |
|
|
CompileMe n00b
Joined: 18 Oct 2013 Posts: 17
|
Posted: Tue Oct 29, 2013 3:08 pm Post subject: |
|
|
Why is my usb3 using the intel sound driver?:
Code: |
Subsystem: XFX Pine Group Inc. Device aa38
Kernel driver in use: snd_hda_intel
|
|
|
Back to top |
|
|
roarinelk Guru
Joined: 04 Mar 2004 Posts: 520
|
Posted: Tue Oct 29, 2013 3:19 pm Post subject: |
|
|
grep -a2 shows the 2 lines preceding the one where the to-be-grepped term is found. Or shorter: No it doesn't use a sound driver for USB3 :)
Last edited by roarinelk on Tue Oct 29, 2013 3:20 pm; edited 1 time in total |
|
Back to top |
|
|
szczerb Veteran
Joined: 24 Feb 2007 Posts: 1709 Location: Poland => Lodz
|
Posted: Tue Oct 29, 2013 3:19 pm Post subject: |
|
|
Actually, I bet that it's the sound chip (for HDMI) on your graphics card. Don't you happen to have an XFX card? |
|
Back to top |
|
|
CompileMe n00b
Joined: 18 Oct 2013 Posts: 17
|
Posted: Tue Oct 29, 2013 3:42 pm Post subject: |
|
|
Yes I do two of them |
|
Back to top |
|
|
CompileMe n00b
Joined: 18 Oct 2013 Posts: 17
|
Posted: Tue Oct 29, 2013 3:45 pm Post subject: |
|
|
Why is my is my wired keyboard, mouse and speakers working but my hard drive and wireless keyboard not working that is what I dont get. any Ideas by the thanks for the reply |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Oct 29, 2013 6:30 pm Post subject: |
|
|
Your bus 004 and bus 006 are the usb3 buses. No device other than the root hub is connected at bus 004 or 006. A usb2 device physically inserted in a usb3 port will need to "virtually" attach to a usb2 root hub. This will require ehci driver provided either as part of xhci driver or separately. As too many drivers is most often better than too few: Does your kernel config have: Quote: | Device Drivers --->
SCSI device support --->
<*> SCSI disk support
<*> SCSI CDROM support
<*> SCSI generic support
<*> Serial ATA and Parallel ATA drivers --->
<*> AHCI SATA support
[*] USB support --->
<*> xHCI HCD (USB 3.0) support
<*> EHCI HCD (USB 2.0) support
[ *] Root Hub Transaction Translators
[ *] Improved Transaction Translator scheduling
<M> OHCI HCD (USB 1.1) support
<M> OHCI support for PCI-bus USB controllers
< > Generic OHCI driver for a platform device
<*> UHCI HCD (most Intel and VIA) support
<*> USB Mass Storage support |
lsusb here is:
Quote: | Bus 001 Device 002: ID 0e8d:1956 MediaTek Inc. -> usb2 external optical drive on two usb2 ports
Bus 002 Device 002: ID 1740:9801 Senao EUB9801 802.11abgn Wireless Adapter [Ralink RT3572] -> usb2 wifi on usb2 port
Bus 004 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB -> usb2 addon controller card on usb2 port
Bus 007 Device 002: ID 05e3:0718 Genesys Logic, Inc. IDE/SATA Adapter -> usb2 external drive on two usb3 ports
Bus 011 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver -> usb2 keyboard/mouse adapter on usb3 port-> same as yours
Bus 012 Device 002: ID 8564:1000 -> usb3 flash drive on usb3 port
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 011 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 012 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 013 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 014 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 015 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 016 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub |
_________________ Defund the FCC. |
|
Back to top |
|
|
CompileMe n00b
Joined: 18 Oct 2013 Posts: 17
|
Posted: Tue Oct 29, 2013 8:12 pm Post subject: |
|
|
I have evrything compiled except this I can not find it.
Code: |
<M> OHCI HCD (USB 1.1) support
|
|
|
Back to top |
|
|
CompileMe n00b
Joined: 18 Oct 2013 Posts: 17
|
Posted: Tue Oct 29, 2013 9:06 pm Post subject: |
|
|
Code: |
2.644036] hub 4-0:1.0: state 7 ports 4 chg 0000 evt 0000
[ 2.644042] hub 5-0:1.0: state 7 ports 1 chg 0002 evt 0000
[ 2.644049] hub 5-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[ 2.644078] hub 4-0:1.0: hub_suspend
[ 2.644083] usb usb4: bus auto-suspend, wakeup 1
[ 2.745536] usb 5-1: new high-speed USB device number 2 using xhci_hcd
[ 3.181958] xhci_hcd 0000:04:00.0: Setup ERROR: address device command for slot 1.
[ 3.382613] xhci_hcd 0000:04:00.0: Setup ERROR: address device command for slot 1.
[ 3.583465] usb 5-1: device not accepting address 2, error -22
[ 3.685479] usb 5-1: new high-speed USB device number 3 using xhci_hcd
[ 3.685598] xhci_hcd 0000:04:00.0: Setup ERROR: address device command for slot 1.
[ 3.760855] EXT4-fs (sda3): re-mounted. Opts: discard
[ 3.797787] Adding 1048572k swap on /dev/sda2. Priority:-1 extents:1 across:1048572k SS
[ 3.886591] xhci_hcd 0000:04:00.0: Setup ERROR: address device command for slot 1.
[ 3.925500] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 4.087456] usb 5-1: device not accepting address 3, error -22
[ 4.114616] ip (1777) used greatest stack depth: 3928 bytes left
[ 4.189465] usb 5-1: new high-speed USB device number 4 using xhci_hcd
[ 4.189581] xhci_hcd 0000:04:00.0: Setup ERROR: address device command for slot 1.
[ 4.361360] IPv6: ADDRCONF(NETDEV_UP): enp6s0: link is not ready
[ 4.361735] e100 0000:06:00.0 enp6s0: NIC Link is Up 100 Mbps Full Duplex
[ 4.361851] IPv6: ADDRCONF(NETDEV_CHANGE): enp6s0: link becomes ready
[ 4.390588] xhci_hcd 0000:04:00.0: Setup ERROR: address device command for slot 1.
[ 4.591473] usb 5-1: device not accepting address 4, error -22
[ 4.693480] usb 5-1: new high-speed USB device number 5 using xhci_hcd
[ 4.693660] xhci_hcd 0000:04:00.0: Setup ERROR: address device command for slot 1.
|
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Oct 29, 2013 10:55 pm Post subject: |
|
|
You might want to unmask and emerge git-sources and build and try the very latest kernel.
googling Quote: | Setup ERROR: address device command for slot 1 | seems to find that there is a kernel bug (or intel hardware bug)
https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.0.11 contains:
Quote: | commit bd8a076ec08b1dab5fe3d7bf5499990a552ff51f
Author: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Date: Thu Nov 3 13:06:08 2011 -0700
xhci: Set slot and ep0 flags for address command.
commit d31c285b3a71cf9056e6a060de41f37780b0af86 upstream.
Matt's AsMedia xHCI host controller was responding with a Context Error
to an address device command after a configured device reset. Some
sequence of events leads both the slot and endpoint zero add flags
cleared to zero, which the AsMedia host doesn't like:
[ 223.701839] xhci_hcd 0000:03:00.0: Slot ID 1 Input Context:
[ 223.701841] xhci_hcd 0000:03:00.0: @ffff880137b25000 (virt) @ffffc000 (dma) 0x000000 - drop flags
[ 223.701843] xhci_hcd 0000:03:00.0: @ffff880137b25004 (virt) @ffffc004 (dma) 0x000000 - add flags
[ 223.701846] xhci_hcd 0000:03:00.0: @ffff880137b25008 (virt) @ffffc008 (dma) 0x000000 - rsvd2[0]
[ 223.701848] xhci_hcd 0000:03:00.0: @ffff880137b2500c (virt) @ffffc00c (dma) 0x000000 - rsvd2[1]
[ 223.701850] xhci_hcd 0000:03:00.0: @ffff880137b25010 (virt) @ffffc010 (dma) 0x000000 - rsvd2[2]
[ 223.701852] xhci_hcd 0000:03:00.0: @ffff880137b25014 (virt) @ffffc014 (dma) 0x000000 - rsvd2[3]
[ 223.701854] xhci_hcd 0000:03:00.0: @ffff880137b25018 (virt) @ffffc018 (dma) 0x000000 - rsvd2[4]
[ 223.701857] xhci_hcd 0000:03:00.0: @ffff880137b2501c (virt) @ffffc01c (dma) 0x000000 - rsvd2[5]
[ 223.701858] xhci_hcd 0000:03:00.0: Slot Context:
[ 223.701860] xhci_hcd 0000:03:00.0: @ffff880137b25020 (virt) @ffffc020 (dma) 0x8400000 - dev_info
[ 223.701862] xhci_hcd 0000:03:00.0: @ffff880137b25024 (virt) @ffffc024 (dma) 0x010000 - dev_info2
[ 223.701864] xhci_hcd 0000:03:00.0: @ffff880137b25028 (virt) @ffffc028 (dma) 0x000000 - tt_info
[ 223.701866] xhci_hcd 0000:03:00.0: @ffff880137b2502c (virt) @ffffc02c (dma) 0x000000 - dev_state
[ 223.701869] xhci_hcd 0000:03:00.0: @ffff880137b25030 (virt) @ffffc030 (dma) 0x000000 - rsvd[0]
[ 223.701871] xhci_hcd 0000:03:00.0: @ffff880137b25034 (virt) @ffffc034 (dma) 0x000000 - rsvd[1]
[ 223.701873] xhci_hcd 0000:03:00.0: @ffff880137b25038 (virt) @ffffc038 (dma) 0x000000 - rsvd[2]
[ 223.701875] xhci_hcd 0000:03:00.0: @ffff880137b2503c (virt) @ffffc03c (dma) 0x000000 - rsvd[3]
[ 223.701877] xhci_hcd 0000:03:00.0: Endpoint 00 Context:
[ 223.701879] xhci_hcd 0000:03:00.0: @ffff880137b25040 (virt) @ffffc040 (dma) 0x000000 - ep_info
[ 223.701881] xhci_hcd 0000:03:00.0: @ffff880137b25044 (virt) @ffffc044 (dma) 0x2000026 - ep_info2
[ 223.701883] xhci_hcd 0000:03:00.0: @ffff880137b25048 (virt) @ffffc048 (dma) 0xffffe8e0 - deq
[ 223.701885] xhci_hcd 0000:03:00.0: @ffff880137b25050 (virt) @ffffc050 (dma) 0x000000 - tx_info
[ 223.701887] xhci_hcd 0000:03:00.0: @ffff880137b25054 (virt) @ffffc054 (dma) 0x000000 - rsvd[0]
[ 223.701889] xhci_hcd 0000:03:00.0: @ffff880137b25058 (virt) @ffffc058 (dma) 0x000000 - rsvd[1]
[ 223.701892] xhci_hcd 0000:03:00.0: @ffff880137b2505c (virt) @ffffc05c (dma) 0x000000 - rsvd[2]
...
[ 223.701927] xhci_hcd 0000:03:00.0: // Ding dong!
[ 223.701992] xhci_hcd 0000:03:00.0: Setup ERROR: address device command for slot 1.
The xHCI spec says that both flags must be set to one for the Address
Device command. When the device is first enumerated,
xhci_setup_addressable_virt_dev() does set those flags. However, when
the device is addressed after it has been reset in the configured state,
xhci_setup_addressable_virt_dev() is not called, and
xhci_copy_ep0_dequeue_into_input_ctx() is called instead. That function
relies on the flags being set up by previous commands, which apparently
isn't a good assumption.
Move the setting of the flags into the common parent function.
This should be queued for stable kernels as old as 2.6.35, since that
was the first introduction of xhci_copy_ep0_dequeue_into_input_ctx.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Tested-by: Matt <mdm@iinet.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
_________________ Defund the FCC. |
|
Back to top |
|
|
CompileMe n00b
Joined: 18 Oct 2013 Posts: 17
|
Posted: Thu Oct 31, 2013 1:38 pm Post subject: |
|
|
DONAHUE, that solved my problem. Thanks alot man. |
|
Back to top |
|
|
Toomuch n00b
Joined: 16 Mar 2004 Posts: 49
|
Posted: Sun Jan 19, 2014 11:48 am Post subject: |
|
|
Solved this by switching back to 3.10.17. Wonder why we hit this 2 year old bug just now. |
|
Back to top |
|
|
|