Dnf update fc33.x86_64 fails with dkms install nvidia on GeForce GTX 560M

Hi,

Previous dnf updates were ok on a laptop
cat /proc/cpuinfo
Intel(R) Core™ i7-2630QM 2.00GHz 4-Core 6M cache

until kernel-core-5.10.23-200.fc33.x86_64

However with kernel-core-5.11.7-200.fc33.x86_64 onwards the dkms install nvidia on GeForce GTX 560M laptop graphics card fails, e.g.

cat /var/lib/dkms/nvidia/390.141/build

DKMS make.log for nvidia-390.141 for kernel 5.11.7-200.fc33.x86_64 (x86_64)
Wed Mar 24 07:59:33 AM -03 2021
make[1]: Entering directory ‘/usr/src/kernels/5.11.7-200.fc33.x86_64’
scripts/Makefile.lib:8: ‘always’ is deprecated. Please use ‘always-y’ instead
SYMLINK /var/lib/dkms/nvidia/390.141/build/nvidia/nv-kernel.o
SYMLINK /var/lib/dkms/nvidia/390.141/build/nvidia-modeset/nv-modeset-kernel.o
[…]
CC [M] /var/lib/dkms/nvidia/390.141/build/nvidia/nv-frontend.o
CC [M] /var/lib/dkms/nvidia/390.141/build/nvidia/nv-instance.o
CC [M] /var/lib/dkms/nvidia/390.141/build/nvidia/nv-gpu-numa.o
CC [M] /var/lib/dkms/nvidia/390.141/build/nvidia/nv.o
CC [M] /var/lib/dkms/nvidia/390.141/build/nvidia/nv-acpi.o
CC [M] /var/lib/dkms/nvidia/390.141/build/nvidia/nv-chrdev.o
CC [M] /var/lib/dkms/nvidia/390.141/build/nvidia/nv-cray.o
CC [M] /var/lib/dkms/nvidia/390.141/build/nvidia/nv-dma.o
In file included from /var/lib/dkms/nvidia/390.141/build/nvidia/nv-frontend.c:13:
/var/lib/dkms/nvidia/390.141/build/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory
118 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv-frontend.o] Error 1
make[2]: *** Waiting for unfinished jobs…
In file included from /var/lib/dkms/nvidia/390.141/build/nvidia/nv.c:13:
/var/lib/dkms/nvidia/390.141/build/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory
118 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/nvidia/390.141/build/nvidia/nv-instance.c:13:
/var/lib/dkms/nvidia/390.141/build/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory
118 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv.o] Error 1
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv-instance.o] Error 1
In file included from /var/lib/dkms/nvidia/390.141/build/nvidia/nv-gpu-numa.c:24:
/var/lib/dkms/nvidia/390.141/build/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory
118 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/nvidia/390.141/build/nvidia/nv-cray.c:15:
/var/lib/dkms/nvidia/390.141/build/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory
118 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv-gpu-numa.o] Error 1
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv-cray.o] Error 1
In file included from /var/lib/dkms/nvidia/390.141/build/nvidia/nv-chrdev.c:15:
/var/lib/dkms/nvidia/390.141/build/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory
118 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/nvidia/390.141/build/nvidia/nv-dma.c:15:
/var/lib/dkms/nvidia/390.141/build/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory
118 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv-chrdev.o] Error 1
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv-dma.o] Error 1
In file included from /var/lib/dkms/nvidia/390.141/build/nvidia/nv-acpi.c:15:
/var/lib/dkms/nvidia/390.141/build/common/inc/nv-linux.h:118:10: fatal error: asm/kmap_types.h: No such file or directory
118 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/390.141/build/nvidia/nv-acpi.o] Error 1
make[1]: *** [Makefile:1807: /var/lib/dkms/nvidia/390.141/build] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/5.11.7-200.fc33.x86_64’
make: *** [Makefile:81: modules] Error 2

I know that the GeForce GTX 560M is an old laptop graphics card,
anyway, please, could it be fixed? Thanks in advance.

Regards,
Jorge.

gtx-560m-kernel-core-5.11.7-200.fc33.x86_64.log (9.2 KB) nvidia-bug-report.log.gz (599.0 KB)

You could use the Arch patch
https://aur.archlinux.org/cgit/aur.git/tree/kernel-5.11.patch?h=nvidia-390xx
or ask your nvidia repo maintainer to include it.

[SOLVED} Thank you very much for your reply. However, after iterating for a while, the problem was fixed with:

$ sudo dnf --best --skip-broken --exclude = skypeforlinux update

$ sudo dnf remove kernel-core-5.11.7-200.fc33 # due to lack of space

$ sudo dnf remove kernel-core-5.11.8-200.fc33 # because it also gave problems

$ reinstall patched nvidia driver # see Fedora 34/33/32 NVIDIA Drivers Install Guide – If Not True Then False

$ sudo dkms install -k 5.11.9-200.fc33.x86_64 -m nvidia -v 390.141

Now the available kernels are:

$ sudo dnf list --installed | grep kernel-core
kernel-core.x86_64 5.10.23-200.fc33 @updates
kernel-core.x86_64 5.11.9-200.fc33 @updates

both kernels are ok with the GeForce GTX 560M.

Thank you very much for the help!