Bug 4866 - motherboard ga-k8nf-9: ehci_hcd doesn't work
motherboard ga-k8nf-9: ehci_hcd doesn't work
Product: Drivers
Classification: Unclassified
Component: USB
i386 Linux
: P2 normal
Assigned To: Greg Kroah-Hartman
Depends on:
  Show dependency treegraph
Reported: 2005-07-08 12:09 UTC by Marco Clocchiatti
Modified: 2005-08-17 05:57 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.13-rc1
Tree: Mainline
Regression: ---

lspci (14.22 KB, text/plain)
2005-07-08 12:14 UTC, Marco Clocchiatti
output after attaching usb device (2.82 KB, text/plain)
2005-07-08 12:15 UTC, Marco Clocchiatti
log output using ohci_hcd driver (529 bytes, text/plain)
2005-07-08 12:17 UTC, Marco Clocchiatti
log output with a 32 bit installation (528 bytes, text/plain)
2005-07-08 12:19 UTC, Marco Clocchiatti

Description Marco Clocchiatti 2005-07-08 12:09:38 UTC
Hardware Environment: amd64 motherboard ga-k8nf-9  
Software Environment: sys-kernel/gentoo-sources-2.6.12-r4 and  
s939 ~ # emerge info 
Portage (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0, 
2.6.12-gentoo-r3 x86_64) 
System uname: 2.6.12-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3500+ 
Gentoo Base System version 1.6.12 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    1.2.9 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
CFLAGS="-march=athlon64 -O2 -pipe -fweb -frename-registers -ftracer" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon64 -O2 -pipe -fweb -frename-registers -ftracer" 
FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict" 
ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ 
LDFLAGS="-Wl,-O1 -Wl,--as-needed" 
MAKEOPTS="-j3 -s" 
USE="amd64 X aalib acpi alsa bash-completion berkdb bitmap-fonts bzip2 bzlib 
cddb cdr chroot crypt cspell cups curl dvd dvdr eds encode esd fam flac 
font-server foomaticdb fortran fpx gif gimpprint gnome gphoto2 gpm graphviz 
gstreamer gtk gtk2 gtkhtml hal ieee1394 imagemagick imlib jack java javascript 
jbig jp2 jpeg kde kdeenablefinal lcms ldap libwww lzw lzw-tiff mad mime mng 
mozilla mp3 mpeg nas ncurses nls nptl nvidia ogg opengl oss pam pam_chroot 
pam_console pam_timestamp perl php png posix ppds pwdb python qt readline rtc 
samba scanner slang smp ssl svg tcltk tcpd tiff truetype truetype-fonts 
type1-fonts unicode usb userlocales wmf xine xml xml2 xmms xpm xrandr xv zlib 
linguas_it userland_GNU kernel_linux elibc_glibc" 
Problem Description:   
kernel doesn't load correctly usb 2.0 devices using ehci_hcd module.  
They work only with ohci_hcd module on 64 bit installation or with ehci_hcd  
module on 32 bit installation.  
I've just documented my bug to this address:  
http://bugs.gentoo.org/show_bug.cgi?id=98100 with a lot of debug.  
Steps to reproduce:  
1. boot linux.  
2. attach a usb 2.0 device  
3. watch the log of /var/log/kernel/current.  
Sorry, but is my first bug report and I don't try a way to attach external  
files. So I put something here. Other logs are on gentoo bugzilla.  
They work only with ohci_hcd module on 64 bit installation or with ehci_hcd  
module on 32 bit installation
Comment 1 Marco Clocchiatti 2005-07-08 12:14:30 UTC
Created attachment 5298 [details]
Comment 2 Marco Clocchiatti 2005-07-08 12:15:50 UTC
Created attachment 5299 [details]
output after attaching usb device
Comment 3 Marco Clocchiatti 2005-07-08 12:17:35 UTC
Created attachment 5300 [details]
log output using ohci_hcd driver

Attaching device after having done modprobe -rv ehci_hcd loads correctly the
Comment 4 Marco Clocchiatti 2005-07-08 12:19:31 UTC
Created attachment 5301 [details]
log output with a 32 bit installation

That's the output using the driver ehci_hcd with a 32-bit installation, on the
same hardware.
Everithing works fine.
Comment 5 Andrew Morton 2005-07-28 23:53:56 UTC
Has there been any movement on this?

Is the bug still present in 2.6.13-rc4?

Comment 6 David Brownell 2005-07-29 13:06:39 UTC
This is likely an ACPI or BIOS problem.  We get all too many of them. 
In this case it's particularly suspicious that it works with a 32bit 
kernel but fails with a 64bit one. 
This should be transferred over to ACPI land ... 
Comment 7 Andrew Morton 2005-07-29 14:04:17 UTC

Marco, did any earlier 2.6.x kernel work correctly?  If so, which version?

Comment 8 Marco Clocchiatti 2005-07-30 23:46:30 UTC
Same behaviour on vanilla-2.6.13-rc4, gentoo-sources-2.6.12.r6 and 
This thread: 
http://www.mail-archive.com/linux-usb-users%40lists.sourceforge.net/msg13143.html , 
shows the same problem on "2.6.10 vanilla and 2.6.10-1.1109_FC4 (2.6.11-rc2 
based)" kernels. 
Comment 9 David Brownell 2005-08-01 09:48:10 UTC
One more thing to check:  does this machine have more than 2 Mbytes
of physical memory?

NVidia looked at this and found an issue with NF4 EHCI not doing DMA
right except into the lower 2 MBytes of memory.  The guy was going to
resubmit the patch in mergeable form, but hasn't yet.  Some details
weren't clear, but that issue _might_ have been a 64-bit only thing.
Workaround was to set the DMA mask to ~(1<<31) on certain chips.

I've used NF3 EHCI with 64 bit kernels, no problem.  Less memory though. :)
Comment 10 Andrew Morton 2005-08-01 12:20:30 UTC
I assume David means more than 2GB ;)

Comment 11 Greg Kroah-Hartman 2005-08-04 13:07:59 UTC
Yeah, more than 2Gb :)
Comment 12 Marco Clocchiatti 2005-08-17 05:56:58 UTC
Solved upgrading bios to f4 version (see 
f7 version gives me another problem (may be a second bug?) 
Thank you for your support. You help me to understand a lot of things. 

Note You need to log in before you can comment on or make changes to this bug.