Nvidia 340.108 fails to install with kernels 5.11.x - new patches needeed

Bug #1916640 reported by ppp
16
This bug affects 4 people
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-340 (Ubuntu)
Undecided
Unassigned

Bug Description

As usual I have opened this (no more) new bug report...

As ALWAYS happened in the past, EVERY TWO MONTHS new patches are needed for old Nvidia 340.108 drivers, that is, with each release of a new kernel...

Nvidia 340.108 fails to install with kernels 5.11.x - new patches needeed

Just to inform develepers that a new patch for Nvidia 340.108 and kernel 5.11 is not yet available here:

https://github.com/warpme/minimyth2/blob/master/script/nvidia/nvidia-340.108/files/

Anyway thanks for your great contribution to community and hope you publish new patched drivers without having to always report the same bug...

Good day to all the developers.

ppp (pigeonskiller)
description: updated
Revision history for this message
ppp (pigeonskiller) wrote :

Update

For those willing to be able to compile the above drivers there is a new patch at the following address:

https://raw.githubusercontent.com/graysky2//minimyth2/master/script/nvidia/nvidia-340.108/files/nvidia-340.108-fix-5.11-kernel-compile.patch

If anyone makes the new drivers available, I will be grateful and happy to act as a tester...

Revision history for this message
ppp (pigeonskiller) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-340 (Ubuntu):
status: New → Confirmed
Revision history for this message
ppp (pigeonskiller) wrote :

Update 3

Great Butterfly (kelebek333) again!

For those tired to wait for very late official drivers, here's where to find the unofficial drivers:

https://launchpad.net/~kelebek333/+archive/ubuntu/nvidia-legacy

Testing updated drivers since yesterday and working great!

Revision history for this message
Butterfly (kelebek333) wrote :

Hi,

Nvidia-340 driver added to PPA for hirsute (21.04) base. You can install nvdia-340 driver from PPA. The driver in PPA repository currently supports up to 5.12 of Linux kernel . https://launchpad.net/~kelebek333/+archive/ubuntu/nvidia-legacy

PPA repository supports bionic, focal, groovy and hirsute bases.

-----------------------------------

Nvidia-340 driver's official support for hirsute base is no longer available.

nvidia-graphics-drivers-340 (340.108-0ubuntu8) hirsute; urgency=medium

  * Drop support for the 340 driver, in favour of the nouveau driver
    since it is no longer supported by NVIDIA:
    https://nvidia.custhelp.com/app/answers/detail/a_id/3142/~/support-timeframes-for-unix-legacy-gpu-releases

 -- Alberto Milone <...> Wed, 10 Mar 2021 17:18:43 +0100

Revision history for this message
ppp (pigeonskiller) wrote : Kernel 5.12 patch for Nvidia 340.108

Hi Butterfly,

thanks for the info. Actually I am on Kubuntu 20.04 with kernel 5.11.8 but I'll test your drivers on Hirsute in a month as soon as it becomes available.

Just for info there is already a patch for kernel 5.12.
If interested you may take a look here:

http://rglinuxtech.com/?p=2896

Have a nice day.

------------------------------------------------------------

