Skip to content

Leave Turing's NVIDIA firmware out of the N1x initramfs - #18916

Merged
dhh merged 2 commits into
quattrofrom
n1x-initramfs-firmware
Nov 15, 2026
Merged

dhh merged 2 commits into
quattrofrom
n1x-initramfs-firmware

Conversation

@dhh

@dhh dhh commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

What changes

The nvidia module lists four firmware files, two per GSP family: gsp_tu10x.bin and ucodes_tu10x.bin for Turing, gsp_ga10x.bin and ucodes_ga10x.bin for everything newer. mkinitcpio copies all four, so an N1x initramfs carried 32 MB of Turing firmware its Blackwell GPU (GB20B) never loads.

install/hardware/n1x.sh now writes /etc/mkinitcpio.conf.d/omarchy-n1x-nvidia-firmware.conf where the GPU drives the panel. It wraps add_firmware once, the way omarchy_vconsole.conf wraps add_file, and leaves out the two tu10x files. It returns the status of the firmware it did add, so add_module still warns about missing firmware and mkinitcpio's error count stays clean. Where firmware keeps the GPU off, the drop-in is removed with the other GPU files. Migration 1794674229 writes it on existing N1x machines with the GPU on; the next initramfs rebuild applies it.

Result on an N1x: 115.8 MB → 99.8 MB initramfs. Build time is unchanged (about 11s either way, within noise), so this doesn't shorten the install. It's a smaller image for every boot to read and decompress, and for every kernel and snapshot entry to keep on the ESP.

Verification

  • Built this machine's initramfs with its real config, with and without the drop-in (mkinitcpio -c): only the two tu10x files drop out, no build errors.
  • hardware-quirks-test.sh checks the filter: Turing files dropped, others passed through, the status of a missing firmware still reaches the caller, and sourcing the file twice wraps once. ./test/cli passes.
  • Ran the migration against a temp directory with sudo stubbed: writes the drop-in, a second run does nothing.
  • Not yet checked: booting an N1x on the filtered image.

Screenshots

No visible change: the N1x initramfs leaves out firmware its GPU doesn't load.

🤖 Generated with Claude Code

The nvidia module lists both GSP firmware families, so mkinitcpio copied
Turing's 32 MB into an N1x initramfs whose Blackwell GPU only loads the
ga10x pair. A drop-in now filters it out: the image shrinks from 116 MB to
100 MB, less for every boot to read and decompress and for every kernel and
snapshot entry to keep on the ESP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking issues were found.

Summary

Leaves Turing's NVIDIA firmware out of N1x boot images where the GPU drives the panel.

  • N1x initramfs builds leave out Turing's unused firmware.

Reviews (2) · Last reviewed commit: "Merge branch 'quattro' into n1x-initramf..." · Reviewed by Greptile

@dhh
dhh merged commit 197f5ed into quattro Nov 15, 2026
3 checks passed
@dhh
dhh deleted the n1x-initramfs-firmware branch November 15, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant