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

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-07-08, 08:14 PM   #13
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Okay.. I'm out of ideas then.
vallimar is offline   Reply With Quote
Old 08-07-08, 08:40 PM   #14
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Quote:
Originally Posted by vallimar View Post
Okay.. I'm out of ideas then.
So am I. I've asked a question on the kernel mailing list, we'll see if an answer is forthcoming and if its useful. It builds and works on vanilla 2.6.26.
# cat /proc/kallsyms |grep init_mm
ffffffff80630020 D init_mm
siddly is offline   Reply With Quote
Old 08-08-08, 06:11 AM   #15
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Reply from the kernel mailing list.
Run a kernel built with 'CONFIG_UNUSED_SYMBOLS=y', that should help matters
somewhat.

The *real* problem is that the NVidia driver uses the deprecated pgd_offset_k()
function (see NV_PGD_OFFSET in lv-linux.h). That's what needs fixing.
--------------------------------------------------------------------------------------------------------------
Built 2.6.27-rc2-git2 with the recommended option above. It all works.
siddly is offline   Reply With Quote
Old 08-08-08, 10:36 AM   #16
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

I dug around, seems that pgd_offset_k is a macro to pgd_offset using the deprecated init_mm. Digging through the driver code and various related kernel commits, it seems this was used to check for bugs that the kernel devs swear are fixed. I added a couple new bits to the patch that wrap the offending bits around a kernel version check (> 2.6.25) to bypass the bugchecking and macro usage which are not supposed to be needed anymore.

I won't replace the old attachment above in case there are problems. I compiled a new
driver with this patch and it appears to be working so far...
Attached Files
File Type: txt nvidia-fixed.patch.txt (14.6 KB, 432 views)
vallimar is offline   Reply With Quote
Old 08-08-08, 11:19 AM   #17
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

177.13 is fairly old and is not recommended for use with GPUs other than GT200, but since there's some demand to get it working with recent kernels until updated display drivers become available, and since there seems to be some confusion with respect to how/why the init_mm symbol is picked up, I attached a patch that updates the 177.13 Linux kernel interface code to be closer to what will be included in upcoming driver releases.

The patch was not tested extensively, so please use it at your own risk. I made sure it allows 177.13 to build against Linux/x86 2.7.27-rc2 and ran it on Linux/x86 2.6.26-rc2. To update 177.13 and install the patched driver, please use:

# sh /path/to/NVIDIA-Linux-x86-177.13-pkg0.run \
--apply-patch /path/to/NVIDIA_kernel-177.13-2627763.diff.txt
# sh NVIDIA-Linux-x86-177.13-pkg0-custom.run
The above steps should also work for the other 177.13 .run packages.
Attached Files
File Type: txt NVIDIA_kernel-177.13-2627763.diff.txt (19.0 KB, 682 views)
zander is offline   Reply With Quote
Old 08-08-08, 12:05 PM   #18
plun
Registered User
 
Join Date: Jan 2007
Posts: 30
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Quote:
Originally Posted by vallimar View Post

I won't replace the old attachment above in case there are problems. I compiled a new
driver with this patch and it appears to be working so far...
Thanks vallimar !

Working OK with Ubuntu Intrepid, kernel 2.6.27-RC1 with some Ubuntu patches
Bootsplash and gnome splash trouble but thats probably Intrepid bugs.

Some "inverted logic" with your patch because I am running 32 bits driver....
plun is offline   Reply With Quote
Old 08-08-08, 12:43 PM   #19
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Quote:
Originally Posted by zander View Post
177.13 is fairly old and is not recommended for use with GPUs other than GT200, but since there's some demand to get it working with recent kernels until updated display drivers become available, and since there seems to be some confusion with respect to how/why the init_mm symbol is picked up, I attached a patch that updates the 177.13 Linux kernel interface code to be closer to what will be included in upcoming driver releases.
Of course there is demand. And 2 months isn't what I would call 'fairly old'. Especially as your week old 173.xx fail to build for the same reasons. The 177.xx is supposed to be for newer cards and contain the performance enhancements we all want (and need). If you are changing support levels and repurposing things from what you've already announced, then you need to get synchronized and update the announcements posts to contain proper information.
vallimar is offline   Reply With Quote
Old 08-08-08, 12:54 PM   #20
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Quote:
Originally Posted by zander View Post
The patch was not tested extensively, so please use it at your own risk. I made sure it allows 177.13 to build against Linux/x86 2.7.27-rc2 and ran it on Linux/x86 2.6.26-rc2. To update 177.13 and install the patched driver, please use:

