[GH-ISSUE #4] Should this work on an AD103 4090m 16gb? #1

Closed
opened 2026-10-31 06:55:22 +07:00 by bsakaguchi · 14 comments
Owner

Originally created by @ilikenwf on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/4

My card:

02:00.0 VGA compatible controller: NVIDIA Corporation AD103M / GN21-X11 [GeForce RTX 4090 Laptop GPU] (rev a1)

Originally created by @ilikenwf on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/4 My card: 02:00.0 VGA compatible controller: NVIDIA Corporation AD103M / GN21-X11 [GeForce RTX 4090 Laptop GPU] (rev a1)
Author
Owner

@JustAResearcher commented on GitHub (Oct 24, 2026):

Not yet. The module refuses this card today. The only AD103 target is the desktop RTX 4070 Ti SUPER (10de:2705), behind an experimental flag and tested on one card. AD103 has also been reported working on a desktop RTX 4080 under Windows (TOTORONG's unlocker), but no laptop GPU has been tried.

Laptops add some unknowns beyond the device ID:

  • With hybrid graphics, the dGPU is often runtime-suspended at boot, and the module skips powered-down cards.
  • If the dGPU drives the internal panel (MUX or dGPU-only mode), display handoff is untested.
  • Laptop VBIOS and power limits differ from desktop boards.

If you'd like to help test, please post:

  • lspci -nnk -s 02:00.0 (your line above is missing the [10de:xxxx] ID)
  • distro, kernel and NVIDIA driver version
  • whether the laptop has a MUX switch, and which mode you normally run
<!-- gh-comment-id:6390487717 --> @JustAResearcher commented on GitHub (Oct 24, 2026): Not yet. The module refuses this card today. The only AD103 target is the desktop RTX 4070 Ti SUPER (`10de:2705`), behind an experimental flag and tested on one card. AD103 has also been reported working on a desktop RTX 4080 under Windows (TOTORONG's unlocker), but no laptop GPU has been tried. Laptops add some unknowns beyond the device ID: - With hybrid graphics, the dGPU is often runtime-suspended at boot, and the module skips powered-down cards. - If the dGPU drives the internal panel (MUX or dGPU-only mode), display handoff is untested. - Laptop VBIOS and power limits differ from desktop boards. If you'd like to help test, please post: - `lspci -nnk -s 02:00.0` (your line above is missing the `[10de:xxxx]` ID) - distro, kernel and NVIDIA driver version - whether the laptop has a MUX switch, and which mode you normally run
Author
Owner

@ilikenwf commented on GitHub (Oct 24, 2026):

I have the benefit of running open source EC and bios, so I can put the GPU explicitly in hybrid/compute/nvidia mode (though the nvidia mux enablement is problematic right now - I haven't written WMI code to handle brightness for it yet). I typically run inference loads in compute mode.

02:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD103M / GN21-X11 [GeForce RTX 4090 Laptop GPU] [10de:2757] (rev a1)
Subsystem: CLEVO/KAPOK Computer Device [1558:3702]
Kernel driver in use: nvidia
Kernel modules: nouveau, nvidia_drm, nvidia

I'm running Cachy, their bore-lto kernel, but I also have zen installed and am comfortable building stuff myself... given I can mod the firmware this may be something I could even add later to coreboot or the EC and just have it happen at boot anyway.

It's a Clevo x370snw-g that I built coreboot and the ec code for myself and flashed, based on the System76 Bonabo code. Been meaning to fix the dgpu mux pin bringup sometime but haven't gotten around to it yet.

nvidia-smi says the TDP is 150W, but I think it gets bumped to 170 or 175W if I'm not mistaken, in compute mode.

<!-- gh-comment-id:6391070668 --> @ilikenwf commented on GitHub (Oct 24, 2026): I have the benefit of running open source EC and bios, so I can put the GPU explicitly in hybrid/compute/nvidia mode (though the nvidia mux enablement is problematic right now - I haven't written WMI code to handle brightness for it yet). I typically run inference loads in compute mode. 02:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD103M / GN21-X11 [GeForce RTX 4090 Laptop GPU] [10de:2757] (rev a1) Subsystem: CLEVO/KAPOK Computer Device [1558:3702] Kernel driver in use: nvidia Kernel modules: nouveau, nvidia_drm, nvidia I'm running Cachy, their bore-lto kernel, but I also have zen installed and am comfortable building stuff myself... given I can mod the firmware this may be something I could even add later to coreboot or the EC and just have it happen at boot anyway. It's a Clevo x370snw-g that I built coreboot and the ec code for myself and flashed, based on the System76 Bonabo code. Been meaning to fix the dgpu mux pin bringup sometime but haven't gotten around to it yet. nvidia-smi says the TDP is 150W, but I think it gets bumped to 170 or 175W if I'm not mistaken, in compute mode.
Author
Owner

@SPREsxm commented on GitHub (Oct 25, 2026):

Adding a second 10de:2757 data point, this one a stock Alienware m18 R1 (different EC/BIOS/display path from the Clevo above).

lspci equivalent — this box is currently Windows-only, so I don't have lspci; the Windows PnP ID is:

PCI\VEN_10DE&DEV_2757&SUBSYS_0C491028&REV_A1
Bus 0000:01:00.0
NVIDIA GeForce RTX 4090 Laptop GPU (AD103M / GN21-X11) [10de:2757]
Subsystem: Dell [1028:0c49]
VBIOS: 95.03.2a.00.47
Driver: 596.49 (Windows), CUDA 13.2
76 SM, 16 GB, 175 W max / 125 W default

I can provide a real lspci -nnk -s 01:00.0 from a Linux live USB before any attempt.

OS / driver

  • Windows 11 Pro for Workstations Insider Preview, build 26220, driver 596.49.
  • No bare-metal Linux installed right now; only WSL2 Ubuntu 24.04, which I understand can't access BAR0/FLR. I can set up a bare-metal install or a live USB with the NVIDIA driver for testing.

MUX / display mode

  • The m18 R1 has Advanced Optimus + MUX.
  • Currently hybrid: the Intel UHD iGPU drives the 2560x1600 internal panel; nvidia-smi shows Display Active: Disabled and the dGPU at P8 idle.
  • I can switch to dGPU-only (MUX) in BIOS/AWCC if that's the mode you want tested; hybrid seems like the safer first attempt for display handoff, but tell me which you prefer.

Runtime suspend

  • I'll check power/runtime_status and lspci -vv from Linux first. If the dGPU is in D3cold at boot, I can force it on or use dGPU-only mode.

What I can do

I'm happy to start with the read-only part:

  1. Boot a bare-metal Linux install (or live USB with the NVIDIA driver).
  2. Run tools/read_sm_rates.py against 0000:01:00.0 and post fmla32 / imla2 / imla4, plus lspci -nnk, nvidia-smi -q, VBIOS and dmesg.
  3. If that looks sane and you think this card is worth a canary, I can add 0x2757 behind a new exact-PCI-address experimental flag (following PR #10's AD107M patch) and report a cold-boot result. I'd keep a stock boot entry and the Dell EC recovery procedure (AC disconnect + ~30-35 s power button) ready, and I wouldn't ask for a merge without cold-boot evidence.

Questions:

  • Do you want the read-only RM probe first, or a specific probe/flag format?
  • Is hybrid mode (iGPU driving the panel) the better first attempt, or dGPU-only/MUX?
  • The 4090 Laptop is 76 SM at 175 W and I care mainly about compute-bound prefill/training, not gaming — is that a useful canary, or would you rather wait for a smaller AD103M part?

I saw PR #10's RTX 4050 Mobile (AD107M) canary — good to see mobile Ada getting a data point. This one would add the 76-SM / 175 W / MUX variables.

<!-- gh-comment-id:6394297330 --> @SPREsxm commented on GitHub (Oct 25, 2026): Adding a second `10de:2757` data point, this one a stock Alienware m18 R1 (different EC/BIOS/display path from the Clevo above). **`lspci` equivalent** — this box is currently Windows-only, so I don't have `lspci`; the Windows PnP ID is: ``` PCI\VEN_10DE&DEV_2757&SUBSYS_0C491028&REV_A1 Bus 0000:01:00.0 NVIDIA GeForce RTX 4090 Laptop GPU (AD103M / GN21-X11) [10de:2757] Subsystem: Dell [1028:0c49] VBIOS: 95.03.2a.00.47 Driver: 596.49 (Windows), CUDA 13.2 76 SM, 16 GB, 175 W max / 125 W default ``` I can provide a real `lspci -nnk -s 01:00.0` from a Linux live USB before any attempt. **OS / driver** - Windows 11 Pro for Workstations Insider Preview, build 26220, driver 596.49. - No bare-metal Linux installed right now; only WSL2 Ubuntu 24.04, which I understand can't access BAR0/FLR. I can set up a bare-metal install or a live USB with the NVIDIA driver for testing. **MUX / display mode** - The m18 R1 has Advanced Optimus + MUX. - Currently hybrid: the Intel UHD iGPU drives the 2560x1600 internal panel; `nvidia-smi` shows `Display Active: Disabled` and the dGPU at P8 idle. - I can switch to dGPU-only (MUX) in BIOS/AWCC if that's the mode you want tested; hybrid seems like the safer first attempt for display handoff, but tell me which you prefer. **Runtime suspend** - I'll check `power/runtime_status` and `lspci -vv` from Linux first. If the dGPU is in D3cold at boot, I can force it on or use dGPU-only mode. **What I can do** I'm happy to start with the read-only part: 1. Boot a bare-metal Linux install (or live USB with the NVIDIA driver). 2. Run `tools/read_sm_rates.py` against `0000:01:00.0` and post `fmla32` / `imla2` / `imla4`, plus `lspci -nnk`, `nvidia-smi -q`, VBIOS and `dmesg`. 3. If that looks sane and you think this card is worth a canary, I can add `0x2757` behind a new exact-PCI-address experimental flag (following PR #10's AD107M patch) and report a cold-boot result. I'd keep a stock boot entry and the Dell EC recovery procedure (AC disconnect + ~30-35 s power button) ready, and I wouldn't ask for a merge without cold-boot evidence. Questions: - Do you want the read-only RM probe first, or a specific probe/flag format? - Is hybrid mode (iGPU driving the panel) the better first attempt, or dGPU-only/MUX? - The 4090 Laptop is 76 SM at 175 W and I care mainly about compute-bound prefill/training, not gaming — is that a useful canary, or would you rather wait for a smaller AD103M part? I saw PR #10's RTX 4050 Mobile (AD107M) canary — good to see mobile Ada getting a data point. This one would add the 76-SM / 175 W / MUX variables.
Author
Owner

@ilikenwf commented on GitHub (Oct 25, 2026):

I've got copilot drafting a test branch..

<!-- gh-comment-id:6394461818 --> @ilikenwf commented on GitHub (Oct 25, 2026): I've got copilot drafting a test branch..
Author
Owner

@SPREsxm commented on GitHub (Oct 25, 2026):

Okay. I will assist with the testing when I have time. However, I hope my GPU holds up.

Is there a significant risk of GPU damage during your testing?

<!-- gh-comment-id:6394638732 --> @SPREsxm commented on GitHub (Oct 25, 2026): Okay. I will assist with the testing when I have time. However, I hope my GPU holds up. Is there a significant risk of GPU damage during your testing?
Author
Owner

@ilikenwf commented on GitHub (Oct 25, 2026):

Don't believe so.

<!-- gh-comment-id:6394814888 --> @ilikenwf commented on GitHub (Oct 25, 2026): Don't believe so.
Author
Owner

@ilikenwf commented on GitHub (Oct 25, 2026):

We got it loading and working but it leaves it unchanged. Unless we prove otherwise or there's more to do here, I hypothesize bin sorting on mobile GPUs could be to blame since 40XX below 4090 would ostensibly have the same silicon, but potentially be "unstable" or just binned for lower SKUs at the factory?

https://github.com/ilikenwf/gpu-unlock-ada/blob/ad103m-rtx4090-mobile-2757/docs/ada-2757-report.md

See https://github.com/ilikenwf/gpu-unlock-ada/tree/ad103m-rtx4090-mobile-2757 for my tree

Note: I used the same cachyos kernel in both cases, my agent got that part wrong in the report.

@JustAResearcher any thoughts?

<!-- gh-comment-id:6395038919 --> @ilikenwf commented on GitHub (Oct 25, 2026): We got it loading and working but it leaves it unchanged. Unless we prove otherwise or there's more to do here, I hypothesize bin sorting on mobile GPUs could be to blame since 40XX below 4090 would ostensibly have the same silicon, but potentially be "unstable" or just binned for lower SKUs at the factory? https://github.com/ilikenwf/gpu-unlock-ada/blob/ad103m-rtx4090-mobile-2757/docs/ada-2757-report.md See https://github.com/ilikenwf/gpu-unlock-ada/tree/ad103m-rtx4090-mobile-2757 for my tree Note: I used the same cachyos kernel in both cases, my agent got that part wrong in the report. @JustAResearcher any thoughts?
Author
Owner

@SPREsxm commented on GitHub (Oct 25, 2026):

Good question — no, not in the unlock path.

#91 adds the same three things the 2757 branch does: the device ID (0x28a0), routing through the AD102 asset selector, and is_ad102(). The 2757 branch already covers those after 6dfb7d2. #91 even confirms the AD102-family booter archive is shared across ad102/ad103/ad104/ad106/ad107, so the payload path is the same.

What #91 does additionally is laptop-specific, not a different unlock:

  • NVreg_DynamicPowerManagement=0x00, because RTD3 powers the dGPU off when idle and wipes the volatile selectors.
  • platform_profile=performance, to raise that chassis' ceiling from 35 W to 80 W.
  • Per-MHz measurements and a post-bind read, instead of trusting the "gpu_unlock: unlocked" log.

None of those explain your 2757 result. You already used the performance profile; RTD3 would have reset the selectors and the RM getter to half, but your getter stayed full after driver bind, and your clock/power were unchanged. So the 2757 is not failing at the asset-routing or RTD3 layer — it is failing at the hardware issue-rate layer, after a fully green transaction.

The real conclusion from #91 is that mobile Ada is per-SKU, not that "mobile Ada works":

  • AD107M (4060 Laptop, 24 SM, 35–80 W): responds, 1.79–1.90x per-MHz.
  • AD103M (4090 Laptop, 76 SM, 150–175 W): transaction green, getter flips, hardware unchanged.
  • AD106M (4070 Laptop, issue #20): even the getter stays at fmla32=1.

I would still copy #91's laptop precautions into any 2757 re-test because they prevent false negatives:

  1. NVreg_DynamicPowerManagement=0x00
  2. performance profile
  3. per-MHz measurement after driver bind, plus a post-bind BAR read
  4. fuse and register reads at multiple points

One thing worth confirming: did your 2757 run have NVreg_DynamicPowerManagement=0x00 set? If not, a re-run with it would rule out RTD3 completely.

If useful, I can do that on a second AD103M board (Alienware m18 R1, 175 W, different VBIOS/EC) as a strict same-kernel stock/unlocked pair. If it also stays at half rate, that would confirm the AD103M gate is not board-specific.

<!-- gh-comment-id:6396025119 --> @SPREsxm commented on GitHub (Oct 25, 2026): Good question — no, not in the unlock path. #91 adds the same three things the 2757 branch does: the device ID (0x28a0), routing through the AD102 asset selector, and is_ad102(). The 2757 branch already covers those after 6dfb7d2. #91 even confirms the AD102-family booter archive is shared across ad102/ad103/ad104/ad106/ad107, so the payload path is the same. What #91 does additionally is laptop-specific, not a different unlock: - NVreg_DynamicPowerManagement=0x00, because RTD3 powers the dGPU off when idle and wipes the volatile selectors. - platform_profile=performance, to raise that chassis' ceiling from 35 W to 80 W. - Per-MHz measurements and a post-bind read, instead of trusting the "gpu_unlock: unlocked" log. None of those explain your 2757 result. You already used the performance profile; RTD3 would have reset the selectors and the RM getter to half, but your getter stayed full after driver bind, and your clock/power were unchanged. So the 2757 is not failing at the asset-routing or RTD3 layer — it is failing at the hardware issue-rate layer, after a fully green transaction. The real conclusion from #91 is that mobile Ada is per-SKU, not that "mobile Ada works": - AD107M (4060 Laptop, 24 SM, 35–80 W): responds, 1.79–1.90x per-MHz. - AD103M (4090 Laptop, 76 SM, 150–175 W): transaction green, getter flips, hardware unchanged. - AD106M (4070 Laptop, issue #20): even the getter stays at fmla32=1. I would still copy #91's laptop precautions into any 2757 re-test because they prevent false negatives: 1. NVreg_DynamicPowerManagement=0x00 2. performance profile 3. per-MHz measurement after driver bind, plus a post-bind BAR read 4. fuse and register reads at multiple points One thing worth confirming: did your 2757 run have NVreg_DynamicPowerManagement=0x00 set? If not, a re-run with it would rule out RTD3 completely. If useful, I can do that on a second AD103M board (Alienware m18 R1, 175 W, different VBIOS/EC) as a strict same-kernel stock/unlocked pair. If it also stays at half rate, that would confirm the AD103M gate is not board-specific.
Author
Owner

@ilikenwf commented on GitHub (Oct 25, 2026):

I should probably adjust per that other pull (or have my agent do so) and additionally clean up my cmdlines, it has...ancient and possibly contridictory operators related to nvidia in there - likely artifacts from old experiments with the nvidia mux issues and system76's firmware, such as nvidia_drm.fbdev=1 nvidia.NVreg_EnableGpuFirmware=1 nvidia.NVreg_EnableStreamMemOPs=1

<!-- gh-comment-id:6396506359 --> @ilikenwf commented on GitHub (Oct 25, 2026): I should probably adjust per that other pull (or have my agent do so) and additionally clean up my cmdlines, it has...ancient and possibly contridictory operators related to nvidia in there - likely artifacts from old experiments with the nvidia mux issues and system76's firmware, such as ```nvidia_drm.fbdev=1 nvidia.NVreg_EnableGpuFirmware=1 nvidia.NVreg_EnableStreamMemOPs=1```
Author
Owner

@30crows commented on GitHub (Oct 25, 2026):

RTX 4090 Laptop GPU (10de:2757, AD103M) on a Lenovo Legion Pro 7: unlock works, 2.00× FP16/BF16 with FP32 accumulate

A second 10de:2757 board, this time with stock Lenovo firmware. The 2757 branch
(ilikenwf/gpu-unlock-ada@b7e10a0) completed the transaction on two cold boots, and
on this board the hardware rate did change: FP16/FP32 and BF16/FP32 tensor
throughput went from 91.9 to 183.8 TF/s (2.00×) on both boots, and cuBLAS
FP16/BF16 GEMM rose by 1.59–1.94×, limited by the laptop power cap. All numerical
checks passed.

Stock and unlocked runs used the same kernel, driver, benchmark binaries, power
profile and power-management setting. NVIDIA runtime D3 was disabled for all runs.

Hardware and software

Item Value
Laptop Lenovo Legion Pro 7 16IRX8H (82WQ), stock Lenovo BIOS/EC
GPU GeForce RTX 4090 Laptop GPU 10de:2757 rev a1, subsystem 17aa:3b6a, chip 0x193000a1, 76 SMs
VBIOS 95.03.2D.00.16
Power 80 W default, 175 W max (power.limit reads [N/A])
Display Hybrid mode; the Intel Raptor Lake-S iGPU is boot VGA and drives the panel
OS Gentoo, kernel 6.18.57-gentoo-dist-bin, OpenRC, GRUB, ugrd 2.2.0 initramfs (LUKS root)
Driver NVIDIA open kernel module 615.78.08
CUDA nvcc 13.4.59
Module ilikenwf/gpu-unlock-ada branch ad103m-rtx4090-mobile-2757 at b7e10a0 (base 4e7fefc); firmware generated locally from the pinned 610.43.03 inputs; make test-full: 29 passed, 3 optional skipped
Option gpu_unlock.targets=<exact address> gpu_unlock.ad103m_experimental=1

Laptop precautions taken from Zagitta/gpu-unlock#91, applied identically to stock and
unlocked runs:

  • options nvidia NVreg_DynamicPowerManagement=0x00; runtime_status stayed active
    before and after every run.
  • performance platform profile (power-profiles-daemon), charger connected.
  • RM getter read after driver bind, before and after the workloads.

Boot setup: the unlock ran from a separate ugrd image (kmod_init = ["gpu_unlock"]) and
a separate GRUB entry. The normal entry and initramfs were not changed.

Cold start

Both unlocked boots followed a normal shutdown with the charger unplugged for about
30 seconds; the battery stayed connected. Both entered with wpr2_hi=0x0, so no
battery disconnect or EC reset was needed on this board.

Transaction (identical on both boots)

entry: plm=0xffffff8f ss0=0x43457016 ss1=0x7 wpr2_hi=0x0
AD102 before-firmware: readout1=0x410080 fields=0 0 2 0 0 2 0 2 0 valid=1 full=0
FWSEC result: scratch=0x0 expected_hi16=0
FWSEC WPR2: low=0x3ff6000 high=0x3ff6e00 expected_page=0x3ff600
AD102 payload result: marker=0x67b00001 expected=0x67b00001 marker_ok=1 required_permissions=1 cpuctl=0x10 halted=1
selector result: SS0=0x88888888 expected=0x88888888 matched=1
selector result: SS1=0x8 expected=0x8 matched=1
post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008
AD102 post-FLR: readout1=0x0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1
gpu_unlock: unlocked
Register Before After payload Post-FLR
WPR_CFG 0x1fa7cc 0x4cb8f 0xfffff0ff 0x4cb8f
WPR 0x1fa7c4 0x4cb8f 0xffffffff 0x4cb8f
FEAT 0x823804 0xffffff8f 0xffffffff 0xffffffff
FBPA 0x9a0148 (not required) 0xffffff0f 0xffffff0f 0xffffff0f

These match the Clevo 2757 report, including FBPA staying at 0xffffff0f. The NVIDIA
driver loaded normally. The only NVRM messages were two PlatformRequestHandler ... SBIOS assertions that also appear on stock boots. No Xid errors.

RM rate getter (tools/read_sm_rates.py, 0 = full, 1 = half)

Rate Stock Unlocked (both boots, before and after workloads)
fmla32 1 0
imla2 1 0
imla4 1 0
all others 0 0

Workloads

Same hash-checked binaries (testing.md build commands, -arch=sm_89), same GPU, same
settings. TF/s unless noted.

mma_bench 20000 5, best of 5:

Mode Stock Unlocked #1 Unlocked #2
f16/f16 183.8 183.8 183.8
f16/f32 91.9 183.8 183.8
bf16/f32 91.9 183.7 183.8
s8/s32 (TOP/s) 367.6 367.5 367.6
dp4a (TOP/s) 91.5 91.4 91.4
ffma 43.8 43.8 43.8

gemm_bench (cuBLAS, every output cell checked), median:

Mode n Stock Unlocked #1 Unlocked #2
FP16/FP32 1024 66.36 107.09 (1.61×) 107.27 (1.62×)
BF16/FP32 1024 66.37 107.00 (1.61×) 105.57 (1.59×)
FP16/FP32 4096 86.84 147.91 (1.70×) 163.61 (1.88×)
BF16/FP32 4096 86.84 168.42 (1.94×) 146.55 (1.69×)
FP16/FP32 8192 88.60 143.66 (1.62×) 143.66 (1.62×)
BF16/FP32 8192 88.60 140.51 (1.59×) 141.38 (1.60×)

validate_gemm: 6 cases, 0 failures in every run. gemm_bench: 0 failures in every run.

10-minute sustained load on boot #2 (back-to-back validate_gemm and gemm_bench):
174 rounds, 1,044 seeded validation cases and 1,044 fully checked cuBLAS GEMMs,
0 failures. The RM getter still read full rate afterwards. Under sustained load the
SM clock settled at a median of 2010 MHz (1605–2385), median power 139.9 W (peak
sampled 168.2 W), maximum 74 °C. Sustained n=8192 GEMM medians were 139.5 (FP16) and
135.2 (BF16) TF/s. No stock run of the same length was made, so these sustained
figures are not a matched comparison. The kernel log showed no NVRM: Xid after the
soak.

Telemetry (nvidia-smi at 100 ms while busy): peak SM clock 2385 MHz in all three
runs. Stock stayed at 2355–2385 MHz and never reported the software power cap. Both
unlocked runs reported SwPowerCap (0x4) in 19 and 24 samples and dipped to
1560/1680 MHz, which explains GEMM gains below 2×. Peak sampled power: 168.4 W stock,
149.2 and 145.8 W unlocked; the sampling is too sparse to treat these as maxima.

Differences from the Clevo 2757 run

I can't say which of these explains the different result:

  • Driver 615.78.08 here, 580.178.04 there.
  • Runtime D3 explicitly disabled here; not confirmed there.
  • Same kernel for stock and unlocked here; different kernels there.
  • Stock Lenovo firmware here; coreboot and open EC firmware there.

Not done

  • Warm reboot, longer stability runs, battery operation.
  • TF32/INT4 tensor-mode probe, FP8, application workloads.
  • Display handoff in dGPU-only (MUX) mode.
<!-- gh-comment-id:6397961415 --> @30crows commented on GitHub (Oct 25, 2026): # RTX 4090 Laptop GPU (10de:2757, AD103M) on a Lenovo Legion Pro 7: unlock works, 2.00× FP16/BF16 with FP32 accumulate A second `10de:2757` board, this time with stock Lenovo firmware. The 2757 branch (`ilikenwf/gpu-unlock-ada@b7e10a0`) completed the transaction on two cold boots, and on this board the hardware rate **did** change: FP16/FP32 and BF16/FP32 tensor throughput went from **91.9 to 183.8 TF/s (2.00×)** on both boots, and cuBLAS FP16/BF16 GEMM rose by **1.59–1.94×**, limited by the laptop power cap. All numerical checks passed. Stock and unlocked runs used the same kernel, driver, benchmark binaries, power profile and power-management setting. NVIDIA runtime D3 was disabled for all runs. ## Hardware and software | Item | Value | |---|---| | Laptop | Lenovo Legion Pro 7 16IRX8H (82WQ), stock Lenovo BIOS/EC | | GPU | GeForce RTX 4090 Laptop GPU `10de:2757` rev a1, subsystem `17aa:3b6a`, chip `0x193000a1`, 76 SMs | | VBIOS | `95.03.2D.00.16` | | Power | 80 W default, 175 W max (`power.limit` reads `[N/A]`) | | Display | Hybrid mode; the Intel Raptor Lake-S iGPU is boot VGA and drives the panel | | OS | Gentoo, kernel `6.18.57-gentoo-dist-bin`, OpenRC, GRUB, ugrd 2.2.0 initramfs (LUKS root) | | Driver | NVIDIA open kernel module `615.78.08` | | CUDA | nvcc 13.4.59 | | Module | `ilikenwf/gpu-unlock-ada` branch `ad103m-rtx4090-mobile-2757` at `b7e10a0` (base `4e7fefc`); firmware generated locally from the pinned 610.43.03 inputs; `make test-full`: 29 passed, 3 optional skipped | | Option | `gpu_unlock.targets=<exact address> gpu_unlock.ad103m_experimental=1` | Laptop precautions taken from Zagitta/gpu-unlock#91, applied identically to stock and unlocked runs: - `options nvidia NVreg_DynamicPowerManagement=0x00`; `runtime_status` stayed `active` before and after every run. - `performance` platform profile (power-profiles-daemon), charger connected. - RM getter read after driver bind, before and after the workloads. Boot setup: the unlock ran from a separate ugrd image (`kmod_init = ["gpu_unlock"]`) and a separate GRUB entry. The normal entry and initramfs were not changed. ## Cold start Both unlocked boots followed a normal shutdown with the charger unplugged for about 30 seconds; the battery stayed connected. Both entered with `wpr2_hi=0x0`, so no battery disconnect or EC reset was needed on this board. ## Transaction (identical on both boots) ```text entry: plm=0xffffff8f ss0=0x43457016 ss1=0x7 wpr2_hi=0x0 AD102 before-firmware: readout1=0x410080 fields=0 0 2 0 0 2 0 2 0 valid=1 full=0 FWSEC result: scratch=0x0 expected_hi16=0 FWSEC WPR2: low=0x3ff6000 high=0x3ff6e00 expected_page=0x3ff600 AD102 payload result: marker=0x67b00001 expected=0x67b00001 marker_ok=1 required_permissions=1 cpuctl=0x10 halted=1 selector result: SS0=0x88888888 expected=0x88888888 matched=1 selector result: SS1=0x8 expected=0x8 matched=1 post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008 AD102 post-FLR: readout1=0x0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1 gpu_unlock: unlocked ``` | Register | Before | After payload | Post-FLR | |---|---|---|---| | WPR_CFG `0x1fa7cc` | `0x4cb8f` | `0xfffff0ff` | `0x4cb8f` | | WPR `0x1fa7c4` | `0x4cb8f` | `0xffffffff` | `0x4cb8f` | | FEAT `0x823804` | `0xffffff8f` | `0xffffffff` | `0xffffffff` | | FBPA `0x9a0148` (not required) | `0xffffff0f` | `0xffffff0f` | `0xffffff0f` | These match the Clevo 2757 report, including FBPA staying at `0xffffff0f`. The NVIDIA driver loaded normally. The only NVRM messages were two `PlatformRequestHandler ... SBIOS` assertions that also appear on stock boots. No Xid errors. ## RM rate getter (`tools/read_sm_rates.py`, 0 = full, 1 = half) | Rate | Stock | Unlocked (both boots, before and after workloads) | |---|---|---| | fmla32 | 1 | 0 | | imla2 | 1 | 0 | | imla4 | 1 | 0 | | all others | 0 | 0 | ## Workloads Same hash-checked binaries (`testing.md` build commands, `-arch=sm_89`), same GPU, same settings. TF/s unless noted. `mma_bench 20000 5`, best of 5: | Mode | Stock | Unlocked #1 | Unlocked #2 | |---|---:|---:|---:| | f16/f16 | 183.8 | 183.8 | 183.8 | | **f16/f32** | **91.9** | **183.8** | **183.8** | | **bf16/f32** | **91.9** | **183.7** | **183.8** | | s8/s32 (TOP/s) | 367.6 | 367.5 | 367.6 | | dp4a (TOP/s) | 91.5 | 91.4 | 91.4 | | ffma | 43.8 | 43.8 | 43.8 | `gemm_bench` (cuBLAS, every output cell checked), median: | Mode | n | Stock | Unlocked #1 | Unlocked #2 | |---|---:|---:|---:|---:| | FP16/FP32 | 1024 | 66.36 | 107.09 (1.61×) | 107.27 (1.62×) | | BF16/FP32 | 1024 | 66.37 | 107.00 (1.61×) | 105.57 (1.59×) | | FP16/FP32 | 4096 | 86.84 | 147.91 (1.70×) | 163.61 (1.88×) | | BF16/FP32 | 4096 | 86.84 | 168.42 (1.94×) | 146.55 (1.69×) | | FP16/FP32 | 8192 | 88.60 | 143.66 (1.62×) | 143.66 (1.62×) | | BF16/FP32 | 8192 | 88.60 | 140.51 (1.59×) | 141.38 (1.60×) | `validate_gemm`: 6 cases, 0 failures in every run. `gemm_bench`: 0 failures in every run. 10-minute sustained load on boot #2 (back-to-back `validate_gemm` and `gemm_bench`): 174 rounds, 1,044 seeded validation cases and 1,044 fully checked cuBLAS GEMMs, **0 failures**. The RM getter still read full rate afterwards. Under sustained load the SM clock settled at a median of 2010 MHz (1605–2385), median power 139.9 W (peak sampled 168.2 W), maximum 74 °C. Sustained n=8192 GEMM medians were 139.5 (FP16) and 135.2 (BF16) TF/s. No stock run of the same length was made, so these sustained figures are not a matched comparison. The kernel log showed no `NVRM: Xid` after the soak. Telemetry (`nvidia-smi` at 100 ms while busy): peak SM clock 2385 MHz in all three runs. Stock stayed at 2355–2385 MHz and never reported the software power cap. Both unlocked runs reported `SwPowerCap` (`0x4`) in 19 and 24 samples and dipped to 1560/1680 MHz, which explains GEMM gains below 2×. Peak sampled power: 168.4 W stock, 149.2 and 145.8 W unlocked; the sampling is too sparse to treat these as maxima. ## Differences from the Clevo 2757 run I can't say which of these explains the different result: - Driver `615.78.08` here, `580.178.04` there. - Runtime D3 explicitly disabled here; not confirmed there. - Same kernel for stock and unlocked here; different kernels there. - Stock Lenovo firmware here; coreboot and open EC firmware there. ## Not done - Warm reboot, longer stability runs, battery operation. - TF32/INT4 tensor-mode probe, FP8, application workloads. - Display handoff in dGPU-only (MUX) mode.
Author
Owner

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

Thanks for kicking this off, and for the follow-up work! @ilikenwf's branch landed as PR #51, so the RTX 4090 Laptop GPU (10de:2757) is now admitted under ad103m_experimental with an exact address.

The results so far differ by laptop. The Clevo run completed the transaction with no throughput change, while @30crows's Lenovo Legion Pro 7 got 2.00× on two cold boots with runtime D3 disabled. Both are linked from the README table.

@SPREsxm, a same-kernel stock/unlocked pair on the Alienware with NVreg_DynamicPowerManagement=0x00 would help show whether the Clevo result is board-specific. A new issue or PR with it would be great.

Closing as completed.

<!-- gh-comment-id:6408032676 --> @JustAResearcher commented on GitHub (Oct 26, 2026): Thanks for kicking this off, and for the follow-up work! @ilikenwf's branch landed as PR #51, so the RTX 4090 Laptop GPU (`10de:2757`) is now admitted under `ad103m_experimental` with an exact address. The results so far differ by laptop. The Clevo run completed the transaction with no throughput change, while @30crows's Lenovo Legion Pro 7 got 2.00× on two cold boots with runtime D3 disabled. Both are linked from the README table. @SPREsxm, a same-kernel stock/unlocked pair on the Alienware with `NVreg_DynamicPowerManagement=0x00` would help show whether the Clevo result is board-specific. A new issue or PR with it would be great. Closing as completed.
Author
Owner

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

@JustAResearcher I have more work to do, I wonder if having it in "compute" mode versus "hybrid" or "nvidia" mode will make a difference, and there's some module config stuff on the nvidia module I have to look at. If the picture changes I'll document any System76 firmware specific quirks and update the documentation in my fork in another PR.

<!-- gh-comment-id:6408088414 --> @ilikenwf commented on GitHub (Oct 26, 2026): @JustAResearcher I have more work to do, I wonder if having it in "compute" mode versus "hybrid" or "nvidia" mode will make a difference, and there's some module config stuff on the nvidia module I have to look at. If the picture changes I'll document any System76 firmware specific quirks and update the documentation in my fork in another PR.
Author
Owner

@SPREsxm commented on GitHub (Oct 28, 2026):

Thanks for the context and for landing #51. Following up on @JustAResearcher's request for an Alienware data point.

I have an Alienware m18 R1 (RTX 4090 Laptop, 10de:2757, subsystem 1028:0c49, VBIOS 95.03.2a.00.47, BIOS 1.35.0, 76 SM, 125 W default / 175 W max, hybrid/Advanced Optimus). I still do not have bare-metal Linux on it; my USB drive arrives tomorrow (2026-10-29), so I could run a quick Windows-side cross-check first.

Question: would it be useful/acceptable to run the UEFI pre-driver unlocker (physicsdolphin/nv-uefi-unlocker, v0.2.0 + a loader built from main with cargo efi-tx, SHA256 ECA8248A891EA74D21E208B07F0B4BEA72E918FCDC2B4D89EB6B09EC3A58A708) as a cross-check on this board? I understand it is a different implementation, Windows-side, volatile, and not the same-kernel stock/unlocked pair you asked for. I would clearly label it as a cross-tool data point, not as gpu-unlock-ada evidence. If you would rather keep this thread for the Linux module, I will post the UEFI result in the UEFI repo and wait until I have bare-metal Ubuntu for the strict pair.

If the cross-check is useful, I will run it tomorrow when the USB arrives: stock baseline, then UEFI unlock, recording FP16/BF16 GEMM, power/temp/clocks, the key loader.log lines, and any Xid/Code 43; I will report both outcomes. I will keep the nvoc power-limit test separate in the nvoc repo.

Off-topic for this thread: I noticed the repo's community profile is 42% and the topics list is empty. Would a small docs/community PR be welcome (issue templates, CONTRIBUTING, README TOC/quick-start, topics)? I can open a separate issue/PR with a concrete proposal so this thread stays on 2757. No pressure either way.

I know #4 is closed; if you prefer a new issue for the Alienware cross-check, say so and I will open one.

<!-- gh-comment-id:6466786750 --> @SPREsxm commented on GitHub (Oct 28, 2026): Thanks for the context and for landing #51. Following up on @JustAResearcher's request for an Alienware data point. I have an Alienware m18 R1 (RTX 4090 Laptop, `10de:2757`, subsystem `1028:0c49`, VBIOS `95.03.2a.00.47`, BIOS `1.35.0`, 76 SM, 125 W default / 175 W max, hybrid/Advanced Optimus). I still do not have bare-metal Linux on it; my USB drive arrives tomorrow (2026-10-29), so I could run a quick Windows-side cross-check first. Question: would it be useful/acceptable to run the UEFI pre-driver unlocker (`physicsdolphin/nv-uefi-unlocker`, v0.2.0 + a loader built from `main` with `cargo efi-tx`, SHA256 `ECA8248A891EA74D21E208B07F0B4BEA72E918FCDC2B4D89EB6B09EC3A58A708`) as a cross-check on this board? I understand it is a different implementation, Windows-side, volatile, and not the same-kernel stock/unlocked pair you asked for. I would clearly label it as a cross-tool data point, not as `gpu-unlock-ada` evidence. If you would rather keep this thread for the Linux module, I will post the UEFI result in the UEFI repo and wait until I have bare-metal Ubuntu for the strict pair. If the cross-check is useful, I will run it tomorrow when the USB arrives: stock baseline, then UEFI unlock, recording FP16/BF16 GEMM, power/temp/clocks, the key `loader.log` lines, and any Xid/Code 43; I will report both outcomes. I will keep the nvoc power-limit test separate in the nvoc repo. Off-topic for this thread: I noticed the repo's community profile is 42% and the topics list is empty. Would a small docs/community PR be welcome (issue templates, `CONTRIBUTING`, README TOC/quick-start, topics)? I can open a separate issue/PR with a concrete proposal so this thread stays on 2757. No pressure either way. I know #4 is closed; if you prefer a new issue for the Alienware cross-check, say so and I will open one.
Author
Owner

@japatton commented on GitHub (Oct 30, 2026):

RTX 4090 Laptop GPU (10de:2757) on a Lenovo Legion Pro 7 16IRX9H (Gen 9): unlock works, ~2× FP16/BF16 with FP32 accumulate

A third 10de:2757 board and the first Gen 9 Legion (16IRX9H, 83DE). Stock Lenovo firmware.
On one cold boot the module completed and the driver bound normally. Register-resident FP16/FP32
and BF16/FP32 mma.sync throughput per SM clock went up 1.95–2.15×. PyTorch FP16/BF16 matmul
rose 1.74–1.86× and SDXL rose 1.33×. Outputs were byte-identical to stock, and there was no
Xid. Results look like 30crows's Gen 8 (16IRX8H), not the Clevo.

Hardware and software

Item Value
Laptop Lenovo Legion Pro 7 16IRX9H (83DE), BIOS N2CN32WW, stock Lenovo firmware/EC
GPU GeForce RTX 4090 Laptop GPU 10de:2757 rev a1, subsystem 17aa:3cf5, 76 SMs
VBIOS 95.03.3B.00.17
Power 80 W default, 175 W max (power.limit reads [N/A])
Display Hybrid; Intel iGPU is boot VGA and drives the panel; an HDMI monitor was attached to the dGPU
OS Omarchy (Arch-based), kernel 7.2.8-9-omarchy, Limine 12.9.4 with mkinitcpio UKIs, LUKS root
Driver NVIDIA open kernel module 615.78.08 (nvidia-open-dkms)
Module gpu-unlock-ada d28c485 (1.1.1), firmware generated locally from the pinned 610.43.03 inputs; packaging check(): OK, 3 optional skips (PyCryptodome)
Option gpu_unlock.targets=<exact address> gpu_unlock.ad103m_experimental=1

The same precautions applied to both stock and unlocked runs:

  • options nvidia NVreg_DynamicPowerManagement=0x00; runtime_status was active.
  • performance platform profile, on AC.
  • The same kernel, driver, binaries, container and launch settings in both states.
  • Both boots were cold: full shutdown with the charger unplugged for about 30 s, battery connected.
  • The unlock ran from a separate Limine entry (the same UKI plus the two options). The default
    entry's command line was unchanged.

Transaction

At the default log level the journal shows the ROM/FWSEC parsing lines, then
gpu_unlock: unlocked for the card. No NVRM: Xid appeared during or after the benchmarks. The
NVIDIA driver bound normally, and the dGPU's HDMI output came back once nvidia-drm took over. I
did not read the RM rate getter on this run.

Results

These probes were written independently, not taken from diagnostics/bench. Instruction rates
are normalised by the SM clock measured inside the kernel (clock64 / %globaltimer, a steady
2273 MHz in both states), so power-limit clock swings cancel out. Each measurement is the best of
3 repetitions. The unlocked suite ran twice in the same boot, and both runs are shown.

mma.sync issue rate (76 SMs × 6 blocks × 256 threads, 8 chains per warp)

Mode Stock FLOP/SM/clk Unlocked Change (run 1 / run 2)
FP16 → FP16 acc 737 923 1.25× / 1.22×
FP16 → FP32 acc 370 721 1.95× / 1.97×
BF16 → FP32 acc 427 907 2.13× / 2.15×
TF32 → FP32 acc 212 368 1.73× / 1.82×
INT8 → INT32 acc 1713 1854 1.07× / 1.07×

Stock BF16/FP32 to FP16/FP16 ratio: 0.50–0.58 over three stock runs. Unlocked: 0.98 / 1.02.
The FP16/FP16 row includes some run-to-run variance in my kernel. In earlier stock runs it
ranged from 740 to 843.

cuBLAS cublasGemmEx, FP16 inputs (median of 20)

Shape Compute Stock TF/s Unlocked TF/s Change
4096³ CUBLAS_COMPUTE_16F 142.3 142.4 1.00×
4096³ CUBLAS_COMPUTE_32F 83.2 150.8 / 149.1 1.81× / 1.79×
8192³ CUBLAS_COMPUTE_16F 112.4 99.3 / 100.1 0.88× / 0.89×
8192³ CUBLAS_COMPUTE_32F 69.9 107.1 / 103.8 1.53× / 1.48×

At 8192³, both modes are bounded by the laptop's power limit.

PyTorch 2.14.1+cu130 (median of 20)

Workload Stock Unlocked Change
FP16 matmul 4096 / 8192 (TF/s) 83.2 / 60.1 150.4 / 104.7 1.81× / 1.74×
BF16 matmul 4096 / 8192 83.1 / 60.1 154.2 / 107.6 1.86× / 1.79×
TF32 matmul 4096 / 8192 39.6 / 34.5 74.6 / 53.3 1.88× / 1.54×
BF16 SDPA, 10 heads × d64, seq 4096 75.7 128.0 1.69×
BF16 SDPA, 24 heads × d128, seq 4096 78.1 81.8 / 123.6 1.05× / 1.58× (inconsistent)
FP16 conv3x3, 640 ch, 64×64, NHWC 84.0 143.6 1.71× / 1.76×
BF16 autocast MLP train step, 8× 4096 Linear + AdamW (ms) 95.6 69.5 1.37× faster

Applications

Workload Stock Unlocked Change
ComfyUI SDXL (animagine-xl-4.0 FP16), 1024², 30 steps, euler 3.25 it/s 4.33 it/s 1.33× / 1.32×
Ollama llama3.1:8b (Q4), 5525-token prefill 4678 tok/s 4402 tok/s 0.94× (noise; quantized path)
Ollama llama3.1:8b decode 66.1 tok/s 70.8 tok/s 1.07× (memory bound)

Numerical checks and telemetry

  • Byte-identical output hashes, stock versus unlocked, for:
    • every PyTorch matmul (FP16/BF16/TF32, both sizes)
    • both SDPA cases
    • all three SDXL images (seeds 42/43/44)
  • The FP16 conv hash matched in run 1 and differed in run 2. That run uses
    cudnn.benchmark=True, which can pick a different algorithm when timings change, so I don't
    attribute it to the unlock.
  • The CUBLAS_COMPUTE_16F and 32F relative errors against an FP64 reference were the same in
    both states (2.9e-3 / 1.8e-4 at 4096).
  • Peak sampled power was 171 W stock and 172–178 W unlocked. Peak temperature was 61 °C stock and
    61–62 °C unlocked.

Follow-up: upstream Zagitta/gpu-unlock 2.0.0 on the same laptop

Same stock baseline, kernel, driver and settings, with upstream 7eb51bc (2.0.0) built locally
from the pinned 610.43.03 inputs. Option: gpu_unlock.targets=<exact address> only, since
upstream admits 0x2757 without an experimental flag. Cold boot.

The transaction log was clean. All four PLM passes returned marker 0x67b00001 ret=0. FBPA
0x9a0148 read back 0xffffff0f, the same not-required case as the Clevo. After FLR the log
showed ss0=0x88888888 ss1=0x8, then handoff ret=0 retained=0 and gpu_unlock: unlocked.

Metric Stock Upstream 2.0 Change
mma.sync FP16→FP32 (FLOP/SM/clk) 370 747 2.02×
mma.sync BF16→FP32 427 935 2.19×
PyTorch FP16 / BF16 matmul 8192 (TF/s) 60.1 / 60.1 107.9 / 125.0 1.80× / 2.08×
BF16 MLP train step (ms) 95.6 55.1 1.73× faster
SDXL 1024², 30 steps (it/s) 3.25 4.35 1.34×
Ollama llama3.1:8b prefill / decode 4678 / 66.1 4404 / 72.7 0.94× / 1.10×

Hashes were byte-identical for every matmul, both SDPA cases, all SDXL images and the Ollama
response. The cuDNN-autotuned conv differed, as before. Peak power was 174 W and there was no Xid.

S3 suspend/resume works. mem_sleep is deep and the driver has
UseKernelSuspendNotifiers=1. On resume the module logged
stage=resume-entry ss0=0x57211004 ss1=0x5, which shows S3 had reset the selectors to stock. It
then reran the full transaction (all passes ret=0) and logged
gpu_unlock: unlocked again after resume with no Xid. CUDA contexts in running containers
survived. After resume, PyTorch FP16/BF16 matmul ran at 1.81–2.12× stock, with byte-identical
output hashes, conv included.

Not done

  • Hibernation and battery operation.
  • RM getter readback, FP8, and INT4.
  • Long-duration stability: these are two cold boots with about 15 minutes of load each.

Warm reboot works on this board (upstream 2.0). After a plain systemctl reboot with the
charger connected, the card entered fresh (wpr2_hi=0x0, stock ss0=0x57211004), every pass
returned ret=0, and the log showed gpu_unlock: unlocked. PyTorch BF16 matmul then ran at
1.78–1.86× stock with byte-identical hashes. The unlock now runs from the default command line on
every boot.

<!-- gh-comment-id:6512547963 --> @japatton commented on GitHub (Oct 30, 2026): # RTX 4090 Laptop GPU (10de:2757) on a Lenovo Legion Pro 7 16IRX9H (Gen 9): unlock works, ~2× FP16/BF16 with FP32 accumulate A third `10de:2757` board and the first Gen 9 Legion (16IRX9H, 83DE). Stock Lenovo firmware. On one cold boot the module completed and the driver bound normally. Register-resident FP16/FP32 and BF16/FP32 `mma.sync` throughput per SM clock went up **1.95–2.15×**. PyTorch FP16/BF16 matmul rose **1.74–1.86×** and SDXL rose **1.33×**. Outputs were byte-identical to stock, and there was no Xid. Results look like 30crows's Gen 8 (16IRX8H), not the Clevo. ## Hardware and software | Item | Value | |---|---| | Laptop | Lenovo Legion Pro 7 16IRX9H (83DE), BIOS `N2CN32WW`, stock Lenovo firmware/EC | | GPU | GeForce RTX 4090 Laptop GPU `10de:2757` rev a1, subsystem `17aa:3cf5`, 76 SMs | | VBIOS | `95.03.3B.00.17` | | Power | 80 W default, 175 W max (`power.limit` reads `[N/A]`) | | Display | Hybrid; Intel iGPU is boot VGA and drives the panel; an HDMI monitor was attached to the dGPU | | OS | Omarchy (Arch-based), kernel `7.2.8-9-omarchy`, Limine 12.9.4 with mkinitcpio UKIs, LUKS root | | Driver | NVIDIA open kernel module `615.78.08` (`nvidia-open-dkms`) | | Module | `gpu-unlock-ada` `d28c485` (1.1.1), firmware generated locally from the pinned 610.43.03 inputs; packaging `check()`: OK, 3 optional skips (PyCryptodome) | | Option | `gpu_unlock.targets=<exact address> gpu_unlock.ad103m_experimental=1` | The same precautions applied to both stock and unlocked runs: - `options nvidia NVreg_DynamicPowerManagement=0x00`; `runtime_status` was `active`. - `performance` platform profile, on AC. - The same kernel, driver, binaries, container and launch settings in both states. - Both boots were cold: full shutdown with the charger unplugged for about 30 s, battery connected. - The unlock ran from a separate Limine entry (the same UKI plus the two options). The default entry's command line was unchanged. ## Transaction At the default log level the journal shows the ROM/FWSEC parsing lines, then `gpu_unlock: unlocked` for the card. No `NVRM: Xid` appeared during or after the benchmarks. The NVIDIA driver bound normally, and the dGPU's HDMI output came back once `nvidia-drm` took over. I did not read the RM rate getter on this run. ## Results These probes were written independently, not taken from `diagnostics/bench`. Instruction rates are normalised by the SM clock measured inside the kernel (`clock64` / `%globaltimer`, a steady 2273 MHz in both states), so power-limit clock swings cancel out. Each measurement is the best of 3 repetitions. The unlocked suite ran twice in the same boot, and both runs are shown. ### `mma.sync` issue rate (76 SMs × 6 blocks × 256 threads, 8 chains per warp) | Mode | Stock FLOP/SM/clk | Unlocked | Change (run 1 / run 2) | |---|---:|---:|---:| | FP16 → FP16 acc | 737 | 923 | 1.25× / 1.22× | | FP16 → FP32 acc | 370 | 721 | **1.95× / 1.97×** | | BF16 → FP32 acc | 427 | 907 | **2.13× / 2.15×** | | TF32 → FP32 acc | 212 | 368 | 1.73× / 1.82× | | INT8 → INT32 acc | 1713 | 1854 | 1.07× / 1.07× | Stock BF16/FP32 to FP16/FP16 ratio: 0.50–0.58 over three stock runs. Unlocked: 0.98 / 1.02. The FP16/FP16 row includes some run-to-run variance in my kernel. In earlier stock runs it ranged from 740 to 843. ### cuBLAS `cublasGemmEx`, FP16 inputs (median of 20) | Shape | Compute | Stock TF/s | Unlocked TF/s | Change | |---|---|---:|---:|---:| | 4096³ | `CUBLAS_COMPUTE_16F` | 142.3 | 142.4 | 1.00× | | 4096³ | `CUBLAS_COMPUTE_32F` | 83.2 | 150.8 / 149.1 | **1.81× / 1.79×** | | 8192³ | `CUBLAS_COMPUTE_16F` | 112.4 | 99.3 / 100.1 | 0.88× / 0.89× | | 8192³ | `CUBLAS_COMPUTE_32F` | 69.9 | 107.1 / 103.8 | **1.53× / 1.48×** | At 8192³, both modes are bounded by the laptop's power limit. ### PyTorch 2.14.1+cu130 (median of 20) | Workload | Stock | Unlocked | Change | |---|---:|---:|---:| | FP16 matmul 4096 / 8192 (TF/s) | 83.2 / 60.1 | 150.4 / 104.7 | 1.81× / 1.74× | | BF16 matmul 4096 / 8192 | 83.1 / 60.1 | 154.2 / 107.6 | 1.86× / 1.79× | | TF32 matmul 4096 / 8192 | 39.6 / 34.5 | 74.6 / 53.3 | 1.88× / 1.54× | | BF16 SDPA, 10 heads × d64, seq 4096 | 75.7 | 128.0 | 1.69× | | BF16 SDPA, 24 heads × d128, seq 4096 | 78.1 | 81.8 / 123.6 | 1.05× / 1.58× (inconsistent) | | FP16 conv3x3, 640 ch, 64×64, NHWC | 84.0 | 143.6 | 1.71× / 1.76× | | BF16 autocast MLP train step, 8× 4096 Linear + AdamW (ms) | 95.6 | 69.5 | 1.37× faster | ### Applications | Workload | Stock | Unlocked | Change | |---|---:|---:|---:| | ComfyUI SDXL (animagine-xl-4.0 FP16), 1024², 30 steps, euler | 3.25 it/s | 4.33 it/s | **1.33× / 1.32×** | | Ollama llama3.1:8b (Q4), 5525-token prefill | 4678 tok/s | 4402 tok/s | 0.94× (noise; quantized path) | | Ollama llama3.1:8b decode | 66.1 tok/s | 70.8 tok/s | 1.07× (memory bound) | ### Numerical checks and telemetry - Byte-identical output hashes, stock versus unlocked, for: - every PyTorch matmul (FP16/BF16/TF32, both sizes) - both SDPA cases - all three SDXL images (seeds 42/43/44) - The FP16 conv hash matched in run 1 and differed in run 2. That run uses `cudnn.benchmark=True`, which can pick a different algorithm when timings change, so I don't attribute it to the unlock. - The `CUBLAS_COMPUTE_16F` and `32F` relative errors against an FP64 reference were the same in both states (2.9e-3 / 1.8e-4 at 4096). - Peak sampled power was 171 W stock and 172–178 W unlocked. Peak temperature was 61 °C stock and 61–62 °C unlocked. ## Follow-up: upstream Zagitta/gpu-unlock 2.0.0 on the same laptop Same stock baseline, kernel, driver and settings, with upstream `7eb51bc` (2.0.0) built locally from the pinned 610.43.03 inputs. Option: `gpu_unlock.targets=<exact address>` only, since upstream admits `0x2757` without an experimental flag. Cold boot. The transaction log was clean. All four PLM passes returned `marker 0x67b00001 ret=0`. FBPA `0x9a0148` read back `0xffffff0f`, the same not-required case as the Clevo. After FLR the log showed `ss0=0x88888888 ss1=0x8`, then `handoff ret=0 retained=0` and `gpu_unlock: unlocked`. | Metric | Stock | Upstream 2.0 | Change | |---|---:|---:|---:| | `mma.sync` FP16→FP32 (FLOP/SM/clk) | 370 | 747 | 2.02× | | `mma.sync` BF16→FP32 | 427 | 935 | 2.19× | | PyTorch FP16 / BF16 matmul 8192 (TF/s) | 60.1 / 60.1 | 107.9 / 125.0 | 1.80× / 2.08× | | BF16 MLP train step (ms) | 95.6 | 55.1 | 1.73× faster | | SDXL 1024², 30 steps (it/s) | 3.25 | 4.35 | 1.34× | | Ollama llama3.1:8b prefill / decode | 4678 / 66.1 | 4404 / 72.7 | 0.94× / 1.10× | Hashes were byte-identical for every matmul, both SDPA cases, all SDXL images and the Ollama response. The cuDNN-autotuned conv differed, as before. Peak power was 174 W and there was no Xid. **S3 suspend/resume works.** `mem_sleep` is `deep` and the driver has `UseKernelSuspendNotifiers=1`. On resume the module logged `stage=resume-entry ss0=0x57211004 ss1=0x5`, which shows S3 had reset the selectors to stock. It then reran the full transaction (all passes `ret=0`) and logged `gpu_unlock: unlocked again after resume` with no Xid. CUDA contexts in running containers survived. After resume, PyTorch FP16/BF16 matmul ran at 1.81–2.12× stock, with byte-identical output hashes, conv included. ## Not done - Hibernation and battery operation. - RM getter readback, FP8, and INT4. - Long-duration stability: these are two cold boots with about 15 minutes of load each. **Warm reboot works on this board (upstream 2.0).** After a plain `systemctl reboot` with the charger connected, the card entered fresh (`wpr2_hi=0x0`, stock `ss0=0x57211004`), every pass returned `ret=0`, and the log showed `gpu_unlock: unlocked`. PyTorch BF16 matmul then ran at 1.78–1.86× stock with byte-identical hashes. The unlock now runs from the default command line on every boot.
Sign in to join this conversation.
No labels
pull-request
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
JustAResearcher/gpu-unlock-ada#1
No description provided.