> Il 21/03/2021 00:23 Butterfly <email address hidden> ha scritto:
>
>
> Hi,
>
> Nvidia-340 driver added to PPA for hirsute (21.04) base. You can install
> nvdia-340 driver from PPA. The driver in PPA repository currently
> supports up to 5.12 of Linux kernel .
> https://launchpad.net/~kelebek333/+archive/ubuntu/nvidia-legacy
>
> PPA repository supports bionic, focal, groovy and hirsute bases.
>
> -----------------------------------
>
> Nvidia-340 driver's official support for hirsute base is no longer
> available.
>
> nvidia-graphics-drivers-340 (340.108-0ubuntu8) hirsute; urgency=medium
>
> * Drop support for the 340 driver, in favour of the nouveau driver
> since it is no longer supported by NVIDIA:
> https://nvidia.custhelp.com/app/answers/detail/a_id/3142/~/support-timeframes-for-unix-legacy-gpu-releases
>
> -- Alberto Milone <...> Wed, 10 Mar 2021 17:18:43 +0100
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1916640
>
> Title:
> Nvidia 340.108 fails to install with kernels 5.11.x - new patches
> needeed
>
> Status in nvidia-graphics-drivers-340 package in Ubuntu:
> Confirmed
>
> Bug description:
> As usual I have opened this (no more) new bug report...
>
> As ALWAYS happened in the past, EVERY TWO MONTHS new patches are
> needed for old Nvidia 340.108 drivers, that is, with each release of a
> new kernel...
>
> Nvidia 340.108 fails to install with kernels 5.11.x - new patches
> needeed
>
> Just to inform develepers that a new patch for Nvidia 340.108 and
> kernel 5.11 is not yet available here:
>
> https://github.com/warpme/minimyth2/blob/master/script/nvidia/nvidia-340.108/files/
>
> Anyway thanks for your great contribution to community and hope you
> publish new patched drivers without having to always report the same
> bug...
>
> Good day to all the developers.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1916640/+subscriptions

Revision history for this message
Butterfly (kelebek333) wrote :

Hi @pigeonskiller,

nvidia-340 driver is not required any patch for kernel 5.12.

Revision history for this message
Ejmarkow (ejmarkow) wrote :
Download full text (8.6 KiB)

Hi Butterfly (kelebek333),

On the contrary, an Nvidia 340.108 patch is probably required for Linux Kernel 5.12.

I've been testing Linux kernel 5.12 with the all the Nvidia 340.108 patches including for kernel 5.11) and I'm getting random 'core dump' crashes. It works fine with kernel 5.11, but not with 5.12.

Here is some info:

uname -a:
Linux galicia 5.12.0-rc5-git-5e46d1b-Pogorze-Karpackie-CUSTOM-KERNEL #3 SMP Wed Mar 31 08:36:13 CEST 2021 x86_64 GNU/Linux

dmesg:
NVRM: loading NVIDIA UNIX x86_64 Kernel Module 340.108 Wed Dec 11 11:06:58 PST 2019

nvidia_uvm: Loaded the UVM driver, major device number 243

lsmod:
Both nvidia & nvidia_uvm modules are loaded fine

The issue:

Interesting thing is, the shim build for nvidia.ko and nvidia_uvm.ko is compiling FINE, with NO ERRORS during or after the build. So, no problem there.

The problem is, I'm getting a random 'core dump' when navigating in the Google Chrome browser. Chrome isn't the problem though because it is not mentioned in the 'core dump', but "nvidia_drv.so" is mentioned.

What happens is: Chrome will close first, Xorg will crash and then I'm logged out of Lightdm.

