mirror of
https://github.com/JustAResearcher/gpu-unlock-ada.git
synced 2026-12-03 20:45:57 +07:00
[GH-ISSUE #4] Should this work on an AD103 4090m 16gb? #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JustAResearcher/gpu-unlock-ada#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)
@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:
If you'd like to help test, please post:
lspci -nnk -s 02:00.0(your line above is missing the[10de:xxxx]ID)@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.
@SPREsxm commented on GitHub (Oct 25, 2026):
Adding a second
10de:2757data point, this one a stock Alienware m18 R1 (different EC/BIOS/display path from the Clevo above).lspciequivalent — this box is currently Windows-only, so I don't havelspci; the Windows PnP ID is:I can provide a real
lspci -nnk -s 01:00.0from a Linux live USB before any attempt.OS / driver
MUX / display mode
nvidia-smishowsDisplay Active: Disabledand the dGPU at P8 idle.Runtime suspend
power/runtime_statusandlspci -vvfrom 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:
tools/read_sm_rates.pyagainst0000:01:00.0and postfmla32/imla2/imla4, pluslspci -nnk,nvidia-smi -q, VBIOS anddmesg.0x2757behind 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:
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.
@ilikenwf commented on GitHub (Oct 25, 2026):
I've got copilot drafting a test branch..
@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?
@ilikenwf commented on GitHub (Oct 25, 2026):
Don't believe so.
@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?
@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:
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":
I would still copy #91's laptop precautions into any 2757 re-test because they prevent false negatives:
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.
@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@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:2757board, this time with stock Lenovo firmware. The 2757 branch(
ilikenwf/gpu-unlock-ada@b7e10a0) completed the transaction on two cold boots, andon 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
10de:2757rev a1, subsystem17aa:3b6a, chip0x193000a1, 76 SMs95.03.2D.00.16power.limitreads[N/A])6.18.57-gentoo-dist-bin, OpenRC, GRUB, ugrd 2.2.0 initramfs (LUKS root)615.78.08ilikenwf/gpu-unlock-adabranchad103m-rtx4090-mobile-2757atb7e10a0(base4e7fefc); firmware generated locally from the pinned 610.43.03 inputs;make test-full: 29 passed, 3 optional skippedgpu_unlock.targets=<exact address> gpu_unlock.ad103m_experimental=1Laptop precautions taken from Zagitta/gpu-unlock#91, applied identically to stock and
unlocked runs:
options nvidia NVreg_DynamicPowerManagement=0x00;runtime_statusstayedactivebefore and after every run.
performanceplatform profile (power-profiles-daemon), charger connected.Boot setup: the unlock ran from a separate ugrd image (
kmod_init = ["gpu_unlock"]) anda 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 nobattery disconnect or EC reset was needed on this board.
Transaction (identical on both boots)
0x1fa7cc0x4cb8f0xfffff0ff0x4cb8f0x1fa7c40x4cb8f0xffffffff0x4cb8f0x8238040xffffff8f0xffffffff0xffffffff0x9a0148(not required)0xffffff0f0xffffff0f0xffffff0fThese match the Clevo 2757 report, including FBPA staying at
0xffffff0f. The NVIDIAdriver loaded normally. The only NVRM messages were two
PlatformRequestHandler ... SBIOSassertions that also appear on stock boots. No Xid errors.RM rate getter (
tools/read_sm_rates.py, 0 = full, 1 = half)Workloads
Same hash-checked binaries (
testing.mdbuild commands,-arch=sm_89), same GPU, samesettings. TF/s unless noted.
mma_bench 20000 5, best of 5:gemm_bench(cuBLAS, every output cell checked), median: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_gemmandgemm_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: Xidafter thesoak.
Telemetry (
nvidia-smiat 100 ms while busy): peak SM clock 2385 MHz in all threeruns. 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 to1560/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:
615.78.08here,580.178.04there.Not done
@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 underad103m_experimentalwith 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=0x00would help show whether the Clevo result is board-specific. A new issue or PR with it would be great.Closing as completed.
@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.
@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, subsystem1028:0c49, VBIOS95.03.2a.00.47, BIOS1.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 frommainwithcargo efi-tx, SHA256ECA8248A891EA74D21E208B07F0B4BEA72E918FCDC2B4D89EB6B09EC3A58A708) 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 asgpu-unlock-adaevidence. 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.loglines, 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.
@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:2757board 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.syncthroughput per SM clock went up 1.95–2.15×. PyTorch FP16/BF16 matmulrose 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
N2CN32WW, stock Lenovo firmware/EC10de:2757rev a1, subsystem17aa:3cf5, 76 SMs95.03.3B.00.17power.limitreads[N/A])7.2.8-9-omarchy, Limine 12.9.4 with mkinitcpio UKIs, LUKS root615.78.08(nvidia-open-dkms)gpu-unlock-adad28c485(1.1.1), firmware generated locally from the pinned 610.43.03 inputs; packagingcheck(): OK, 3 optional skips (PyCryptodome)gpu_unlock.targets=<exact address> gpu_unlock.ad103m_experimental=1The same precautions applied to both stock and unlocked runs:
options nvidia NVreg_DynamicPowerManagement=0x00;runtime_statuswasactive.performanceplatform profile, on AC.entry's command line was unchanged.
Transaction
At the default log level the journal shows the ROM/FWSEC parsing lines, then
gpu_unlock: unlockedfor the card. NoNVRM: Xidappeared during or after the benchmarks. TheNVIDIA driver bound normally, and the dGPU's HDMI output came back once
nvidia-drmtook over. Idid not read the RM rate getter on this run.
Results
These probes were written independently, not taken from
diagnostics/bench. Instruction ratesare normalised by the SM clock measured inside the kernel (
clock64/%globaltimer, a steady2273 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.syncissue rate (76 SMs × 6 blocks × 256 threads, 8 chains per warp)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)CUBLAS_COMPUTE_16FCUBLAS_COMPUTE_32FCUBLAS_COMPUTE_16FCUBLAS_COMPUTE_32FAt 8192³, both modes are bounded by the laptop's power limit.
PyTorch 2.14.1+cu130 (median of 20)
Applications
Numerical checks and telemetry
cudnn.benchmark=True, which can pick a different algorithm when timings change, so I don'tattribute it to the unlock.
CUBLAS_COMPUTE_16Fand32Frelative errors against an FP64 reference were the same inboth states (2.9e-3 / 1.8e-4 at 4096).
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 locallyfrom the pinned 610.43.03 inputs. Option:
gpu_unlock.targets=<exact address>only, sinceupstream admits
0x2757without an experimental flag. Cold boot.The transaction log was clean. All four PLM passes returned
marker 0x67b00001 ret=0. FBPA0x9a0148read back0xffffff0f, the same not-required case as the Clevo. After FLR the logshowed
ss0=0x88888888 ss1=0x8, thenhandoff ret=0 retained=0andgpu_unlock: unlocked.mma.syncFP16→FP32 (FLOP/SM/clk)mma.syncBF16→FP32Hashes 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_sleepisdeepand the driver hasUseKernelSuspendNotifiers=1. On resume the module loggedstage=resume-entry ss0=0x57211004 ss1=0x5, which shows S3 had reset the selectors to stock. Itthen reran the full transaction (all passes
ret=0) and loggedgpu_unlock: unlocked again after resumewith no Xid. CUDA contexts in running containerssurvived. After resume, PyTorch FP16/BF16 matmul ran at 1.81–2.12× stock, with byte-identical
output hashes, conv included.
Not done
Warm reboot works on this board (upstream 2.0). After a plain
systemctl rebootwith thecharger connected, the card entered fresh (
wpr2_hi=0x0, stockss0=0x57211004), every passreturned
ret=0, and the log showedgpu_unlock: unlocked. PyTorch BF16 matmul then ran at1.78–1.86× stock with byte-identical hashes. The unlock now runs from the default command line on
every boot.