Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24172 - nvidia-kernel-1.0.4363-r2 2.5-74mm2+ patch shouldn't be applied when not using a 2.5-74mm2 kernel
Summary: nvidia-kernel-1.0.4363-r2 2.5-74mm2+ patch shouldn't be applied when not usin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-09 06:52 UTC by Lesley van Zijl
Modified: 2003-07-16 11:34 UTC (History)
1 user (show)

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


Attachments
Not really a patch, just the 2.5.74mm2-specific patch commented. (nvidia-comment.diff,264 bytes, patch)
2003-07-11 10:10 UTC, Christoph Richter
Details | Diff
Not really a patch, just the 2.5.74mm2-specific patch commented. (nvidia-comment.diff,264 bytes, application/octet-stream)
2003-07-11 10:10 UTC, Christoph Richter
Details
Not really a patch, just the 2.5.74mm2-specific patch commented. (nvidia-comment.diff,264 bytes, text/plain)
2003-07-11 10:11 UTC, Christoph Richter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lesley van Zijl 2003-07-09 06:52:38 UTC
I just tested something in a 2.5 kernel and after that I wanted to go back to my favorite 2.5.70 
kernel, but after I emerged nvidia-kernel my main screen (the nvidia one) didn't came up and my 
savage4 second screen did come up. Just what happens if I forget to emerge nvidia-kernel again 
after a kernelswitch. (and I didn't forget to relink the /usr/src/linux symlink) 
 
I tried it again and saw that there was a patch applied for 2.5.74mm2 kernels just because I use a 
2.5 kernel .. shouldn't there be another test for that? 
 
I commented the patch in the ebuild remerged and problem solved. 

Reproducible: Always
Steps to Reproduce:
1. see details 
 
Actual Results:  
nvidia module gets loaded but doesn't do anything 

Expected Results:  
nvidia module loaded and my nvidia 'monitor' should work 

ws root # emerge info 
Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) 
================================================================= 
System uname: 2.5.70 i686 AMD Athlon(tm) XP 2000+ 
GENTOO_MIRRORS="ftp://sunsite.dk/mirrors/gentoo/ http://gentoo.linux.no/ ht 
tp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ ftp://ftp.snt.utwente.nl/pub/o 
s/linux/gentoo/ " 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/ 
share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/te 
xmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/conf 
ig" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 dvd xinerama -gtk2 pic acpi acpi4linux 3dnow aalib alsa avi crypt                                                                     
dga encode gif gtk imlib ipv6 java jpeg kde lcms mikmod mmx motif mozilla m                                                                    
peg ncurses oggvorbis opengl pam pdflib perl png python qt qtmt quicktime r                                                                    
eadline sdl spell sse ssl svga tcltk tcpd tiff truetype wmf X xml xml2 xmms                                                                     
xv" 
COMPILER="gcc3" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-march=athlon-xp -O3 -pipe -mmmx -m3dnow -msse" 
CXXFLAGS="-march=athlon-xp -O3 -pipe -mmmx -m3dnow -msse" 
ACCEPT_KEYWORDS="x86 ~x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache fixpackages"
Comment 1 Christoph Richter 2003-07-11 10:10:09 UTC
Created attachment 14384 [details, diff]
Not really a patch, just the 2.5.74mm2-specific patch commented.

The 2.5.74 patch also b0rks the build on 2.5.75 kernels - the odule compiles
fine, but the X-Server refuses to start with the nvidia-module complaining
about DMA-related probs. 
The module builds and works fine without that patch,though. So I'd also like to
see that specific patch excluded from everything but the kernel-version it was
written for.
Comment 2 Christoph Richter 2003-07-11 10:10:42 UTC
Created attachment 14385 [details]
Not really a patch, just the 2.5.74mm2-specific patch commented.

The 2.5.74 patch also b0rks the build on 2.5.75 kernels - the odule compiles
fine, but the X-Server refuses to start with the nvidia-module complaining
about DMA-related probs. 
The module builds and works fine without that patch,though. So I'd also like to
see that specific patch excluded from everything but the kernel-version it was
written for.
Comment 3 Christoph Richter 2003-07-11 10:11:13 UTC
Created attachment 14386 [details]
Not really a patch, just the 2.5.74mm2-specific patch commented.

The 2.5.74 patch also b0rks the build on 2.5.75 kernels - the odule compiles
fine, but the X-Server refuses to start with the nvidia-module complaining
about DMA-related probs. 
The module builds and works fine without that patch,though. So I'd also like to
see that specific patch excluded from everything but the kernel-version it was
written for.
Comment 4 Lesley van Zijl 2003-07-11 20:57:40 UTC
there is a fix for the 2.5.75 problem on the forums:

http://forums.gentoo.org/viewtopic.php?t=66558&highlight=xfree

Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-16 11:34:20 UTC
I reversed stuff in the first rev of the patch.  The second version fixed that,
and the latest with 2.6 support should also work:

------------------------------------
  14 Jul 2003; Martin Schlemmer <azarah@gentoo.org>
  nvidia-kernel-1.0.4363-r3.ebuild,
  files/1.0.4363/NVIDIA_kernel-1.0-4363-2.5-20030714.diff:
  Update 2.5 patch once again for 2.6.0 kernel.

*nvidia-kernel-1.0.4363-r3 (14 Jul 2003)

  14 Jul 2003; Martin Schlemmer <azarah@gentoo.org> nvidia-kernel-1.0.4363-r3.ebuild,
  files/1.0.4363/NVIDIA_kernel-1.0-4363-2.5-20030713.diff,
  files/1.0.4363/NVIDIA_kernel-1.0-4363-highpmd-20030713.diff:
  Update the 2.5 patch.  Fixup highpmd stuff, as it could be a problem in the
  way the patch does it (according to AKPM);  currently it maps an offset,
  copy the struct over, then unmap it again, and then try to use it ?!?!

  12 Jul 2003; Martin Schlemmer <azarah@gentoo.org>
  files/1.0.4363/NVIDIA_kernel-1.0-4363-highpmd.diff:
  Cleanup patch a bit more, and fix a type-o that caused the driver to fail
  initializing DMA.