# sh /path/to/NVIDIA-Linux-x86-177.13-pkg0.run \
--apply-patch /path/to/NVIDIA_kernel-177.13-2627763.diff.txt
# sh NVIDIA-Linux-x86-177.13-pkg0-custom.run
Still bombs out on the XEN stuff, even with IGNORE_XEN_PRESENCE set. Not sure if that is Fedora specific or a problem with all recent kernels.
vallimar is offline   Reply With Quote

Old 08-08-08, 01:03 PM   #21
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Xen kernels are unsupported, but in my experience, RHEL5 and (newer) Fedora 8 RedHat Xen kernels work fine (to the extent the driver works within Xen) after fixing up an include directory problem in the source tree.
zander is offline   Reply With Quote
Old 08-08-08, 01:54 PM   #22
Dragoran
Registered User
 
Join Date: May 2004
Posts: 711
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Quote:
Originally Posted by zander View Post
Xen kernels are unsupported, but in my experience, RHEL5 and (newer) Fedora 8 RedHat Xen kernels work fine (to the extent the driver works within Xen) after fixing up an include directory problem in the source tree.
They aren't technically xen kernels (they are guest only and seem to work fine with the drivers once the xen stuff is removed).

Note: we are not talking about xen Dom0 kernels here like the ones shipped in RHEL but the DomU support in the upstream kernel which is enabled in newer Debian kernels and Fedora rawhide.
So using "CONFIG_XEN" to detect "xen kernels" is no longer reliable.
Dragoran is offline   Reply With Quote
Old 08-08-08, 02:05 PM   #23
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

My problem is that I can't even find the files it wants in the kervel-devel sources provided by Fedora. There is no "xen/interface" structure. Some files can be found in "asm/xen", but those refer back to the completely missing "xen/interface" headers. I don't think they have their xen merge completely sorted out yet, though I am using Rawhide, so that's expected I guess.

Anyways, for the many like myself who couldn't care less about XEN and wll never use and thus the nvidia checks just get in the way--I've re-based the patches to disable the checks.

I created two patches, a diff agains Zanders patch (patch-no-xen) and a combined patch of Zanders and my no-xen patch (nvidia-no-xen). My no-xen bits also include the fix for the change paravirt symbols--strip it if you don't need it, I do.

The no-xen bit is _much_ simpler this time around, and requires you set the IGNORE_XEN_PRESENCE variable for it to be activated.

I can't do much in the way of real testing at present (am at work) but it compiles, loads and runs so far. Thanks for the updated codebits Zander and to those that helped come up with solutions before.
Attached Files
File Type: txt patch-no-xen.patch.txt (1.6 KB, 330 views)
File Type: txt nvidia-no-xen.patch.txt (19.8 KB, 286 views)

Last edited by vallimar; 08-08-08 at 02:12 PM. Reason: Slight update to the patches
vallimar is offline   Reply With Quote
Old 08-08-08, 02:08 PM   #24
vallimar
Registered User
 
Join Date: Aug 2008
Posts: 22
Default Re: NVIDIA 177.13 + KERNEL 2.6.27-rc1+

Quote:
Originally Posted by Dragoran View Post
They aren't technically xen kernels (they are guest only and seem to work fine with the drivers once the xen stuff is removed).

Note: we are not talking about xen Dom0 kernels here like the ones shipped in RHEL but the DomU support in the upstream kernel which is enabled in newer Debian kernels and Fedora rawhide.
So using "CONFIG_XEN" to detect "xen kernels" is no longer reliable.
Right, for my patch this time though, I just undefine CONFIG_XEN - it's way simpler then gutting out all the xen bits and does the same thing.
vallimar 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
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 10:24 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
Crash when logout from X TGL NVIDIA Linux 10 09-13-02 08:22 PM
NVIDIA kernel not loading on boot-up, but insmod loads it Kyle NVIDIA Linux 3 09-10-02 12:01 AM

All times are GMT -5. The time now is 07:31 PM.


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