2002-10-02 16:04:45

by Bob McElrath

[permalink] [raw]
Subject: NVIDIA binary-only driver patch for 2.5.40

Here is an updated patch to the binary-only drivers provided by NVIDIA
(version 1.0-3123) for kernel 2.5.40. I have tested it for both 2D and
3D and it seems to work fine. (Warcraft III under linux 2.5.40 should
be a good enough test, no?)

I have not tested their NVAGP under 2.5.40. If in doubt use the
kernel's agpgart driver and:
Option "NvAGP" "2"
to tell the NVIDIA driver not to use its internal NVAGP driver.

This patch is based on a patch previously posted by Roberto Nibali. I
place my contributions to this patch under the GPL. NVIDIA may not use
this code without prior written consent from me.

Cheers,
-- Bob

Bob McElrath ([email protected])
Univ. of Wisconsin at Madison, Department of Physics

"The purpose of separation of church and state is to keep forever from
these shores the ceaseless strife that has soaked the soil of Europe in
blood for centuries." -- James Madison


Attachments:
(No filename) (0.00 B)
(No filename) (240.00 B)
Download all attachments

2002-10-02 16:38:01

by Bob McElrath

[permalink] [raw]
Subject: Re: NVIDIA binary-only driver patch for 2.5.40

Petr Sebor [[email protected]] wrote:
> Bob McElrath wrote:
> >Here is an updated patch to the binary-only drivers provided by NVIDIA
> >+ err = remap_page_rage( (size_t) uaddr, (size_t) start, size_bytes,
>
> Hello,
>
> isn't this a typo? Shouldn't this be 'remap_page_range' as well?

Whoops, thought I fixed that one...

Revised patch attached.

P.S. It's not my fault. That typo was in Roberto's patch. ;)

Cheers,
-- Bob

Bob McElrath ([email protected])
Univ. of Wisconsin at Madison, Department of Physics

"The purpose of separation of church and state is to keep forever from
these shores the ceaseless strife that has soaked the soil of Europe in
blood for centuries." -- James Madison


Attachments:
(No filename) (0.00 B)
(No filename) (240.00 B)
Download all attachments

2002-10-02 17:13:48

by Roberto Nibali

[permalink] [raw]
Subject: Re: NVIDIA binary-only driver patch for 2.5.40

Hi,

> This patch is based on a patch previously posted by Roberto Nibali. I
> place my contributions to this patch under the GPL. NVIDIA may not
> use this code without prior written consent from me.

You're a funny guy. While I don't care what happens to this patch
because I took it from Andrea Arcangeli (IIRC), I am not so sure what
exactly you mean by "I place my contributions to this patch under the
GPL". But I don't care either. I only hope people are not bugging you
for any breakage. ;)

I think NVIDIA would have the right to take portions of this patch
wheter you like it or not. I don't think they want to, however.

> Revised patch attached.
>
> P.S. It's not my fault. That typo was in Roberto's patch. ;)

It doesn't really matter, it's for 2.5.x anyway. Besides that it should
actually be called rage ;).

Best regards,
Roberto Nibali, ratz
--
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc

2002-10-02 22:51:38

by Bob McElrath

[permalink] [raw]
Subject: Re: NVIDIA binary-only driver patch for 2.5.40

Bill Huey [[email protected]] wrote:
> On Wed, Oct 02, 2002 at 11:10:06AM -0500, Bob McElrath wrote:
> > Here is an updated patch to the binary-only drivers provided by NVIDIA
> > (version 1.0-3123) for kernel 2.5.40. I have tested it for both 2D and
> > 3D and it seems to work fine. (Warcraft III under linux 2.5.40 should
> > be a good enough test, no?)
>
> It doesn't exactly compile correctly:
>
> root@gnuppy> /linux1/NVIDIA/NVIDIA_kernel-1.0-3123% 21# make
> echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
> cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-
> D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1
> 3 -DNV_UNIX -DNV_LINUX -DNVCPU_X86 -I. -I/lib/modules/2.5.40/build/include -Wno-cast-qual nv.c
> In file included from /lib/modules/2.5.40/build/include/linux/irq.h:19,
> from /lib/modules/2.5.40/build/include/asm/hardirq.h:6,
> from /lib/modules/2.5.40/build/include/linux/interrupt.h:25,
> from nv-linux.h:59,
> from nv.c:14:
> /lib/modules/2.5.40/build/include/asm/irq.h:16: irq_vectors.h: No such file or directory
> make: *** [nv.o] Error 1
> root@gnuppy> /linux1/NVIDIA/NVIDIA_kernel-1.0-3123% 22#

oh yeah...that...

I forgot I made a link from arch/i386/mach-generic/irq_vectors.h to
include/asm/irq_vectors.h.

The above error is in include/asm/irq.h and not a problem with the
nvidia driver itself. (poke poke kernel maintainers)

Cheers,
-- Bob

Bob McElrath ([email protected])
Univ. of Wisconsin at Madison, Department of Physics

"The purpose of separation of church and state is to keep forever from
these shores the ceaseless strife that has soaked the soil of Europe in
blood for centuries." -- James Madison


Attachments:
(No filename) (1.82 kB)
(No filename) (240.00 B)
Download all attachments