Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia-drivers-96.43.23 and kernel-4.0.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
DevLinux
n00b
n00b


Joined: 29 Jul 2015
Posts: 8

PostPosted: Thu Jul 30, 2015 12:03 am    Post subject: nvidia-drivers-96.43.23 and kernel-4.0.0 Reply with quote

Posting this in case anybody else needs this. I still have a system with an old built-in nvidia card in it that requires the old 96.43.23 nvidia driver.

I didn't write this patch. The original was written for Arch Linux. I modified the patch file to work with portage.

Code:
diff -Naur nv.orig/nv.c nv/nv.c
--- usr.orig/src/nv/nv.c        2015-04-16 12:41:01.287814000 +0200
+++ usr/src/nv/nv.c     2015-04-16 12:42:44.787122184 +0200
@@ -2298,7 +2298,7 @@

     nvl = NVL_FROM_FILEP(file);

-    if (NV_IS_CONTROL_DEVICE(file->f_dentry->d_inode))
+    if (NV_IS_CONTROL_DEVICE(file->f_path.dentry->d_inode))
         return nv_kern_ctl_poll(file, wait);

     nvfp = NV_GET_NVFP(file);
@@ -2493,7 +2493,7 @@
     unsigned long i_arg
 )
 {
-    return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
+    return nv_kern_ioctl(file->f_path.dentry->d_inode, file, cmd, i_arg);
 }

 long nv_kern_compat_ioctl(
@@ -2502,7 +2502,7 @@
     unsigned long i_arg
 )
 {
-    return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
+    return nv_kern_ioctl(file->f_path.dentry->d_inode, file, cmd, i_arg);
 }

 /*


The original is here: https://github.com/City-busz/city-repository/tree/master/nvidia-96xx-dkms

I also have the 173.14.36-37-gentoo.patch, 173.14.37-38-gentoo.patch, and linux-3.17.patch from his site in my patches directory. Not sure if they're still needed, but the driver seems to be working, so I'm leaving them alone.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
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