You are not logged in.

#1 2025-07-06 11:59:40

SolarNyx
Member
Registered: 2025-07-06
Posts: 2

[Solved] Failed to allocate NvKmsKapiDevice

Unable to boot properly using the initramfs-linux.img but am able to using the initramfs-linux-fallback.img. Looking at journalctl for the failing boot there is the following error message. (Which i thought was the initramfs-linux.img boot but might actually be a initramfs-linux-fallback.img boot due to the very first log?)

Jul 06 12:03:21 archlinux kernel: [drm:nv_drm_register_drm_device [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to register device
Jul 06 12:03:21 archlinux kernel: [drm:nv_drm_load [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NvKmsKapiDevice

nvidia-smi output: https://pastebin.com/MwDQXWXq
journalctl -r -b -1 output: https://pastebin.com/c3dM4vRc

When on the initramfs-linux.img boot, gpu usage causes screen stuttering (Seen using nvtop), once the gpu usage stops so does the screen stuttering. (Hyprland as DE if relevant)

Added the following into /etc/mkinitcpio.conf

MODULES=(btrfs nvidia nvidia_modeset nvidia_uvm nvidia_drm)

Result of: pacman -Qs nvidia

local/egl-gbm 1.1.2.1-1
    The GBM EGL external platform library
local/egl-wayland 4:1.1.19-1
    EGLStream-based Wayland external platform
local/egl-x11 1.0.2-1
    NVIDIA XLib and XCB EGL Platform Library
local/libva-nvidia-driver 0.0.14-1
    VA-API implementation that uses NVDEC as a backend
local/libvdpau 1.5-3
    Nvidia VDPAU library
local/linux-firmware-nvidia 20250627-1
    Firmware files for Linux - Firmware for NVIDIA GPUs and SoCs
local/nvidia-open-dkms 575.64.03-1
    NVIDIA open kernel modules - module sources
local/nvidia-utils 575.64.03-1
    NVIDIA drivers utilities
local/nvtop 3.2.0-1
    GPUs process monitoring for AMD, Intel and NVIDIA

Last edited by SolarNyx (2025-07-06 20:21:57)

Offline

#2 2025-07-06 13:35:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,082

Re: [Solved] Failed to allocate NvKmsKapiDevice

Because it is like top posting.
Why not?
Please don't "-r".

Jul 06 12:03:21 archlinux kernel: Linux version 6.15.4-arch2-1 (linux@archlinux) (gcc (GCC) 15.1.1 20250425, GNU ld (GNU Binutils) 2.44.0) #1 SMP PREEMPT_DYNAMIC Fri, 27 Jun 2025 16:35:07 +0000
Jul 06 12:03:21 archlinux kernel: Command line: initrd=\initramfs-linux-fallback.img root=PARTUUID=a85b3221-b984-43c5-83a3-9ab640a24fc5 zswap.enabled=0 rw rootfstype=btrfs
…
Jul 06 12:03:21 archlinux kernel: NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64  575.64.03  Release Build  (root@)  
Jul 06 12:03:21 archlinux kernel: NVRM: GPU at PCI:0000:01:00: GPU-d900db2c-44f4-d8b8-5a00-fbd491b1c53c
Jul 06 12:03:21 archlinux kernel: NVRM: Xid (PCI:0000:01:00): 79, GPU has fallen off the bus.
Jul 06 12:03:21 archlinux kernel: NVRM: GPU 0000:01:00.0: GPU has fallen off the bus.

Try to add "pcie_aspm=off" to the https://wiki.archlinux.org/title/Kernel_parameters and remove the nvidia modules from the initramfs.

Online

#3 2025-07-06 20:25:20

SolarNyx
Member
Registered: 2025-07-06
Posts: 2

Re: [Solved] Failed to allocate NvKmsKapiDevice

Adding pcie_aspm=off resulted in it being unable to boot.

Just removing the nvidia modules, resulted in me being able to boot with both initramfs-linux.img and initramfs-linux-fallback.img

Still experiencing the 'gpu usage causes screen stuttering' but this is a separate issue I think then

Offline

#4 2025-07-06 20:30:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,082

Re: [Solved] Failed to allocate NvKmsKapiDevice

Adding pcie_aspm=off resulted in it being unable to boot.

What?
Unable to boot or unable to start a GUI?
Can you boot into the multi-user.target along "pcie_aspm=off" (2nd link below)?

Just removing the nvidia modules, resulted in me being able to boot with both initramfs-linux.img and initramfs-linux-fallback.img
Still experiencing the 'gpu usage causes screen stuttering' but this is a separate issue I think then

maybe not, please post an updated system journal.

Online

Board footer

Powered by FluxBB