[GH-ISSUE #124] Compatibility report: RTX 3070 Laptop 8GB (10de:24dd) — unlock succeeds, no FP16/BF16 speedup #93

Open
opened 2026-10-26 16:40:29 +07:00 by bsakaguchi · 2 comments
Owner

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

Result

Unlock completed, but no speedup

Card

NVIDIA GeForce RTX 3070 Laptop GPU (GA104M / Max-Q), 8 GB VRAM, Lenovo Legion 5

PCI IDs

0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:24dd] (rev a1)
0000:01:00.1 Audio device [0403]: NVIDIA Corporation GA104 High Definition Audio Controller [10de:228b] (rev a1)

VBIOS version

00000000:01:00.0, 94.04.3F.00.C6

Is the card modified?

Stock

Distribution

Ubuntu 26.04.1 LTS (Resolute Raccoon)

Kernel

7.0.0-38-generic

NVIDIA driver

595.99.02, open kernel modules

Initramfs generator

dracut

gpu-unlock version and install method

1.0.0, make install (Debian DKMS + firmware packages); af28cbb

Kernel command line

BOOT_IMAGE=/boot/vmlinuz-7.0.0-38-generic root=UUID=2b693fd2-f0f8-45a8-9b15-a73c010a1f4a ro quiet splash crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M gpu_unlock.targets=0000:01:00.0

Setup

Lenovo Legion 5 laptop, AMD integrated graphics + RTX 3070 Laptop GPU using hybrid graphics. GPU used for local AI/CUDA workloads and not the active display. Stock 115 W GPU limit, 8 GB VRAM, Ubuntu 26.04.1, NVIDIA open kernel modules.

Secure Boot enabled. gpu_unlock DKMS module signed with an enrolled local MOK (verified via modinfo).

Ubuntu uses dracut, but the generated Debian package installed the initramfs-tools configuration instead of the dracut configuration. Manually copied the repository's packaging/boot/dracut.conf to /etc/dracut.conf.d/90-gpu-unlock.conf and rebuilt the initramfs. Verified the signed module and all five firmware files were included.

Activated only for a single boot using a temporary GRUB kernel parameter. Subsequent cold boot without the parameter used for the stock comparison.

Kernel log

[    1.154956] BigBrain kernel: gpu_unlock: loading out-of-tree module taints kernel.
[    1.450296] BigBrain kernel: gpu_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=65024 type=0x0 last=0
[    1.450322] BigBrain kernel: gpu_unlock: ROM chain: pos=0xfe00 data=0x52494350 bytes=92672 type=0x3 last=0
[    1.450343] BigBrain kernel: gpu_unlock: ROM chain: pos=0x26800 data=0x5344504e bytes=22016 type=0xe0 last=0
[    1.450367] BigBrain kernel: gpu_unlock: ROM chain: pos=0x2be00 data=0x5344504e bytes=397824 type=0xe0 last=128
[    1.450389] BigBrain kernel: gpu_unlock: ROM expansion: base=0xfe00 ext=0x26800 adjust=0x16a00
[    1.450411] BigBrain kernel: gpu_unlock: ROM BIT: offset=0x1b0 size=12 stride=6 tokens=17 adjust=0x16a00
[    1.450437] BigBrain kernel: gpu_unlock: ROM ucode table: offset=0x8cee7 version=1 header=6 stride=6 entries=16
[    1.450459] BigBrain kernel: gpu_unlock: FWSEC descriptor: offset=0x43034 ROM_bytes=1048576 header=0x4ac0301
[    1.450481] BigBrain kernel: gpu_unlock: FWSEC geometry: image_off=0x434e0 size=0xe700 imem=0xdf00 va=0x0 pa=0x0 dmem=0x800 pa=0x0 pkc=0x5a4 interface=0x1c engine=0x400 ucode=9 signatures=3 versions=0x7 bytes=1152
[    1.450505] BigBrain kernel: gpu_unlock: FWSEC interface: offset=0x1c version=1 header=4 stride=8 entries=2 FRTS=0x1ffe00000
[    1.450528] BigBrain kernel: gpu_unlock: FWSEC mapper: version=3 size=64 cmd_offset=0x7c0 cmd_size=64
[    1.450778] BigBrain kernel: gpu_unlock: FWSEC signature selection: versions=0x7 fuse_version=2 sig_bytes=384
[    2.439260] BigBrain kernel: pci 0000:01:00.0: gpu_unlock: unlocked

Benchmark before and after

PyTorch 2.14.1+cu132, CUDA 13.2, RTX 3070 Laptop GPU (SM 8.6).

8192 x 8192 dense torch.mm GEMM, 10 warmup runs, 20 timed runs, CUDA events, median elapsed time, persistent output buffer. FP16 accumulation disabled; reduced-precision reductions disabled for FP16/BF16. TF32 run using torch.set_float32_matmul_precision('high'); FP32 control using 'highest'.

Precision Stock Unlocked Change
FP16 32.39 TFLOPS 32.71 TFLOPS +0.99%
BF16 32.31 TFLOPS 32.61 TFLOPS +0.93%
TF32 16.23 TFLOPS 16.31 TFLOPS +0.49%
FP32 10.19 TFLOPS 10.10 TFLOPS -0.88%

Initial 4096 x 4096 test also showed negligible change:
FP16 30.88 -> 32.59 TFLOPS; BF16 32.81 -> 32.57; TF32 16.31 -> 16.27; FP32 7.53 -> 7.54.

Benchmark run with unlock active, followed by full power-off and cold boot without gpu_unlock.targets, then the same script run again. Results are consistent with ordinary variation and show no meaningful acceleration.

Suspend and resume

Not tested

Anything else

Boot sequencing appears correct: gpu_unlock reported success at 2.439 seconds, before the NVIDIA open kernel module loaded at 8.696 seconds and nvidia-drm at 8.788 seconds.

Despite the success message, FP16/BF16 and TF32 remain essentially unchanged. Is it possible the NVIDIA driver or laptop power-management firmware resets the speed selectors during initialisation on this GA104M variant (10de:24dd, VBIOS 94.04.3F.00.C6)?

Happy to run additional safe diagnostics or a more targeted CUDA benchmark to check whether the selectors persist. Avoiding undocumented register writes without guidance.

Also worth noting the Debian package/dracut integration mismatch described above, which prevented the module and firmware being included in the initramfs until manually corrected.

