[GH-ISSUE #230] Compatibility report: MSI GF65 Thin 10UE RTX 3060 Laptop (10de:2520) — boot unlock succeeds, selectors later reset #214

Open
opened 2026-10-30 04:55:37 +07:00 by bsakaguchi · 0 comments
Owner

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

Result

Unlock completed at boot, but a later read-only BAR0 check confirms the unlocked selector values are no longer present. A causal performance gain is not established. The raw after-boot benchmark is faster, but operating conditions differ substantially, including the FP32 control.

Card

MSI GF65 Thin 10UE, NVIDIA GeForce RTX 3060 Laptop GPU, GA106M, 6 GB.

PCI IDs

0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1)
0000:01:00.1 Audio device [0403]: NVIDIA Corporation GA106 High Definition Audio Controller [10de:228e] (rev a1)

VBIOS version

00000000:01:00.0, 94.06.13.00.91

Is the card modified?

No hardware/VBIOS changes made for this test; existing OEM laptop GPU/VBIOS.

Distribution

Ubuntu 26.04.1 LTS

Kernel

7.0.0-38-generic

NVIDIA driver

595.99.02, open kernel modules; unchanged between runs.

Initramfs generator

dracut

gpu-unlock version and install method

1.1.0, pinned upstream commit 6081407b312aa3139a2bed62bdda354f4ffddc1d.
Built Debian DKMS/firmware packages locally using upstream build inputs. One local device-table change: add GA106(0x2520) to kernel/gpu_unlock/recipes.c, following #53. No other source changes. DKMS built for 7.0.0-30-generic and 7.0.0-38-generic; boot tested on -38. Early loading via dracut force_drivers+=" gpu_unlock ".

Kernel command line

Relevant arguments (root UUID omitted):

gpu_unlock.targets=0000:01:00.0 gpu_unlock.resume=0 pci=realloc=on

pci=realloc=on already existed before both benchmarks to fix a separate BAR allocation issue. Resume unlock deliberately disabled pending validation.

Setup

Hybrid Intel iGPU + NVIDIA dGPU, PRIME on-demand, desktop active, Secure Boot disabled. Both measurements on AC with OS power profile Balanced. No clock locks, power-limit changes, persistence daemon changes, or RTD3 changes made for this experiment. Performance profile restored after the test; existing background workloads kept running.

Kernel log

After user-performed power cycle:

pci 0000:01:00.0: gpu_unlock: stage=claim device=0x2520 family=GA102/GA103/GA104/GA106 cmd=0x0 original=0x0 bar_len=0x1000000 region=1 enabled=1 master=0
pci 0000:01:00.0: gpu_unlock: stage=layout fb=0x180000000 vga=0x17ff00000 frts=0x100000 wpr=0x175400000..0x17ff00000 boot=0x17fdfa000 gsp=0x17ada0000 heap=0x175500000
pci 0000:01:00.0: gpu_unlock: stage=dma booter=60416 payload=0xfa00 pages=20606 meta=0xfffdf000 sig=0xfffe0000 stock=0xfffde000 boot=0xfffd0000
pci 0000:01:00.0: gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x6043021 ss1=0x3 wpr2_hi=0x0
pci 0000:01:00.0: gpu_unlock: stage=fwsec version=3 fuse=0x3 ver=2 scratch=0x0 wpr2_raw=0x17fe000:0x17fee00 frts=0x17fe000:0x17fee00
pci 0000:01:00.0: gpu_unlock: stage=publish meta=0xfffdf000 sig=0xfffe0000 size=0xfa00 radix=0xfffcf000
pci 0000:01:00.0: gpu_unlock: pass=1/2 attempt=1 target=0x1fa7cc value=0xfffff0ff before=0x4cb8f after=0xfffff0ff wpr2=0x1754000:0x17fee00 reset_plm=0xffffffff mbox=0x0:0xfffdf000 ret=0
pci 0000:01:00.0: gpu_unlock: pass=2/2 attempt=1 target=0x823804 value=0xffffffff before=0xffffff8f after=0xffffffff wpr2=0x1754000:0x17fee00 reset_plm=0xffffffff mbox=0x0:0xfffdf000 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=0x2 devsta=0x0 chip=0xb76000a1
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

Same local Python ctypes harness and cuBLAS 12.9.1 (cublasGetVersion=120901), 8192 cubed dense GEMM, FP32 output/accumulation, reduced-precision reduction disabled. Two-second warmup per mode, five samples of five GEMMs, CUDA event timing; median reported. FP32 control uses pedantic FP32 compute mode. Same harness SHA256: 357a66e9653cf612b9bb8cdd36ba429dabf0003826c8b6b897fa2f7d4cfd2fa1.

