Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-28-09, 01:08 PM   #1
ibuclaw
Registered User
 
Join Date: Apr 2009
Posts: 5
Lightbulb NVIDIA Driver on Pre-Emptive/Realtime Kernels

Hi,

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:
Code:
spin_lock_init(&os_sema->lock);
I have traced this down and discovered the reason why this happens is because this kernel was built with the pre-emptive kernel option set as 'full', as opposed to being turned 'off' (servers) or 'partial' (desktops).

I created the following patch, which seems to fix the issue:
Code:
--- 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;
I have had a look at the most recent beta, and the code appears to be the same in this section. So I am presuming that it will too fail to build from source.

Am I likely to expect this patch being submitted upstream?

[EDIT]
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).

Regards
Iain
ibuclaw is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia driver quality decrease? legluondunet NVIDIA Linux 17 06-26-12 10:03 AM
Should we reinstall nvidia driver for new kernels? Bersam NVIDIA Linux 5 05-27-12 04:42 PM
Need Help Installing NVIDIA Tesla M2070Q in Linux RHEL5 Ferianto85 NVIDIA Linux 0 05-18-12 08:35 PM
Getting the proprietary nvidia driver to run with Debian 3.0 r0 (woody) Katchina404 NVIDIA Linux 9 01-12-03 08:49 AM
nvidia + 2.4.19 gentoo = messed up ulukay NVIDIA Linux 18 11-01-02 11:58 PM

All times are GMT -5. The time now is 04:23 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.