Both Xorg.bin and Lightdm are mentioned in the following 'core dump', along with Nvidia. Here is the output for journalctl and dmesg (also link to pastebin [ https://pastebin.com/raw/9DXR6MY1 ]:

# journalctl

Apr 09 01:15:50 galicia systemd[1]: Starting Hostname Service...
Apr 09 01:15:51 galicia dbus-daemon[457]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 09 01:15:51 galicia systemd[1]: Started Hostname Service.
Apr 09 01:16:21 galicia systemd[1]: systemd-hostnamed.service: Succeeded.
Apr 09 01:20:30 galicia nscd[476]: 476 checking for monitored file `/etc/services': No such file or directory
Apr 09 01:20:45 galicia nscd[476]: 476 checking for monitored file `/etc/services': No such file or directory
Apr 09 01:24:13 galicia smartd[463]: Device: /dev/sda [SAT], SMART Usage Attribute: 195 Hardware_ECC_Recovered changed from 71 to 70
Apr 09 01:27:55 galicia systemd[1]: Created slice system-systemd\x2dcoredump.slice.
Apr 09 01:27:55 galicia systemd[1]: Started Process Core Dump (PID 16933/UID 0).
Apr 09 01:27:58 galicia systemd-coredump[16934]: Process 1126 (Xorg.bin) of user 0 dumped core.

                                                 Stack trace of thread 1126:
                                                 #0 0x00007f34154764a5 raise (libc.so.6 + 0x3d4a5)
                                                 #1 0x00007f341545f864 abort (libc.so.6 + 0x26864)
                                                 #2 0x0000556b3271138c OsAbort (Xorg.bin + 0x1c838c)
                                                 #3 0x0000556b32712130 FatalError (Xorg.bin + 0x1c9130)
                                                 #4 0x0000556b32714df9 n/a (Xorg.bin + 0x1cbdf9)
                                                 #5 0x00007f341561ba30 __restore_rt (libpthread.so.0 + 0x13a30)
                                                 #6 0x00007f34147fd986 n/a (libglx.so + 0xa1f986)
                                                 #7 0x00007f3410ad23c7 ...

Read more...

Revision history for this message
Ejmarkow (ejmarkow) wrote :

Bug Report Continued from #8:

Also included in the Core Dump is "libglx.so", related to Nvidia.

So, that's 2 Nvidia files: libglx.so & nvidia_drv.so

galicia:/home/ejm # cd /usr/lib64/xorg/modules/extensions
galicia:/usr/lib64/xorg/modules/extensions # ls
libglx.so libglx.so.340.108 libvnc.so xorg
galicia:/usr/lib64/xorg/modules/extensions # ls -al
total 16840
drwxr-xr-x 3 root root 4096 Apr 5 09:18 .
drwxr-xr-x 5 root root 4096 Apr 5 09:18 ..
lrwxrwxrwx 1 root root 17 Apr 5 09:18 libglx.so -> libglx.so.340.108
-rwxr-xr-x 1 root root 16603688 Apr 5 09:18 libglx.so.340.108
-rwxr-xr-x 1 root root 625424 Mar 26 07:39 libvnc.so
drwxr-xr-x 2 root root 4096 Mar 13 17:35 xorg
galicia:/usr/lib64/xorg/modules/extensions # cd /usr/lib64/xorg/modules/drivers
galicia:/usr/lib64/xorg/modules/drivers # ls
fbdev_drv.so modesetting_drv.so nouveau_drv.so nv_drv.so nvidia_drv.so vesa_drv.so
galicia:/usr/lib64/xorg/modules/drivers # ls -al
total 10104
drwxr-xr-x 2 root root 4096 Apr 5 09:18 .
drwxr-xr-x 5 root root 4096 Apr 5 09:18 ..
-rwxr-xr-x 1 root root 27792 Mar 9 04:05 fbdev_drv.so
-rwxr-xr-x 1 root root 115504 Mar 10 12:42 modesetting_drv.so
-rwxr-xr-x 1 root root 212536 Mar 26 04:09 nouveau_drv.so
-rwxr-xr-x 1 root root 176072 Mar 26 04:08 nv_drv.so
-rwxr-xr-x 1 root root 9761088 Apr 5 09:18 nvidia_drv.so
-rwxr-xr-x 1 root root 36040 Mar 26 04:04 vesa_drv.so

Revision history for this message
Butterfly (kelebek333) wrote :

Not required any patch for Linux 5.12 series. Did you read the explanations about module-path on PPA? https://launchpad.net/~kelebek333/+archive/ubuntu/nvidia-legacy

Revision history for this message
Ejmarkow (ejmarkow) wrote :

Thank you so much for this information Butterfly (kelebek333), worked perfectly!

All I needed was a simple 10-line xorg.conf file in /etc/X11. Fantastic!

Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

Package from Butterfly (kelebek333) works with Hirsute. Thanks for the work, guys!!

Revision history for this message
Butterfly (kelebek333) wrote :

No patch required for kernel 5.13.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers