lkml.org 
[lkml]   [2001]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[non-kernel patch] Re: bug of Nvidia (0.9.5) Drivers in 2.4 Kernel Enviroment
Date
(replies - cc: jsulem@sulem.freeserve.co.uk)

Driver should work after applying the following patch. I'm not a kernel
hacker so I don't know how good a solution this is (especially suspicious
of the work around in os-interface.c) but X works on my machine and it has
not crashed (yet) - have not tried any OpenGL though.

Apply this to the extracted tar.gz version of the driver and compile that.
Don't just try and rebuild the binary rpm from the spec file as it will
extract
the tar.gz again and all changes will be lost (there should be a tar.gz
hanging
around once the src.rpm has been installed).

diff -u NVIDIA_kernel-0.9-5/nv.c NVIDIA_kernel-0.9-5-kern2.4/nv.c
--- NVIDIA_kernel-0.9-5/nv.c Sat Aug 26 01:48:38 2000
+++ NVIDIA_kernel-0.9-5-kern2.4/nv.c Sat Jan 6 14:53:02 2001
@@ -84,6 +84,9 @@

#include <nv_ref.h>

+#define mem_map_inc_count(p) atomic_inc(&(p->count))
+#define mem_map_dec_count(p) atomic_dec(&(p->count))
+
#define LINUX_VMA_DEV(vma) ((vma)->vm_file->f_dentry->d_inode->i_rdev)

#ifdef KERNEL_2_3
@@ -850,7 +853,7 @@
struct vm_operations_struct nv_vm_ops = {
open: nv_vma_open,
close: nv_vma_release,
- unmap: nv_vma_unmap,
+ nv_vma_unmap,
};
#endif

diff -u NVIDIA_kernel-0.9-5/os-interface.c
NVIDIA_kernel-0.9-5-kern2.4/os-interface.c
--- NVIDIA_kernel-0.9-5/os-interface.c Fri Sep 1 03:19:17 2000
+++ NVIDIA_kernel-0.9-5-kern2.4/os-interface.c Sat Jan 6 14:59:36 2001
@@ -81,6 +81,9 @@

#include <os-interface.h>

+static inline unsigned long get_module_symbol(char *unused1, char *unused2)
{ return 0; };
+static inline void put_module_symbol(unsigned long unused) { };
+
// registry controls

#define NV_MODULE_NAME "NVdriver"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.036 / U:64.616 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site