Originally created by @dirtyfrog77 on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/124 ### Result Unlock completed, but no speedup ### Card NVIDIA GeForce RTX 3070 Laptop GPU (GA104M / Max-Q), 8 GB VRAM, Lenovo Legion 5 ### PCI IDs ```text 0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:24dd] (rev a1) 0000:01:00.1 Audio device [0403]: NVIDIA Corporation GA104 High Definition Audio Controller [10de:228b] (rev a1) ``` ### VBIOS version 00000000:01:00.0, 94.04.3F.00.C6 ### Is the card modified? Stock ### Distribution Ubuntu 26.04.1 LTS (Resolute Raccoon) ### Kernel 7.0.0-38-generic ### NVIDIA driver 595.99.02, open kernel modules ### Initramfs generator dracut ### gpu-unlock version and install method 1.0.0, make install (Debian DKMS + firmware packages); af28cbb ### Kernel command line BOOT_IMAGE=/boot/vmlinuz-7.0.0-38-generic root=UUID=2b693fd2-f0f8-45a8-9b15-a73c010a1f4a ro quiet splash crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M gpu_unlock.targets=0000:01:00.0 ### Setup Lenovo Legion 5 laptop, AMD integrated graphics + RTX 3070 Laptop GPU using hybrid graphics. GPU used for local AI/CUDA workloads and not the active display. Stock 115 W GPU limit, 8 GB VRAM, Ubuntu 26.04.1, NVIDIA open kernel modules. Secure Boot enabled. gpu_unlock DKMS module signed with an enrolled local MOK (verified via modinfo). Ubuntu uses dracut, but the generated Debian package installed the initramfs-tools configuration instead of the dracut configuration. Manually copied the repository's packaging/boot/dracut.conf to /etc/dracut.conf.d/90-gpu-unlock.conf and rebuilt the initramfs. Verified the signed module and all five firmware files were included. Activated only for a single boot using a temporary GRUB kernel parameter. Subsequent cold boot without the parameter used for the stock comparison. ### Kernel log ```text [ 1.154956] BigBrain kernel: gpu_unlock: loading out-of-tree module taints kernel. [ 1.450296] BigBrain kernel: gpu_unlock: ROM chain: pos=0x0 data=0x52494350 bytes=65024 type=0x0 last=0 [ 1.450322] BigBrain kernel: gpu_unlock: ROM chain: pos=0xfe00 data=0x52494350 bytes=92672 type=0x3 last=0 [ 1.450343] BigBrain kernel: gpu_unlock: ROM chain: pos=0x26800 data=0x5344504e bytes=22016 type=0xe0 last=0 [ 1.450367] BigBrain kernel: gpu_unlock: ROM chain: pos=0x2be00 data=0x5344504e bytes=397824 type=0xe0 last=128 [ 1.450389] BigBrain kernel: gpu_unlock: ROM expansion: base=0xfe00 ext=0x26800 adjust=0x16a00 [ 1.450411] BigBrain kernel: gpu_unlock: ROM BIT: offset=0x1b0 size=12 stride=6 tokens=17 adjust=0x16a00 [ 1.450437] BigBrain kernel: gpu_unlock: ROM ucode table: offset=0x8cee7 version=1 header=6 stride=6 entries=16 [ 1.450459] BigBrain kernel: gpu_unlock: FWSEC descriptor: offset=0x43034 ROM_bytes=1048576 header=0x4ac0301 [ 1.450481] BigBrain kernel: gpu_unlock: FWSEC geometry: image_off=0x434e0 size=0xe700 imem=0xdf00 va=0x0 pa=0x0 dmem=0x800 pa=0x0 pkc=0x5a4 interface=0x1c engine=0x400 ucode=9 signatures=3 versions=0x7 bytes=1152 [ 1.450505] BigBrain kernel: gpu_unlock: FWSEC interface: offset=0x1c version=1 header=4 stride=8 entries=2 FRTS=0x1ffe00000 [ 1.450528] BigBrain kernel: gpu_unlock: FWSEC mapper: version=3 size=64 cmd_offset=0x7c0 cmd_size=64 [ 1.450778] BigBrain kernel: gpu_unlock: FWSEC signature selection: versions=0x7 fuse_version=2 sig_bytes=384 [ 2.439260] BigBrain kernel: pci 0000:01:00.0: gpu_unlock: unlocked ``` ### Benchmark before and after PyTorch 2.14.1+cu132, CUDA 13.2, RTX 3070 Laptop GPU (SM 8.6). 8192 x 8192 dense torch.mm GEMM, 10 warmup runs, 20 timed runs, CUDA events, median elapsed time, persistent output buffer. FP16 accumulation disabled; reduced-precision reductions disabled for FP16/BF16. TF32 run using torch.set_float32_matmul_precision('high'); FP32 control using 'highest'. | Precision | Stock | Unlocked | Change | |---|---:|---:|---:| | FP16 | 32.39 TFLOPS | 32.71 TFLOPS | +0.99% | | BF16 | 32.31 TFLOPS | 32.61 TFLOPS | +0.93% | | TF32 | 16.23 TFLOPS | 16.31 TFLOPS | +0.49% | | FP32 | 10.19 TFLOPS | 10.10 TFLOPS | -0.88% | Initial 4096 x 4096 test also showed negligible change: FP16 30.88 -> 32.59 TFLOPS; BF16 32.81 -> 32.57; TF32 16.31 -> 16.27; FP32 7.53 -> 7.54. Benchmark run with unlock active, followed by full power-off and cold boot without gpu_unlock.targets, then the same script run again. Results are consistent with ordinary variation and show no meaningful acceleration. ### Suspend and resume Not tested ### Anything else Boot sequencing appears correct: gpu_unlock reported success at 2.439 seconds, before the NVIDIA open kernel module loaded at 8.696 seconds and nvidia-drm at 8.788 seconds. Despite the success message, FP16/BF16 and TF32 remain essentially unchanged. Is it possible the NVIDIA driver or laptop power-management firmware resets the speed selectors during initialisation on this GA104M variant (10de:24dd, VBIOS 94.04.3F.00.C6)? Happy to run additional safe diagnostics or a more targeted CUDA benchmark to check whether the selectors persist. Avoiding undocumented register writes without guidance. Also worth noting the Debian package/dracut integration mismatch described above, which prevented the module and firmware being included in the initramfs until manually corrected.
Author
Owner

