2.6.12-rc1-mm3: class_simple API
I'm really sorry for bringing such a "flame-creative" topic to the list, but Greg asked me to do so after a short discussion in private.
Problem is that the latest bk-driver-core patch included in the 2.6.12-rc1-mm3 removes class_simple API without providing EXPORT_SYMBOL'ed (as opposed to EXPORT_SYMBOL_GPL) alternative.
As the result I don't see a way how out-of-the-kernel non-GPL drivers (nvidia in my case) could be fixed.
So, basically the questions are:
- Whether the changes like the one above are "the right thing to do" ?
- What's the best way to deal with this particular issue ?
P.S. Please CC me, I'm not subscribed to the list.
Signature · 2 lines
With best wishes, Nick Orlov.
Quoted 2 lines · Nick Orlov
- Whether the changes like the one above are "the right thing to do" ?
Yes.
Quoted 1 line
- What's the best way to deal with this particular issue ?
Change the code to not use these functions. Look at the vmware code for examples of how to do this.
That was simple :)
thanks,
greg k-h
Quoted 5 lines · Greg KH
Quoted 2 lines · Nick Orlov
- Whether the changes like the one above are "the right thing to do" ?
Yes.
Questionable.
Quoted 4 lines
Quoted 2 lines
- What's the best way to deal with this particular issue ?
Change the code to not use these functions.
In other words "forget about nvidia <-> udev interaction" ? I do not think it is acceptable.
Quoted 1 line
Look at the vmware code for examples of how to do this.
Is there a place where I can download the code example without registering / paying license fee ?
P.S. Please CC me, I'm not subscribed to the list.
Signature · 2 lines
With best wishes, Nick Orlov.
Quoted 14 lines · Nick Orlov
Quoted 5 lines · Greg KH
Quoted 2 lines · Nick Orlov
- Whether the changes like the one above are "the right thing to do" ?
Yes.
Questionable.
Quoted 4 lines
Quoted 2 lines
- What's the best way to deal with this particular issue ?
Change the code to not use these functions.
Quoted 7 lines
In other words "forget about nvidia <-> udev interaction" ? I do not think it is acceptable.
Quoted 1 line
Look at the vmware code for examples of how to do this.
Is there a place where I can download the code example without registering / paying license fee ?
The file vmware-any-any-update*.tar.gz contains the source to all of the VMWare kernel modules. IIRC I found the URL in the VMWare newsgroups and they're maintained unofficially by a VMWare employee.
Quoted 12 lines
P.S. Please CC me, I'm not subscribed to the list.Signature · 8 lines
With best wishes, Nick Orlov. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Quoted 6 lines · Nick Orlov
Problem is that the latest bk-driver-core patch included in the 2.6.12-rc1-mm3 removes
class_simpleAPI without providing EXPORT_SYMBOL'ed (as opposed toEXPORT_SYMBOL_GPL) alternative.As the result I don't see a way how out-of-the-kernel non-GPL drivers (nvidia in my case) could be fixed.
Umm.. try running the latest drivers?
[~]2 uname -a
Linux turing-police.cc.vt.edu 2.6.12-rc1-mm3 #1 PREEMPT Sat Mar 26 22:07:50 EST 2005 i686 i686 i386 GNU/Linux [~]2 lsmod | grep nvidia
nvidia 3912636 14
agpgart 25672 2 nvidia,intel_agp
[~]2 grep -i nvidia /var/log/kernmsg
Mar 30 21:58:19 turing-police kernel: [4294721.402000] nvidia: module license 'NVIDIA' taints kernel. Mar 30 21:58:19 turing-police kernel: [4294721.434000] NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-7167 Fri Feb 25 09:08:22 PST 2005
(All usual disclaimers about binary modules apply. If 7167 doesn't work for you, bug NVidia (Zander is usually quite helpful with providing patches) and/or check the NVidia/Linux message boards (there's a link on the NVidia driver download page).
Quoted 11 lines · On Wed, Mar 30, 2005 at 10:19:42PM -0500, [email protected] wrote:
Quoted 6 lines · Nick Orlov
Problem is that the latest bk-driver-core patch included in the 2.6.12-rc1-mm3 removes
class_simpleAPI without providing EXPORT_SYMBOL'ed (as opposed toEXPORT_SYMBOL_GPL) alternative.As the result I don't see a way how out-of-the-kernel non-GPL drivers (nvidia in my case) could be fixed.
Umm.. try running the latest drivers?
Quoted 9 lines
[~]2 uname -a
Linux turing-police.cc.vt.edu 2.6.12-rc1-mm3 #1 PREEMPT Sat Mar 26 22:07:50 EST 2005 i686 i686 i386 GNU/Linux [~]2 lsmod | grep nvidia
nvidia 3912636 14
agpgart 25672 2 nvidia,intel_agp
[~]2 grep -i nvidia/var/log/kernmsgMar 30 21:58:19 turing-police kernel: [4294721.402000] nvidia: module license 'NVIDIA' taints kernel. Mar 30 21:58:19 turing-police kernel: [4294721.434000] NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-7167 Fri Feb 25 09:08:22 PST 2005
I _am_ using the latest NVIDIA driver:
nick@nikolas:~$ dmesg | grep NVIDIA nvidia: module license 'NVIDIA' taints kernel. NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-7167 Fri Feb 25 09:08:22 PST 2005
nick@nikolas:~$ ll /lib/modules/`uname -r`/nvidia total 4315 -rw-r--r-- 1 root root 4399395 2005-03-27 12:29 nvidia.ko
If you are not relying on udev being able to create nvidia device nodes you are not affected.
Signature · 2 lines
With best wishes, Nick Orlov.