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

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-26-07, 06:00 PM   #1
gmsgms
Registered User
 
Join Date: Jan 2007
Posts: 5
Default nvidia 1.0.9631 with kernel 2.6.20-rc6

1) i have got the following compiler error messages while compiling the nvidia module:
Code:
/usr/src/modules/nvidia-kernel/nv/nv.c:1849: error: ‘SA_INTERRUPT’ undeclared 
/usr/src/modules/nvidia-kernel/nv/nv.c:1849: error: ‘SA_SHIRQ’ undeclared
this errors are forced by the removal of the migration helpers in "include/linux/interrupt.h":
Quote:
* Migration helpers. Scheduled for removal in 1/2007
* Do not use for new code !
this problem can be solved easily:
Quote:
Originally Posted by diff nc.old nc.new
1849c1849
< SA_INTERRUPT | SA_SHIRQ, "nvidia",
---
> IRQF_DISABLED | IRQF_SHARED, "nvidia",

2) license issue:
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'pagefault_disable'

I guess this is the reason, why this error didn't come up with 2.6.20-rc5:
Quote:
Originally Posted by http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.20-rc6
[MTD] Use EXPORT_SYMBOL_GPL() for exported symbols.

While we're fixing up the newly-added symbol, change the neighbouring ones
too, for consistency and also to reflect the author's interpretation of
the GPL -- which is that _no_ non-GPL modules are permitted. The author
always intended his code to be released under the GPL, and believes that
any new interpretation of 'EXPORT_SYMBOL' as being any different from
'EXPORT_SYMBOL_GPL' is entirely invalid; the GPL requires that _all_
exports have the semantics of the new 'EXPORT_SYMBOL_GPL', which means the
extra four characters are entirely redundant.

But since those four extra characters trigger the check for illegal
modules in a way that just EXPORT_SYMBOL does not, it's useful to change
anyway. This action in no way indicates an admission that there is any
legal distinction between the two states, and in particular does not
indicate that the author believes that non-GPL modules may use symbols
exported with EXPORT_SYMBOL alone.

regards
gmsgms
gmsgms is offline   Reply With Quote
Old 01-26-07, 07:04 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

The first problem will be fixed in future NVIDIA Linux graphics driver releases. I didnt' see the other problem with Linux 2.6.20-rc5, so I guess it may be a recent regression or configuration specific. Please generate/attach an nvidia-bug-report.log file. FWIW, the NVIDIA kernel module does not explicitely reference pagefault_disable(), it's most likely picked up through a macro.
zander is offline   Reply With Quote
Old 01-26-07, 07:16 PM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

As far as I can tell, pagefault_enable() is still defined as an inline function in Linux 2.6.20-rc6's linux/uaccess.h, so it's not clear to me why it is reported as an unresolved symbol in your case. Please note that the ChangeLog excerpt you posted refers to changes made to the MTD driver, which the NVIDIA Linux graphics driver doesn't interact with.
zander is offline   Reply With Quote
Old 01-26-07, 08:07 PM   #4
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

I can't reproduce the pagefault_enable() problem with Linux 2.6.20-rc6.
zander is offline   Reply With Quote
Old 01-27-07, 10:34 AM   #5
gmsgms
Registered User
 
Join Date: Jan 2007
Posts: 5
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

Quote:
Originally Posted by zander
As far as I can tell, pagefault_enable() is still defined as an inline function in Linux 2.6.20-rc6's linux/uaccess.h
yes, you are right, sorry for the wrong bug report
I have applied the following patch to the vanilla kernel:
http://people.redhat.com/mingo/realt...2.6.20-rc6-rt1

Code:
root@gms1:/usr/src# grep EXPORT patch-2.6.20-rc6-rt1  | grep pagefault
+EXPORT_SYMBOL_GPL(pagefault_disable);
+EXPORT_SYMBOL_GPL(pagefault_enable);
Kind regards
gmsgms
gmsgms is offline   Reply With Quote
Old 01-27-07, 01:38 PM   #6
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

Looking at patch-2.6.20-rc6-rt2, pagefault_disable() is most likely picked up via kmap_atomic().
zander is offline   Reply With Quote
Old 01-29-07, 03:06 PM   #7
mistermachine
Registered User
 
Join Date: Nov 2004
Posts: 40
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

is there any known fix for this? i'm trying to install the nvidia module with 2.6.20-rc6-rt4 ...
mistermachine is offline   Reply With Quote
Old 01-29-07, 04:33 PM   #8
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

I double-checked, the symbol is picked up through pte_offset(), which uses kmap_atomic() if the kernel is configured with CONFIG_PREEMPT_RT and CONFIG_HIGHPTE; so I guess you can either disable the second option or change how the symbol in question is exported in your tree. The NVIDIA Linux graphics driver currently has to use pte_offset() for virtual to physical address translations.
zander is offline   Reply With Quote

Old 01-30-07, 04:09 PM   #9
gmsgms
Registered User
 
Join Date: Jan 2007
Posts: 5
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

I had already changed how the symbol is exported, but disabling CONFIG_HIGHPTE is much better

Thanks a lot
gms
gmsgms is offline   Reply With Quote
Old 02-05-07, 12:50 PM   #10
robert14
Registered User
 
Join Date: Feb 2007
Posts: 5
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

Disabling CONFIG_HIGHPTE didn't work for me do i've got to do anything else?
robert14 is offline   Reply With Quote
Old 02-06-07, 11:01 AM   #11
yourcomrade
Registered User
 
Join Date: Feb 2007
Posts: 1
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

On gentoo 2.6.20 when 'make oldconfig' I answered 'N' to paravirtualization support and now nvidia module compiles with the kernel. If I answer 'Y' the module does not build.
yourcomrade is offline   Reply With Quote
Old 02-06-07, 11:27 AM   #12
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: nvidia 1.0.9631 with kernel 2.6.20-rc6

@robert14: if you're still seeing problems with CONFIG_HIGHPTE (and/or CONFIG_PREEMPT_RT) and CONFIG_PARAVIRT disabled, please attach the complete /var/log/nvidia-installer.log file.

@yourcomrade: the NVIDIA Linux kernel module involuntarily picks up a GPL-only symbol via uname() if the Linux 2.6.20 kernel is built with CONFIG_PARAVIRT.
zander 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 09:21 PM.


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