@dirtyfrog77 commented on GitHub (Oct 26, 2026):

<head></head>

Thanks for linking #135. I've tested the proposed NVreg_GpuInitOnProbe=1 workaround on my RTX 3070 Laptop (10de:24dd), but unfortunately I'm still seeing no performance improvement.

Configuration:

  • NVIDIA 595.99.02 open kernel modules.

  • Added options nvidia NVreg_GpuInitOnProbe=1 to /etc/modprobe.d/nvidia-gpuinit.conf.

  • Included the configuration in my dracut initramfs and rebuilt it.

  • Booted with gpu_unlock.targets=0000:01:00.0.

  • Kernel reports gpu_unlock: unlocked before NVIDIA initialises.

modprobe --show-depends nvidia confirms the option is configured:

insmod /lib/modules/7.0.0-38-generic/kernel/nvidia-595-open/nvidia.ko NVreg_GpuInitOnProbe=1 NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var

No parameter rejection errors appear in the kernel log. However, GpuInitOnProbe isn't exposed in /proc/driver/nvidia/params or /sys/module/nvidia/parameters, so I haven't independently confirmed the effective driver state.

8192×8192 PyTorch GEMM results (TFLOPS):

Precision | Stock | Unlock only | Unlock + GpuInitOnProbe=1 -- | -- | -- | -- FP16 | 32.39 | 32.71 | 32.69 BF16 | 32.31 | 32.61 | 32.61 TF32 | 16.23 | 16.31 | 16.14 FP32 | 10.19 | 10.10 | 10.16

Unfortunately, the results are still effectively identical.

One potentially relevant detail is that this laptop has NVreg_PreserveVideoMemoryAllocations=1 configured by Ubuntu, although EnableS0ixPowerManagement=0.

Would a selector readback or a more targeted CUDA instruction benchmark help establish whether NVIDIA is resetting the unlock, or whether this particular GA104M variant behaves differently?

Happy to carry out further diagnostics.

