465.31 doesn't build a working nvidia.ko with any [recent] Fedora 33 kernel (5.12.x series)

465.31 works perfectly great on Fedora 33, but I have to force install the latest Fedora 32 kernel, which is 5.11.22. Needless to say there are many problems with running kernels from a previous version of Fedora, the least of which is that yum will usually try to remove it.

No recent Fedora 33 kernel (5.12.* including 5.12.15) builds a module that will actually load. An nvidia.ko is created but it simply does not load and Fedora 33 falls back to nouveau. Unfortunately, nouveau does not support the HDMI port on my Dell laptop, so I’m stuck.

I’m guessing this is a general problem with 5.12.*? I don’t feel that there is anything specific to Fedora about this issue.

It works ok here with 5.12.15-300.fc34.x86_64

[    3.998616] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  465.31  Thu May 13 22:24:36 UTC 2021
[    4.002173] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[    4.017099] nvidia-uvm: Loaded the UVM driver, major device number 234.
[    4.020007] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  465.31  Thu May 13 22:14:23 UTC 2021
[    4.021284] [drm] [nvidia-drm] [GPU ID 0x00000900] Loading driver

Make sure your not using the debug kernel.

$ rpm -qa kernel\*
kernel-srpm-macros-1.0-4.fc34.noarch
kernel-core-5.12.13-300.fc34.x86_64
kernel-modules-5.12.13-300.fc34.x86_64
kernel-devel-5.12.13-300.fc34.x86_64
kernel-5.12.13-300.fc34.x86_64
kernel-modules-extra-5.12.13-300.fc34.x86_64
kernel-headers-5.12.13-300.fc34.x86_64
kernel-core-5.12.14-300.fc34.x86_64
kernel-modules-5.12.14-300.fc34.x86_64
kernel-5.12.14-300.fc34.x86_64
kernel-modules-extra-5.12.14-300.fc34.x86_64
kernel-devel-5.12.14-300.fc34.x86_64
kernel-core-5.12.15-300.fc34.x86_64
kernel-modules-5.12.15-300.fc34.x86_64
kernel-5.12.15-300.fc34.x86_64
kernel-modules-extra-5.12.15-300.fc34.x86_64
kernel-devel-5.12.15-300.fc34.x86_64

Note, I’m running Fedora 33, not 34. The upgrade from 33 to 34 was broken if you have wine installed, last I checked. That may have been fixed more recently. Thus I have not upgraded.

However, the good news is that they fixed the issue with the 5.13.x Fedora 33 kernels, so I’m closing.