|04-28-09, 02:08 PM||#1|
Join Date: Apr 2009
NVIDIA Driver on Pre-Emptive/Realtime Kernels
I'm currently testing the installation of the 185.19 drivers under a realtime optimised kernel for ubuntustudio, version 2.6.28-3-rt, for a friend you was having trouble building the driver on his machine.
The driver fails to build because of the following problem.
/tmp/selfgz6048/NVIDIA-Linux-x86_64-185.19-pkg2/usr/src/nv/os-interface.c:130: error: incompatible types in assignment
The line where it fails being:
I created the following patch, which seems to fix the issue:
--- nv/os-interface.c 2009-04-28 18:58:23.112878241 +0100 +++ nv.new/os-interface.c 2009-04-28 18:55:05.000000000 +0100 @@ -127,7 +127,11 @@ os_sema = (os_sema_t *)*ppSema; os_sema->sp = sp; init_completion(&os_sema->completion); +#ifdef CONFIG_PREEMPT_RT + rt_spin_lock_init(&os_sema->lock); +#else spin_lock_init(&os_sema->lock); +#endif os_sema->count = 1; return RM_OK;
Am I likely to expect this patch being submitted upstream?
For clarification, you can turn on the pre-emptive kernel option in the make menuconfig listing:
'Processor type and features ---> Preemption Model (Preemptible Kernel)'
and set it to the bottom option (Low-Latency Desktop).
|Thread||Thread Starter||Forum||Replies||Last Post|
|nvidia driver quality decrease?||legluondunet||NVIDIA Linux||17||06-26-12 11:03 AM|
|Should we reinstall nvidia driver for new kernels?||Bersam||NVIDIA Linux||5||05-27-12 05:42 PM|
|Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5||Ferianto85||NVIDIA Linux||0||05-18-12 09:35 PM|
|Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody)||Katchina404||NVIDIA Linux||9||01-12-03 09:49 AM|
|nvidia + 2.4.19 gentoo = messed up||ulukay||NVIDIA Linux||18||11-02-02 12:58 AM|