Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Warning! ehci_hcd should always be loaded before uhci_hcd a
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
TechwoIf
n00b
n00b


Joined: 06 Aug 2007
Posts: 16

PostPosted: Tue Sep 25, 2012 11:39 pm    Post subject: Warning! ehci_hcd should always be loaded before uhci_hcd a Reply with quote

I get this in dmesg: " Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after"

Google searching and these forums did not revel the answer.

Gentoo did have a bug report of this error and it was fixed in module-init-tools, however, they are not used anymore as it was moved to KMOD now.

How to fix this using kmod?
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3599
Location: USA

PostPosted: Tue Sep 25, 2012 11:59 pm    Post subject: Reply with quote

Odd, I haven't seen this in ages. Did you perhaps compile uhci_hcd into the kernel and ehci_hcd as a module?

All your module tools up to date (including config files?)
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
elxa
n00b
n00b


Joined: 15 Oct 2012
Posts: 14

PostPosted: Fri Oct 19, 2012 2:56 am    Post subject: Reply with quote

me, too
Quote:
Oct 19 00:50:28 thinkgentoo kernel: Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after

using sys-kernel/vanilla-sources:3.6.2 with this .config http://bpaste.net/show/52107/
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3599
Location: USA

PostPosted: Fri Oct 19, 2012 5:08 pm    Post subject: Reply with quote

elxa wrote:
me, too
Quote:
Oct 19 00:50:28 thinkgentoo kernel: Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after

using sys-kernel/vanilla-sources:3.6.2 with this .config http://bpaste.net/show/52107/


Yes this shows the problem that I was warning about. If you have UHCI compiled into the kernel (in which it is:
Code:
CONFIG_USB_XHCI_HCD=m
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=y

) once you load the EHCI module the warning will be emitted. Either build UHCI as a module or build EHCI into the kernel, I suspect you want the latter for newer machine else the USB keyboard won't work.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4883

PostPosted: Fri Oct 19, 2012 8:05 pm    Post subject: Reply with quote

eccerr0r wrote:
elxa wrote:
me, too
Quote:
Oct 19 00:50:28 thinkgentoo kernel: Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after

using sys-kernel/vanilla-sources:3.6.2 with this .config http://bpaste.net/show/52107/


Yes this shows the problem that I was warning about. If you have UHCI compiled into the kernel (in which it is:
Code:
CONFIG_USB_XHCI_HCD=m
CONFIG_USB_EHCI_HCD=m
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=y

) once you load the EHCI module the warning will be emitted. Either build UHCI as a module or build EHCI into the kernel, I suspect you want the latter for newer machine else the USB keyboard won't work.
that most probably will not work, EHCI and UHCI will continue fight on who is control the device, compiling them as modules should fix it.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
eccerr0r
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3599
Location: USA

PostPosted: Sat Oct 20, 2012 12:37 am    Post subject: Reply with quote

DaggyStyle wrote:
that most probably will not work, EHCI and UHCI will continue fight on who is control the device, compiling them as modules should fix it.

My XHCI machine works just fine this way, I have all three compiled statically and it will negotiate the correct speed for all.
The kernel developers already understand this situation and enumerate the host interfaces in the proper order to allow the fastest speeds.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed to be advocating?
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4883

PostPosted: Sat Oct 20, 2012 6:58 am    Post subject: Reply with quote

eccerr0r wrote:
DaggyStyle wrote:
that most probably will not work, EHCI and UHCI will continue fight on who is control the device, compiling them as modules should fix it.

My XHCI machine works just fine this way, I have all three compiled statically and it will negotiate the correct speed for all.
The kernel developers already understand this situation and enumerate the host interfaces in the proper order to allow the fastest speeds.

XHCI is not EHCI/UHCI, no do long ago, when they were compile into the kernel on my machine, none of the usb worked and I could see them fight over it in dmesg.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
ssuominen
Developer
Developer


Joined: 30 Sep 2005
Posts: 2000
Location: Finland

PostPosted: Sat Oct 20, 2012 9:23 am    Post subject: Reply with quote

I've forwarded the modprobe.d file from module-init-tools to kmod as per:

http://bugs.gentoo.org/show_bug.cgi?id=260139
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-9999.ebuild?r1=1.33&r2=1.34

And also in >=sys-apps/kmod-10-r1

I suppose this was just oversight.
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