<!-- gh-comment-id:6415567545 --> @dirtyfrog77 commented on GitHub (Oct 26, 2026): <head></head><p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span>Thanks for linking #135. I've tested the proposed<span class="Apple-converted-space"> </span></span><code><span>NVreg_GpuInitOnProbe=1</span></code><span><span class="Apple-converted-space"> </span>workaround on my RTX 3070 Laptop (10de:24dd), but unfortunately I'm still seeing no performance improvement.</span></p><p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><strong><span>Configuration:</span></strong></p><ul style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><li><p><span>NVIDIA 595.99.02 open kernel modules.</span></p></li><li><p><span>Added<span class="Apple-converted-space"> </span></span><code><span>options nvidia NVreg_GpuInitOnProbe=1</span></code><span><span class="Apple-converted-space"> </span>to<span class="Apple-converted-space"> </span></span><code><span>/etc/modprobe.d/nvidia-gpuinit.conf</span></code><span>.</span></p></li><li><p><span>Included the configuration in my dracut initramfs and rebuilt it.</span></p></li><li><p><span>Booted with<span class="Apple-converted-space"> </span></span><code><span>gpu_unlock.targets=0000:01:00.0</span></code><span>.</span></p></li><li><p><span>Kernel reports<span class="Apple-converted-space"> </span></span><code><span>gpu_unlock: unlocked</span></code><span><span class="Apple-converted-space"> </span>before NVIDIA initialises.</span></p></li></ul><p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><code><span>modprobe --show-depends nvidia</span></code><span><span class="Apple-converted-space"> </span>confirms the option is configured:</span></p><pre style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><code><span>insmod /lib/modules/7.0.0-38-generic/kernel/nvidia-595-open/nvidia.ko NVreg_GpuInitOnProbe=1 NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var</span></code></pre><p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span>No parameter rejection errors appear in the kernel log. However,<span class="Apple-converted-space"> </span></span><code><span>GpuInitOnProbe</span></code><span><span class="Apple-converted-space"> </span>isn't exposed in<span class="Apple-converted-space"> </span></span><code><span>/proc/driver/nvidia/params</span></code><span><span class="Apple-converted-space"> </span>or<span class="Apple-converted-space"> </span></span><code><span>/sys/module/nvidia/parameters</span></code><span>, so I haven't independently confirmed the effective driver state.</span></p><p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><strong><span>8192×8192 PyTorch GEMM results (TFLOPS):</span></strong></p> Precision | Stock | Unlock only | Unlock + GpuInitOnProbe=1 -- | -- | -- | -- FP16 | 32.39 | 32.71 | 32.69 BF16 | 32.31 | 32.61 | 32.61 TF32 | 16.23 | 16.31 | 16.14 FP32 | 10.19 | 10.10 | 10.16 <p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span>Unfortunately, the results are still effectively identical.</span></p><p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span>One potentially relevant detail is that this laptop has<span class="Apple-converted-space"> </span></span><code><span>NVreg_PreserveVideoMemoryAllocations=1</span></code><span><span class="Apple-converted-space"> </span>configured by Ubuntu, although<span class="Apple-converted-space"> </span></span><code><span>EnableS0ixPowerManagement=0</span></code><span>.</span></p><p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span>Would a selector readback or a more targeted CUDA instruction benchmark help establish whether NVIDIA is resetting the unlock, or whether this particular GA104M variant behaves differently?</span></p><p style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><span>Happy to carry out further diagnostics.</span></p>
Author
Owner

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

Independent reproduction on Lenovo Legion R9000P 2021H / Legion 5 Pro 2021 (16 GB VRAM mod)

I can confirm the same result: unlock completes successfully, but no FP16/BF16/TF32 speedup. Reporting details in case they help narrow the root cause.

Card

Same device ID as the original report: 10de:24dd (GA104M / RTX 3070 Laptop GPU), 16 GB VRAM (memory-modified from 8 GB, confirmed by nvidia-smi showing 16384 MiB).

Item Value
Laptop Lenovo Legion R9000P 2021H (China) = Legion 5 Pro 2021 (international), product 82JQ
PCI ID / subsystem / revision 10de:24dd / 17aa:3a4f / A1
PCI address 0000:01:00.0 (audio function 0000:01:00.1, 10de:228b)
VBIOS 94.04.77.00.8D (differs from the 94.04.3F.00.C6 in the original report)
Display role boot-VGA / drives the internal panel (boot_vga=1, no iGPU visible on PCI)
Power limit 115 W default, 150 W max

Software

Tested on two drivers, both with gpu-unlock at commit 6081407 (v1.1.0) built from source via make deb, installed through the Debian DKMS + firmware packages. Secure Boot disabled, kernel lockdown none.

Run 1 Run 2
Distro Ubuntu 24.04.4 LTS Ubuntu 24.04.4 LTS
Kernel 6.8.0-106-generic 6.8.0-106-generic
NVIDIA driver 590.48.01 proprietary (nvidia-driver-590-server) 580.196.07 proprietary (nvidia-driver-580)
NVreg_DynamicPowerManagement 0x02 (Ubuntu default, runtime D3 on) 0x00 (runtime D3 off)
GSP firmware on off (NVreg_EnableGpuFirmware=0)
Initramfs initramfs-tools, MODULES=most same

