Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 260139 - I always see "Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after" in my dmesg
Summary: I always see "Warning! ehci_hcd should always be loaded before uhci_hcd and o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: udev maintainers
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-24 16:05 UTC by Szymon Zygmunt
Modified: 2012-11-03 04:51 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg (dmesg,34.03 KB, text/plain)
2010-08-31 19:20 UTC, Pacho Ramos
Details
/etc/modprobe.conf (modprobe.conf,5.94 KB, text/plain)
2010-08-31 19:21 UTC, Pacho Ramos
Details
patch from module-init-tools 3.12 to 3.12-r1 (module-init-tools-3.12-ehci.patch,650 bytes, patch)
2010-09-03 19:57 UTC, Samuli Suominen (RETIRED)
Details | Diff
dmesg before the fixed ebuild (dmesg-before.txt,32.97 KB, text/plain)
2010-09-04 10:24 UTC, Martin Mokrejš
Details
dmesg after the fixed ebuild (dmesg-after.txt,32.89 KB, text/plain)
2010-09-04 10:27 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Szymon Zygmunt 2009-02-24 16:05:47 UTC
After upgrade from 2.6.26-gentoo-r4 to 2.6.27-gentoo-r8 i have always this warning when I boot my gentoo machine.

Reproducible: Always
Comment 2 George Kadianakis (RETIRED) gentoo-dev 2009-02-25 00:20:51 UTC
Please, try the following in your modprobe.conf:

install uhci-hcd /sbin/modprobe ehci-hcd ; /sbin/modprobe -i uhci-hcd 
install ohci-hcd /sbin/modprobe ehci-hcd ; /sbin/modprobe -i ohci-hcd 

