NVidia drivers and kernel 5.9

Kernels & Hardware, configuring network, installing services

NVidia drivers and kernel 5.9

Postby Herve5 » 2020-11-03 16:42

Hello,
After having almost trashed my config upgrading to kernel 5.9 with Nvidia drivers that appeared to be incompatible*, I see today that a range of upgrade is appearing in my repositories.
Can someone confirm that this large list of Nvidia package upgrades does solve the trouble with kernel 5.9?
TIA!
Hervé
(*) https://forums.developer.nvidia.com/t/nvidia-driver-not-yet-supported-for-linux-kernel-5-9/157263
--
Hervé S.
Herve5
 
Posts: 10
Joined: 2019-02-21 08:59
Location: France

Re: NVidia drivers and kernel 5.9

Postby sunrat » 2020-11-03 21:10

It would help if you give more information when asking a question like this. What version of Debian? We presume stable. What version of nvidia driver?
It's been reported the latest version in unstable works with kernel 5.9 and that appears to be now available in buster-backports so try that.
It's never a good idea to install the latest kernel as soon as it's available if you use Nvidia driver, there is always a delay in compatibility for almost every kernel point release.
This is also a very commonly asked question in the forum.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: NVidia drivers and kernel 5.9

Postby cantsin » 2020-11-03 21:26

I guess you are referring to Debian testing/Bullseye?

Indeed, I had the same problem that nvidia-kernel-dkms was not building with Kernel 5.9, which has been resolved with the package updates today.

But I'm still stuck with the problem that OpenCL doesn't work (according to the output of clinfo and darktable-cltest, as well as Davinci Resolve), although nvidia-opencl-icd is installed, in the newest version (450.80.02-1) . Any help would be extremely appreciated...
cantsin
 
Posts: 2
Joined: 2020-11-03 20:56

Re: NVidia drivers and kernel 5.9

Postby sunrat » 2020-11-03 23:17

From a post on siduction forum:
The main nvidia module will work with kernel 5.9. However, the nvidia-uvm module will not. The upshot is that those that need CUDA and CUDA-based functions (like NVDEC/NVENC) should keep a 5.8 kernel handy until Nvidia releases a driver that works around the GPL symbol issue.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: NVidia drivers and kernel 5.9

Postby Herve5 » 2020-11-04 12:40

Thank you Sunrat, Cantsin! Your quick reactions are greatly appreciated :D
(I'm indeed on Testing)
cantsin wrote:(...) But I'm still stuck with the problem that OpenCL doesn't work (according to the output of clinfo and darktable-cltest, (...)

Horror, accelerating Darktable is actually the very reason I paid for a separate NVidia card :D
So, I'll quietly wait.
I'm going to update the existing NVidia drivers, though. Am I correct in thinking this is OK while staying on kernel 5.8 for the moment?
Thank you again!
Hervé
--
Hervé S.
Herve5
 
Posts: 10
Joined: 2019-02-21 08:59
Location: France

Re: NVidia drivers and kernel 5.9

Postby cantsin » 2020-11-04 19:05

sunrat wrote:From a post on siduction forum:
The main nvidia module will work with kernel 5.9. However, the nvidia-uvm module will not. The upshot is that those that need CUDA and CUDA-based functions (like NVDEC/NVENC) should keep a 5.8 kernel handy until Nvidia releases a driver that works around the GPL symbol issue.


Just to confirm - this solved the issue! What a great help, Sunrat! (It's no problem, btw., to install kernel 5.8 from the Buster backport archive under Bulleye/testing.)

All CUDA/OpenCL-based applications are working again.
cantsin
 
Posts: 2
Joined: 2020-11-03 20:56

Re: NVidia drivers and kernel 5.9

Postby Herve5 » 2020-11-15 11:02

cantsin wrote:All CUDA/OpenCL-based applications are working again.

Alas, not for me : if I boot on 5.8 the result of darktable-cltest is positive showing among other
Code: Select all
0.070265 [opencl_init]
0.070387 [opencl_init] could not find opencl runtime library 'libOpenCL'
0.070423 [opencl_init] could not find opencl runtime library 'libOpenCL.so'
0.070493 [opencl_init] found opencl runtime library 'libOpenCL.so.1'
0.070508 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded
2.945598 [opencl_init] found 1 platform

But if I boot on 5.9, the same command says
Code: Select all
0.054556 [opencl_init]
0.054678 [opencl_init] could not find opencl runtime library 'libOpenCL'
0.054714 [opencl_init] could not find opencl runtime library 'libOpenCL.so'
0.054789 [opencl_init] found opencl runtime library 'libOpenCL.so.1'
0.054804 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded
2.947080 [opencl_init] could not get platforms: -1001
2.947092 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
2.947096 [opencl_init] initial status of opencl enabled flag is OFF.

(what does mean that "could not get platforms"?)
I don't know what to do :(
--
Hervé S.
Herve5
 
Posts: 10
Joined: 2019-02-21 08:59
Location: France

Re: NVidia drivers and kernel 5.9

Postby sunrat » 2020-11-15 11:17

Herve5 wrote:
cantsin wrote:All CUDA/OpenCL-based applications are working again.

Alas, not for me ...
I don't know what to do :(

Use 5.8 kernel until it's fixed in Nvidia driver. That's what cantsin said they did to work around it.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3316
Joined: 2006-08-29 09:12
Location: Melbourne, Australia


Return to System configuration

Who is online

Users browsing this forum: arochester and 25 guests

fashionable