LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-09-2014, 03:00 PM   #16
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,686

Rep: Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801

It should be 3.14
 
Old 05-09-2014, 03:06 PM   #17
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by willysr View Post
Which kernel are you using?
I think you are running a huge kernel which built everything inside the kernel
Try switching to generic kernel (don't forget to create initrd to support your filesystems) and reinstall nvidia driver
It should work out of the box
Do not worry, I use the generic smp kernel with a standard (for me) initrd.

It's very clear that the problem is something about 3.14.3's debugging combined with closed source nvidia driver.

In other words, this time, Linus said: no kernel debugging for you, if you want the closed source driver made by NVIDIA. As if the kernel debugging worked previous, when it see nvidia.ko loaded... :P
 
Old 05-09-2014, 03:07 PM   #18
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,548

Rep: Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557
Quote:
Originally Posted by Darth Vader View Post
BUT, I believe that is the time to ask P.V. a question: While I understand that a kernel with debug support is very fine for him, or for a kernel developer, most likely, why Slackware ship a debug enabled kernel as default, considering that the typical slacker is eventually an fine connoisseur of the noble art of BASH scripting language?
That's a good question. The CONFIG_KERNEL_DEBUG option has only been active for about 4 years, and was off previously. Seems a bit strange that the option would interfere with the nVidia driver, though, as nearly all distributions enable it.

But why is that? The only possible clue I see in the ChangeLog is something about "improving kernel module compatibility".

It seems like this option might also introduce a performance hit.

If I can get any confirmation that unsetting this option fixes the proprietary driver for some more people, we'll try turning it off in the next round of kernels. Unless anyone can remember why it was turned on in the first place, and that turns out to still be a good idea.
 
2 members found this post helpful.
Old 05-09-2014, 03:10 PM   #19
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,686

Rep: Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801Reputation: 1801
I don't think a debugging feature will cause a broken driver installation as i used 3.14.3 on my desktop and i'm able to install 304.121 driver on my system without having the above problem.
FYI i'm using generic kernel as well
 
Old 05-09-2014, 03:10 PM   #20
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by ReaperX7 View Post
Patrick ships what he feels he needs to for a broad audience of users, admins, and developers, and leaves the rest up to you.
I believe that kernel debugging is very useful for a kernel developer or an advanced system builder/package developer. Also, I believe that those persons known very well how to build a debug kernel.

And, we are in the middle of the Linus's Holly War Against The Closed Source Drivers. Weapon of choice, debugging.
 
Old 05-09-2014, 03:14 PM   #21
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by willysr View Post
I don't think a debugging feature will cause a broken driver installation as i used 3.14.3 on my desktop and i'm able to install 304.121 driver on my system without having the above problem.
FYI i'm using generic kernel as well
That's an fine broken build, not a broken installation. Something like:

Code:
WARNING: could not find /tmp/SBo/NVIDIA-Linux-x86-331.67/kernel/.nv-kernel.o.cmd for /tmp/SBo/NVIDIA-Linux-x86-331.67/kernel/nv-kernel.o
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol 'mutex_lock_nested'
make[2]: *** [__modpost] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-3.14.3'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [nvidia.ko] Error 1

Last edited by Darth Vader; 05-09-2014 at 03:15 PM.
 
Old 05-09-2014, 03:16 PM   #22
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,548

Rep: Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557Reputation: 8557
Quote:
Originally Posted by Darth Vader View Post
And, we are in the middle of the Linus's Holly War Against The Closed Source Drivers. Weapon of choice, debugging.
I don't quite know what you mean by this, but if a proprietary (GPL incompatible) kernel module is trying to load something in the kernel in a way that would violate the kernel's license, the kernel has every right to block this. But, if that is what's happening here, I still fail to see what the kernel debugging option has to do it.
 
1 members found this post helpful.
Old 05-09-2014, 04:14 PM   #23
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by volkerdi View Post
That's a good question. The CONFIG_KERNEL_DEBUG option has only been active for about 4 years, and was off previously. Seems a bit strange that the option would interfere with the nVidia driver, though, as nearly all distributions enable it.

But why is that? The only possible clue I see in the ChangeLog is something about "improving kernel module compatibility".

It seems like this option might also introduce a performance hit.

If I can get any confirmation that unsetting this option fixes the proprietary driver for some more people, we'll try turning it off in the next round of kernels. Unless anyone can remember why it was turned on in the first place, and that turns out to still be a good idea.
OK, then we have to wait a little... Or another fellow slacker will find a better solution.

In other hand, I re-verified that I used for my custom build, the generic smp config as template, etc...

Yet again, the NVIDIA 331.67 kernel module builds fine, and works fine on kernel without debugging. Also, it builds fine and works fine on the standard smp generic kernel, IF we fake the driver license as GPL.

Then, like I said, disabling the entire debugging was a strong hand, and, of course, the build can be refined to right identify which debugging option create head-caches to the current NVIDIA driver.
 
Old 05-09-2014, 04:21 PM   #24
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I think debug should stay on. Why ?

1) Not everyone uses the nvidia drivers.
2) The nvidia drivers do NOT come with Slackware.
3) The nouveau driver works fine with most nvidia cards.
4) The nvidia devs can fix this bug, and they should.
 
