Bug 27780 - nvidia390 fails to install for kernel-5.10
Summary: nvidia390 fails to install for kernel-5.10
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-07 22:34 CET by Aurelian R
Modified: 2020-12-08 12:13 CET (History)
0 users

See Also:
Source RPM: nvidia390-390.138-15.mga8.nonfree.src.rpm
CVE:
Status comment:


Attachments
dkms make.log file (21.52 KB, text/plain)
2020-12-07 22:37 CET, Aurelian R
Details
dirty fix for swiotlb error (1.93 KB, patch)
2020-12-07 22:39 CET, Aurelian R
Details | Diff

Description Aurelian R 2020-12-07 22:34:47 CET
nvidia390 driver fails for kernel-5.10.0-rc7 during dkms install with the following error:

  MODPOST /var/lib/dkms/nvidia390/390.138-15.mga8.nonfree/build/Module.symvers
ERROR: modpost: "swiotlb" [/var/lib/dkms/nvidia390/390.138-15.mga8.nonfree/build/nvidia.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:111: /var/lib/dkms/nvidia390/390.138-15.mga8.nonfree/build/Module.symvers] Error 1
make[2]: *** Deleting file '/var/lib/dkms/nvidia390/390.138-15.mga8.nonfree/build/Module.symvers'
make[1]: *** [Makefile:1700: modules] Error 2
make[1]: Leaving directory '/usr/src/kernel-5.10.0-desktop-0.rc7.1.mga8'
make: *** [Makefile:81: modules] Error 2
ERROR: modpost: "swiotlb" [/var/lib/dkms/nvidia390/390.138-15.mga8.nonfree/build/nvidia.ko] undefined!

I will post the make.log and a dirty fix for kernel-5.10.patch from nvidia390-390.138-15.mga8.nonfree.src.rpm that makes my system to work just fine.

Extra info about my system
$ inxi
System:    Kernel: 5.10.0-desktop-0.rc7.1.mga8 x86_64 bits: 64 compiler: gcc v: 10.2.1 Desktop: KDE Plasma 5.20.3 Distro: Mageia 8 mga8
Graphics:  Device-1: NVIDIA GF116 [GeForce GTX 550 Ti] vendor: ZOTAC driver: nvidia v: 390.138 bus ID: 0b:00.0 Display: x11 server: Mageia X.org 1.20.10 driver: modesetting,nvidia,v4l resolution: 1920x1200~60Hz OpenGL: renderer: GeForce GTX 550 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 390.138 direct render: Yes

Hope this helps to find a proper solution as I'm not sure how that fix may brake other systems.
Comment 1 Aurelian R 2020-12-07 22:37:57 CET
Created attachment 12062 [details]
dkms make.log file
Comment 2 Aurelian R 2020-12-07 22:39:24 CET
Created attachment 12063 [details]
dirty fix for swiotlb error
Comment 3 Thomas Backlund 2020-12-08 12:13:19 CET
thanks for spotting this.
I wonder how I missed that :(

the fix is good enough for now as it should not fall through to the 2.6 compat code as it does now.

the real fix would be to go through the detection code nvidia has to figure out where it fails the detection on 5.10 series kernels (due to 5.10 series code changes), but that is no priority to find out as nVidia will soon-ish push a new 390 series driver with official support for 5.10 LTS.

fix merged in nvidia390-390.138-16.mga8 currently building

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


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