The second run was done specifically to address the two most likely culprits from this issue and #135/#206: runtime D3 powering the GPU off (resetting selectors) and driver GPU-init timing. I used NVreg_DynamicPowerManagement=0x00 and NVreg_EnableGpuFirmware=0, matching the successful ThinkPad P1 config in #206. Note that the 580 driver does not expose NVreg_GpuInitOnProbe (that parameter was introduced in 595), so on 580 the GPU should initialize at PCI probe rather than first client open — i.e. the #135 re-latch mechanism should not apply.

Kernel log

Unlock completed cleanly on both boots, with gpu_unlock loading before NVIDIA in the initramfs (confirmed by timestamps: unlock at 33.9 s, NVRM at 35.1 s). Same full sequence as the original report:

gpu_unlock: stage=claim device=0x24dd family=GA102/GA103/GA104/GA106 cmd=0x3
gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x30611004 ss1=0x6 wpr2_hi=0x0
gpu_unlock: pass=1/2 attempt=1 target=0x1fa7cc value=0xfffff0ff … ret=0
gpu_unlock: pass=2/2 attempt=1 target=0x823804 value=0xffffffff … ret=0
gpu_unlock: stage=host ss0=0x88888888 ss1=0x8 plm_feat=0xffffffff plm_wpr_cfg=0xfffff0ff
gpu_unlock: stage=flr post_wpr2=0x1ffffe00:0x0 ss0=0x88888888 ss1=0x8
gpu_unlock: stage=handoff ret=0 state=4 retained=0 pages=0/20606 cleanup=0
gpu_unlock: unlocked

No Xid errors, NVIDIA driver binds normally afterwards, nvidia-smi healthy, 16 GB visible.

Benchmark

PyTorch 2.8.0+cu128, dense 8192³ torch.mm with FP32 accumulation, reduced-precision reductions disabled for FP16/BF16, TF32 via set_float32_matmul_precision('high'), FP32 control via 'highest'. 10 warmups + 20 timed runs × 3 rounds, CUDA events, persistent output buffer, median. AC power, GPU stayed in D0 for the whole second run (runtime D3 off).

Input Baseline (590, no unlock) 590 unlocked 580 unlocked, rTD3 off, GSP off
FP16 36.17 TFLOPS 36.00 (−0.5%) 36.01 / 36.29 (−0.5% / +0.3%)
BF16 36.21 TFLOPS 35.96 (−0.7%) 35.91 / 36.20 (−0.8% / −0.0%)
TF32 17.98 TFLOPS 17.98 (0.0%) 17.92 / 17.91 (−0.3% / −0.4%)
FP32 (control) 11.56 TFLOPS 11.65 (+0.8%) 11.58 / 11.49 (+0.2% / −0.6%)

All within ±1% run-to-run noise, no consistent direction. Power/temperature/clocks matched the baseline (~126 W under FP16/BF16, ~1.8 GHz SM, 56 °C, no thermal throttle), so this is not a power-limit artifact. The card is running at ~36 TFLOPS FP16, which is ~95% of the half-rate ceiling for 40 SMs at that clock — i.e. it is solidly at stock half-rate, with no headroom being left on the table by clocks or power.

Interpretation

Since runtime D3 was off, GSP was off, the driver was an older (probe-time-init) branch, and the unlock logged success with SS0/SS1 verified at 0x88888888/0x8 across FLR, the "driver re-initialized and re-latched the selectors" explanation from #135 does not appear to account for this card. That leaves two candidates:

  1. The NVIDIA driver's own GSP-RM boot / GPU initialization on this SKU overwrites the selectors even at probe time (would mean the selectors only live in the tiny window between FLR and driver init, and never reach a running tensor core).
  2. On this 24dd mobile part the BF16/FP16 double-rate is hard-fused (strap/fuse), so SS0/SS1 are written and read back correctly but have no effect — similar in spirit to #28, where selectors verified held at runtime yet the rate stayed at half.

