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

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-12-09, 04:22 PM   #1
ibuclaw
Registered User
 
Join Date: Apr 2009
Posts: 5
Default NViDIA on Linux 2.6.31

Hi,

I've been having a minor issue with installing NViDIA drivers on the latest Linux kernel.

Just had a quick look around, and found this:
  1. Extract the drivers with the -x option and cd into the extracted directory
  2. Run the following:
    Code:
    gedit usr/src/nv/nv-linux.h
  3. On line 739, you should see the following:
    Code:
    #if defined(CONFIG_PREEMPT_RT)
    #define NV_INIT_MUTEX(mutex) init_MUTEX(mutex)
    #else
    #if !defined(__SEMAPHORE_INITIALIZER) && defined(__COMPAT_SEMAPHORE_INITIALIZER)
    #define __SEMAPHORE_INITIALIZER __COMPAT_SEMAPHORE_INITIALIZER
    #endif

Now, the issue is that I'm using the RT patches, which define "CONFIG_PREEMPT_RT", but unlike the previous RT patch in the 2.6.29 kernel, the 2.6.31 kernel does not define "init_MUTEX".
I've tried to work around it using various methods, after comparing the diffs between the old and new patch, but I can't get a 100% working driver. (Either dies at the start of X, or starts and freezes some time later).

I'm using the 190.18 drivers, but having a look at the more recent 190.32 drivers, they suffer from the same defect.

Will this be fixed in the next beta release?

Regards
Iain

Last edited by ibuclaw; 09-13-09 at 02:01 PM. Reason: post update
ibuclaw is offline   Reply With Quote
Old 09-12-09, 05:33 PM   #2
tier
Registered User
 
Join Date: Sep 2007
Posts: 118
Default Re: NViDIA on Linux 2.6.31

190.32 works here on 2.6.31 without changing anything.
tier is offline   Reply With Quote
Old 09-12-09, 06:31 PM   #3
artem
Registered User
 
Join Date: Jun 2006
Posts: 703
Default Re: NViDIA on Linux 2.6.31

190.32 drivers work here on 2.6.31 without a hassle.
artem is offline   Reply With Quote
Old 09-13-09, 10:38 AM   #4
sternklang
Registered User
 
Join Date: Apr 2006
Posts: 13
Default Re: NViDIA on Linux 2.6.31

It works here as well running vanilla 2.6.31 on Gentoo (x86-64). However, checking my kernel config I don't see a CONFIG_PREEMPT_RT option available. Are you perhaps running a kernel with a realtime patchset?
sternklang is offline   Reply With Quote
Old 09-13-09, 11:56 AM   #5
primerib
Registered User
 
Join Date: Dec 2008
Posts: 128
Default Re: NViDIA on Linux 2.6.31

Same as the others.. Works here on 2.6.31 no problem.
primerib is offline   Reply With Quote
Old 09-13-09, 02:11 PM   #6
ibuclaw
Registered User
 
Join Date: Apr 2009
Posts: 5
Default Re: NViDIA on Linux 2.6.31

Just to update, turns out my original workaround is a dead end, so I've snipped it, and updated the OP as seen fit.

Yes I do use the realtime patchset.

The issue is that there have been a lot of changes to the RT patches since the 2.6.29 release.

Have been trying to figure out how init_MUTEX would have run on the previous kernel, but to no luck or avail. I can't seem to get a truly working nvidia driver, and am starting to think the issue is from the proprietary side of it.

Attached the nvidia-installer.log as proof of concept.

Regards
Iain
Attached Files
File Type: gz nvidia-installer.log.gz (2.6 KB, 121 views)
ibuclaw is offline   Reply With Quote
Old 09-14-09, 10:03 AM   #7
gonzo_s
Registered User
 
Join Date: Mar 2009
Posts: 58
Default Re: NViDIA on Linux 2.6.31

2.6.31 (final stable) + Nvidia 185.18.36 (final stable) = works like a charm
Thank you, Nvidia. Keep up the good work.
gonzo_s is offline   Reply With Quote
Old 09-14-09, 05:54 PM   #8
THEjel
Registered User
 
Join Date: Jan 2009
Posts: 3
Default Re: NViDIA on Linux 2.6.31

Linux 2.6.31, xorg 1.6.3.901, nvidia-drivers updated from 185.* to 190.25:

glxgears jumped from 5400 to 6100 fps.
2D performance is looking good (scrolling in firefox feels snappy)!
vdpau HD (720) playback is smooth. Quite possibly improved!
rss-glx and other OpenGL screen savers smoother.

