[GH-ISSUE #202] Compatibility report: 2x RTX 3060 12 GB, GA104 (10de:2487) + GA106 LHR (10de:2504), unlocked at runtime + llama.cpp/sd.cpp numbers #199

Closed
opened 2026-10-30 04:55:26 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @realhidden on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/202

Result

Unlocked, and FP16/BF16 got faster

Card

2x Gigabyte GeForce RTX 3060 12 GB: one GA104 variant (subsystem 1458:4072) and one GA106 LHR (subsystem 1458:40e2)

PCI IDs

0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104 [GeForce RTX 3060] [10de:2487] (rev a1)
0000:01:00.1 Audio device [0403]: NVIDIA Corporation GA104 High Definition Audio Controller [10de:228b] (rev a1)
0000:04:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] [10de:2504] (rev a1)
0000:04:00.1 Audio device [0403]: NVIDIA Corporation GA106 High Definition Audio Controller [10de:228e] (rev a1)

VBIOS version

00000000:01:00.0, 94.04.71.40.1B
00000000:04:00.0, 94.06.2F.40.95

Is the card modified?

Stock

Distribution

Debian 13 (trixie)

Kernel

6.12.111+deb13-amd64

NVIDIA driver

595.71.05, proprietary kernel modules (Debian nvidia-kernel-dkms)

Initramfs generator

Other or not sure

gpu-unlock version and install method

  1. Built the debs with make deb in a debian:13 container, but did not install them: I built gpu_unlock.ko by hand against the running kernel and loaded it at runtime with insmod (see "Anything else"). Nothing was persisted, and a reboot puts the cards back to stock.

Kernel command line

BOOT_IMAGE=/vmlinuz-6.12.111+deb13-amd64

(no gpu_unlock.targets=; targets were passed as an insmod parameter)

Setup

2x RTX 3060 12 GB, headless inference server (ASRock B550M Pro4, Ryzen 5 5500), default 170 W power limit on both cards, Secure Boot disabled. The cards serve llama.cpp, stable-diffusion.cpp and audio.cpp workloads. The cards had been up 11 days under the NVIDIA driver when they were unlocked.

Kernel log

First attempt on 04:00.0 failed cleanly with -22: insmod ran right after a manual FLR, and the layout reads came back as 0xbadf… (see notes). The second attempt, 5 s after the FLR, and then 01:00.0 both unlocked:

pci 0000:04:00.0: gpu_unlock: stage=claim device=0x2504 family=GA102/GA103/GA104/GA106 cmd=0x3 original=0x3 bar_len=0x1000000 region=1 enabled=0 master=0
pci 0000:04:00.0: gpu_unlock: stage=layout fb=0xbadf510800000 vga=0xbadf510700000 frts=0x100000 wpr=0xbadf505c00000..0xbadf510700000 boot=0xbadf5105fa000 gsp=0xbadf50b5a0000 heap=0xbadf505d00000
pci 0000:04:00.0: gpu_unlock: stage=dma booter=60416 payload=0xfa00 pages=20606 meta=0x4ed11000 sig=0x4ede0000 stock=0x58f25000 boot=0x30670000
pci 0000:04:00.0: gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x40000032 ss1=0x0 wpr2_hi=0x0
pci 0000:04:00.0: gpu_unlock: failure unlock_transaction_fwsec:874 error=-22 family=GA102/GA103/GA104/GA106 payload=ga102-v67 state=0 index=0 attempt=0 target=0x0 value=0x0 last_mmio=0x1fa828:0x0 valid=1 bar=1
pci 0000:04:00.0: gpu_unlock: boot reset_plm=0xffffffff ctl=0xbadf5620 engine=0x0 fhstate=0xbadf5620 mbox=0x0:0x0 acr=0x0 csberr=0xbadf5620 ok=1
pci 0000:04:00.0: gpu_unlock: wpr2 lo=0x1ffffe00 hi=0x0 start=0x1ffffe0000 end=0x20000 frts=0x0:0x0 saved=0
pci 0000:04:00.0: gpu_unlock: plm feat=0xffffff8f rd=0xf wr=0x8 src=0xfffff rv=1 wv=1 wpr_cfg=0x4cb8f wpr=0x4cb8f lock=0x45cb8f ss0=0x40000032 ss1=0x0
pci 0000:04:00.0: gpu_unlock: pci cmd=0x3 original=0x3 pm=0 devsta=0x0 trpnd=0 bars=0xf9000000,0xb000000c,0x0,0xc000000c,0x0,0xe001 last_pci=0:0x0:0x10de:0
pci 0000:04:00.0: gpu_unlock: resources retained=0 pages=20606/20606 dma_saved=0x7fffffffffff/0x7fffffffffff dma_now=0xffffffff/0xffffffff firmware_started=0 master=0 quiesced=0
pci 0000:04:00.0: gpu_unlock: stage=handoff ret=-22 state=0 retained=0 pages=0/20606 cleanup=0
pci 0000:04:00.0: gpu_unlock: unlock failed (-22)
pci 0000:04:00.0: gpu_unlock: stage=claim device=0x2504 family=GA102/GA103/GA104/GA106 cmd=0x3 original=0x3 bar_len=0x1000000 region=1 enabled=0 master=0
pci 0000:04:00.0: gpu_unlock: stage=layout fb=0x300000000 vga=0x2fff00000 frts=0x100000 wpr=0x2f5400000..0x2fff00000 boot=0x2ffdfa000 gsp=0x2fada0000 heap=0x2f5500000
pci 0000:04:00.0: gpu_unlock: stage=dma booter=60416 payload=0xfa00 pages=20606 meta=0x4ed11000 sig=0x30630000 stock=0x58f25000 boot=0x3bec0000
pci 0000:04:00.0: gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x40000032 ss1=0x0 wpr2_hi=0x0
pci 0000:04:00.0: gpu_unlock: stage=fwsec version=3 fuse=0x3 ver=2 scratch=0x0 wpr2_raw=0x2ffe000:0x2ffee00 frts=0x2ffe000:0x2ffee00
pci 0000:04:00.0: gpu_unlock: stage=publish meta=0x4ed11000 sig=0x30630000 size=0xfa00 radix=0xa7aa0000
pci 0000:04:00.0: gpu_unlock: pass=1/2 attempt=1 target=0x1fa7cc value=0xfffff0ff before=0x4cb8f after=0xfffff0ff wpr2=0x2f54000:0x2ffee00 reset_plm=0xffffffff mbox=0x0:0x4ed11000 ret=0
pci 0000:04:00.0: gpu_unlock: pass=2/2 attempt=1 target=0x823804 value=0xffffffff before=0xffffff8f after=0xffffffff wpr2=0x2f54000:0x2ffee00 reset_plm=0xffffffff mbox=0x0:0x4ed11000 ret=0
pci 0000:04:00.0: gpu_unlock: stage=host ss0=0x88888888 ss1=0x8 plm_feat=0xffffffff plm_wpr_cfg=0xfffff0ff
pci 0000:04:00.0: gpu_unlock: stage=flr post_wpr2=0x1ffffe00:0x0 ss0=0x88888888 ss1=0x8 plm=0xffffffff cmd=0x3 devsta=0x0 chip=0xb76000a1
pci 0000:04:00.0: gpu_unlock: stage=handoff ret=0 state=4 retained=0 pages=0/20606 cleanup=0
pci 0000:04:00.0: gpu_unlock: unlocked
pci 0000:01:00.0: gpu_unlock: stage=claim device=0x2487 family=GA102/GA103/GA104/GA106 cmd=0x3 original=0x3 bar_len=0x1000000 region=1 enabled=0 master=0
pci 0000:01:00.0: gpu_unlock: stage=layout fb=0x300000000 vga=0x2fff00000 frts=0x100000 wpr=0x2f5400000..0x2fff00000 boot=0x2ffdfa000 gsp=0x2fada0000 heap=0x2f5500000
pci 0000:01:00.0: gpu_unlock: stage=dma booter=60416 payload=0xfa00 pages=20606 meta=0x4ed11000 sig=0x4ede0000 stock=0x58f25000 boot=0x3bec0000
pci 0000:01:00.0: gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x14442004 ss1=0x7 wpr2_hi=0x0
pci 0000:01:00.0: gpu_unlock: stage=fwsec version=3 fuse=0x3 ver=2 scratch=0x0 wpr2_raw=0x2ffe000:0x2ffee00 frts=0x2ffe000:0x2ffee00
pci 0000:01:00.0: gpu_unlock: stage=publish meta=0x4ed11000 sig=0x4ede0000 size=0xfa00 radix=0x17c5c000
pci 0000:01:00.0: gpu_unlock: pass=1/2 attempt=1 target=0x1fa7cc value=0xfffff0ff before=0x4cb8f after=0xfffff0ff wpr2=0x2f54000:0x2ffee00 reset_plm=0xffffffff mbox=0x0:0x4ed11000 ret=0
pci 0000:01:00.0: gpu_unlock: pass=2/2 attempt=1 target=0x823804 value=0xffffffff before=0xffffff8f after=0xffffffff wpr2=0x2f54000:0x2ffee00 reset_plm=0xffffffff mbox=0x0:0x4ed11000 ret=0
pci 0000:01:00.0: gpu_unlock: stage=host ss0=0x88888888 ss1=0x8 plm_feat=0xffffffff plm_wpr_cfg=0xfffff0ff
pci 0000:01:00.0: gpu_unlock: stage=flr post_wpr2=0x1ffffe00:0x0 ss0=0x88888888 ss1=0x8 plm=0xffffffff cmd=0x3 devsta=0x0 chip=0xb74000a1
pci 0000:01:00.0: gpu_unlock: stage=handoff ret=0 state=4 retained=0 pages=0/20606 cleanup=0
pci 0000:01:00.0: gpu_unlock: unlocked

Benchmark before and after

Raw GEMM: cuBLAS cublasGemmEx (CUDA 12.6, small C++ harness), 8192³ dense, median of 5 runs of 20 GEMMs, 170 W, same boot before and after.

Input GPU0 GA104 before GPU0 GA104 after GPU1 GA106 before GPU1 GA106 after
FP16 (FP32 acc) 28.17 TFLOPS 50.18 27.08 48.28
BF16 (FP32 acc) 28.17 52.08 27.40 52.09
TF32 14.11 26.18 13.72 26.18
FP16 (FP16 acc), control 46.76 46.86 46.86 46.86
INT8, control 99.30 TOPS 99.23 96.85 95.46

Real models. Since #2 asks what the net result is, here is what actually changed for the inference stack on this box. Same boot, same binaries, same power limit:

llama.cpp (build 11870, 74bca3950), llama bench -fa 1 -r 3, tokens/s:

Model Placement Test Before After Δ
Gemma 4 E4B UD-Q5_K_XL GPU0 pp512 3080.61 ± 23.64 3157.76 ± 26.22 +2.5 %
pp4096 2987.38 ± 2.42 3087.78 ± 4.29 +3.4 %
pp4096, -ub 2048 3087.10 ± 3.05 3184.25 ± 0.60 +3.1 %
tg128 71.93 ± 0.06 72.07 ± 0.01 0 %
Gemma 4 E4B UD-Q5_K_XL GPU1 pp512 2897.72 ± 25.65 2936.19 ± 28.50 +1.3 %
pp4096 2813.28 ± 6.33 2889.12 ± 0.58 +2.7 %
tg128 71.01 ± 0.02 70.95 ± 0.03 0 %
Qwen3.8 27B IQ3_S both, -ts 55/45 pp512 628.74 ± 0.92 634.51 ± 1.46 +0.9 %
pp4096 949.13 ± 0.87 961.64 ± 0.84 +1.3 %
tg128 21.66 ± 0.02 21.71 ± 0.01 0 %
Flint 40B-A2.5B UD-IQ3_XXS both, -ts 56/44 pp512 1399.15 ± 7.22 1404.71 ± 6.59 +0.4 %
pp4096 2001.84 ± 4.25 2028.33 ± 4.31 +1.3 %
tg128 84.38 ± 0.05 84.34 ± 0.03 0 %

stable-diffusion.cpp (95b3090) and audio.cpp (23da5a1), wall time per job as reported by the service (one sd-cli / audiocpp_cli process per job, so run 1 includes the weight load). Fixed seed, two runs each:

Model Job Before After
Qwen-Image 2.1 Turbo Q8_0 1024², 8 steps 35.5 / 28.8 s 35.0 / 28.8 s
MOSS-Image SFT Q8_0 1024², 50 steps, cfg 3 236.7 / 232.2 s 233.3 / 228.3 s
MiniMax-H3 Q4_K still, 1344x768, 8 steps 96.3 / 96.2 s 95.5 / 86.9 s
MiniMax-H3 Q4_K video, 832x480, 2.3 s 193.0 s 184.0 s
Stable Audio 3 Small SFX 8 s 5.1 / 2.9 s 5.0 / 2.9 s
YuE2-3B short song 41.2 s 41.0 s

Takeaways:

  • The unlock is real on both dies: FP16/BF16 with FP32 accumulation is +78–90 % and TF32 +86–91 %, while the FP16-accumulate and INT8 controls don't move.
  • ggml-based stacks barely benefit: prefill +1–3.5 %, decode 0 %, diffusion and audio 0–5 %. llama.cpp's quantized matmuls go through INT8 MMQ, its F16 cuBLAS path uses FP16 accumulation (never throttled on GeForce), and decode is memory-bound. The small prefill gain is consistent with FlashAttention's FP16-in/FP32-acc MMA. The unlock pays off for PyTorch-style BF16/TF32 work, not for GGUF inference.
  • All image and audio outputs were bit-identical before and after (decoded pixels compared), so numerics don't change.
  • Thermals and power didn't change: under the same sustained media workload GPU0 peaked at 74 °C both before and after (avg 161 W → 163 W, mostly SW power cap at 170 W), and GPU1 at 70 → 72 °C. No Xid errors.

Suspend and resume

Not tested

Anything else

Runtime unlock without a reboot works, as long as GFW has finished after the reset. Sequence used, per card, all as root:

# stop everything using the GPUs (containers, nvidia-persistenced, NVML monitors)
rmmod nvidia_drm nvidia_modeset nvidia_uvm nvidia
echo 1 > /sys/bus/pci/devices/0000:04:00.0/reset    # reset_method: flr bus
sleep 5                                             # let GFW devinit finish
echo -n /path/to/fwroot > /sys/module/firmware_class/parameters/path   # fwroot/gpu-unlock/610.43.03/*.bin
insmod gpu_unlock.ko targets=0000:04:00.0
rmmod gpu_unlock
echo > /sys/module/firmware_class/parameters/path
modprobe nvidia && modprobe nvidia_uvm && modprobe nvidia_drm

Notes:

  • After a full NVIDIA driver unload plus FLR, WPR2 reads back as hi=0x0 on both cards, so the "card already initialised since power on" refusal doesn't trigger, even after 11 days under the driver.
  • Without the sleep 5, stage=layout reads PRI-error values (fb=0xbadf510800000) and the transaction fails at unlock_transaction_fwsec:874 with -22. It cleaned up correctly (retained=0) and a retry worked. The layout is read before the stage=gfw wait. That never matters at boot, but for a host-initiated reset it might be worth waiting for GFW before reading the layout.
  • Stock selector values: GA104 ss0=0x14442004 ss1=0x7, GA106 LHR ss0=0x40000032 ss1=0x0.
