Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel not finding USB hardware [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Sainted_Trousers
n00b
n00b


Joined: 27 Nov 2005
Posts: 42

PostPosted: Tue Jun 24, 2014 8:04 pm    Post subject: Kernel not finding USB hardware [solved] Reply with quote

I'm running
Code:
$ uname -rmp
3.10.17-gentoo x86_64 AMD FX(tm)-4100 Quad-Core Processor
and it works a treat. But when I try to run any later kernels (currently 3.12.21-r1, but the problem persists with other versions), the USB fails to recognize any OHCI hardware - including my keyboard and mouse. EHCI is recognized, however:
Code:
# kernel 3.12
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_hcd: block sizes: qh 112 qtd 96 itd 192 sitd 96
...
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 3.12.21-gentoo-r1 ehci_hcd
usb usb1: SerialNumber: 0000:00:12.2
...
It finds two more at "SerialNumber" 0000:00:13.2 (usb2) and 0000:00:16.2 (usb3). lspci says 3 EHCI and 4 OHCI.

I have the OHCI drivers compiled in, and the log shows that OHCI starts:
Code:
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci_hcd: block sizes: ed 80 td 96

That's the last I hear from OHCI - apparently, it finds no controllers. EHCI continues to issue status changes on its ports. So that's it, three EHCI controllers and no OHCI controllers.

The 3.10 kernel not only finds the three EHCI controllers for usb1-usb3, but four more OHCI controllers for usb4-usb7.

Both kernels find and use the AHCI SATA controller on the same silicon as the USB ([AMD/ATI] SB7x0/SB8x0/SB9x0 at 00:11 to 00:16) and ignore the ASMedia SATA controller at 03:00.

That's the problem, folks. I've tried other kernels in the six months since 3.10.17, but all have exhibited similar behavior.

Enlightenment would oblige. :)


Last edited by Sainted_Trousers on Wed Jun 25, 2014 3:31 am; edited 1 time in total
Back to top
View user's profile Send private message
sebB
l33t
l33t


Joined: 02 Mar 2011
Posts: 732
Location: S.O. France

PostPosted: Tue Jun 24, 2014 10:10 pm    Post subject: Reply with quote

Can you post your .config from kernel 3.10.17 and 3.12.
Did you see diff?
Back to top
View user's profile Send private message
Sainted_Trousers
n00b
n00b


Joined: 27 Nov 2005
Posts: 42

PostPosted: Tue Jun 24, 2014 11:21 pm    Post subject: Reply with quote

Thank you for responding. Sorry for the high latency, but I want to get my replies correct and complete.

I configured the 3.12 kernel with make oldconfig so I don't think there are many differences. Did you want the entirety of both .configs + diffs? I'm reluctant to clutter the forum with them, but if that's what you need, I can do that. Or I can use an off-site service if you prefer.

You asked if I saw a difference, so here's what I did:
Code:
$ grep USB /usr/src/linux-3.10.17-gentoo/.config | sort >k10config.txt
$ grep USB /usr/src/linux-3.12.21-gentoo-r1/.config | sort >k12config.txt
$ diff k10config.txt k12config.txt
0a1
> # CONFIG_AM335X_PHY_USB is not set
2a4,5
> # CONFIG_SAMSUNG_USB2PHY is not set
> # CONFIG_SAMSUNG_USB3PHY is not set
16a20
> # CONFIG_USB_EHSET_TEST_FIXTURE is not set
19a24
> # CONFIG_USB_FOTG210_HCD is not set
20a26
> # CONFIG_USB_FUSBH200_HCD is not set
21a28
> # CONFIG_USB_HCD_TEST_MODE is not set
27a35
> # CONFIG_USB_ISP1301 is not set
37,38c45
< # CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
< # CONFIG_USB_OHCI_BIG_ENDIAN_MMIO is not set
---
> # CONFIG_USB_OHCI_HCD_PCI is not set
42d48
< # CONFIG_USB_PHY is not set
44a51
> # CONFIG_USB_RCAR_PHY is not set
74c81
< # CONFIG_USB_XHCI_HCD_DEBUGGING is not set
---
> # CONFIG_USB_XHCI_HCD is not set
83a91
> # USB Physical Layer drivers
85a94
> CONFIG_NOP_USB_XCEIV=y
88d96
< CONFIG_USB_ARCH_HAS_EHCI=y
90,91d97
< CONFIG_USB_ARCH_HAS_OHCI=y
< CONFIG_USB_ARCH_HAS_XHCI=y
101a108
> CONFIG_USB_PHY=y
104d110
< CONFIG_USB_XHCI_HCD=y
I see some new hardware drivers were added, some testing/debugging options added, BIG-ENDIAN and ARCH_HAS stuff was deleted, and some XHCI stuff is changed (can't remember why XHCI is gone - my MoBo says it has USB 3.0, so it should be in there, but lspci says I don't need it).

I see three significant diffs:
  • 3.12 has OHCI_HCD_PCI not set (3.10 doesn't even have the CONFIG option), which is OK because I have no USB cards plugged into the PCI bus.
  • 3.10 doesn't have USB_PHY set, but 3.12 does (I can't find where to select the option in the config system).
  • 3.10 doesn't have the option of NOP_USB_XCEIV, and 3.12 has it enabled.

Over to you, sebB. Again, I really appreciate your response.
Back to top
View user's profile Send private message
s4e8
Guru
Guru


Joined: 29 Jul 2006
Posts: 309

PostPosted: Wed Jun 25, 2014 1:26 am    Post subject: Reply with quote

All USB controller on PC is PCI device, so you need the OHCI PCI driver.
Back to top
View user's profile Send private message
Sainted_Trousers
n00b
n00b


Joined: 27 Nov 2005
Posts: 42

PostPosted: Wed Jun 25, 2014 3:29 am    Post subject: Reply with quote

:D **doing the happy dance** :D

Code:
$ uname -rmp
3.12.21-gentoo-r1 x86_64 AMD FX(tm)-4100 Quad-Core Processor

I never enabled this option because the kernel config help was very specific in stating that this option was for "PCI-bus plug-in USB controller cards". I've known for a long time that config help was sketchy, but apparently it was a lesson I had to learn again.

The Gentoo community just plain rawks, and you, s4e8 in particular, are a "steely-eyed rocket man" (with thanks also to sebB). :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum