[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

Open
opened 2026-11-07 17:54:19 +07:00 by bsakaguchi · 0 comments
Owner

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

0000:05:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3090] [10de:2204] (rev a1)
0000:05:00.1 Audio device [0403]: NVIDIA Corporation GA102 High Definition Audio Controller [10de:1aef] (rev a1)

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-srv 595.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

BOOT_IMAGE=/boot/vmlinuz-7.0.0-38-generic root=UUID=*** ro quiet splash gpu_unlock.targets=all vt.handoff=7

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:

gpu_unlock: loading out-of-tree module taints kernel.
pci 0000:05:00.0: asset request: gpu-unlock/610.43.03/gsp_ga10x.bin
pci 0000:05:00.0: asset result: gpu-unlock/610.43.03/gsp_ga10x.bin error=0 bytes=84277400
pci 0000:05:00.0: asset cache cleanup: gpu-unlock/610.43.03/gsp_ga10x.bin devres_released=1
pci 0000:05:00.0: asset request: gpu-unlock/610.43.03/v67-ga102-610.43.03.bin
pci 0000:05:00.0: asset result: gpu-unlock/610.43.03/v67-ga102-610.43.03.bin error=0 bytes=64000
pci 0000:05:00.0: asset cache cleanup: gpu-unlock/610.43.03/v67-ga102-610.43.03.bin devres_released=1
pci 0000:05:00.0: asset request: gpu-unlock/610.43.03/gsp_boot_ga102.bin
pci 0000:05:00.0: asset result: gpu-unlock/610.43.03/gsp_boot_ga102.bin error=0 bytes=24576
pci 0000:05:00.0: asset cache cleanup: gpu-unlock/610.43.03/gsp_boot_ga102.bin devres_released=1
pci 0000:05:00.0: asset request: gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin
pci 0000:05:00.0: asset result: gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin error=0 bytes=84
pci 0000:05:00.0: asset cache cleanup: gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin devres_released=1
pci 0000:05:00.0: asset geometry: image=84226048 signature=4096 boot=24576 code=0x1800 data=0x800 manifest=0x0 parse=0
pci 0000:05:00.0: asset request: gpu-unlock/610.43.03/booter_load_ga102.bin
pci 0000:05:00.0: asset result: gpu-unlock/610.43.03/booter_load_ga102.bin error=0 bytes=61256
pci 0000:05:00.0: asset cache cleanup: gpu-unlock/610.43.03/booter_load_ga102.bin devres_released=1
gpu_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=65024 type=0x0 last=0
gpu_unlock: ROM chain: pos=0xfe00 data=0x52494350 bytes=91648 type=0x3 last=0
gpu_unlock: ROM chain: pos=0x26400 data=0x5344504e bytes=22016 type=0xe0 last=0
gpu_unlock: ROM chain: pos=0x2ba00 data=0x5344504e bytes=366080 type=0xe0 last=128
gpu_unlock: ROM expansion: base=0xfe00 ext=0x26400 adjust=0x16600
gpu_unlock: ROM BIT: offset=0x1b0 size=12 stride=6 tokens=17 adjust=0x16600
gpu_unlock: ROM ucode table: offset=0x84e86 version=1 header=6 stride=6 entries=16
gpu_unlock: FWSEC descriptor: offset=0x41ef0 ROM_bytes=1048576 header=0x4ac0301
gpu_unlock: FWSEC geometry: image_off=0x4239c size=0xde00 imem=0xd600 va=0x0 pa=0x0 dmem=0x800 pa=0x0 pkc=0x5a4 interface=0x1c engine=0x400 ucode=9 signatures=3 versions=0x7 bytes=1152
gpu_unlock: FWSEC interface: offset=0x1c version=1 header=4 stride=8 entries=2 FRTS=0x5ffe00000
gpu_unlock: FWSEC mapper: version=3 size=64 cmd_offset=0x7c0 cmd_size=64
gpu_unlock: FWSEC signature selection: versions=0x7 fuse_version=2 sig_bytes=384
pci 0000:05:00.0: gpu_unlock: unlocked

Benchmark before and after

torch 2.14.1+cu130 cuBLAS, 8192³ dense GEMM, FP32 accumulation, median of 5 samples, stock 350 W.

Input After (TFLOPS)
FP16 134.2
BF16 131.9
TF32 63.2

"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:

nvidia: loading out-of-tree module taints kernel.
nvidia 0000:05:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[drm] Initialized nvidia-drm 0.0.0 for 0000:05:00.0 on minor 0
nvidia 0000:05:00.0: asset request: gpu-unlock/610.43.03/gsp_ga10x.bin
nvidia 0000:05:00.0: gpu_unlock: unlock failed (-16)

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:

  1. The deb installs /usr/share/initramfs-tools/modules.d/gpu-unlock.conf, which lands in conf/modules; initramfs-tools loads it in load_modules, after run_scripts /scripts/init-top.
  2. Ubuntu's nvidia DKMS packaging ships /usr/share/initramfs-tools/hooks/framebuffer-nvidia, which copies every nvidia*.ko from updates/dkms into the image (MODULES=most).
  3. nvidia.ko exports PCI aliases (pci:v000010DEd*sv*sd*bc03sc00i00*), and scripts/init-top/udev runs udev coldplug before load_modules, so udev auto-loads nvidia and binds the card first.
  4. gpu_unlock then sees pdev->driver != NULL and 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:

# /etc/initramfs-tools/scripts/init-top/gpu-unlock  (chmod +x)
#!/bin/sh
PREREQ=""
prereqs() { echo "$PREREQ"; }
case $1 in prereqs) prereqs; exit 0;; esac
/sbin/modprobe gpu_unlock

