View previous topic :: View next topic |
Author |
Message |
soliad n00b
Joined: 09 May 2004 Posts: 42 Location: France
|
Posted: Thu Sep 30, 2004 6:28 pm Post subject: |
|
|
maybe this version can better handle remap_pfn_range detection :
Code: | diff -u nv.old/conftest.sh nv/conftest.sh
--- nv.old/conftest.sh 2004-09-29 19:54:22.000000000 +0200
+++ nv/conftest.sh 2004-09-30 20:19:02.623469936 +0200
@@ -65,6 +65,30 @@
fi
;;
+ remap_pfn_range)
+ #
+ # Determine if we can use remap_pfn_range.
+ #
+
+ echo "#include <linux/mm.h>
+ int do_test_remap_pfn_range(void) {
+ pgprot_t pgprot;
+ remap_pfn_range(NULL, 0L, 0L, 0L, pgprot);
+ }" > conftest$$.c
+
+ $CC $CFLAGS -c conftest$$.c #> /dev/null 2>&1
+ rm -f conftest$$.c
+
+ if [ -f conftest$$.o ]; then
+ echo "1"
+ rm -f conftest$$.o
+ exit 0
+ else
+ echo"0"
+ exit 1
+ fi
+ ;;
+
cc_sanity_check)
#
# Verify that the same compiler is used for the kernel and kernel
diff -u nv.old/Makefile.kbuild nv/Makefile.kbuild
--- nv.old/Makefile.kbuild 2004-09-29 19:54:22.000000000 +0200
+++ nv/Makefile.kbuild 2004-09-30 19:42:57.000000000 +0200
@@ -171,6 +171,15 @@
endif
endif
+ifeq ($(PATCHLEVEL), 6)
+ REMAP_PAGE_RANGE := $(shell $(CONFTEST) remap_pfn_range)
+
+ ifeq ($(REMAP_PAGE_RANGE), 1)
+ EXTRA_CFLAGS += -DREMAP_PAGE_RANGE_PFN
+ endif
+endif
+
+
ifeq ($(PATCHLEVEL), 4)
ifeq ($(shell $(CONFTEST) change_page_attr), 1)
EXTRA_CFLAGS += -DNV_CHANGE_PAGE_ATTR_PRESENT
diff -u nv.old/nv-linux.h nv/nv-linux.h
--- nv.old/nv-linux.h 2004-09-29 19:54:22.000000000 +0200
+++ nv/nv-linux.h 2004-09-29 20:07:13.000000000 +0200
@@ -566,8 +566,11 @@
* Linux 2.5 introduced the five argument version of remap_page_range, all
* relevant releases to date use it. This version was backported to 2.4
* without means to identify the change, hence this hack.
+ * Linux 2.6 also introduced a remap_page_range replacement remap_pfn_range.
*/
-#if defined(KERNEL_2_6) || defined(REMAP_PAGE_RANGE_5)
+#if defined(KERNEL_2_6) && defined(REMAP_PAGE_RANGE_PFN)
+#define NV_REMAP_PAGE_RANGE(x, y, z...) remap_pfn_range(vma, x, y >> PAGE_SHIFT, z)
+#elif defined(KERNEL_2_6) || defined(REMAP_PAGE_RANGE_5)
#define NV_REMAP_PAGE_RANGE(x...) remap_page_range(vma, x)
#elif defined(REMAP_PAGE_RANGE_4)
#define NV_REMAP_PAGE_RANGE(x...) remap_page_range(x)
|
I have no problem using those patches on my gentoo since yesterday
Code: | $ uname -a
Linux tontonpc 2.6.9-rc2-mm4 #1 SMP Mon Sep 27 20:16:37 CEST 2004 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz GenuineIntel GNU/Linux |
I'll take a look at rc3 to see if this patch works well and doesn't use remap_pfn_range if not present. |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Thu Sep 30, 2004 6:51 pm Post subject: |
|
|
remap_pfn_range(NULL, 0L, 0L >> PAGE_SHIFT, 0L, pgprot);
should be on conftest.sh, not?
and renaming $REMAP_PAGE_RANGE_PFN to $REMAP_PFN_RANGE may be lil cleaner but not necessary
neenee tried rc3. its different and i would wait for rc3-mm1 to do further testings. |
|
Back to top |
|
|
soliad n00b
Joined: 09 May 2004 Posts: 42 Location: France
|
Posted: Thu Sep 30, 2004 7:28 pm Post subject: |
|
|
there is no need to shift the address for testing the presence of remap-pfn_range.
But renaming would be nicer, I will do that for next version, if any (maybe for rc3-mm1) |
|
Back to top |
|
|
nbensa l33t
Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Thu Sep 30, 2004 8:06 pm Post subject: |
|
|
I do not understand this code from Makefile.kbuild: Code: | ifeq ($(PATCHLEVEL), 4)
REMAP_PAGE_RANGE := $(shell $(CONFTEST) remap_page_range)
ifeq ($(REMAP_PAGE_RANGE), 5)
EXTRA_CFLAGS += -DREMAP_PAGE_RANGE_5
endif
ifeq ($(REMAP_PAGE_RANGE), 4)
EXTRA_CFLAGS += -DREMAP_PAGE_RANGE_4
endif
endif
|
What happens if $PATCHLEVEL = 6 ? My guess is NOTHING, but then how does the build know we are using a PATCHLEVEL = 6 kernel ?
And then this: some how these tests compiled OK: Code: | #include <linux/mm.h>
int do_test_remap_pfn_range(void) {
pgprot_t pgprot;
remap_page_range(NULL, 0L, 0L, 0L, pgprot);
}
|
Code: | #include <linux/mm.h>
int do_test_remap_pfn_range(void) {
pgprot_t pgprot;
remap_pfn_range(NULL, 0L, 0L, 0L, pgprot);
}
|
Both of them produced conftest.o*, which means everything went OK, but remap_page_range SHOULD have failed since it's not defined anywhere in /usr/src/linux/include!
* Compiled with Quote: | gcc -D__KERNEL__ -c conftest.c |
Thanks in advance,
Norberto |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Thu Sep 30, 2004 9:03 pm Post subject: |
|
|
Compiled development-sources-2.6.9-rc3 but I can't load the nvidia module due to the "__VMALLOC_RESERVE" problem. I've read lots of "fixes" but there doesn't seem to be a good answer to which or what is the one that needs to be done and I don't know that any will work with rc3. Does the kernel need recompiled after some of these patches? Is it just what the nvidia-kernel sees when it is installed? Sorry for the noob moment but there doesn't seem to much useful info on this somewhat major issue.
Anyone?
We need something until nvidia releases new drivers because from what i've read this will be how it is with the released stable kernel.
The comment by the one kernel dev about the vmalloc change pretty much blamed nvidia for having a crappy driver which he probably doesn't use because he never starts an X session. He's the same one that made sure reiser4 was doa when the patches were presented to be included in the kernel. Dev's like this and the "my way or the highway" attitude leave a bad impression with me. oh well. |
|
Back to top |
|
|
DaMouse Apprentice
Joined: 18 Jul 2003 Posts: 233
|
Posted: Thu Sep 30, 2004 10:21 pm Post subject: |
|
|
Updated svn tree thanks to soliad and made a new snapshot:
http://kernel.damouse.co.uk/nvidia-kernel-1.0.6111-r3.tar.bz2
Test with both -mm4 and -rc3 please, its running fine with mm4 for me
-DaMouse _________________ I am the dark lord DaMouse I eat souls and wear the dressing gown of evil. |
|
Back to top |
|
|
oggialli Guru
Joined: 27 May 2004 Posts: 389 Location: Finland, near Tampere
|
Posted: Thu Sep 30, 2004 10:45 pm Post subject: |
|
|
Works perfectly now, with the patch. _________________ IBM Thinkpad T42P - Gentoo Linux |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Thu Sep 30, 2004 11:26 pm Post subject: |
|
|
Doesn't work here, -rc3.
Code: |
* Applying power-suspend-2.6.9-changes.patch... [ ok ]
* Applying nv_enable_pci.patch... [ ok ]
* Applying fix_pci_find_class.patch... [ ok ]
* Applying vmalloc-reserve.diff... [ ok ]
* Applying remap_pfn_range.diff... [ ok ]
>>> Source unpacked.
x86
conftest5752.c: In function `do_test_remap_pfn_range':
conftest5752.c:4: warning: implicit declaration of function `remap_pfn_range'
./conftest.sh: line 107: echo0: command not found
NVIDIA: calling KBUILD...
make -C //usr/src/linux \
KBUILD_SRC=/usr/src/linux-2.6.9-rc3 KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv" \
-f /usr/src/linux-2.6.9-rc3/Makefile modules
mkdir -p /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.tmp_versions
make -f /usr/src/linux-2.6.9-rc3/scripts/Makefile.build obj=/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv
conftest5886.c: In function `do_test_remap_pfn_range':
conftest5886.c:4: warning: implicit declaration of function `remap_pfn_range'
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/conftest.sh: line 107: echo0: command not found
echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -n 1`\" > /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv_compiler.h
gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.nv.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.9-rc3/include -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -Wdeclaration-after-statement -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=athlon -I/usr/src/linux-2.6.9-rc3/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6111 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DHAVE_PCI_FIND_CLASS -DMODULE -DKBUILD_BASENAME=nv -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c
In file included from include/linux/timex.h:61,
from include/linux/sched.h:11,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:240: warning: wrong type argument to increment
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic
gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.os-agp.o.d -nostdinc -iwithprefix include -D__KERNEL__-Iinclude -Iinclude2 -I/usr/src/linux-2.6.9-rc3/include -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -Wdeclaration-after-statement -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=athlon -I/usr/src/linux-2.6.9-rc3/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6111 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DHAVE_PCI_FIND_CLASS -DMODULE -DKBUILD_BASENAME=os_agp -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c
In file included from include/linux/timex.h:61,
from include/linux/sched.h:11,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:24:
include/asm/io.h: In function `check_signature':
include/asm/io.h:240: warning: wrong type argument to increment
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.c:24:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic
gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.os-interface.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.9-rc3/include -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -Wdeclaration-after-statement -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=athlon -I/usr/src/linux-2.6.9-rc3/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES-D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6111 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DHAVE_PCI_FIND_CLASS -DMODULE -DKBUILD_BASENAME=os_interface -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-interface.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-interface.c
In file included from include/linux/timex.h:61,
from include/linux/sched.h:11,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-interface.c:26:
include/asm/io.h: In function `check_signature':
include/asm/io.h:240: warning: wrong type argument to increment
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-interface.c:26:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic
gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.os-registry.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.9-rc3/include -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -Wdeclaration-after-statement -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=athlon -I/usr/src/linux-2.6.9-rc3/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -I/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=6111 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_CLASS_SIMPLE_PRESENT -DHAVE_PCI_FIND_CLASS -DMODULE -DKBUILD_BASENAME=os_registry -DKBUILD_MODNAME=nvidia -c -o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-registry.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-registry.c
In file included from include/linux/timex.h:61,
from include/linux/sched.h:11,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-registry.c:14:
include/asm/io.h: In function `check_signature':
include/asm/io.h:240: warning: wrong type argument to increment
In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:18,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-registry.c:14:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic
ld -m elf_i386 -r -o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nvidia.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv-kernel.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nv.o/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-agp.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-interface.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/os-registry.o
Building modules, stage 2.
make -rR -f /usr/src/linux-2.6.9-rc3/scripts/Makefile.modpost
scripts/mod/modpost -i /usr/src/linux-2.6.9-rc3/Module.symvers vmlinux /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nvidia.o
gcc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/.nvidia.mod.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.9-rc3/include -I/usr/src/linux-2.6.9-rc3/ -I -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -Wdeclaration-after-statement -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=athlon -I/usr/src/linux-2.6.9-rc3/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -DKBUILD_BASENAME=nvidia -DKBUILD_MODNAME=nvidia -DMODULE -c -o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nvidia.mod.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nvidia.mod.c
ld -m elf_i386 -r -o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nvidia.ko /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nvidia.o /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/usr/src/nv/nvidia.mod.o
NVIDIA: left KBUILD.
x86
>>> Test phase [not enabled]: media-video/nvidia-kernel-1.0.6111-r3
x86
>>> Install nvidia-kernel-1.0.6111-r3 into /var/tmp/portage/nvidia-kernel-1.0.6111-r3/image/ category media-video
cp: cannot stat `/usr/local/portage/media-video/nvidia-kernel/files/nvidia-1.1': No such file or directory
install: cannot stat `/var/tmp/portage/nvidia-kernel-1.0.6111-r3/temp/nvidia': No such file or directory
man:
>>> Completed installing into /var/tmp/portage/nvidia-kernel-1.0.6111-r3/image/
>>> Merging media-video/nvidia-kernel-1.0.6111-r3 to /
|
It emerges ok but X won't start after I reboot into -rc3.
Code: |
kdm: :0[9903]: IO Error in XOpenDisplay
kdm[9887]: Display :0 cannot be opened
kdm[9887]: Unable to fire up local display :0; disabling.
|
The module does load ok. |
|
Back to top |
|
|
DaMouse Apprentice
Joined: 18 Jul 2003 Posts: 233
|
Posted: Fri Oct 01, 2004 9:21 am Post subject: |
|
|
I'll fix this later I missed a space in between echo and 0 in the patch for remap_pfn_range
-DaMouse _________________ I am the dark lord DaMouse I eat souls and wear the dressing gown of evil. |
|
Back to top |
|
|
DaMouse Apprentice
Joined: 18 Jul 2003 Posts: 233
|
Posted: Fri Oct 01, 2004 3:25 pm Post subject: |
|
|
Ok, updated, you should be able to just re-download the overlay or svn up to make that work now
-DaMouse _________________ I am the dark lord DaMouse I eat souls and wear the dressing gown of evil. |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Fri Oct 01, 2004 4:32 pm Post subject: |
|
|
I didn't get the echo error, still got the warnings, rebooted and I get this when X tries to start.
Code: |
(II) NVIDIA(0): Detected AGP rate: 4X
(EE) NVIDIA(0): Failed to allocate config DMA context
(II) UnloadModule: "nvidia"
(II) UnloadModule: "vgahw"
(II) Unloading /usr/X11R6/lib/modules/libvgahw.a
|
Also after this my first display doesn't bring the prompt up till I switch to another terminal and back, the second display is fine.
I've tried this with both 4k and 8k stacks in the kernel, no difference. |
|
Back to top |
|
|
fallow Bodhisattva
Joined: 08 Jan 2004 Posts: 2208 Location: Poland
|
Posted: Sat Oct 02, 2004 11:17 am Post subject: |
|
|
works nice with rc3 thx
greetings _________________ "Time is a companion that goes with us on a journey. It reminds us to cherish each moment, because it will never come again. What we leave behind is not as important as how we have lived" J-L. Picard |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Sat Oct 02, 2004 3:31 pm Post subject: |
|
|
hmm
What -rc3 is this suppose to work with?
It doesn't work with development-sources-2.6.9_rc3 here.
The module loads but X won't start. Is there anything I have to have and is there anything I can't have in my configs or kernel or whatever to make this patch work? |
|
Back to top |
|
|
DaMouse Apprentice
Joined: 18 Jul 2003 Posts: 233
|
Posted: Sat Oct 02, 2004 4:38 pm Post subject: |
|
|
I can't actually think whats wrong firephoto.. can you check dmesg and also post your config
-DaMouse _________________ I am the dark lord DaMouse I eat souls and wear the dressing gown of evil. |
|
Back to top |
|
|
radek Retired Dev
Joined: 02 Aug 2003 Posts: 11 Location: Kraków,Poland,Europe
|
Posted: Sat Oct 02, 2004 5:51 pm Post subject: the same nvidia DMA problem as firephoto |
|
|
Code: |
(II) NVIDIA(0): Detected AGP rate: 8X
(EE) NVIDIA(0): Failed to allocate config DMA context
(II) UnloadModule: "nvidia"
(II) UnloadModule: "vgahw"
|
modules loads fine, nothing interesting in dmesg. but X does not start. btw I use Xfree not Xorg. |
|
Back to top |
|
|
DaMouse Apprentice
Joined: 18 Jul 2003 Posts: 233
|
Posted: Sat Oct 02, 2004 7:50 pm Post subject: Re: the same nvidia DMA problem as firephoto |
|
|
radek wrote: | Code: |
(II) NVIDIA(0): Detected AGP rate: 8X
(EE) NVIDIA(0): Failed to allocate config DMA context
(II) UnloadModule: "nvidia"
(II) UnloadModule: "vgahw"
|
modules loads fine, nothing interesting in dmesg. but X does not start. btw I use Xfree not Xorg. |
Interesting, firephoto, do you use Xfree or does anyone else follow this pattern?
-DaMouse _________________ I am the dark lord DaMouse I eat souls and wear the dressing gown of evil. |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Sat Oct 02, 2004 7:56 pm Post subject: |
|
|
latest xorg in ~x86
Preemptive kernel, NPTL, GCC 3.4.2 |
|
Back to top |
|
|
radek Retired Dev
Joined: 02 Aug 2003 Posts: 11 Location: Kraków,Poland,Europe
|
Posted: Sat Oct 02, 2004 7:56 pm Post subject: |
|
|
DaMause, what version of xorg do You use?
i'm emerging 6.8.0-r1 now to test it, but it can take awhile |
|
Back to top |
|
|
sLiCeR n00b
Joined: 02 Oct 2004 Posts: 10 Location: Cologne,Germany,Europe,Earth,MilkyWay
|
Posted: Sat Oct 02, 2004 8:21 pm Post subject: Not working here, but wo MM patchset |
|
|
Hi, here the output from my X11-log (was using gcc-3.4.2)
Code: |
X Window System Version 6.8.0
Release Date: 8 September 2004
X Protocol Version 11, Revision 0, Release 6.8
Build Operating System: Linux 2.6.9-rc2 i686 [ELF]
Current Operating System: Linux proline 2.6.9-rc3 #1 Fri Oct 1 16:11:41 CEST 2004 i686
Build Date: 18 September 2004
...
(II) Loading extension GLX
(II) LoadModule: "nvidia"
(II) Loading /usr/X11R6/lib/modules/drivers/nvidia_drv.o
(II) Module nvidia: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.6111
Module class: XFree86 Video Driver
(II) NVIDIA X Driver 1.0-6111 Tue Jul 27 07:56:22 PDT 2004
(II) NVIDIA Unified Driver for all NVIDIA GPUs
(II) Primary Device is: PCI 02:00:0
(--) Assigning device section with no busID to primary device
(--) Chipset NVIDIA GPU found
...
(II) Setting vga for screen 0.
(II) Loading sub module "vgahw"
(II) LoadModule: "vgahw"
(II) Loading /usr/X11R6/lib/modules/libvgahw.a
(II) Module vgahw: vendor="X.Org Foundation"
compiled for 6.8.0, module version = 0.1.0
ABI class: X.Org Video Driver, version 0.7
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "NvAGP" "1"
(**) NVIDIA(0): Option "IgnoreDisplayDevices" "TV"
(**) NVIDIA(0): Use of NVIDIA internal AGP requested
(--) NVIDIA(0): Linear framebuffer at 0xD0000000
(--) NVIDIA(0): MMIO registers at 0xE4000000
(II) NVIDIA(0): NVIDIA GPU detected as: GeForce4 Ti 4200
(--) NVIDIA(0): VideoBIOS: 04.25.00.29.10
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(II) NVIDIA(0): Detected AGP rate: 4X
(EE) NVIDIA(0): Failed to allocate config DMA context
(II) UnloadModule: "nvidia"
(II) UnloadModule: "vgahw"
(II) Unloading /usr/X11R6/lib/modules/libvgahw.a
(EE) Screen(s) found, but none have a usable configuration.
...
|
Maybe this can help |
|
Back to top |
|
|
radek Retired Dev
Joined: 02 Aug 2003 Posts: 11 Location: Kraków,Poland,Europe
|
Posted: Sat Oct 02, 2004 8:38 pm Post subject: |
|
|
Hmm, maybe we should compare kernel configs to find differences.
DaMause, could You please do it?
My config is at: my gentoo dev page
TIA |
|
Back to top |
|
|
sLiCeR n00b
Joined: 02 Oct 2004 Posts: 10 Location: Cologne,Germany,Europe,Earth,MilkyWay
|
Posted: Sat Oct 02, 2004 8:48 pm Post subject: |
|
|
radek wrote: | Hmm, maybe we should compare kernel configs to find differences.
DaMause, could You please do it?
TIA |
Here is mine http://slicer.homeip.net/FILES/
Maybe its a missing DMA setting or something? |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Sat Oct 02, 2004 8:50 pm Post subject: |
|
|
soliad's patch works for rc3-mm1!
anyone wants to check my kernel config:
http://geki.ath.cx/kernelconfig
rc3-mm1 has a bug with usb... |
|
Back to top |
|
|
geki Advocate
Joined: 13 May 2004 Posts: 2387 Location: Germania
|
Posted: Sat Oct 02, 2004 9:11 pm Post subject: |
|
|
a guess in the blue, what kernel boot options you guys (the ones where it does not work) have? any with video of vesafb-tng?
I deleted this video option with rc2-mm4, may be has sth to do with that... it influence the gfx card, may be... |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Sat Oct 02, 2004 9:16 pm Post subject: |
|
|
No boot options except "gentoo=nodevfs".
Are we talking about the same kernels because some are
saying -rc*-mm* when here I'm talking about the plain
jane vanilla no frills 2.6.9_rc3 kernel? |
|
Back to top |
|
|
DaMouse Apprentice
Joined: 18 Jul 2003 Posts: 233
|
Posted: Sat Oct 02, 2004 9:39 pm Post subject: |
|
|
I have a working and non working config from the same kernel version (mm) but can't find on a quick look anything that links it to the rc3 error :/
-DaMouse _________________ I am the dark lord DaMouse I eat souls and wear the dressing gown of evil. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|