View previous topic :: View next topic |
Author |
Message |
mDup Apprentice
Joined: 14 Apr 2006 Posts: 212
|
Posted: Wed Aug 17, 2016 2:46 pm Post subject: nvidia-drivers-370.23 gentoo-sources-4.7.1 |
|
|
emerge x11-drivers/nvidia-drivers-370.23 fails
Code: | FATAL: modpost: GPL-incompatible module nvidia-drm.ko uses GPL-only symbol 'mutex_destroy'
|
emerge x11-drivers/nvidia-drivers-367.35-r1 succeeds. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Wed Aug 17, 2016 3:14 pm Post subject: |
|
|
:(
Looks like a "complain to nvidia" problem or you could work around it by hacking your own kernel that will never be accepted upstream... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Cynede Retired Dev
Joined: 30 Nov 2012 Posts: 56
|
|
Back to top |
|
|
mDup Apprentice
Joined: 14 Apr 2006 Posts: 212
|
Posted: Wed Aug 17, 2016 4:06 pm Post subject: |
|
|
eccerr0r wrote: |
Looks like a "complain to nvidia" problem or you could work around it by hacking your own kernel that will never be accepted upstream... |
OK: I see, for now I leave kernel untouched and I hack modpost just to work around particular nvidia GPL issue. |
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4553 Location: Germany
|
Posted: Wed Aug 17, 2016 9:28 pm Post subject: |
|
|
Hm, nvidia-drivers-370.23 build and works here fine with gentoo-sources:4.7.1 Code: | equery b nvidia-drm.ko
* Searching for nvidia-drm.ko ...
x11-drivers/nvidia-drivers-370.23 (/lib/modules/4.7.1-gentoo/video/nvidia-drm.ko) |
Have you old unneeded patches in /etc/portage/patches/x11-drivers/nvidia-drivers/ ? |
|
Back to top |
|
|
anomaly257 n00b
Joined: 04 Mar 2008 Posts: 3
|
Posted: Thu Aug 18, 2016 12:45 am Post subject: |
|
|
Try setting CONFIG_DEBUG_MUTEXES=n in your kernel config and recompiling. This fixed it for me here. Perhaps it's a kernel bug that this symbol is flagged GPL only when debugging is enabled? Or maybe it doesn't exist otherwise. Anyway this is the quick and simple fix, assuming nothing else you use requires mutex debugging to be enabled. |
|
Back to top |
|
|
jorgicio n00b
Joined: 17 Oct 2014 Posts: 47
|
|
Back to top |
|
|
jorgicio n00b
Joined: 17 Oct 2014 Posts: 47
|
Posted: Sun Aug 21, 2016 12:20 am Post subject: |
|
|
I found a fix for the 367.35 version and works fine with Kernel 4.7:
Just apply this patch:
http://pastebin.com/cw1tncgm |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Mon Aug 22, 2016 10:12 am Post subject: |
|
|
anomaly257 wrote: | Try setting CONFIG_DEBUG_MUTEXES=n in your kernel config and recompiling. This fixed it for me here. Perhaps it's a kernel bug that this symbol is flagged GPL only when debugging is enabled? Or maybe it doesn't exist otherwise. Anyway this is the quick and simple fix, assuming nothing else you use requires mutex debugging to be enabled. |
Worked for me.
Only functionality loss now is that this kernel breaks the acpi event for toggle touchpad functionality. |
|
Back to top |
|
|
jorgicio n00b
Joined: 17 Oct 2014 Posts: 47
|
Posted: Sun Sep 11, 2016 3:55 pm Post subject: |
|
|
A workaround:
Patch the kernel with this, or modify the respective file:
http://pastebin.com/mTtDpN2K
Code: |
--- a/kernel/locking/mutex-debug.c 2016-01-10 20:01:32.000000000 -0300
+++ b/kernel/locking/mutex-debug.c 2016-09-11 02:38:11.331048350 -0300
@@ -117,4 +117,4 @@
lock->magic = NULL;
}
-EXPORT_SYMBOL_GPL(mutex_destroy);
+EXPORT_SYMBOL(mutex_destroy);
|
Then rebuild the kernel and then try to install nvidia-drivers 370.28. Works for me. |
|
Back to top |
|
|
stqn n00b
Joined: 07 Apr 2015 Posts: 51
|
Posted: Fri Dec 16, 2016 12:09 am Post subject: |
|
|
anomaly257 wrote: | Try setting CONFIG_DEBUG_MUTEXES=n in your kernel config and recompiling. |
Thanks, worked for me with nvidia-drivers 375.26 and linux 4.4.38. |
|
Back to top |
|
|
Vrenn Guru
Joined: 15 Dec 2004 Posts: 318
|
Posted: Sun Dec 25, 2016 5:12 pm Post subject: |
|
|
Where do I find CONFIG_DEBUG_MUTEXES? _________________ With nice greetings
Vrenn |
|
Back to top |
|
|
Vrenn Guru
Joined: 15 Dec 2004 Posts: 318
|
Posted: Sun Dec 25, 2016 5:23 pm Post subject: |
|
|
Answer by myself: I didn't find it, but I disabled "kernel hacking -> Kernel debugging" (no idea if it was enabled by default) and that made it _________________ With nice greetings
Vrenn |
|
Back to top |
|
|
stqn n00b
Joined: 07 Apr 2015 Posts: 51
|
Posted: Sun Dec 25, 2016 5:51 pm Post subject: |
|
|
Vrenn wrote: | Where do I find CONFIG_DEBUG_MUTEXES? |
In make menuconfig (or genkernel --menuconfig) you can press "/" then "DEBUG_MUTEXES" to search for the option, then "1" to go to the result and change it. |
|
Back to top |
|
|
Vrenn Guru
Joined: 15 Dec 2004 Posts: 318
|
Posted: Mon Dec 26, 2016 2:27 pm Post subject: |
|
|
Thanks for the trick, never new that.
This will make things more easy. _________________ With nice greetings
Vrenn |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
ticoombs n00b
Joined: 27 Dec 2016 Posts: 2
|
Posted: Tue Dec 27, 2016 9:10 am Post subject: |
|
|
stqn wrote: | anomaly257 wrote: | Try setting CONFIG_DEBUG_MUTEXES=n in your kernel config and recompiling. |
Thanks, worked for me with nvidia-drivers 375.26 and linux 4.4.38. |
Confirming working with v375.26 and Kernel 4.4.39 _________________ emerge cpu |
|
Back to top |
|
|
sabayonino Veteran
Joined: 03 Jan 2012 Posts: 1014
|
Posted: Wed Jan 25, 2017 12:47 pm Post subject: |
|
|
ticoombs wrote: | stqn wrote: | anomaly257 wrote: | Try setting CONFIG_DEBUG_MUTEXES=n in your kernel config and recompiling. |
Thanks, worked for me with nvidia-drivers 375.26 and linux 4.4.38. |
Confirming working with v375.26 and Kernel 4.4.39 |
Hi,
this tips works for me also
(nv-drivers 375.26 , Kernel 4.4.39)
tnx _________________ LRS i586 on G.Drive
LRS x86-64 EFI on MEGA |
|
Back to top |
|
|
fabien29200 n00b
Joined: 12 Jun 2006 Posts: 32
|
Posted: Fri May 26, 2017 1:50 pm Post subject: |
|
|
anomaly257 wrote: | Try setting CONFIG_DEBUG_MUTEXES=n in your kernel config and recompiling. |
Did the job for me !
Kernel : 4.9.16-gentoo and nvidia drivers : 381.22
Thanks ! |
|
Back to top |
|
|
keet Guru
Joined: 09 Sep 2008 Posts: 568
|
Posted: Mon Jun 19, 2017 11:44 pm Post subject: |
|
|
This happened to me, too, when I decided to be lazy for once and use a generic kernel instead of configuring it for myself. Thanks! |
|
Back to top |
|
|
|