This is a 32 bit gentoo system. NVIDIA GPU GeForce 9400 GT (G96). CPU is a Pentium 4 prescott. 2GB DDR2 RAM.

Last edited by THEjel; 09-14-09 at 06:05 PM. Reason: adding more info
THEjel is offline   Reply With Quote

Old 09-16-09, 03:26 PM   #9
mortski
Registered User
 
Join Date: Sep 2009
Posts: 1
Default Re: NViDIA on Linux 2.6.31

For RT init_MUTEX has gone away in favor of semaphore_init, see:

http://linux.derkeiler.com/Mailing-L.../msg09885.html

Fixing the define in nv-linux.h will get the module to at least compile. I've not tested if it is working yet.
mortski is offline   Reply With Quote
Old 09-17-09, 09:57 AM   #10
RAMChYLD
Registered User
 
Join Date: Feb 2005
Location: Malaysia
Posts: 95
Default Re: NViDIA on Linux 2.6.31

Linux 2.6.31, XOrg 1.6.3.901
NVidia drivers: 96.43.11
System runs Debian Sid

Compile fails:

/usr/src/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/os-agp.c: In function 'KernLoadAGPPages':
/usr/src/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/os-agp.c:287: error: 'agp_memory' has no member named 'memory'

Video is a GeForce4 440MX 8X.

Full log attached.
Attached Files
File Type: log nvidia-installer.log (23.8 KB, 86 views)
__________________
Rigs:
  • "Edison" - Phenom II X4 925 AM3 (Deneb), M4N98TD-EVO (nForce980a SLI), ENGTS450 DirectCU 1GB (GeForce GTS450) x2 (SLI), integrated GeForce8200, SoundBlaster X-Fi Titanium Fatal1ty Pro, 8GB DDR3-1600
  • "Sally" - Athlon64 x2 5000+ AM2 (Brisbane), M4N72-E (nForce750a SLI), ENGTS250 Dark Knight 1GB (GeForce GTS250) x2 (SLI), integrated GeForce8200, SoundBlaster X-Fi Titanium Fatal1ty Pro, 4GB DDR2-1066
  • "Dongwa" - Phenom II X4 945 AM3 (Deneb), M4N75TD (nForce750a SLI), ENGTX260-216SP 896MB (GeForce GTX260 216SP) x2 (SLI), integrated GeForce8200, SoundBlaster X-Fi Fatal1ty Champion, 8GB DDR3-1600
  • "Helen" - Athlon64 x2 6400+ AM2 (Windsor), M4N78 Pro (GeForce8300), ENGT520 1GB (GeForce GT520), integrated GeForce8300, AuzenTech Prelude X-Fi, 4GB DDR2-1066.
  • "Clementine" - Athlon64 x2 3800+ AM2 (Windsor), TF560A2+ (nForce560), V8402GL26 (GeForce 8400GS), SoundBlaster Live! 5.1, Sonnet Allegro FW400 PCIe, 2GB DDR2-800
RAMChYLD is offline   Reply With Quote
Old 09-17-09, 10:05 AM   #11
ir123
*BANNED*
 
Join Date: Jun 2008
Posts: 92
Default Re: NViDIA on Linux 2.6.31

Quote:
Originally Posted by RAMChYLD View Post
Linux 2.6.31, XOrg 1.6.3.901
NVidia drivers: 96.43.11
System runs Debian Sid

Compile fails:

/usr/src/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/os-agp.c: In function 'KernLoadAGPPages':
/usr/src/NVIDIA-Linux-x86-96.43.11-pkg0/usr/src/nv/os-agp.c:287: error: 'agp_memory' has no member named 'memory'

Video is a GeForce4 440MX 8X.

Full log attached.
nvidia 96.43.13 should work
ir123 is offline   Reply With Quote
Old 09-17-09, 01:32 PM   #12
ibuclaw
Registered User
 
Join Date: Apr 2009
Posts: 5
Default Re: NViDIA on Linux 2.6.31

Quote:
Originally Posted by mortski View Post
For RT init_MUTEX has gone away in favor of semaphore_init, see:

http://linux.derkeiler.com/Mailing-L.../msg09885.html

Fixing the define in nv-linux.h will get the module to at least compile. I've not tested if it is working yet.
I am aware of this mortski, but it isn't as simple as that...

changing the define compiles the driver alright, but it refuses to start/kernel panics/reboots.

Either one of those things happen.

edit: This was the patch I worked out in the original post: http://patchwork.kernel.org/patch/38282/
But, as far as I am aware, it doesn't work.

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


All times are GMT -5. The time now is 03:24 AM.


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