On 09/01/2015 11:56 PM, Basil Chupin wrote:
The latest Nvidia drivers (x.30 & *.41) will not compile with the new kernel 4.2.0-1.
If you are going to install the latest kernel take steps to make sure that you can still boot into your system - eg, make a backup of /boot before running the upgrade.
BC
Actually there has been a problem since the 3.18.17 kernel. At least with the 304-125 version. Not sure why nvidia hasn't fix it yet. Haven't tried the 4.2 kernel yet but this works on a 4.1.x kernel. diff -urN nvidia-304.125/nv.c nvidia-304.125a/nv.c --- nvidia-304.125/nv.c 2015-06-05 08:04:00.626286552 -0400 +++ nvidia-304.125a/nv.c 2015-04-20 14:47:35.917787839 -0400 @@ -2026,7 +2026,11 @@ unsigned long i_arg ) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg); +#else + return nv_kern_ioctl(file->f_path.dentry->d_inode, file, cmd, i_arg); +#endif } long nv_kern_compat_ioctl( @@ -2035,7 +2039,11 @@ unsigned long i_arg ) { +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg); +#else + return nv_kern_ioctl(file->f_path.dentry->d_inode, file, cmd, i_arg); +#endif } /* diff -urN nvidia-304.125/nv-pat.c nvidia-304.125a/nv-pat.c --- nvidia-304.125/nv-pat.c 2015-06-05 08:04:00.629619775 -0400 +++ nvidia-304.125a/nv-pat.c 2015-07-21 10:59:04.364708418 -0400 @@ -35,8 +35,13 @@ unsigned long cr0 = read_cr0(); write_cr0(((cr0 & (0xdfffffff)) | 0x40000000)); wbinvd(); - *cr4 = read_cr4(); - if (*cr4 & 0x80) write_cr4(*cr4 & ~0x80); +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,18,17) + *cr4 = read_cr4(); + if (*cr4 & 0x80) write_cr4(*cr4 & ~0x80); +#else + *cr4 = __read_cr4(); + if (*cr4 & 0x80) __write_cr4(*cr4 & ~0x80); +#endif __flush_tlb(); } @@ -46,7 +51,11 @@ wbinvd(); __flush_tlb(); write_cr0((cr0 & 0x9fffffff)); - if (cr4 & 0x80) write_cr4(cr4); +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,18,17) + if (cr4 & 0x80) write_cr4(cr4); +#else + if (cr4 & 0x80) __write_cr4(cr4); +#endif } static int nv_determine_pat_mode(void) Regards Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org