Worth noting: other GA104M laptop SKUs do gain from this unlock (249d +95% in #101, 24dc +65% in #105, 249c in #206, 24e0 +50% in #182). So this does not look like "all GA104M is fused"; it looks specific to 24dd (or at least the Lenovo variants of it, since both this report and the original are Lenovo).

Hypothesis for testing

If someone with a 24dd card can run a read-only BAR read of SS0/SS1 after the driver has bound and a CUDA context has been created (as was done in #28), that would cleanly distinguish hypothesis 1 (selectors reverted by driver init) from hypothesis 2 (selectors held but ignored by hardware). I did not do this because I did not want to write an out-of-tree read-only module without more discussion, and #28 already shows that "selectors held" can coexist with "no speedup".

Happy to run further read-only diagnostics if someone can point me at a safe way to read those registers on a live card.

<!-- gh-comment-id:6436380262 --> @MiQieR commented on GitHub (Oct 27, 2026): **Independent reproduction on Lenovo Legion R9000P 2021H / Legion 5 Pro 2021 (16 GB VRAM mod)** I can confirm the same result: unlock completes successfully, but no FP16/BF16/TF32 speedup. Reporting details in case they help narrow the root cause. ### Card Same device ID as the original report: `10de:24dd` (GA104M / RTX 3070 Laptop GPU), **16 GB VRAM** (memory-modified from 8 GB, confirmed by `nvidia-smi` showing 16384 MiB). | Item | Value | |---|---| | Laptop | Lenovo Legion R9000P 2021H (China) = Legion 5 Pro 2021 (international), product 82JQ | | PCI ID / subsystem / revision | `10de:24dd` / `17aa:3a4f` / A1 | | PCI address | `0000:01:00.0` (audio function `0000:01:00.1`, `10de:228b`) | | VBIOS | `94.04.77.00.8D` (differs from the `94.04.3F.00.C6` in the original report) | | Display role | boot-VGA / drives the internal panel (`boot_vga=1`, no iGPU visible on PCI) | | Power limit | 115 W default, 150 W max | ### Software Tested on two drivers, both with `gpu-unlock` at commit `6081407` (v1.1.0) built from source via `make deb`, installed through the Debian DKMS + firmware packages. Secure Boot disabled, kernel lockdown none. | | Run 1 | Run 2 | |---|---|---| | Distro | Ubuntu 24.04.4 LTS | Ubuntu 24.04.4 LTS | | Kernel | `6.8.0-106-generic` | `6.8.0-106-generic` | | NVIDIA driver | `590.48.01` proprietary (`nvidia-driver-590-server`) | `580.196.07` proprietary (`nvidia-driver-580`) | | `NVreg_DynamicPowerManagement` | `0x02` (Ubuntu default, runtime D3 on) | **`0x00` (runtime D3 off)** | | GSP firmware | on | **off** (`NVreg_EnableGpuFirmware=0`) | | Initramfs | initramfs-tools, `MODULES=most` | same | The second run was done specifically to address the two most likely culprits from this issue and #135/#206: runtime D3 powering the GPU off (resetting selectors) and driver GPU-init timing. I used `NVreg_DynamicPowerManagement=0x00` and `NVreg_EnableGpuFirmware=0`, matching the successful ThinkPad P1 config in #206. Note that the `580` driver does **not** expose `NVreg_GpuInitOnProbe` (that parameter was introduced in 595), so on 580 the GPU should initialize at PCI probe rather than first client open — i.e. the #135 re-latch mechanism should not apply. ### Kernel log Unlock completed cleanly on both boots, with `gpu_unlock` loading before NVIDIA in the initramfs (confirmed by timestamps: unlock at 33.9 s, NVRM at 35.1 s). Same full sequence as the original report: ``` gpu_unlock: stage=claim device=0x24dd family=GA102/GA103/GA104/GA106 cmd=0x3 gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x30611004 ss1=0x6 wpr2_hi=0x0 gpu_unlock: pass=1/2 attempt=1 target=0x1fa7cc value=0xfffff0ff … ret=0 gpu_unlock: pass=2/2 attempt=1 target=0x823804 value=0xffffffff … ret=0 gpu_unlock: stage=host ss0=0x88888888 ss1=0x8 plm_feat=0xffffffff plm_wpr_cfg=0xfffff0ff gpu_unlock: stage=flr post_wpr2=0x1ffffe00:0x0 ss0=0x88888888 ss1=0x8 gpu_unlock: stage=handoff ret=0 state=4 retained=0 pages=0/20606 cleanup=0 gpu_unlock: unlocked ``` No Xid errors, NVIDIA driver binds normally afterwards, `nvidia-smi` healthy, 16 GB visible. ### Benchmark PyTorch 2.8.0+cu128, dense 8192³ `torch.mm` with FP32 accumulation, reduced-precision reductions disabled for FP16/BF16, TF32 via `set_float32_matmul_precision('high')`, FP32 control via `'highest'`. 10 warmups + 20 timed runs × 3 rounds, CUDA events, persistent output buffer, median. AC power, GPU stayed in D0 for the whole second run (runtime D3 off). | Input | Baseline (590, no unlock) | 590 unlocked | 580 unlocked, rTD3 off, GSP off | |---|---:|---:|---:| | FP16 | 36.17 TFLOPS | 36.00 (−0.5%) | 36.01 / 36.29 (−0.5% / +0.3%) | | BF16 | 36.21 TFLOPS | 35.96 (−0.7%) | 35.91 / 36.20 (−0.8% / −0.0%) | | TF32 | 17.98 TFLOPS | 17.98 (0.0%) | 17.92 / 17.91 (−0.3% / −0.4%) | | FP32 (control) | 11.56 TFLOPS | 11.65 (+0.8%) | 11.58 / 11.49 (+0.2% / −0.6%) | All within ±1% run-to-run noise, no consistent direction. Power/temperature/clocks matched the baseline (~126 W under FP16/BF16, ~1.8 GHz SM, 56 °C, no thermal throttle), so this is not a power-limit artifact. The card is running at ~36 TFLOPS FP16, which is ~95% of the half-rate ceiling for 40 SMs at that clock — i.e. it is solidly at stock half-rate, with no headroom being left on the table by clocks or power. ### Interpretation Since runtime D3 was off, GSP was off, the driver was an older (probe-time-init) branch, and the unlock logged success with SS0/SS1 verified at `0x88888888`/`0x8` across FLR, the "driver re-initialized and re-latched the selectors" explanation from #135 does not appear to account for this card. That leaves two candidates: 1. The NVIDIA driver's own GSP-RM boot / GPU initialization on this SKU overwrites the selectors even at probe time (would mean the selectors only live in the tiny window between FLR and driver init, and never reach a running tensor core). 2. On this `24dd` mobile part the BF16/FP16 double-rate is hard-fused (strap/fuse), so SS0/SS1 are written and read back correctly but have no effect — similar in spirit to #28, where selectors verified held at runtime yet the rate stayed at half. Worth noting: other GA104M laptop SKUs **do** gain from this unlock (`249d` +95% in #101, `24dc` +65% in #105, `249c` in #206, `24e0` +50% in #182). So this does not look like "all GA104M is fused"; it looks specific to `24dd` (or at least the Lenovo variants of it, since both this report and the original are Lenovo). ### Hypothesis for testing If someone with a `24dd` card can run a read-only BAR read of SS0/SS1 **after** the driver has bound and a CUDA context has been created (as was done in #28), that would cleanly distinguish hypothesis 1 (selectors reverted by driver init) from hypothesis 2 (selectors held but ignored by hardware). I did not do this because I did not want to write an out-of-tree read-only module without more discussion, and #28 already shows that "selectors held" can coexist with "no speedup". Happy to run further read-only diagnostics if someone can point me at a safe way to read those registers on a live card.
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#93
No description provided.