I encountered an issue after uninstalling the previous NVIDIA driver and reinstalling the latest version. After rebooting, when I run the command nvidia-smi, it returns the message “No devices were found”.
To investigate further, I ran the following command:
dmesg | grep nvidia
This is the output I received:
[ 18.724826] nvidia: loading out-of-tree module taints kernel.
[ 18.724867] nvidia: module license 'NVIDIA' taints kernel.
[ 18.758196] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 18.779824] nvidia-nvlink: Nvlink Core is being initialized, major device number 239
[ 18.783509] nvidia 0000:03:00.0: enabling device (0000 -> 0003)
[ 18.801662] nvidia 0000:03:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[ 18.980061] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 525.105.17 Tue Mar 28 22:18:37 UTC 2023
[ 19.034054] [drm] [nvidia-drm] [GPU ID 0x00000300] Loading driver
[ 19.916418] [drm:nv_drm_load [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to allocate NvKmsKapiDevice
[ 19.916693] [drm:nv_drm_probe_devices [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000300] Failed to register device
[ 20.014148] nvidia-uvm: Loaded the UVM driver, major device number 237.
Can anyone help me resolve this issue? I have tried reinstalling the driver multiple times, but the problem persists. Thank you for any assistance!
Please purge all existing drivers first from your installation before installing a new one. The logs show that you tried to install v550 while v470 was still installed. And v470 was not automatically uninstalled, which happens if you did not unload the kernel module.
I tried several methods to install the driver, including from official documents, and from the ppa, but still got “No devices were found” with the same NvKmsKapiDevice from kernel log.
I am getting the same “Failed to allocate NvKmsKapiDevice” error on a recently built machine with Fedora 41. I have tried reinstalling the nvidia drivers, confirmed secure model is turned off, and setting the following kernel parameters with no luck getting the GPU to load properly: pci=nocrs pci=realloc pci=assign-busses.
$ mokutil --sb-state
SecureBoot disabled
Platform is in Setup Mode
Here part of my dmesg output:
[Thu Apr 10 06:47:29 2025] resource: resource sanity check: requesting [mem 0x00000000f1700000-0x00000000f26fffff], which spans more than PCI Bus 0000:01 [mem 0xf1000000-0xf1ffffff]
[Thu Apr 10 06:47:29 2025] caller _nv046975rm+0x3a/0xb0 [nvidia] mapping multiple BARs
[Thu Apr 10 06:47:29 2025] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x24:0x72:1512)
[Thu Apr 10 06:47:29 2025] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[Thu Apr 10 06:47:29 2025] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[Thu Apr 10 06:47:29 2025] resource: resource sanity check: requesting [mem 0x00000000f1700000-0x00000000f26fffff], which spans more than PCI Bus 0000:01 [mem 0xf1000000-0xf1ffffff]
[Thu Apr 10 06:47:29 2025] caller _nv046975rm+0x3a/0xb0 [nvidia] mapping multiple BARs
[Thu Apr 10 06:47:29 2025] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x24:0x72:1512)
[Thu Apr 10 06:47:29 2025] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[Thu Apr 10 06:47:29 2025] resource: resource sanity check: requesting [mem 0x00000000f1700000-0x00000000f26fffff], which spans more than PCI Bus 0000:01 [mem 0xf1000000-0xf1ffffff]
[Thu Apr 10 06:47:29 2025] caller _nv046975rm+0x3a/0xb0 [nvidia] mapping multiple BARs
[Thu Apr 10 06:47:29 2025] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x24:0x72:1512)
[Thu Apr 10 06:47:29 2025] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
[Thu Apr 10 06:47:29 2025] [drm:nv_drm_load [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NvKmsKapiDevice
[Thu Apr 10 06:47:29 2025] [drm:nv_drm_register_drm_device [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000100] Failed to register device
This card used a different driver to the last card but the problem is the same. So I guess the problem is not in the driver but loading the driver or a conflict with another installed driver?