Bug 29097 - Nvidia Drivers fail to update using DKMS from 460.67 to 460.80
Summary: Nvidia Drivers fail to update using DKMS from 460.67 to 460.80
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-09 11:18 CEST by Zombie Ryushu
Modified: 2021-06-15 10:09 CEST (History)
1 user (show)

See Also:
Source RPM: nvidia460
CVE:
Status comment:


Attachments

Description Zombie Ryushu 2021-06-09 11:18:09 CEST
Nvidia Drivers fail to update using DKMS from 460.67 to 460.80. It seems to always think 460.80 is installed. even if you rmmod/modprobe or reboot.
Comment 1 Dave Hodgins 2021-06-09 13:23:04 CEST
On one of my Mageia 8 installs ...
# dkms status|grep nv
nvidia-current, 460.84-1.mga8.nonfree, 5.10.41-server-1.mga8, x86_64: installed

What is the output of dkms status|grep nv on that install?

CC: (none) => davidwhodgins

Dave Hodgins 2021-06-09 13:34:18 CEST

Assignee: bugsquad => kernel

Comment 2 Zombie Ryushu 2021-06-10 12:50:24 CEST
Okay, so here is the output you requested:

dkms status|grep nv
nvidia-current, 460.84-1.mga8.nonfree, 5.10.30-desktop-1.mga8, x86_64: installed

Now here is the output of dmesg:

[ 1113.183355] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  460.67  Thu Mar 11 00:11:45 UTC 2021
[ 1114.335509] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  460.67  Thu Mar 11 00:03:18 UTC 2021
Comment 3 Zombie Ryushu 2021-06-10 12:53:53 CEST
even after uninstallation of nvidia-current entirely from the system, files still remain.

/usr/lib/modules/5.10.20-desktop-2.mga8/dkms/drivers/char/drm/nvidia-current.ko.xz
/usr/lib/modules/5.10.25-desktop-1.mga8/dkms/drivers/char/drm/nvidia-current.ko.xz
/usr/lib/modules/5.10.27-desktop-1.mga8/dkms/drivers/char/drm/nvidia-current.ko.xz
/usr/lib/modules/5.10.30-desktop-1.mga8/dkms/drivers/char/drm/nvidia-current.ko.xz
Comment 4 Zombie Ryushu 2021-06-10 12:54:57 CEST
# rpm -q --whatprovides /usr/lib/modules/5.10.30-desktop-1.mga8/dkms/drivers/char/drm/nvidia-current.ko.xz
file /usr/lib/modules/5.10.30-desktop-1.mga8/dkms/drivers/char/drm/nvidia-current.ko.xz is not owned by any package
Comment 5 Zombie Ryushu 2021-06-10 13:12:43 CEST
]# ls -l /usr/lib/modules/5.10.30-desktop-1.mga8/dkms/drivers/char/drm/
total 23460
-rw-r--r-- 1 root root 23141004 Apr 18 23:43 nvidia-current.ko.xz
-rw-r--r-- 1 root root    21876 Apr 18 23:43 nvidia-drm.ko.xz
-rw-r--r-- 1 root root   520928 Apr 18 23:43 nvidia-modeset.ko.xz
-rw-r--r-- 1 root root   331364 Apr 18 23:43 nvidia-uvm.ko.xz

After manual removal of the remaining files. the nvidia module was now found to be installed here.

/usr/lib/modules/5.10.30-desktop-1.mga8/updates/dkms/nvidia-current.ko.xz
Comment 6 Zombie Ryushu 2021-06-10 15:00:56 CEST
DKMS Isn't cleaning up after itself.
Comment 7 Dave Hodgins 2021-06-10 17:53:56 CEST
Please also include the output of
"rpm -qa|grep -e  dkms -e kernel -e nvidia|sort".
Comment 8 Zombie Ryushu 2021-06-15 08:43:05 CEST
dkms-2.0.19-41.mga8
dkms-minimal-2.0.19-41.mga8
dkms-nvidia-current-460.84-1.mga8.nonfree
kernel-desktop-5.10.16-1.mga8-1-1.mga8
kernel-desktop-5.10.20-2.mga8-1-1.mga8
kernel-desktop-5.10.25-1.mga8-1-1.mga8
kernel-desktop-5.10.27-1.mga8-1-1.mga8
kernel-desktop-5.10.30-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.16-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.20-2.mga8-1-1.mga8
kernel-desktop-devel-5.10.25-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.27-1.mga8-1-1.mga8
kernel-desktop-devel-5.10.30-1.mga8-1-1.mga8
kernel-firmware-20201218-1.mga8
kernel-firmware-nonfree-20210426-1.mga8.nonfree
kernel-userspace-headers-5.12.10-2.mga8
lib64nvidia-egl-wayland1-1.1.5-3.mga8
nvidia-current-cuda-opencl-460.84-1.mga8.nonfree
nvidia-current-doc-html-460.84-1.mga8.nonfree
nvidia-current-utils-460.84-1.mga8.nonfree
x11-driver-video-nvidia-current-460.84-1.mga8.nonfree
Comment 9 Zombie Ryushu 2021-06-15 08:43:46 CEST
Sorry that took so long.

The unit is attempting to against my will, revert back to Nouveau every boot.
Comment 10 Zombie Ryushu 2021-06-15 08:45:09 CEST
X.org also gave me a warning dialogue that it was changing back to the module 'nvidia' because it couldn't find the module 'nvidia' (What?!)
Comment 11 Zombie Ryushu 2021-06-15 09:53:54 CEST
copying the files like so:

# cp /usr/lib/modules/5.10.30-desktop-1.mga8/updates/dkms/nvidia-* /usr/lib/modules/5.10.30-desktop-1.mga8/dkms/drivers/char/drm/

works around this issue.

the computer no longer wants to switch back to Noeavu. This is an installation path issue.
Comment 12 Thomas Backlund 2021-06-15 10:09:16 CEST
you have either used the nvidia installer directly or a package not provided by Mageia to install the nvidia driver that has placed the driver in

/updates/dkms/nvidia-* 


the Mageia rpms _always_ installs the driver in

/dkms/drivers/char/drm/


to fix it up, you probably need to remove all nvidia-current packages from your system, run dracut -f to remove the module from initrd.

then reboot and use drakx to reconfigure the system for nvidia-current

Resolution: (none) => INVALID
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.