then update-initramfs -u -k all and 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.

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 ``` 0000:05:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA102 [GeForce RTX 3090] [10de:2204] (rev a1) 0000:05:00.1 Audio device [0403]: NVIDIA Corporation GA102 High Definition Audio Controller [10de:1aef] (rev a1) ``` ### 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-srv` 595.91.07) ### Initramfs generator initramfs-tools ### gpu-unlock version and install method 1.0.0, [4189b17](https://github.com/Zagitta/gpu-unlock/commit/4189b17), `make install` (auto-detected install-deb) ### Kernel command line ``` BOOT_IMAGE=/boot/vmlinuz-7.0.0-38-generic root=UUID=*** ro quiet splash gpu_unlock.targets=all vt.handoff=7 ``` ### 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: ``` gpu_unlock: loading out-of-tree module taints kernel. pci 0000:05:00.0: asset request: gpu-unlock/610.43.03/gsp_ga10x.bin pci 0000:05:00.0: asset result: gpu-unlock/610.43.03/gsp_ga10x.bin error=0 bytes=84277400 pci 0000:05:00.0: asset cache cleanup: gpu-unlock/610.43.03/gsp_ga10x.bin devres_released=1 pci 0000:05:00.0: asset request: gpu-unlock/610.43.03/v67-ga102-610.43.03.bin pci 0000:05:00.0: asset result: gpu-unlock/610.43.03/v67-ga102-610.43.03.bin error=0 bytes=64000 pci 0000:05:00.0: asset cache cleanup: gpu-unlock/610.43.03/v67-ga102-610.43.03.bin devres_released=1 pci 0000:05:00.0: asset request: gpu-unlock/610.43.03/gsp_boot_ga102.bin pci 0000:05:00.0: asset result: gpu-unlock/610.43.03/gsp_boot_ga102.bin error=0 bytes=24576 pci 0000:05:00.0: asset cache cleanup: gpu-unlock/610.43.03/gsp_boot_ga102.bin devres_released=1 pci 0000:05:00.0: asset request: gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin pci 0000:05:00.0: asset result: gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin error=0 bytes=84 pci 0000:05:00.0: asset cache cleanup: gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin devres_released=1 pci 0000:05:00.0: asset geometry: image=84226048 signature=4096 boot=24576 code=0x1800 data=0x800 manifest=0x0 parse=0 pci 0000:05:00.0: asset request: gpu-unlock/610.43.03/booter_load_ga102.bin pci 0000:05:00.0: asset result: gpu-unlock/610.43.03/booter_load_ga102.bin error=0 bytes=61256 pci 0000:05:00.0: asset cache cleanup: gpu-unlock/610.43.03/booter_load_ga102.bin devres_released=1 gpu_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=65024 type=0x0 last=0 gpu_unlock: ROM chain: pos=0xfe00 data=0x52494350 bytes=91648 type=0x3 last=0 gpu_unlock: ROM chain: pos=0x26400 data=0x5344504e bytes=22016 type=0xe0 last=0 gpu_unlock: ROM chain: pos=0x2ba00 data=0x5344504e bytes=366080 type=0xe0 last=128 gpu_unlock: ROM expansion: base=0xfe00 ext=0x26400 adjust=0x16600 gpu_unlock: ROM BIT: offset=0x1b0 size=12 stride=6 tokens=17 adjust=0x16600 gpu_unlock: ROM ucode table: offset=0x84e86 version=1 header=6 stride=6 entries=16 gpu_unlock: FWSEC descriptor: offset=0x41ef0 ROM_bytes=1048576 header=0x4ac0301 gpu_unlock: FWSEC geometry: image_off=0x4239c size=0xde00 imem=0xd600 va=0x0 pa=0x0 dmem=0x800 pa=0x0 pkc=0x5a4 interface=0x1c engine=0x400 ucode=9 signatures=3 versions=0x7 bytes=1152 gpu_unlock: FWSEC interface: offset=0x1c version=1 header=4 stride=8 entries=2 FRTS=0x5ffe00000 gpu_unlock: FWSEC mapper: version=3 size=64 cmd_offset=0x7c0 cmd_size=64 gpu_unlock: FWSEC signature selection: versions=0x7 fuse_version=2 sig_bytes=384 pci 0000:05:00.0: gpu_unlock: unlocked ``` ### Benchmark before and after torch 2.14.1+cu130 cuBLAS, 8192³ dense GEMM, FP32 accumulation, median of 5 samples, stock 350 W. | Input | After (TFLOPS) | | ----- | -------------- | | FP16 | 134.2 | | BF16 | 131.9 | | TF32 | 63.2 | "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`: ``` nvidia: loading out-of-tree module taints kernel. nvidia 0000:05:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none [drm] Initialized nvidia-drm 0.0.0 for 0000:05:00.0 on minor 0 nvidia 0000:05:00.0: asset request: gpu-unlock/610.43.03/gsp_ga10x.bin nvidia 0000:05:00.0: gpu_unlock: unlock failed (-16) ``` 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: 1. The deb installs `/usr/share/initramfs-tools/modules.d/gpu-unlock.conf`, which lands in `conf/modules`; initramfs-tools loads it in `load_modules`, after `run_scripts /scripts/init-top`. 2. Ubuntu's nvidia DKMS packaging ships `/usr/share/initramfs-tools/hooks/framebuffer-nvidia`, which copies every `nvidia*.ko` from `updates/dkms` into the image (`MODULES=most`). 3. `nvidia.ko` exports PCI aliases (`pci:v000010DEd*sv*sd*bc03sc00i00*`), and `scripts/init-top/udev` runs udev coldplug **before** `load_modules`, so udev auto-loads nvidia and binds the card first. 4. gpu_unlock then sees `pdev->driver != NULL` and 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: ``` # /etc/initramfs-tools/scripts/init-top/gpu-unlock (chmod +x) #!/bin/sh PREREQ="" prereqs() { echo "$PREREQ"; } case $1 in prereqs) prereqs; exit 0;; esac /sbin/modprobe gpu_unlock ``` then `update-initramfs -u -k all` and 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Zagitta/gpu-unlock#250
No description provided.