It was suggested by Bryan Kadzban in http://markmail.org/message/n2ivg6qqod4fjqdy and it seems like a good way to enforce the correct module ordering in this particular case (at least for the warning to go away).
Comment 3 Szymon Zygmunt 2009-02-25 00:34:02 UTC
(In reply to comment #1)
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=9beeee6584b9aa4f9192055512411484a2a624df;hp=2b70f07343389cb474235def00b021a645ede916
> 
> Reassigning to kernel.

Ok, but in log for this patch is:

This patch (as1139) adds a warning to the system log whenever ehci-hcd
is loaded after ohci-hcd or uhci-hcd.  Nowadays _most distributions_ are
pretty good about not doing this; maybe the warning will help convince
anyone still doing it wrong.

Why gentoo doesn't make it ootb?
Comment 4 Mike Pagano gentoo-dev 2009-03-11 00:56:54 UTC
I'm not sure for baselayout 1, but it looks like openrc handles this now.

My /etc/conf.d/modules loads ohci_hcd and uhci_hcd before ehci_hcd
Comment 5 Mike Pagano gentoo-dev 2009-04-06 15:08:10 UTC
Did you try the steps as outlined in comment #2?
Comment 6 Mike Pagano gentoo-dev 2009-04-11 19:47:36 UTC
You can also adjust module loading order in baselayout-1 by putting them in the load order you want in modules.autoload.d/kernel-2.6
Comment 7 Martin Mokrejš 2009-08-23 09:50:16 UTC
I have same problem on ~x86:

usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:00:1d.0: PCI INT A -> Link[LNKA] -> GSI 5 (level, low) -> IRQ 5
uhci_hcd 0000:00:1d.0: setting latency timer to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1d.0: irq 5, io base 0x0000b800
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: UHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.31-rc6-git6 uhci_hcd
usb usb1: SerialNumber: 0000:00:1d.0
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
uhci_hcd 0000:00:1d.1: PCI INT B -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11
uhci_hcd 0000:00:1d.1: setting latency timer to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.1: irq 11, io base 0x0000b400
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: UHCI Host Controller
usb usb2: Manufacturer: Linux 2.6.31-rc6-git6 uhci_hcd
usb usb2: SerialNumber: 0000:00:1d.1
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Warning! ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after
ehci_hcd 0000:03:00.2: enabling device (0000 -> 0002)
ehci_hcd 0000:03:00.2: PCI INT A -> Link[LNKA] -> GSI 5 (level, low) -> IRQ 5
ehci_hcd 0000:03:00.2: EHCI Host Controller
ehci_hcd 0000:03:00.2: new USB bus registered, assigned bus number 3
ehci_hcd 0000:03:00.2: irq 5, io mem 0x88000a00
ehci_hcd 0000:03:00.2: USB 2.0 started, EHCI 1.00
usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: EHCI Host Controller
usb usb3: Manufacturer: Linux 2.6.31-rc6-git6 ehci_hcd
usb usb3: SerialNumber: 0000:03:00.2
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 4 ports detected
uhci_hcd 0000:03:00.0: enabling device (0000 -> 0003)
uhci_hcd 0000:03:00.0: PCI INT A -> Link[LNKA] -> GSI 5 (level, low) -> IRQ 5
uhci_hcd 0000:03:00.0: UHCI Host Controller
uhci_hcd 0000:03:00.0: new USB bus registered, assigned bus number 4
uhci_hcd 0000:03:00.0: irq 5, io base 0x0000a080
usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: UHCI Host Controller
usb usb4: Manufacturer: Linux 2.6.31-rc6-git6 uhci_hcd
usb usb4: SerialNumber: 0000:03:00.0
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
uhci_hcd 0000:03:00.1: enabling device (0000 -> 0003)
uhci_hcd 0000:03:00.1: PCI INT A -> Link[LNKA] -> GSI 5 (level, low) -> IRQ 5
uhci_hcd 0000:03:00.1: UHCI Host Controller
uhci_hcd 0000:03:00.1: new USB bus registered, assigned bus number 5
uhci_hcd 0000:03:00.1: irq 5, io base 0x0000a0a0
usb usb5: New USB device found, idVendor=1d6b, idProduct=0001
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: UHCI Host Controller
usb usb5: Manufacturer: Linux 2.6.31-rc6-git6 uhci_hcd
usb usb5: SerialNumber: 0000:03:00.1
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected

I am on 2.6.31-rc6-git6.

# lsmod
Module                  Size  Used by
radeon                342320  2 
drm                   141304  3 radeon
usbhid                 23936  0 
ehci_hcd               29548  0 
uhci_hcd               18836  0 
usbcore               130120  4 usbhid,ehci_hcd,uhci_hcd
intel_agp              24064  1 
8139too                18608  0 
firewire_ohci          19848  0 
firewire_core          40888  1 firewire_ohci
parport_pc             22880  1 
pcmcia                 36572  0 
#

# emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-rc6-git6 i686)
=================================================================
System uname: Linux-2.6.31-rc6-git6-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 22 Aug 2009 10:15:02 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1, 3.1.1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"


I do not have at all "(e|u|o)hci" in /etc/modprobe.d/* not /etc/* files.
Comment 8 George Kadianakis (RETIRED) gentoo-dev 2009-08-24 03:07:00 UTC
(In reply to comment #7)
> I have same problem on ~x86:
> 
> usbcore: registered new interface driver usbfs
> usbcore: registered new interface driver hub
> usbcore: registered new device driver usb
> <snip>
> I do not have at all "(e|u|o)hci" in /etc/modprobe.d/* not /etc/* files.
> 

Sorry if I'm misunderstanding you, but did you try adding the lines of comment #2 in your /etc/modprobe.conf? Did the messages stop occuring?

Thanks
Comment 9 Martin Mokrejš 2009-08-24 08:45:27 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > I have same problem on ~x86:
> > 
> > usbcore: registered new interface driver usbfs
> > usbcore: registered new interface driver hub
> > usbcore: registered new device driver usb
> > <snip>
> > I do not have at all "(e|u|o)hci" in /etc/modprobe.d/* not /etc/* files.
> > 
> 
> Sorry if I'm misunderstanding you, but did you try adding the lines of comment
> #2 in your /etc/modprobe.conf? Did the messages stop occuring?

Yes, I did that and it helped. What I wanted to add that I suspect Gentoo default settings are wrong as they do not try to adjust order of the "(e|u|o)hci" modules at all. Otherwise the files would be listed I hoped in /etc/modprobe.conf, /etc/modprobe.d/* or /etc/*.

I would say,  somebody please reopen. ;-)

> 
> Thanks
> 

Comment 10 Jimmy C. Chau 2010-01-18 06:38:20 UTC
From http://bugs.archlinux.org/task/12009#comment36678

Damjan suggests a more appropriate addition to modprobe.conf:

install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe --ignore-install ohci_hcd $CMDLINE_OPTS
install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe --ignore-install uhci_hcd $CMDLINE_OPTS

Comment 11 Martin Mokrejš 2010-04-15 20:02:38 UTC
(In reply to comment #10)
> From http://bugs.archlinux.org/task/12009#comment36678
> 
> Damjan suggests a more appropriate addition to modprobe.conf:
> 
> install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe --ignore-install
> ohci_hcd $CMDLINE_OPTS
> install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe --ignore-install
> uhci_hcd $CMDLINE_OPTS

I confirm this issue still exists with baselayout-2 and I really needed to create /etc/modules.d/usb on my own with the above 2 lines and run update-modules.

# emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.32.10 i686)
=================================================================
System uname: Linux-2.6.32.10-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 15 Apr 2010 13:15:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 1.3.7-r1, 2.1.10
dev-lang/python:     2.5.4-r4, 2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc:       3.3.6-r1, 4.2.4-r1, 4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Nero-EULA-US skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs cz"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/x11 /usr/local/portage/layman/science /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="32bit 7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo caps cblas cddb cdparanoia cdr cgi clamav cli colordiff compress consolekit cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbi dbus dga dia directfb djbfft doc dri dts dv dvb dvd dvdr dvdread emacs emboss emf enblend encode enscript exif expat faad fam fame fat fbcon ffmpeg fftw firefox flac flash fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gsm gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libnotify libwww live lzo lzw mad maildir matroska mhash mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug modules motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp openssl pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3support qt4 quicktime rar raw readline recode reflection reiserfs romio rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads tidy tiff tk transcode truetype unicode urandom usb userlocales utils uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcf xfs xft xinerama xinetd xml xorg xpm xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 12 Martin Mokrejš 2010-05-04 20:52:44 UTC
A short follow up on my HW (laptop with PCMCIA USB 2.0 card but motherboard has USB1.1):

<quote>
From: Alan Stern
To: LKML <linux-kernel%vger.kernel.org>, USB list <linux-usb%vger.kernel.org>, ...
Date: Fri, 16 Apr 2010 10:41:53 -0400 (EDT)


> > Could it be related tot he fact that because the laptop has USB1.1 onboard
> > it loads uhci_hcd first. Eventually when I plugin the PCMCIA card it loads
> > ehci_hcd and the kernel complains it should have been loaded before?
> > Is there a way to tell this in /etc/modules.d/somefile ? I fear I have to
> > compile them into the kernel statically, on this particular setup.

Don't worry about that.  That warning doesn't indicate any errors; it's
just there to let people know what they _should_ do.  The system will
work okay even when the drivers are loaded in the wrong order.  Bad
effects are possible only if the UHCI and EHCI controllers share some
ports, and on your system they don't.
</quote>
Comment 13 Pacho Ramos gentoo-dev 2010-08-31 19:20:13 UTC
I still see this message with 2.6.25-r1
Comment 14 Pacho Ramos gentoo-dev 2010-08-31 19:20:27 UTC
Created attachment 245521 [details]
dmesg
Comment 15 Pacho Ramos gentoo-dev 2010-08-31 19:21:25 UTC
Created attachment 245522 [details]
/etc/modprobe.conf

And my emerge --info:

Portage 2.1.8.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.4.3, glibc-2.11.2-r0, 2.6.35-tuxonice-r1 i686)
=================================================================
System uname: Linux-2.6.35-tuxonice-r1-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 30 Aug 2010 15:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org"
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="es es_ES en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/local/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa avahi bash-completion berkdb branding bzip2 cairo cdda cddb cdinstall cdr cleartype cli consolekit cracklib crypt cups cxx daap dbus djvu dri dts dvd dvdr dvi eds emboss encode evo exif fam fat ffmpeg firefox flac fortran fuse gdbm gdu gif gnome gnome-keyring gpm gstreamer gtk hal iconv java jpeg laptop latex lcms libnotify lm_sensors lzma mad mikmod mmx mmxext mng modules mono mp3 mp4 mpeg mudflap musicbrainz nautilus ncurses network network-cron networkmanager nls nptl nptlonly ntfs nvidia ogg opengl openmp pam pango pch pcre pdf perl png policykit ppds pppd python qt3support readline reflection reiserfs sdl session spell spl sse sse2 sse3 ssl startup-notification svg sysfs t1lib tcpd threads tiff truetype udev unicode usb v4l2 vcd vorbis wifi x264 x86 xattr xcb xml xmp xorg xpm xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 16 Mike Pagano gentoo-dev 2010-08-31 23:24:15 UTC
Is this really a kernel bug?
Comment 17 Pacho Ramos gentoo-dev 2010-09-01 08:28:47 UTC
It looks to me more like an udev issue, since I think it's the one that is loading modules in wrong order... but maybe I am wrong :-/
Comment 18 Mike Pagano gentoo-dev 2010-09-03 16:09:06 UTC
Base, is this one of yours?
Comment 19 Samuli Suominen (RETIRED) gentoo-dev 2010-09-03 16:24:21 UTC
I'm not sure if this helps, but, ArchLinux is using this patch:

http://repos.archlinux.org/wsvn/packages/filesystem/trunk/modprobe.d.usb-load-ehci-first

Stemmed out from:

http://bugs.archlinux.org/task/12009
Comment 20 Samuli Suominen (RETIRED) gentoo-dev 2010-09-03 16:27:04 UTC
(In reply to comment #19)
> I'm not sure if this helps, but, ArchLinux is using this patch:
> 
> http://repos.archlinux.org/wsvn/packages/filesystem/trunk/modprobe.d.usb-load-ehci-first
> 
> Stemmed out from:
> 
> http://bugs.archlinux.org/task/12009
> 

And from their PKGBUILD:

# Add /etc/modprobe.d/
install -D -m644 ${srcdir}/modprobe.d.usb-load-ehci-first \
${pkgdir}/etc/modprobe.d/usb-load-ehci-first.conf

So it should be rather straightforward to snatch http://repos.archlinux.org/wsvn/packages/filesystem/trunk/modprobe.d.usb-load-ehci-first and put it as /etc/modprobe.d/ as .conf file. 

What package exactly should do this?
Comment 21 SpanKY gentoo-dev 2010-09-03 19:26:39 UTC
sys-apps/module-init-tools is probably about the only package that fits
Comment 22 Samuli Suominen (RETIRED) gentoo-dev 2010-09-03 19:57:24 UTC
Created attachment 245896 [details, diff]
patch from module-init-tools 3.12 to 3.12-r1

how about this?
Comment 23 SpanKY gentoo-dev 2010-09-03 21:09:52 UTC
it sucks we have to do this at all, but i guess that patch looks fine
Comment 24 Martin Mokrejš 2010-09-04 10:24:28 UTC
Created attachment 245947 [details]
dmesg before the fixed ebuild
Comment 25 Martin Mokrejš 2010-09-04 10:27:17 UTC
Created attachment 245948 [details]
dmesg after the fixed ebuild

I somewhat fail to understand why is still ehci_hcd is loaded first but the warning message is gone, so I am happy with this. Thanks.
Comment 26 Samuli Suominen (RETIRED) gentoo-dev 2010-09-04 10:43:32 UTC
(In reply to comment #23)
> it sucks we have to do this at all, but i guess that patch looks fine

indeed

(In reply to comment #25)
> warning message is gone, so I am happy with this. Thanks.

thanks for testing, so here goes:

+*module-init-tools-3.12-r1 (04 Sep 2010)
+
+  04 Sep 2010; Samuli Suominen <ssuominen@gentoo.org>
+  +module-init-tools-3.12-r1.ebuild:
+  Install /etc/modprobe.d/usb-load-ehci-first.conf that will ensure ehci is
+  loaded before uhci or ohci wrt #260139. Thanks to Szymon Zygmunt, Martin
+  Mokrejš, Pacho Ramos and Mike Frysinger.

Comment 27 Martin Mokrejš 2010-09-04 11:35:18 UTC
For clarity, I tested on baselayout-2 where /etc/modprobe.d/* file changes are followed by update-modules execution.

AFAIK, the ebuild will not fix the issue for baselayout-1 where /etc/modprobe.conf is involed.
Comment 28 Samuli Suominen (RETIRED) gentoo-dev 2012-10-20 07:03:56 UTC
Sorry but I have to reopen this bug because of the regression introduced by kmod -- as in, this fix never made it to kmod
Comment 29 Samuli Suominen (RETIRED) gentoo-dev 2012-10-20 07:13:45 UTC
(In reply to comment #28)
> Sorry but I have to reopen this bug because of the regression introduced by
> kmod -- as in, this fix never made it to kmod

+*kmod-10-r1 (20 Oct 2012)
+
+  20 Oct 2012; Samuli Suominen <ssuominen@gentoo.org> +kmod-10-r1.ebuild,
+  kmod-9999.ebuild:
+  Forward /etc/modprobe.d/usb-load-ehci-first.conf from module-init-tools to
+  kmod wrt #260139

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

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kmod/kmod-10-r1.ebuild?rev=1.1&view=markup