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


Sponsored Ad

Reply
 
Thread Tools
Old 09-20-06, 09:05 PM   #1
dmetz99
Registered User
 
Join Date: Mar 2005
Posts: 84
Default Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

Neither 8762 nor 8774 (both with with appropriate jaxxon patches) will successfully build against 2.6.18 with Ingo's -rt3 reatime patch. Installer logs (compiler chatter) are attached. I have not tried these against a vanilla 2.6.18 build, but it should work based on what I've seen posted, here.

Jaxxon/Zander - need your help on this one....
Attached Files
File Type: log 8762-nvidia-installer.log (8.0 KB, 160 views)
File Type: log 8774-nvidia-installer.log (7.7 KB, 170 views)
dmetz99 is offline   Reply With Quote
Old 09-20-06, 09:49 PM   #2
obra
Registered User
 
Join Date: Aug 2006
Posts: 66
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

FYI, the kernel module builds fine against vanilla 2.6.18.
obra is offline   Reply With Quote

Sponsored Ads - Guests Only

Old 09-21-06, 04:10 AM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,661
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

/root/nv8774x/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv.c: At top level:
/root/nv8774x/NVIDIA-Linux-x86-1.0-8774-pkg1/usr/src/nv/nv.c:904: error: `RAW_SPIN_LOCK_UNLOCKED' undeclared here (not in a function)
This line comes from Jaxxon's patch; is there anything related to raw spinlocks in the changelog?
zander is offline   Reply With Quote
Old 09-21-06, 07:16 AM   #4
dmetz99
Registered User
 
Join Date: Mar 2005
Posts: 84
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

The only reference to RAW_SPIN_LOCK_* in the long-form changelog involves the PPC arch only. This is part of what has me puzzled...
dmetz99 is offline   Reply With Quote
Old 09-21-06, 04:00 PM   #5
floogy
Registered User
 
Join Date: Aug 2006
Posts: 34
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

Any news on this? I'll try to compile 2.6.18-rt3 with Bernhards patch, too.
I want to use debians nvidia-kernel-source from unstable (8774). Is it possible to patch debian nvidia-kernel-source with Bernhard's(Jaxxon's) patch?
floogy is offline   Reply With Quote
Old 09-22-06, 07:11 AM   #6
floogy
Registered User
 
Join Date: Aug 2006
Posts: 34
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

Ok, I found out, that jaxxon's patch applies fine without hunks to 8774 (to debian nvidia-kernel-source, too?):
http://www.nvnews.net/vbulletin/show...9&postcount=86
http://www.nvnews.net/vbulletin/showthread.php?t=70776

But according to this thread this will lead into the `RAW_SPIN_LOCK_UNLOCKED' undeclared here if one apply it with the 2.6.18-rt3 kernel. Can RAW_SPIN_LOCK_UNLOCKED be removed from jaxxon's patch in a safe way?
floogy is offline   Reply With Quote
Old 09-22-06, 09:08 AM   #7
dmetz99
Registered User
 
Join Date: Mar 2005
Posts: 84
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

If you look at the code, RAW_SPIN_LOCK_UNLOCKED is only invoked if config_PREEMPT_RT is set. Perhaps the driver will build if you choose config_PREEMPT_DESKTOP, instead. But if we have to take that route, what's the point of using Ingo's patch?
dmetz99 is offline   Reply With Quote
Old 09-22-06, 10:06 AM   #8
JaXXoN
Registered User
 
Join Date: Jul 2005
Location: Munich
Posts: 851
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

Hi!

The definition for raw spinlocks has been changed in recent -rt
kernel versions and you need to add "__" for all operations.

Means: open to nv.c, and add those underscores in line 904:

Code:
static __raw_spinlock_t __nv_pat_entries_lock = __RAW_SPIN_LOCK_UNLOCKED;
This makes the nvidia driver 1.0-8774 compiling, again
(with patch-nv-1.0-8762-rt "hunkless" applied), but i didn't
yet actually tried out if it work. Feedback appreciated.

regards

Bernhard
JaXXoN is offline   Reply With Quote
Old 09-22-06, 10:06 AM   #9
floogy
Registered User
 
