OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
gpu-drivers high occasional DISPUTE

Disable GSP firmware when NVIDIA crashes or Vulkan fails

archomarchyendeavouroscachyosmanjaronvidialaptopdesktophyprlandwayland
CORRECTED An auditor found the fix wrong or incomplete and rewrote it.
AUDIT NOTE

The problem and the core parameter are right (Arch NVIDIA/Troubleshooting#GSP firmware: enabled by default since 555, causes Vulkan failures and crashes. NVreg_EnableGpuFirmware=0 'only works with the proprietary NVIDIA driver'. The NVIDIA page's footnote 2 recommends exactly nvidia-580xx-dkms + that parameter for the Ampere-laptop failures). The fix is dangerous as written for one group: on Blackwell (RTX 50xx) and newer the open kernel modules are REQUIRED (Hyprland wiki states this in bold), and nvidia-580xx does not support Blackwell at all. A 50-series owner who runs pacman -Rdd nvidia-open and installs 580xx ends up with no working driver and no desktop. It also skips linux-headers ordering and the nvidia-utils conflict.

The cause above was not rewritten and may still contain the error described. The fix below is the corrected version.
RISK

Swapping between the open and proprietary kernel modules with pacman -Rdd bypasses dependency checking and leaves you temporarily without a working driver. Do the removal and the install in one session, from a TTY, and do not reboot in between. Blackwell (RTX 50xx) and newer REQUIRE the open modules. Do not do this on those cards.

Symptom

Random full-system crashes, Vulkan applications refusing to start, or on some Ampere laptops the driver failing outright (no display, nvidia-smi errors), all starting with driver 555 or later. Games and vkcube die with Vulkan initialisation errors.

Cause

The GSP (GPU System Processor) firmware, enabled by default since driver 555, is known to cause a range of failures including Vulkan breakage, broken PCIe D3 power management on pre-Ampere cards, and complete driver failure on some Ampere-equipped laptops.

Fix

First identify the GPU. The proprietary 580xx branch covers Maxwell through Ada only:


lspci -d ::03xx
  • Blackwell (RTX 50xx) and newer: the open kernel modules are mandatory. GSP **cannot** be disabled. Do not remove nvidia-open*. Look for another workaround (driver version change, nvidia-open-beta).
  • Turing / Ampere / Ada (and Maxwell/Pascal/Volta, which are already on 580xx): you can switch to the proprietary branch.

sudo pacman -S --needed linux-headers      # plus linux-lts-headers / linux-zen-headers as applicable
yay -S nvidia-580xx-dkms nvidia-580xx-utils lib32-nvidia-580xx-utils
# accept pacman's prompt to replace the conflicting nvidia-open*/nvidia-utils packages;
# you do not need a separate `pacman -Rdd` step

Then disable GSP:


sudo tee /etc/modprobe.d/nvidia-gsp.conf >/dev/null <<'EOF'
options nvidia NVreg_EnableGpuFirmware=0
EOF

sudo mkinitcpio -P     # only needed if the nvidia modules are in your initramfs
reboot

Verify afterwards with cat /proc/driver/nvidia/params | grep EnableGpuFirmware (want 0).

Verify

sudo sort /proc/driver/nvidia/params | grep EnableGpuFirmware shows 0. nvidia-smi -q | grep -i 'GSP Firmware' reports no GSP version in use. vkcube runs and the crashes stop.

Sources

nvidia-gsp-firmware-crashes