Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 05-17-06, 04:21 PM   #13
logistiker
Registered User
 
Join Date: May 2006
Location: Waller, TX
Posts: 29
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

NM, it patches normally now.
logistiker is offline   Reply With Quote
Old 05-17-06, 04:59 PM   #14
logistiker
Registered User
 
Join Date: May 2006
Location: Waller, TX
Posts: 29
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

Anyone tested this patch with AMD 64? Does it work? Also does it work with GCC 3.4.5?
logistiker is offline   Reply With Quote
Old 05-17-06, 06:50 PM   #15
logistiker
Registered User
 
Join Date: May 2006
Location: Waller, TX
Posts: 29
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

I'd like to add that the nvidia driver patches but it still does not compile. I am running amd64 with gcc 3.4.5.
logistiker is offline   Reply With Quote
Old 05-18-06, 01:40 AM   #16
r0b0
Registered User
 
Join Date: Nov 2005
Posts: 9
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

Quote:
Originally Posted by logistiker
Anyone tested this patch with AMD 64? Does it work?
Well, apparently you have tested it and it doesn't. You'll have to use the amd64 legacy driver and try to make a similar patch.
Sorry, I have no amd64 machine so I can't help you.
Hey, NVIDIA, why don't you just open source the legacy driver? And all your drivers for that matter...
r0b0 is offline   Reply With Quote
Old 05-18-06, 10:09 AM   #17
logistiker
Registered User
 
Join Date: May 2006
Location: Waller, TX
Posts: 29
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

It could be an AMD 64 problem but I did a diff between the x86 and the AMD 64 drivers for conftest.sh and there isn't any difference between the two files. I don't mind being a test environment for you to get a patch working for AMD 64 as well. I'd greatly appreciate any help you can give (who knows when Nvidia will fix this problem?) because I have no idea what these files do. Here's the build error on AMD 64:

