Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275160 - sys-kernel/gentoo-sources-2.6.30-r1: USB-System does not work with more than 2GB of RAM
Summary: sys-kernel/gentoo-sources-2.6.30-r1: USB-System does not work with more than ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-23 09:20 UTC by Phil Falcon
Modified: 2009-07-24 23:16 UTC (History)
0 users

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


Attachments
Kernel-Config (.config,61.84 KB, text/plain)
2009-07-04 15:51 UTC, Phil Falcon
Details
lsusb -v (2GB) (lsusb_2gb,16.24 KB, text/plain)
2009-07-09 12:18 UTC, Phil Falcon
Details
lsusb -v (4GB) (lsusb_4gb,16.24 KB, text/plain)
2009-07-09 12:18 UTC, Phil Falcon
Details
dmesg (2GB) (dmesg_2GB,62.74 KB, text/plain)
2009-07-16 12:10 UTC, Phil Falcon
Details
dmesg (4GB) (dmesg_4GB,64.15 KB, text/plain)
2009-07-16 12:10 UTC, Phil Falcon
Details
dmesg (4GB) after a USB Stick has been plugged in (ubs_plugged_in_4gb,72.93 KB, text/plain)
2009-07-24 11:11 UTC, Phil Falcon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Falcon 2009-06-23 09:20:08 UTC
I was using 2.6.29-gentoo-r5 before without any problems with USB. Now, after upgrading to 2.6.30-gentoo-r1, the USB is not working at all. After adding "mem=2GB" to the kernel boot flags, it's functional again. But of course, I want both: my 4GB RAM and USB.

Reproducible: Always

Steps to Reproduce:
1. Install 2.6.30-gentoo-r1 on AMD64
2. Plug-in 4GB RAM

Actual Results:  
No USB-Device is recognised anymore.

Expected Results:  
USB should work as usual.

emerge --info:

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.10.1-r0, 2.6.30-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 22 Jun 2009 10:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.4.4-r13, 2.5.4-r2, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 apache2 bash-completion battery berkdb bzip2 cairo cli cpufreq cracklib crypt cups divx dri dvd ffmpeg firefox flac fortran gd gdbm gif gpm iconv ieee1394 inifile ipv6 isdnlog java java6 jpeg jpeg2k json latex mbox midi mmx mng mp3 mpeg mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl physfs png pppd python qt4 quicktime readline realmedia reflection samba session sockets speex spl sse sse2 ssl static svg sysfs tcpd tiff tokenizer truetype unicode vorbis wifi wmf wmp x246 xcb xml xmlreader xmlwriter xorg xosd xpm xulrunner xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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="mouse keyboard synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Wormo (RETIRED) gentoo-dev 2009-06-27 22:17:17 UTC
Please attach an lspci and your kernel config file to give more info on your hardware and drivers.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-04 12:31:32 UTC
Reopen this bug when you provide the requested information.
Comment 3 Phil Falcon 2009-07-04 15:51:32 UTC
Created attachment 196654 [details]
Kernel-Config
Comment 4 Phil Falcon 2009-07-04 15:52:17 UTC
#lspci

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
02:00.0 Network controller: Intel Corporation Wireless WiFi Link 5300
85:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 06)
85:09.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 25)
85:09.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev bb)
85:09.3 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ff)
Comment 5 George Kadianakis (RETIRED) gentoo-dev 2009-07-09 03:18:18 UTC
Could we have a copy of 'lsusb -v' when you are on 4GB of RAM (and USB doesn't work) and another copy of when you are on 2GB of RAM (and USB functions correctly).

Thanks
Comment 6 Phil Falcon 2009-07-09 12:18:05 UTC
Created attachment 197332 [details]
lsusb -v (2GB)
Comment 7 Phil Falcon 2009-07-09 12:18:47 UTC
Created attachment 197334 [details]
lsusb -v (4GB)

If you need more Infos, just let me know.
Comment 8 George Kadianakis (RETIRED) gentoo-dev 2009-07-13 19:33:51 UTC
Could we, also, have a copy of your dmesg when on 2GB RAM and when on 4GB RAM?

Thanks!
Comment 9 Phil Falcon 2009-07-16 12:10:33 UTC
Created attachment 198166 [details]
dmesg (2GB)
Comment 10 Phil Falcon 2009-07-16 12:10:58 UTC
Created attachment 198168 [details]
dmesg (4GB)
Comment 11 Stratos Psomadakis (RETIRED) gentoo-dev 2009-07-23 12:48:57 UTC
maybe the dmesg output when connecting a usb device could be more helpful, especially when you use 4GB RAM...
btw, you can also try the latest development kernel, and see if the bug occurs there too...
Comment 12 Phil Falcon 2009-07-24 11:11:00 UTC
Created attachment 198974 [details]
dmesg (4GB) after a USB Stick has been plugged in

This File is created using the current Vanilla-Kernel 2.6.30.2. So the bug is still existent.
Comment 13 Stratos Psomadakis (RETIRED) gentoo-dev 2009-07-24 14:03:06 UTC
probably, your kernel is using nommu instead of swiotlb for some reason, and that's why usb devices don't work...

try booting the kernel with "iommu=soft"...
you can also disble "CALGARY_IOMMU_ENABLED_BY_DEFAULT" and "CALGARY_IOMMU"...

and check if the line:
"PCI-DMA: Using software bounce buffering for IO (SWIOTLB)"
appers in the dmesg output when using 2.6.29-r5 with 4GB RAM...
Comment 14 Phil Falcon 2009-07-24 17:19:10 UTC
Hey, "iommu=soft" worked! Do I lose any functionality using this workaround?
Comment 15 Stratos Psomadakis (RETIRED) gentoo-dev 2009-07-24 18:49:28 UTC
well, after some reading, it appears that what i said above is not 100% correct...
apparently, your computer's bios is a bit broken, when it comes to intel iommu(specifically dmar tables)...
[    0.331342] Your BIOS is broken; DMAR reported at address zero!

the kernel detects a broken bios and aborts further iommu initialization...
you are left without iommu, thus the kernel falls back to the nommu functions, which won't work for >4GB RAM...

so the only solution is using iommu=soft, until(and if) an updated BIOS is released...
iommu=soft can introduce a performance penalty, but i think it's the only solution for you...

however, i can't understand why gentoo-sources-2.6.29-r5 'work'...since they contain the same check(for a broken BIOS) as 2.6.30...

anyway, i think that the bug can be closed now...
Comment 16 Phil Falcon 2009-07-24 18:56:43 UTC
Thanks a lot for your help and analyzation. I will look for a BIOS-Update so. But me too, I do not understand, why this is only valid for 2.6.30 and not for 2.6.29, but I'm saying the truth :)

Anyway, thanks a lot, Stratos Psomadakis, it's fixed for me :)
Comment 17 Mike Pagano gentoo-dev 2009-07-24 23:16:35 UTC
Thanks, Stratos. Closing.