Mode Stock boot TFLOPS Unlock boot TFLOPS Raw change
FP16 20.945 24.635 +17.6%
BF16 21.328 25.226 +18.3%
TF32 10.274 12.935 +25.9%
FP32_control 5.839 7.888 +35.1%

These raw changes are not an attributable gpu-unlock speedup. Stock run: memory 5501 MHz/P3, GPU power roughly 38-40 W. After boot: memory 6001 MHz/P0, power roughly 46-54 W, higher SM clocks. FP32 control improved by 35.1%, which reinforces the confound. Matching OS profile did not match actual GPU operating state. Temperatures: stock up to 49 C, after up to 54 C.

Numerical smoke check: constant inputs 1/64, expected output exactly 2; 64 deterministic positions per mode matched, with equal sample hashes before/after. This is a limited sampled check, not a full numerical validation or end-to-end AI-model benchmark.

Suspend and resume

System suspend-to-RAM not tested. Runtime D3 is enabled (fine-grained); after the benchmark, sysfs showed the dGPU suspended, video memory off, and over 500 seconds cumulative runtime suspension. That creates a retention concern similar to #91, but this alone does not prove the point at which selectors changed.

Runtime selector verification

After the benchmark, retained a temporary CUDA context to wake/keep the GPU active, then mapped PCI resource0 with O_RDONLY / PROT_READ (no MMIO writes). Runtime status before: suspended; during read: active. Cumulative runtime suspension: 727512 ms.

Register Offset Boot post-FLR Later read
FEAT_PLM 0x00823804 0xffffffff 0xffffff8f
SS0 0x0082381c 0x88888888 0x06046021
SS1 0x00823820 0x00000008 0x00000003

This confirms the boot unlock was not retained at the later check. It does not identify the precise reset event or prove selector state during the timed benchmark. RTD3 is a strong suspect, consistent with #91; no controlled RTD3-off comparison has been run. The temporary context was released immediately after reading.

Anything else

The purpose of this report is to add evidence for this exact MSI/10de:2520/VBIOS combination and distinguish boot success from retained unlock. A known-good stock initramfs/kernel boot entry and package-removal rollback script were prepared. No GPU reset, driver unload, system suspend or runtime-PM configuration change was performed during verification. Suggestions for testing retention without permanently disabling laptop energy saving would be welcome.

Originally created by @KPEBA on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/230 ### Result Unlock completed at boot, but a later read-only BAR0 check confirms the unlocked selector values are no longer present. A causal performance gain is not established. The raw after-boot benchmark is faster, but operating conditions differ substantially, including the FP32 control. ### Card MSI GF65 Thin 10UE, NVIDIA GeForce RTX 3060 Laptop GPU, GA106M, 6 GB. ### PCI IDs ```text 0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1) 0000:01:00.1 Audio device [0403]: NVIDIA Corporation GA106 High Definition Audio Controller [10de:228e] (rev a1) ``` ### VBIOS version ```text 00000000:01:00.0, 94.06.13.00.91 ``` ### Is the card modified? No hardware/VBIOS changes made for this test; existing OEM laptop GPU/VBIOS. ### Distribution Ubuntu 26.04.1 LTS ### Kernel `7.0.0-38-generic` ### NVIDIA driver 595.99.02, open kernel modules; unchanged between runs. ### Initramfs generator dracut ### gpu-unlock version and install method 1.1.0, pinned upstream commit `6081407b312aa3139a2bed62bdda354f4ffddc1d`. Built Debian DKMS/firmware packages locally using upstream build inputs. One local device-table change: add `GA106(0x2520)` to `kernel/gpu_unlock/recipes.c`, following #53. No other source changes. DKMS built for 7.0.0-30-generic and 7.0.0-38-generic; boot tested on -38. Early loading via dracut `force_drivers+=" gpu_unlock "`. ### Kernel command line Relevant arguments (root UUID omitted): ```text gpu_unlock.targets=0000:01:00.0 gpu_unlock.resume=0 pci=realloc=on ``` `pci=realloc=on` already existed before both benchmarks to fix a separate BAR allocation issue. Resume unlock deliberately disabled pending validation. ### Setup Hybrid Intel iGPU + NVIDIA dGPU, PRIME on-demand, desktop active, Secure Boot disabled. Both measurements on AC with OS power profile Balanced. No clock locks, power-limit changes, persistence daemon changes, or RTD3 changes made for this experiment. Performance profile restored after the test; existing background workloads kept running. ### Kernel log After user-performed power cycle: ```text pci 0000:01:00.0: gpu_unlock: stage=claim device=0x2520 family=GA102/GA103/GA104/GA106 cmd=0x0 original=0x0 bar_len=0x1000000 region=1 enabled=1 master=0 pci 0000:01:00.0: gpu_unlock: stage=layout fb=0x180000000 vga=0x17ff00000 frts=0x100000 wpr=0x175400000..0x17ff00000 boot=0x17fdfa000 gsp=0x17ada0000 heap=0x175500000 pci 0000:01:00.0: gpu_unlock: stage=dma booter=60416 payload=0xfa00 pages=20606 meta=0xfffdf000 sig=0xfffe0000 stock=0xfffde000 boot=0xfffd0000 pci 0000:01:00.0: gpu_unlock: stage=gfw plm=0xffffff8f ss0=0x6043021 ss1=0x3 wpr2_hi=0x0 pci 0000:01:00.0: gpu_unlock: stage=fwsec version=3 fuse=0x3 ver=2 scratch=0x0 wpr2_raw=0x17fe000:0x17fee00 frts=0x17fe000:0x17fee00 pci 0000:01:00.0: gpu_unlock: stage=publish meta=0xfffdf000 sig=0xfffe0000 size=0xfa00 radix=0xfffcf000 pci 0000:01:00.0: gpu_unlock: pass=1/2 attempt=1 target=0x1fa7cc value=0xfffff0ff before=0x4cb8f after=0xfffff0ff wpr2=0x1754000:0x17fee00 reset_plm=0xffffffff mbox=0x0:0xfffdf000 ret=0 pci 0000:01:00.0: gpu_unlock: pass=2/2 attempt=1 target=0x823804 value=0xffffffff before=0xffffff8f after=0xffffffff wpr2=0x1754000:0x17fee00 reset_plm=0xffffffff mbox=0x0:0xfffdf000 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=0x2 devsta=0x0 chip=0xb76000a1 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 Same local Python ctypes harness and cuBLAS 12.9.1 (`cublasGetVersion=120901`), 8192 cubed dense GEMM, FP32 output/accumulation, reduced-precision reduction disabled. Two-second warmup per mode, five samples of five GEMMs, CUDA event timing; median reported. FP32 control uses pedantic FP32 compute mode. Same harness SHA256: `357a66e9653cf612b9bb8cdd36ba429dabf0003826c8b6b897fa2f7d4cfd2fa1`. | Mode | Stock boot TFLOPS | Unlock boot TFLOPS | Raw change | |---|---:|---:|---:| | FP16 | 20.945 | 24.635 | +17.6% | | BF16 | 21.328 | 25.226 | +18.3% | | TF32 | 10.274 | 12.935 | +25.9% | | FP32_control | 5.839 | 7.888 | +35.1% | **These raw changes are not an attributable gpu-unlock speedup.** Stock run: memory 5501 MHz/P3, GPU power roughly 38-40 W. After boot: memory 6001 MHz/P0, power roughly 46-54 W, higher SM clocks. FP32 control improved by 35.1%, which reinforces the confound. Matching OS profile did not match actual GPU operating state. Temperatures: stock up to 49 C, after up to 54 C. Numerical smoke check: constant inputs 1/64, expected output exactly 2; 64 deterministic positions per mode matched, with equal sample hashes before/after. This is a limited sampled check, not a full numerical validation or end-to-end AI-model benchmark. ### Suspend and resume System suspend-to-RAM not tested. Runtime D3 is enabled (fine-grained); after the benchmark, sysfs showed the dGPU suspended, video memory off, and over 500 seconds cumulative runtime suspension. That creates a retention concern similar to #91, but this alone does not prove the point at which selectors changed. ### Runtime selector verification After the benchmark, retained a temporary CUDA context to wake/keep the GPU active, then mapped PCI resource0 with `O_RDONLY` / `PROT_READ` (no MMIO writes). Runtime status before: suspended; during read: active. Cumulative runtime suspension: 727512 ms. | Register | Offset | Boot post-FLR | Later read | |---|---|---|---| | FEAT_PLM | 0x00823804 | 0xffffffff | 0xffffff8f | | SS0 | 0x0082381c | 0x88888888 | 0x06046021 | | SS1 | 0x00823820 | 0x00000008 | 0x00000003 | This confirms the boot unlock was not retained at the later check. It does not identify the precise reset event or prove selector state during the timed benchmark. RTD3 is a strong suspect, consistent with #91; no controlled RTD3-off comparison has been run. The temporary context was released immediately after reading. ### Anything else The purpose of this report is to add evidence for this exact MSI/10de:2520/VBIOS combination and distinguish boot success from retained unlock. A known-good stock initramfs/kernel boot entry and package-removal rollback script were prepared. No GPU reset, driver unload, system suspend or runtime-PM configuration change was performed during verification. Suggestions for testing retention without permanently disabling laptop energy saving would be welcome.
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#214
No description provided.