mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[GH-ISSUE #171] Compatibility report: RTX 3090 24 GB (10de:2204) — initramfs-tools loads nvidia before gpu_unlock, unlock fails (-16) without an init-top script #250
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#250
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LanceLRQ on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/171
Result
Unlocked, and FP16/BF16/TF32 got faster — but only after a workaround: on stock Ubuntu 24.04 with initramfs-tools and Ubuntu's DKMS nvidia package, every boot failed with
gpu_unlock: unlock failed (-16)until gpu_unlock was moved ahead of udev coldplug (details under "Anything else").Card
ZOTAC GeForce RTX 3090 24 GB (retail)
PCI IDs
VBIOS version
00000000:05:00.0, 94.02.26.40.92
Is the card modified?
No, retail card
Distribution
Ubuntu 24.04.5 LTS
Kernel
7.0.0-38-generic
NVIDIA driver
595.91.07 (DKMS
nvidia-srv595.91.07)Initramfs generator
initramfs-tools
gpu-unlock version and install method
1.0.0, 4189b17,
make install(auto-detected install-deb)Kernel command line
Setup
Single RTX 3090, headless compute server (no display attached, Disp.A=Off; the EFI framebuffer owns the console until nvidia-drm loads). Stock 350 W power limit. Secure Boot disabled.
Kernel log
Successful boot, after the workaround described below:
Benchmark before and after
torch 2.14.1+cu130 cuBLAS, 8192³ dense GEMM, FP32 accumulation, median of 5 samples, stock 350 W.
"Before" was not measured on this box (it would need a one-off boot without
gpu_unlock.targets=); for reference the stock GA102 dense caps are ~71/71/36 TFLOPS, so the after numbers sit at ~1.9x the locked rate.Suspend and resume
Not tested
Anything else
The stock install never unlocked on this setup. First boot after
make install:The messages print under
nvidia 0000:05:00.0, i.e. nvidia was already bound when gpu_unlock ran. The chain, on Ubuntu 24.04 with initramfs-tools:/usr/share/initramfs-tools/modules.d/gpu-unlock.conf, which lands inconf/modules; initramfs-tools loads it inload_modules, afterrun_scripts /scripts/init-top./usr/share/initramfs-tools/hooks/framebuffer-nvidia, which copies everynvidia*.kofromupdates/dkmsinto the image (MODULES=most).nvidia.koexports PCI aliases (pci:v000010DEd*sv*sd*bc03sc00i00*), andscripts/init-top/udevruns udev coldplug beforeload_modules, so udev auto-loads nvidia and binds the card first.pdev->driver != NULLand returns-EBUSY(kernel/gpu_unlock/main.c:74), every boot.Workaround that made it work — a one-line init-top script whose name sorts before
udev, so the synchronous module init (it waits on its async domain) finishes the unlock before coldplug, and nvidia binds right after:then
update-initramfs -u -k alland reboot. The "unlocked" log above is from this setup.Suggestion: have the deb package install this init-top script for initramfs-tools, or otherwise document that on Ubuntu-packaged nvidia the module must load before udev coldplug — the modules.d drop-in alone loses that race.