Join Date: Aug 2006
Posts: 34
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

Quote:
Originally Posted by dmetz99
But if we have to take that route, what's the point of using Ingo's patch?
Exactly! I need config_PREEMPT_RT.
floogy is offline   Reply With Quote
Old 09-22-06, 10:57 AM   #10
dmetz99
Registered User
 
Join Date: Mar 2005
Posts: 84
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

I'll give it a try tonight when I get home from work.

Thanks JaXXoN!
dmetz99 is offline   Reply With Quote
Old 09-22-06, 12:43 PM   #11
floogy
Registered User
 
Join Date: Aug 2006
Posts: 34
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

# cd /usr/src/modules/nvidia-kernel/nv
# patch -p1 ../patch-nv-1.0-8762-rt.txt
(the patch applied fine)
# vi nv.c
(exchange line 904 according to jaxxon.)
The patch compiled fine against the 2.6.18-rc3 kernel.
No errors.

I needed to install nvidia-glx with the option --force-all, because I'm on ubuntu (How to backport the debian package for ubuntu?):
Code:
# dpkg -i --force-all /root/nvidia-glx_1.0.8774-1.deb
(Lese Datenbank ... 537760 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereiten zum Ersetzen von nvidia-glx 1.0.8774-1 (durch .../root/nvidia-glx_1.0.8774-1.deb) ...
Entpacke Ersatz für nvidia-glx ...
dpkg: nvidia-glx: Abhängigkeitsprobleme, aber konfiguriere auf Ihren Wunsch hin: nvidia-glx hängt ab von x11-common (>= 1:7.0.0); aber:
  Version von x11-common auf dem System ist 7.0.0-0ubuntu45.
Richte nvidia-glx ein (1.0.8774-1) ...
Creating NVIDIA TLS links... done.
This worked ~$ dpkg -l *nvidia*|grep ^ii|grep 8774
ii nvidia-glx 1.0.8774-1 NVIDIA binary XFree86 4.x driver
ii nvidia-kernel-2.6.17-rt8 1.0.8774-1+1 NVIDIA binary kernel module for Linux 2.6.17
ii nvidia-kernel-2.6.18-rt3 1.0.8774-1+1 NVIDIA binary kernel module for Linux 2.6.18
ii nvidia-kernel-source 1.0.8774-1 NVIDIA binary kernel module source


But I get this:

Code:
# dmesg|tail -n3
[  372.845642] nvidia: Unknown symbol __bad_spinlock_type
[  375.394362] nvidia: Unknown symbol __bad_spinlock_type
[  377.437625] nvidia: Unknown symbol __bad_spinlock_type
# tail /var/log/Xorg.0.log
(**) NVIDIA(0): Enabling RENDER acceleration
(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0):  *** Aborting ***
(II) UnloadModule: "nvidia"
(II) UnloadModule: "ramdac"
(II) UnloadModule: "fb"
(EE) Screen(s) found, but none have a usable configuration.
Maybe I have to run depmod, or reinstall nvidia-kernel-2.6.18-rt3 ?
For instance I don't know how to run depmod to solve this.
floogy is offline   Reply With Quote
Old 09-22-06, 02:46 PM   #12
floogy
Registered User
 
Join Date: Aug 2006
Posts: 34
Default Re: Build problems with 2.6.18-rt3 Realtime kernel and 8774/8762

Quote:
Originally Posted by floogy
Maybe I have to run depmod, or reinstall nvidia-kernel-2.6.18-rt3 ?
For instance I don't know how to run depmod to solve this.
I removed and reinstalled it and all the 2.6.18-rt kernel stuff , and moved /lib/modules/2.6.18-rt3 out of the way.
The unresolved symbols are still there.
Therefor I think, that this isn't the case, and I guess it's due to jaxxon's patch.

dmetz99: What experience did you make?
floogy is offline   Reply With Quote
Reply


Most Popular NVIDIA Based Graphics Cards


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 -4. The time now is 08:38 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
nV News - Copyright ©1998-2010. All rights reserved.