After upgrading to gentoo-dev-sources-2.6.5 I can't modprobe the nvidia module anymore, even if I rebuild it under the new kernel. I use nvidia-kernel-1.0.5336-r2. Reproducible: Always Steps to Reproduce: 1.Compile 2.6.5-gentoo 2.Compile nvidia-kernel-1.0.5336-r2 3.Reboot machine 4.Modprobe nvidia 5.Get nasty message Actual Results: I got this nasty message that nvidia Oopsed. Here is what I founr in dmesg: nvidia: no version magic, tainting kernel. nvidia: module license 'NVIDIA' taints kernel. Unable to handle kernel NULL pointer dereference at virtual address 00000000 printing eip: c01e6e81 *pde = 00000000 Oops: 0000 [#1] PREEMPT CPU: 0 EIP: 0060:[<c01e6e81>] Tainted: PF EFLAGS: 00010203 (2.6.5-gentoo) EIP is at vsnprintf+0x41/0x4a0 eax: e5d774bf ebx: 00000000 ecx: 1a288b40 edx: 00000000 esi: e5d774c0 edi: e5dd1f40 ebp: ffffffff esp: dc9dfe00 ds: 007b es: 007b ss: 0068 Process modprobe (pid: 6631, threadinfo=dc9de000 task=dd16ce80) Stack: 00000001 00000046 00000001 c0113f4f 00000000 dc9dfe70 00000000 c011f5a9 1a288b40 e5d774c0 00000000 00000000 dc9dfe58 e5dd1f40 dc9dff60 c01e7392 00000000 e5bdd116 dc9dfe58 e5d774c0 dc9dff70 00000032 00000001 00000046 Call Trace: [<c0113f4f>] scheduler_tick+0x5f/0x510 [<c011f5a9>] update_wall_time+0x9/0x40 [<c01e7392>] vsprintf+0x12/0x20 [<e5bdd116>] nv_printf+0x50/0x76 [nvidia] [<c0113f4f>] scheduler_tick+0x5f/0x510 [<c011f5a9>] update_wall_time+0x9/0x40 [<c0126da9>] rcu_process_callbacks+0x79/0xf0 [<c011bb4a>] tasklet_action+0x3a/0x60 [<c014322f>] __vunmap+0x8f/0xb0 [<e5bd937c>] nvos_probe_devices+0x281/0x28b [nvidia] [<e585e000>] nvidia_init_module+0x0/0x2ac [nvidia] [<e585e078>] nvidia_init_module+0x78/0x2ac [nvidia] [<c012c824>] sys_init_module+0xe4/0x1f0 [<c0106c67>] syscall_call+0x7/0xb Code: 80 3a 00 74 23 0f b6 02 3c 25 74 3f 39 ee 77 06 88 06 8b 54
Are you using devfs or udev? Could you post the output of emerge info along with your .config as well? Does it still oops on a 2.6.5 vanilla kernel?
Created attachment 29254 [details] Vanilla/Gentoo 2.6.5 configuration.
I use devfs. Same effect under vanilla 2.6.5. This is from emerge info: Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.3.13 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fexpensive-optimizations -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fexpensive-optimizations -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox" GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://212.219.247.19/sites/www.ibiblio.org/gentoo/ http://212.219.247.15/sites/www.ibiblio.org/gentoo/ http://212.219.247.20/sites/www.ibiblio.org/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X Xaw3d aalib accessibility acpi alsa apm arts avi berkdb bonobo cddb cdr crypt cscope cups directfb dvd encode esd faad fbcon fbdev ffmpeg fftw foomaticdb gb gdbm ggi gif gnome gnomedb gpm gstreamer gtk gtkhtml guile imagemagick imlib imlib2 jabber java jpeg kde libg++ libwww linguas_pl mbox mikmod mmx motif mozilla mpeg ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime radeon readline sdl slang spell sse ssl svga tcltk tcpd tiff transcode truetype usb x86 xface xml2 xmms xv xvid zlib" Maybe this could help too: gamma root # lspci 0000:00:00.0 Host bridge: nVidia Corporation nForce2 AGP (different version?) (rev c1) 0000:00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1) 0000:00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1) 0000:00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1) 0000:00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1) 0000:00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1) 0000:00:01.0 ISA bridge: nVidia Corporation nForce2 ISA Bridge (rev a3) 0000:00:01.1 SMBus: nVidia Corporation nForce2 SMBus (MCP) (rev a2) 0000:00:02.0 USB Controller: nVidia Corporation nForce2 USB Controller (rev a3) 0000:00:02.1 USB Controller: nVidia Corporation nForce2 USB Controller (rev a3) 0000:00:02.2 USB Controller: nVidia Corporation nForce2 USB Controller (rev a3) 0000:00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller (rev a1) 0000:00:06.0 Multimedia audio controller: nVidia Corporation nForce2 AC97 Audio Controler (MCP) (rev a1) 0000:00:08.0 PCI bridge: nVidia Corporation nForce2 External PCI Bridge (rev a3) 0000:00:09.0 IDE interface: nVidia Corporation nForce2 IDE (rev a2) 0000:00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1) 0000:01:07.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07) 0000:01:07.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 07) (The nVidia is missing, because I'm actually testing ATI). My config for the kernel is attached above.
I noticed the same problem with ati-drivers on the same kernel. I think this is a kernel issue...
I tried some other nvidia builds. I no longer get any opses, but I get this: # modprobe nvidia Segmentation fault # lsmod Module Size Used by nvidia 2072737 1 The module goes into the kernel though, but is completely useless. X give warning and won't come out. Can't remember the actually warning, but its the same you get if you don't have the module loaded. "Can't find a propper screen" or something.
Does this still occur with a vanilla 2.6.5 kernel?
As I mentioned before, the same efect is also in the vanilla 2.6.5 sources.
Ok. Either it is the APIC in the kernel, or the new gentoo-dev-sources solved the problem. I now can modprobe both nvidia.o and fglrx.o - so there is no problem any more (I think). I have heard that nForce2 based mainboards have problems with the APIC in the kernel (freezed computer etc.), so I turned it off, *and* I switched to the newest gentoo-dev-sources-2.6.5-r1. It seems fine now.
Glad it worked for you now. The nForce2 boards aren't very well supported yet. The latest BIOS revision should fix up most issues you're having.