NVIDIA: calling KBUILD...
make CC=x86_64-pc-linux-gnu-gcc KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv modules
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
mkdir -p /var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.tmp_versions
make -f scripts/Makefile.build obj=/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv
echo \#define NV_COMPILER \"`x86_64-pc-linux-gnu-gcc -v 2>&1 | tail -n 1`\" > /var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv_compiler.h
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -I/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -O -fno-common -mno-red-zone -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86_64 -DNV_64_BITS -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.o /var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c
In file included from include/linux/sched.h:15,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
from /var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:14:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:218: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:224: warning: signed and unsigned type in conditional expression
In file included from include/linux/sched.h:17,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
from /var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:14:
include/linux/nodemask.h: In function `__first_node':
include/linux/nodemask.h:229: warning: signed and unsigned type in conditional expression
include/linux/nodemask.h: In function `__next_node':
include/linux/nodemask.h:235: warning: signed and unsigned type in conditional expression
include/linux/nodemask.h: In function `__first_unset_node':
include/linux/nodemask.h:253: warning: signed and unsigned type in conditional expression
In file included from /var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:14:
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:240:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:268:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
In file included from /var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:14:
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In function `NV_SET_PAGE_ATTRIB_UNCACHED':
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1053: error: `mem_map' undeclared (first use in this function)
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1053: error: (Each undeclared identifier is reported only once
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1053: error: for each function it appears in.)
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In function `NV_SET_PAGE_ATTRIB_CACHED':
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1062: error: `mem_map' undeclared (first use in this function)
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In function `NV_UNLOCK_PAGE':
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1089: error: `mem_map' undeclared (first use in this function)
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In function `nv_sg_map_buffer':
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1128: error: `mem_map' undeclared (first use in this function)
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c: At top level:
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:206: warning: initialization from incompatible pointer type
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:231:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:1189:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c: In function `nv_kern_vma_nopage':
/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:1277: error: `mem_map' undeclared (first use in this function)
make[3]: *** [/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/var/tmp/portage/nvidia-kernel-1.0.7174-r2/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

!!! ERROR: media-video/nvidia-kernel-1.0.7174-r2 failed.
!!! Function linux-mod_src_compile, Line 515, Exitcode 2
!!! Unable to make IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux clean module.
!!! If you need support, post the topmost build error, NOT this status message.
logistiker is offline   Reply With Quote
Old 05-18-06, 10:14 AM   #18
logistiker
Registered User
 
Join Date: May 2006
Location: Waller, TX
Posts: 29
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

I'm using gentoo and here's my system info:

Portage 2.0.54-r2 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r7 x86_64)
================================================== ===============
System uname: 2.6.16-gentoo-r7 x86_64 AMD Opteron(tm) Processor 144
Gentoo Base System version 1.6.14
dev-lang/python: 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
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/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ ftp://mirror.usu.edu/mirrors/gentoo/ "
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 calendar clamav cli crypt cups curl dio directfb dri dts dvb dvd dvdread eds emboss emu-linux-x86 encode exif expat fam fbcon ffmpeg flac foomaticdb fortran gd gif gnome gpm gstreamer gtk gtk2 iconv idn ieee1394 imagemagick imlib innodb ipv6 isdnlog java javascript jpeg jpeg2k kde kdeenablefinal lcms lirc lzw lzw-tiff mad matroska mcal mhash mime mjpeg mng mozilla mp3 mpeg msession mysql ncurses nls nptl nsplugin ogg openal opengl osc oss pam pcre pdf pdflib perl png pppd python qt quicktime readline reflection samba sasl sdl session sockets spell spl ssl svg tcpd threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vorbis wddx wxwindows xine xml xml2 xmms xorg xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
logistiker is offline   Reply With Quote
Old 05-18-06, 10:26 AM   #19
logistiker
Registered User
 
Join Date: May 2006
Location: Waller, TX
Posts: 29
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

This is the build error after your patch:

NVIDIA: calling KBUILD...
make CC=x86_64-pc-linux-gnu-gcc KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv modules
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
mkdir -p /var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.tmp_versions
make -f scripts/Makefile.build obj=/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv
echo \#define NV_COMPILER \"`x86_64-pc-linux-gnu-gcc -v 2>&1 | tail -n 1`\" > /var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv_compiler.h
x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -march=k8 -m64 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wdeclaration-after-statement -I/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -O -fno-common -mno-red-zone -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=7174 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86_64 -DNV_64_BITS -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.o /var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c
In file included from include/linux/sched.h:15,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
from /var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:14:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:218: warning: signed and unsigned type in conditional expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:224: warning: signed and unsigned type in conditional expression
In file included from include/linux/sched.h:17,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:46,
from /var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:14:
include/linux/nodemask.h: In function `__first_node':
include/linux/nodemask.h:229: warning: signed and unsigned type in conditional expression
include/linux/nodemask.h: In function `__next_node':
include/linux/nodemask.h:235: warning: signed and unsigned type in conditional expression
include/linux/nodemask.h: In function `__first_unset_node':
include/linux/nodemask.h:253: warning: signed and unsigned type in conditional expression
In file included from /var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:14:
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:240:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:268:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
In file included from /var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:14:
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In function `NV_SET_PAGE_ATTRIB_UNCACHED':
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1053: error: `mem_map' undeclared (first use in this function)
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1053: error: (Each undeclared identifier is reported only once
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1053: error: for each function it appears in.)
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In function `NV_SET_PAGE_ATTRIB_CACHED':
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1062: error: `mem_map' undeclared (first use in this function)
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In function `NV_UNLOCK_PAGE':
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1089: error: `mem_map' undeclared (first use in this function)
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In function `nv_sg_map_buffer':
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1128: error: `mem_map' undeclared (first use in this function)
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c: At top level:
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:206: warning: initialization from incompatible pointer type
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:231:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:1189:5: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c: In function `nv_kern_vma_nopage':
/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:1277: error: `mem_map' undeclared (first use in this function)
make[3]: *** [/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.o] Error 1
make[2]: *** [_module_/var/tmp/portage/nvidia-kernel-1.0.7174-r3/work/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

!!! ERROR: media-video/nvidia-kernel-1.0.7174-r3 failed.
!!! Function linux-mod_src_compile, Line 515, Exitcode 2
!!! Unable to make IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux clean module.
!!! If you need support, post the topmost build error, NOT this status message.
logistiker is offline   Reply With Quote
Old 05-18-06, 10:42 AM   #20
logistiker
Registered User
 
Join Date: May 2006
Location: Waller, TX
Posts: 29
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

Here's the build error using your patch on just the nvidia driver (not using portage):

NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.16-gentoo-r7/build KBUILD_VERBOSE=
1 -C /lib/modules/2.6.16-gentoo-r7/source SUBDIRS=/home/test/NVIDIA-Linu
x-x86_64-1.0-7174-pkg2/usr/src/nv modules
make -C /lib/modules/2.6.16-gentoo-r7/build \
KBUILD_SRC=/usr/src/linux-2.6.16-gentoo-r7 \
KBUILD_EXTMOD="/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv"
-f /usr/src/linux-2.6.16-gentoo-r7/Makefile modules
mkdir -p /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.tmp_ve
rsions
make -f /usr/src/linux-2.6.16-gentoo-r7/scripts/Makefile.build obj=/home/msc
hultz/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /home/test/NVID
IA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/.nv
.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/include -D__
KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.16-gentoo-r7/include -inc
lude include/linux/autoconf.h -I/home/test/NVIDIA-Linux-x86_64-1.0-7174
-pkg2/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-stric
t-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -march=k8 -m6
4 -mno-red-zone -mcmodel=kernel -pipe -fno-reorder-blocks -Wno-sign-compare
-fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2
-mno-3dnow -Wdeclaration-after-statement -I/home/test/NVIDIA-Linux-x86_
64-1.0-7174-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat
-Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -f
no-common -mno-red-zone -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOS
E_KERNEL_NAMES -D__KERNEL__ -DMODULE -mcmodel=kernel -DNTRM -D_GNU_SOURCE -D
_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VE
RSION=0 -DNV_PATCHLEVEL=7174 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86_
64 -DNV_64_BITS -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTI
PLE_BRIDGE_AGPGART_PRESENT -DNV_REMAP_PFN_RANGE_
PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DNV_P
CI_GET_CLASS_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KB
UILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /
home/mschultz/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.o /home/mschul
tz/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c
In file included from include/linux/sched.h:15,
from include/linux/module.h:10,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv-linux.h:46,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv.c:14:
include/linux/cpumask.h: In function `__first_cpu':
include/linux/cpumask.h:218: warning: signed and unsigned type in conditiona
l expression
include/linux/cpumask.h: In function `__next_cpu':
include/linux/cpumask.h:224: warning: signed and unsigned type in conditiona
l expression
In file included from include/linux/sched.h:17,
from include/linux/module.h:10,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv-linux.h:46,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv.c:14:
include/linux/nodemask.h: In function `__first_node':
include/linux/nodemask.h:229: warning: signed and unsigned type in condition
al expression
include/linux/nodemask.h: In function `__next_node':
include/linux/nodemask.h:235: warning: signed and unsigned type in condition
al expression
include/linux/nodemask.h: In function `__first_unset_node':
include/linux/nodemask.h:253: warning: signed and unsigned type in condition
al expression
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:42,
from include/linux/sched.h:20,
from include/linux/module.h:10,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv-linux.h:46,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arith
metic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:522,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv-linux.h:69,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:308: warning: wrong type argument to increment
In file included from include/asm/pci.h:93,
from include/linux/pci.h:648,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv-linux.h:69,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv.c:14:
include/asm-generic/pci-dma-compat.h: In function `pci_map_page':
include/asm-generic/pci-dma-compat.h:49: warning: pointer of type `void *' u
sed in arithmetic
In file included from include/linux/compat.h:15,
from include/asm/mtrr.h:28,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv-linux.h:109,
from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv.c:14:
include/asm/compat.h: In function `compat_alloc_user_space':
include/asm/compat.h:202: warning: pointer of type `void *' used in arithmet
ic
In file included from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv.c:14:
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:241:5
: warning: "NV_ENABLE_MEM_TRACKING" is not defined
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:269:5
: warning: "NV_ENABLE_MEM_TRACKING" is not defined
In file included from /home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv/nv.c:14:
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In f
unction `NV_SET_PAGE_ATTRIB_UNCACHED':
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1024:
error: `mem_map' undeclared (first use in this function)
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1024:
error: (Each undeclared identifier is reported only once
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1024:
error: for each function it appears in.)
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In f
unction `NV_SET_PAGE_ATTRIB_CACHED':
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1029:
error: `mem_map' undeclared (first use in this function)
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In f
unction `NV_UNLOCK_PAGE':
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1052:
error: `mem_map' undeclared (first use in this function)
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h: In f
unction `nv_sg_map_buffer':
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv-linux.h:1066:
error: `mem_map' undeclared (first use in this function)
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c: At top lev
el:
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:201: warnin
g: initialization from incompatible pointer type
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:223:5: warn
ing: "NV_ENABLE_MEM_TRACKING" is not defined
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:1167:5: war
ning: "NV_ENABLE_MEM_TRACKING" is not defined
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c: In functio
n `nv_kern_vma_nopage':
/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv.c:1255: error
: `mem_map' undeclared (first use in this function)
make[4]: *** [/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/src/nv/nv
.o] Error 1
make[3]: *** [_module_/home/test/NVIDIA-Linux-x86_64-1.0-7174-pkg2/usr/s
rc/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
logistiker is offline   Reply With Quote

Old 05-18-06, 05:18 PM   #21
BobbyTee
Registered User
 
Join Date: May 2006
Posts: 1
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

Still won't compile after patching. Stops with error No precompiled kernal interface was found to match your kernel. I am using kernel 2.6.16-1.2111_FC5. I suppose that the patch doesn't apply to that kernel release. <frustrated>
BobbyTee is offline   Reply With Quote
Old 05-18-06, 05:25 PM   #22
logistiker
Registered User
 
Join Date: May 2006
Location: Waller, TX
Posts: 29
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

We're all frustrated. Nvidia keeps saying they're going to release new legacy drivers or a patch but we haven't seen anything for months. If they're going to offer little or no support on their legacy drivers, why not open source them?
logistiker is offline   Reply With Quote
Old 05-18-06, 06:35 PM   #23
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: UNOFFICIAL patch for 7174 and linux2.6.16

@logistiker: 1.0-7174 still works with most Linux 2.6 (please see http://www.nvnews.net/vbulletin/showthread.php?t=50150) and all Linux 2.4 kernels, but as mentioned earlier, an updated legacy graphics driver will be made available. The source files for 1.0-7174's and 1.0-8756's Linux kernel interface layers, as well as an up-to-date 1.0-8178 update patch for Linux 2.6.16 are available.
zander is offline   Reply With Quote
Old 06-01-06, 10:14 AM   #24
tosta
Registered User
 
Join Date: Jun 2006
Posts: 4
Angry Re: UNOFFICIAL patch for 7174 and linux2.6.16

I compiled 1.0-7174 driver with nv-legacy-linux-2.6.16.patch under Fedora with kernel 2.6.16-2111 and drivers loads sucessfully. Otherwise I get many "Bad page state" messages at my /var/log/debug:

-----
Jun 1 11:21:30 hagar kernel: Bad page state in process 'X'
Jun 1 11:21:30 hagar kernel: page:c1369da0 flags:0x80000400 mapping:00000000 mapcount:0 count:0 (Tainted: P B)
Jun 1 11:21:30 hagar kernel: Trying to fix it up, but a reboot is needed
Jun 1 11:21:30 hagar kernel: Backtrace:
Jun 1 11:21:30 hagar kernel: [<c013dd12>] bad_page+0x4b/0x72 [<c013dfb4>] free_hot_cold_page+0x5c/0xf0
Jun 1 11:21:30 hagar kernel: [<e1502664>] nv_vm_free_pages+0x93/0xd5 [nvidia] [<e150122c>] nv_free_pages+0x27a/0x297 [nvidia]
Jun 1 11:21:30 hagar kernel: [<e12f10aa>] _nv001716rm+0x4e/0x58 [nvidia] [<e12f1089>] _nv001716rm+0x2d/0x58 [nvidia]
Jun 1 11:21:30 hagar kernel: [<e12cf16b>] _nv007631rm+0x13/0x34 [nvidia] [<e12f0d3e>] _nv001717rm+0x16/0x1c [nvidia]
Jun 1 11:21:30 hagar kernel: [<e12d9a4b>] _nv001228rm+0x8b/0x9c [nvidia] [<e12d8b3d>] _nv001241rm+0xa5/0x120 [nvidia]
Jun 1 11:21:30 hagar kernel: [<e12f773c>] rm_enable_interrupts+0x44/0x58 [nvidia] [<e12f76e6>] rm_disable_interrupts+0x42/0x54 [nvidia]
Jun 1 11:21:30 hagar kernel: [<e12d8875>] _nv001246rm+0x3d/0x260 [nvidia] [<e15035e3>] os_acquire_sema+0x5b/0x64 [nvidia]
Jun 1 11:21:30 hagar kernel: [<e12f0ef6>] _nv001740rm+0x12/0x18 [nvidia] [<e12d3f4b>] _nv002889rm+0x33/0xa0 [nvidia]
Jun 1 11:21:30 hagar kernel: [<e12d3f82>] _nv002889rm+0x6a/0xa0 [nvidia] [<e12f895d>] _nv001201rm+0x3d/0x618 [nvidia]
Jun 1 11:21:30 hagar kernel: [<e12f8b43>] _nv001201rm+0x223/0x618 [nvidia] [<c013a34e>] find_get_page+0x39/0x3f
Jun 1 11:21:30 hagar kernel: [<e12f79f7>] rm_ioctl+0x23/0x38 [nvidia] [<c01c5057>] copy_from_user+0x54/0x80
Jun 1 11:21:30 hagar kernel: [<e1500dce>] nv_kern_ioctl+0x380/0x400 [nvidia] [<e1500a4e>] nv_kern_ioctl+0x0/0x400 [nvidia]
Jun 1 11:21:30 hagar kernel: [<c01626d1>] do_ioctl+0x39/0x48 [<c01628df>] vfs_ioctl+0x1ff/0x216
Jun 1 11:21:30 hagar kernel: [<c0146dc7>] do_munmap+0x52/0x19e [<c016293e>] sys_ioctl+0x48/0x62
Jun 1 11:21:30 hagar kernel: [<c0102be9>] syscall_call+0x7/0xb [<c0104629>] do_invalid_op+0x7c/0x9d
Jun 1 11:23:41 hagar kernel: NVRM: couldn't find pre-allocated memory!
----

Any ideas how to fix it?
tosta is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:28 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.