Repository navigation
Leave Turing's NVIDIA firmware out of the N1x initramfs - #18916
Merged
Merged
Conversation
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>
Contributor
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryLeaves Turing's NVIDIA firmware out of N1x boot images where the GPU drives the panel.
Reviews (2) · Last reviewed commit: "Merge branch 'quattro' into n1x-initramf..." · Reviewed by Greptile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
The
nvidiamodule lists four firmware files, two per GSP family:gsp_tu10x.binanducodes_tu10x.binfor Turing,gsp_ga10x.binanducodes_ga10x.binfor 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.shnow writes/etc/mkinitcpio.conf.d/omarchy-n1x-nvidia-firmware.confwhere the GPU drives the panel. It wrapsadd_firmwareonce, the wayomarchy_vconsole.confwrapsadd_file, and leaves out the twotu10xfiles. It returns the status of the firmware it did add, soadd_modulestill 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. Migration1794674229writes 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
mkinitcpio -c): only the twotu10xfiles drop out, no build errors.hardware-quirks-test.shchecks 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/clipasses.sudostubbed: writes the drop-in, a second run does nothing.Screenshots
No visible change: the N1x initramfs leaves out firmware its GPU doesn't load.
🤖 Generated with Claude Code