Originally created by @realhidden on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/202 ### Result Unlocked, and FP16/BF16 got faster ### Card 2x Gigabyte GeForce RTX 3060 12 GB: one **GA104** variant (subsystem `1458:4072`) and one **GA106 LHR** (subsystem `1458:40e2`) ### PCI IDs ```text 0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104 [GeForce RTX 3060] [10de:2487] (rev a1) 0000:01:00.1 Audio device [0403]: NVIDIA Corporation GA104 High Definition Audio Controller [10de:228b] (rev a1) 0000:04:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106 [GeForce RTX 3060 Lite Hash Rate] [10de:2504] (rev a1) 0000:04:00.1 Audio device [0403]: NVIDIA Corporation GA106 High Definition Audio Controller [10de:228e] (rev a1) ``` ### VBIOS version 00000000:01:00.0, 94.04.71.40.1B 00000000:04:00.0, 94.06.2F.40.95 ### Is the card modified? Stock ### Distribution Debian 13 (trixie) ### Kernel 6.12.111+deb13-amd64 ### NVIDIA driver 595.71.05, proprietary kernel modules (Debian `nvidia-kernel-dkms`) ### Initramfs generator Other or not sure ### gpu-unlock version and install method 6081407. Built the debs with `make deb` in a `debian:13` container, but did **not** install them: I built `gpu_unlock.ko` by hand against the running kernel and loaded it at runtime with `insmod` (see "Anything else"). Nothing was persisted, and a reboot puts the cards back to stock. ### Kernel command line BOOT_IMAGE=/vmlinuz-6.12.111+deb13-amd64 (no `gpu_unlock.targets=`; targets were passed as an `insmod` parameter) ### Setup 2x RTX 3060 12 GB, headless inference server (ASRock B550M Pro4, Ryzen 5 5500), default 170 W power limit on both cards, Secure Boot disabled. The cards serve llama.cpp, stable-diffusion.cpp and audio.cpp workloads. The cards had been up 11 days under the NVIDIA driver when they were unlocked. ### Kernel log First attempt on 04:00.0 failed cleanly with -22: `insmod` ran right after a manual FLR, and the layout reads came back as `0xbadf…` (see notes). The second attempt, 5 s after the FLR, and then 01:00.0 both unlocked: ```text pci 0000:04:00.0: gpu_unlock: stage=claim device=0x2504 family=GA102/GA103/GA104/GA106 cmd=0x3 original=0x3 bar_len=0x1000000 region=1 enabled=0 master=0 pci 0000:04:00.0: gpu_unlock: stage=layout fb=0xbadf510800000 vga=0xbadf510700000 frts=0x100000 wpr=0xbadf505c00000..0xbadf510700000 boot=0xbadf5105fa000 gsp=0xbadf50b5a0000 heap=0xbadf505d00000 pci 0000:04:00.0: gpu_unlock: stage=dma booter=60416 payload=0xfa00 pages=20606 meta=0x4ed11000 sig=0x4ede0000 stock=0x58f25000 boot=0x30670000 pci 0000:04:00.0: gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x40000032 ss1=0x0 wpr2_hi=0x0 pci 0000:04:00.0: gpu_unlock: failure unlock_transaction_fwsec:874 error=-22 family=GA102/GA103/GA104/GA106 payload=ga102-v67 state=0 index=0 attempt=0 target=0x0 value=0x0 last_mmio=0x1fa828:0x0 valid=1 bar=1 pci 0000:04:00.0: gpu_unlock: boot reset_plm=0xffffffff ctl=0xbadf5620 engine=0x0 fhstate=0xbadf5620 mbox=0x0:0x0 acr=0x0 csberr=0xbadf5620 ok=1 pci 0000:04:00.0: gpu_unlock: wpr2 lo=0x1ffffe00 hi=0x0 start=0x1ffffe0000 end=0x20000 frts=0x0:0x0 saved=0 pci 0000:04:00.0: gpu_unlock: plm feat=0xffffff8f rd=0xf wr=0x8 src=0xfffff rv=1 wv=1 wpr_cfg=0x4cb8f wpr=0x4cb8f lock=0x45cb8f ss0=0x40000032 ss1=0x0 pci 0000:04:00.0: gpu_unlock: pci cmd=0x3 original=0x3 pm=0 devsta=0x0 trpnd=0 bars=0xf9000000,0xb000000c,0x0,0xc000000c,0x0,0xe001 last_pci=0:0x0:0x10de:0 pci 0000:04:00.0: gpu_unlock: resources retained=0 pages=20606/20606 dma_saved=0x7fffffffffff/0x7fffffffffff dma_now=0xffffffff/0xffffffff firmware_started=0 master=0 quiesced=0 pci 0000:04:00.0: gpu_unlock: stage=handoff ret=-22 state=0 retained=0 pages=0/20606 cleanup=0 pci 0000:04:00.0: gpu_unlock: unlock failed (-22) pci 0000:04:00.0: gpu_unlock: stage=claim device=0x2504 family=GA102/GA103/GA104/GA106 cmd=0x3 original=0x3 bar_len=0x1000000 region=1 enabled=0 master=0 pci 0000:04:00.0: gpu_unlock: stage=layout fb=0x300000000 vga=0x2fff00000 frts=0x100000 wpr=0x2f5400000..0x2fff00000 boot=0x2ffdfa000 gsp=0x2fada0000 heap=0x2f5500000 pci 0000:04:00.0: gpu_unlock: stage=dma booter=60416 payload=0xfa00 pages=20606 meta=0x4ed11000 sig=0x30630000 stock=0x58f25000 boot=0x3bec0000 pci 0000:04:00.0: gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x40000032 ss1=0x0 wpr2_hi=0x0 pci 0000:04:00.0: gpu_unlock: stage=fwsec version=3 fuse=0x3 ver=2 scratch=0x0 wpr2_raw=0x2ffe000:0x2ffee00 frts=0x2ffe000:0x2ffee00 pci 0000:04:00.0: gpu_unlock: stage=publish meta=0x4ed11000 sig=0x30630000 size=0xfa00 radix=0xa7aa0000 pci 0000:04:00.0: gpu_unlock: pass=1/2 attempt=1 target=0x1fa7cc value=0xfffff0ff before=0x4cb8f after=0xfffff0ff wpr2=0x2f54000:0x2ffee00 reset_plm=0xffffffff mbox=0x0:0x4ed11000 ret=0 pci 0000:04:00.0: gpu_unlock: pass=2/2 attempt=1 target=0x823804 value=0xffffffff before=0xffffff8f after=0xffffffff wpr2=0x2f54000:0x2ffee00 reset_plm=0xffffffff mbox=0x0:0x4ed11000 ret=0 pci 0000:04:00.0: gpu_unlock: stage=host ss0=0x88888888 ss1=0x8 plm_feat=0xffffffff plm_wpr_cfg=0xfffff0ff pci 0000:04:00.0: gpu_unlock: stage=flr post_wpr2=0x1ffffe00:0x0 ss0=0x88888888 ss1=0x8 plm=0xffffffff cmd=0x3 devsta=0x0 chip=0xb76000a1 pci 0000:04:00.0: gpu_unlock: stage=handoff ret=0 state=4 retained=0 pages=0/20606 cleanup=0 pci 0000:04:00.0: gpu_unlock: unlocked pci 0000:01:00.0: gpu_unlock: stage=claim device=0x2487 family=GA102/GA103/GA104/GA106 cmd=0x3 original=0x3 bar_len=0x1000000 region=1 enabled=0 master=0 pci 0000:01:00.0: gpu_unlock: stage=layout fb=0x300000000 vga=0x2fff00000 frts=0x100000 wpr=0x2f5400000..0x2fff00000 boot=0x2ffdfa000 gsp=0x2fada0000 heap=0x2f5500000 pci 0000:01:00.0: gpu_unlock: stage=dma booter=60416 payload=0xfa00 pages=20606 meta=0x4ed11000 sig=0x4ede0000 stock=0x58f25000 boot=0x3bec0000 pci 0000:01:00.0: gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x14442004 ss1=0x7 wpr2_hi=0x0 pci 0000:01:00.0: gpu_unlock: stage=fwsec version=3 fuse=0x3 ver=2 scratch=0x0 wpr2_raw=0x2ffe000:0x2ffee00 frts=0x2ffe000:0x2ffee00 pci 0000:01:00.0: gpu_unlock: stage=publish meta=0x4ed11000 sig=0x4ede0000 size=0xfa00 radix=0x17c5c000 pci 0000:01:00.0: gpu_unlock: pass=1/2 attempt=1 target=0x1fa7cc value=0xfffff0ff before=0x4cb8f after=0xfffff0ff wpr2=0x2f54000:0x2ffee00 reset_plm=0xffffffff mbox=0x0:0x4ed11000 ret=0 pci 0000:01:00.0: gpu_unlock: pass=2/2 attempt=1 target=0x823804 value=0xffffffff before=0xffffff8f after=0xffffffff wpr2=0x2f54000:0x2ffee00 reset_plm=0xffffffff mbox=0x0:0x4ed11000 ret=0 pci 0000:01:00.0: gpu_unlock: stage=host ss0=0x88888888 ss1=0x8 plm_feat=0xffffffff plm_wpr_cfg=0xfffff0ff pci 0000:01:00.0: gpu_unlock: stage=flr post_wpr2=0x1ffffe00:0x0 ss0=0x88888888 ss1=0x8 plm=0xffffffff cmd=0x3 devsta=0x0 chip=0xb74000a1 pci 0000:01:00.0: gpu_unlock: stage=handoff ret=0 state=4 retained=0 pages=0/20606 cleanup=0 pci 0000:01:00.0: gpu_unlock: unlocked ``` ### Benchmark before and after **Raw GEMM:** cuBLAS `cublasGemmEx` (CUDA 12.6, small C++ harness), 8192³ dense, median of 5 runs of 20 GEMMs, 170 W, same boot before and after. | Input | GPU0 GA104 before | GPU0 GA104 after | GPU1 GA106 before | GPU1 GA106 after | | ----- | ----------------- | ---------------- | ----------------- | ---------------- | | FP16 (FP32 acc) | 28.17 TFLOPS | **50.18** | 27.08 | **48.28** | | BF16 (FP32 acc) | 28.17 | **52.08** | 27.40 | **52.09** | | TF32 | 14.11 | **26.18** | 13.72 | **26.18** | | FP16 (FP16 acc), control | 46.76 | 46.86 | 46.86 | 46.86 | | INT8, control | 99.30 TOPS | 99.23 | 96.85 | 95.46 | **Real models.** Since #2 asks what the net result is, here is what actually changed for the inference stack on this box. Same boot, same binaries, same power limit: llama.cpp (build 11870, `74bca3950`), `llama bench -fa 1 -r 3`, tokens/s: | Model | Placement | Test | Before | After | Δ | | ----- | --------- | ---- | ------ | ----- | - | | Gemma 4 E4B UD-Q5_K_XL | GPU0 | pp512 | 3080.61 ± 23.64 | 3157.76 ± 26.22 | +2.5 % | | | | pp4096 | 2987.38 ± 2.42 | 3087.78 ± 4.29 | +3.4 % | | | | pp4096, `-ub 2048` | 3087.10 ± 3.05 | 3184.25 ± 0.60 | +3.1 % | | | | tg128 | 71.93 ± 0.06 | 72.07 ± 0.01 | 0 % | | Gemma 4 E4B UD-Q5_K_XL | GPU1 | pp512 | 2897.72 ± 25.65 | 2936.19 ± 28.50 | +1.3 % | | | | pp4096 | 2813.28 ± 6.33 | 2889.12 ± 0.58 | +2.7 % | | | | tg128 | 71.01 ± 0.02 | 70.95 ± 0.03 | 0 % | | Qwen3.8 27B IQ3_S | both, `-ts 55/45` | pp512 | 628.74 ± 0.92 | 634.51 ± 1.46 | +0.9 % | | | | pp4096 | 949.13 ± 0.87 | 961.64 ± 0.84 | +1.3 % | | | | tg128 | 21.66 ± 0.02 | 21.71 ± 0.01 | 0 % | | Flint 40B-A2.5B UD-IQ3_XXS | both, `-ts 56/44` | pp512 | 1399.15 ± 7.22 | 1404.71 ± 6.59 | +0.4 % | | | | pp4096 | 2001.84 ± 4.25 | 2028.33 ± 4.31 | +1.3 % | | | | tg128 | 84.38 ± 0.05 | 84.34 ± 0.03 | 0 % | stable-diffusion.cpp (`95b3090`) and audio.cpp (`23da5a1`), wall time per job as reported by the service (one sd-cli / audiocpp_cli process per job, so run 1 includes the weight load). Fixed seed, two runs each: | Model | Job | Before | After | | ----- | --- | ------ | ----- | | Qwen-Image 2.1 Turbo Q8_0 | 1024², 8 steps | 35.5 / 28.8 s | 35.0 / 28.8 s | | MOSS-Image SFT Q8_0 | 1024², 50 steps, cfg 3 | 236.7 / 232.2 s | 233.3 / 228.3 s | | MiniMax-H3 Q4_K | still, 1344x768, 8 steps | 96.3 / 96.2 s | 95.5 / 86.9 s | | MiniMax-H3 Q4_K | video, 832x480, 2.3 s | 193.0 s | 184.0 s | | Stable Audio 3 Small SFX | 8 s | 5.1 / 2.9 s | 5.0 / 2.9 s | | YuE2-3B | short song | 41.2 s | 41.0 s | Takeaways: - The unlock is real on both dies: FP16/BF16 with FP32 accumulation is +78–90 % and TF32 +86–91 %, while the FP16-accumulate and INT8 controls don't move. - ggml-based stacks barely benefit: prefill +1–3.5 %, decode 0 %, diffusion and audio 0–5 %. llama.cpp's quantized matmuls go through INT8 MMQ, its F16 cuBLAS path uses FP16 accumulation (never throttled on GeForce), and decode is memory-bound. The small prefill gain is consistent with FlashAttention's FP16-in/FP32-acc MMA. The unlock pays off for PyTorch-style BF16/TF32 work, not for GGUF inference. - All image and audio outputs were **bit-identical** before and after (decoded pixels compared), so numerics don't change. - Thermals and power didn't change: under the same sustained media workload GPU0 peaked at 74 °C both before and after (avg 161 W → 163 W, mostly SW power cap at 170 W), and GPU1 at 70 → 72 °C. No Xid errors. ### Suspend and resume Not tested ### Anything else **Runtime unlock without a reboot works**, as long as GFW has finished after the reset. Sequence used, per card, all as root: ```sh # stop everything using the GPUs (containers, nvidia-persistenced, NVML monitors) rmmod nvidia_drm nvidia_modeset nvidia_uvm nvidia echo 1 > /sys/bus/pci/devices/0000:04:00.0/reset # reset_method: flr bus sleep 5 # let GFW devinit finish echo -n /path/to/fwroot > /sys/module/firmware_class/parameters/path # fwroot/gpu-unlock/610.43.03/*.bin insmod gpu_unlock.ko targets=0000:04:00.0 rmmod gpu_unlock echo > /sys/module/firmware_class/parameters/path modprobe nvidia && modprobe nvidia_uvm && modprobe nvidia_drm ``` Notes: - After a full NVIDIA driver unload plus FLR, WPR2 reads back as `hi=0x0` on both cards, so the "card already initialised since power on" refusal doesn't trigger, even after 11 days under the driver. - Without the `sleep 5`, `stage=layout` reads PRI-error values (`fb=0xbadf510800000`) and the transaction fails at `unlock_transaction_fwsec:874` with -22. It cleaned up correctly (`retained=0`) and a retry worked. The layout is read before the `stage=gfw` wait. That never matters at boot, but for a host-initiated reset it might be worth waiting for GFW before reading the layout. - Stock selector values: GA104 `ss0=0x14442004 ss1=0x7`, GA106 LHR `ss0=0x40000032 ss1=0x0`.
bsakaguchi 2026-10-30 04:55:26 +07:00
Author
Owner

@Zagitta commented on GitHub (Oct 27, 2026):

Thanks for the report! Success reports now live in one place: https://github.com/Zagitta/gpu-unlock/discussions/238. Closing this so the issue tracker stays focused on cards where the unlock fails. Your numbers stay searchable here under the success-report label. If something stops working later, please open an unlock failure issue.

<!-- gh-comment-id:6455045710 --> @Zagitta commented on GitHub (Oct 27, 2026): Thanks for the report! Success reports now live in one place: https://github.com/Zagitta/gpu-unlock/discussions/238. Closing this so the issue tracker stays focused on cards where the unlock fails. Your numbers stay searchable here under the `success-report` label. If something stops working later, please open an unlock failure issue.
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#199
No description provided.