Old 05-09-2014, 04:22 PM   #25
cgorac
Member
 
Registered: Oct 2009
Posts: 146

Original Poster
Rep: Reputation: 87
I confirm that rebuilding the kernel with CONFIG_KERNEL_DEBUG option set to off is solving the problem.

Cases when older versions of NVIDIA driver used are not relevant here - it's probably simply that offending mutex_lock_nested() call is not used in these drivers source code, and that this is why the older version of the driver will compile fine even when kernel built with CONFIG_KERNEL_DEBUG set to on.

I've posted a message to the relevant NVIDIA forum about this: https://devtalk.nvidia.com/default/t...-build-option/. Don't know are they going to care about it, and I'm not sure either what exactly CONFIG_KERNEL_DEBUG has to do with all of this, but in any case I'd vote for reverting this option to off for now in Slackware kernels.
 
Old 05-09-2014, 04:27 PM   #26
cgorac
Member
 
Registered: Oct 2009
Posts: 146

Original Poster
Rep: Reputation: 87
Quote:
Originally Posted by metaschima View Post
3) The nouveau driver works fine with most nvidia cards.
The nouveau driver is probably nowhere near NVIDIA proprietary driver with regards to 3D graphics capabilities and performance. Besides, there doesn't exist any sort of support for using NVIDIA GPUs for GPGPU calculations besides NVIDIA proprietary driver (in particular, this is my use case). So it's not that simple.
 
Old 05-09-2014, 04:31 PM   #27
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by volkerdi View Post
I don't quite know what you mean by this, but if a proprietary (GPL incompatible) kernel module is trying to load something in the kernel in a way that would violate the kernel's license, the kernel has every right to block this.
Well, the behavior of the NVIDIA driver as good kernel citizen, can be criticized by the kernel developers and can be defended by NVIDIA, so, I can't comment much on that problem...

But, everyone know that Linus Torvalds do not love the closed source drivers. And I agree with his POV, even strongly, after I started to walk on the ARM jungle, where we have wars on closed drivers, with almost all SOC companies...

But, also I arrived at conclusion that Linus love to make headcaches to closed source developers, i.e. NVIDIA or AMD/ATI, and he use the kernel debugging support as an innocent and smiling way to do it.

Quote:
Originally Posted by volkerdi View Post
But, if that is what's happening here, I still fail to see what the kernel debugging option has to do it.
I believe that the NVIDIA kernel module in the latest iterations, tries to use for his debugging, an debugging function that is now, on 3.14.3, reserved only for GPL drivers. You know, the closed source driver taints the kernel so the right debugging is not possible, etc...

Last edited by Darth Vader; 05-09-2014 at 04:43 PM.
 
Old 05-09-2014, 04:37 PM   #28
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by metaschima View Post
I think debug should stay on. Why ?

1) Not everyone uses the nvidia drivers.
2) The nvidia drivers do NOT come with Slackware.
3) The nouveau driver works fine with most nvidia cards.
4) The nvidia devs can fix this bug, and they should.
BUT, when you used that kernel debugging? You are kindly, then, to say when you are used the GDB to debug the kernel, last time?
 
Old 05-09-2014, 05:24 PM   #29
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Well, ok, I guess turning it off won't affect most people, and the people it will affect usually build their own kernels, so looking at it that way, turn it off.

I checked my custom kernel config and it is off although I did turn it on for a while in the past as I was debugging some kernel issues.

Last edited by metaschima; 05-09-2014 at 05:25 PM.
 
Old 05-09-2014, 05:30 PM   #30
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
The debug options also causes the broadcom-sta wl driver to fail as well (See this thread).

Last edited by turtleli; 05-09-2014 at 05:34 PM. Reason: Clarity
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NVIDIA kernel module version is different from NVIDIA driver lalik Linux - Newbie 2 09-16-2010 03:32 PM
Nvidia Driver will not install for Dual Screen LCD - Driver is mde for Xen Kernel isinkaye Linux - Software 1 02-20-2010 04:31 AM
Kernel 2.6.8 Nvidia Driver Thoron Debian 1 05-05-2005 10:05 PM
Nvidia driver and Kernel 2.6.3 jriis Debian 6 04-15-2004 03:00 AM
kernel 2.6.3--bk8 and NVIDIA-Linux-x86-1.0-5336 video driver from Nvidia zdenkod Linux - Hardware 2 03-09-2004 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration