mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[GH-ISSUE #91] Compatibility report: RTX 4060 Laptop / AD107M (10de:28a0) — unlock works, 1.79–1.90× per clock; laptops need runtime D3 off #65
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#65
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 @jacksonfcs on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/91
Result
Unlocked, and FP16/BF16 got faster
Card
ASUS Zenbook 14 OLED (UX6404VV), GeForce RTX 4060 Laptop GPU (AD107M, Max-Q), 8 GB, 24 SMs
PCI IDs
VBIOS version
Is the card modified?
No — stock GPU, stock VBIOS, no flash, no shunt, no power-limit mod.
Distribution
Fedora 44
Kernel
NVIDIA driver
615.78.08, open kernel modules (RPMFusionakmod-nvidia), unmodified; bindsnormally after the FLR and drives CUDA.
Initramfs generator
dracut
gpu-unlock version and install method
This card is Ada, so it does not run on
mainhere (which is GA10x-only).It runs on the Ada port, which builds on this project's module:
payload path:
JustAResearcher/gpu-unlock-adav1.1.1 — our build is
gpu_unlock.kosha2562e9b42ba89efc97d…,vermagic
7.2.11-200.fc44.x86_64 SMP preempt mod_unload. The tarball wasfetched 2026-10-24; the exact commit was not recorded, so the module hash is
the identifier.
AD103_win_unlocker;the port's own canary write-up is
docs/ada-2705-report.md.ad103-rtx4080super,0x2702/0x2803).Firmware was generated locally from the pinned inputs (
make inputs,make firmware) and every output hash matchesfirmware/ada-610.43.03.json. Installed by hand: firmware →/lib/firmware/gpu-unlock/610.43.03/, module →/lib/modules/$(uname -r)/extra/gpu-unlock/, dracutforce_drivers+=" gpu_unlock ".Kernel command line
Setup
outputs and is not the display card. The machine exposes a MUX
(
/sys/devices/platform/asus-nb-wmi/gpu_mux_mode), currently1= Optimus.dGPU-only mode was not tested.
platform_profile=performanceraises the ceiling to 80 W.VBIOS reports 110 W max; highest limit observed on this chassis ~80 W.
Kernel log
The pre-unlock
SS0value varies between boots on this board — we observed0x10006000,0x12007007,0x12047025and0x12407007— consistent with alive strap rather than a constant. The module overwrites it wholesale, so the
starting value does not matter, but it makes "quote the log" reports look
inconsistent between boots.
Benchmark before and after
torch 2.14.1+cu130,
torch.mm(x, y, out=z), dense 8192³, 20 iterations,clock and power sampled during each run. FP16/BF16 accumulate in FP32 (cuBLAS
default); TF32 via
allow_tf32. INT8 is reported twice — once through a directcuBLAS
gemmExcall in TN layout, once throughtorch._int_mm— because the twodisagree by 3.7×; see the note below.
Two states × two platform profiles; each row uses the same tool and shape in
all four cells, so the per-MHz ratios are like-for-like.
_int_mmAbsolute ratios: FP16 1.38× (35 W) / 1.58× (80 W); BF16 1.53× / 1.55×;
TF32 1.42× / 1.49×.
FP32 SIMT and INT8 are flat in both states at both power levels — the
controls that show the override is specific to the FP32-accumulate tensor path,
not a clock or power artefact. FP32 per-MHz is 0.003828 → 0.003829 (0.03% drift).
Both INT8 rows are the same control, measured two ways. torch's
_int_mmneverreaches the int8 tensor cores — cuBLAS needs the TN layout (
opA=T, opB=N)and torch does not use it — so it reads ~3.7× lower. The cuBLAS row is the real
rate, ~2.2× the FP16 per-MHz figure. Both are flat across states, and each was
checked against an int32 reference.
Cross-check: an independent cuPy/cuBLAS FP16 measurement, power-matched within
one session, gave 17.55 → 25.26 TFLOPS (1.85× per MHz), consistent with the table.
Matched numerical check: the same deterministic 4096³ GEMM on a stock and an
unlocked card gives bit-identical output (
sha256 fe32388e…both states,sum/min/max identical).
Suspend and resume
Not tested
Anything else
Deltas beyond the Ada port (what actually had to change)
0x28a0tosupported_idsga102assets, whose booter halts on Adais_ad102()options nvidia NVreg_DynamicPowerManagement=0x00platform_profile=performanceWhy the first two matter for Ada in general
In the port,
is_ad103()matches only0x2702/0x2803, andunlock_assets_for()falls through to thega102set for anything else. Soadding another AD10x ID to
supported_idsalone is not enough — the card isaccepted and then takes the wrong booter. That applies to PR #24's shape as
much as to AD107. Deriving the asset set from the booter archive actually
loaded, rather than from a device-ID list, would remove the trap.
For reference, this card's AD102-archive identity was checked three ways:
booter_load-570.144.bin.xzis the same inode for ad102/ad103/ad104/ad106/ad107(57,720 B, sha256
8b293e19…); GA102 differs (61,304 B,d2fdaf17…);nvidia.kocontains only five BooterLoad sets:AD102, GA100, GA102, TU102, TU116;FEAT_OVR_PLMreads0xffffff8fat0x00823804, as on AD102/AD103/AD106.OTP fuses also match the 4090 reference, including the three enable bits
(
FUSE_SS_FMLA32/IMLA2/IMLA4 = 1), so nothing is fused off on this mobile die.Two laptop hazards, in case another mobile report arrives
unlocked; a minute later the card has powered off and the state is gone.#81 noticed RTD3 but its GPU never suspended, so it did not hit this.
immediately after
rmmod/modprobe, with the GPU never suspending. Sore-unlocking at runtime cannot work.
Consequence:
gpu_unlock: unlockedis not a success signal on a laptop. A ratemeasurement (~490 vs ~900 FLOP/cyc/SM) or a post-bind BAR read is.
Two things a maintainer may want to look at
WPR_CFG[0x1fa7cc]andWPR[0x1fa7c4]read back0x4cb8f,not the payload's expected
0xfffff0ff/0xffffffff, whileFEAT[0x823804]does read
0xffffffff. The unlock takes effect and the module logsrequired=1for both without failing. Possibly expected on this SKU,possibly a gap.
AD107M report;
gpu-unlock-ada#20asks "Will it works on 4060 Laptop?"and had no answer, while
gpu-unlock-ada#4covers an AD103M 4090m and isstill unanswered.
n = 1 board, one VBIOS, one vendor. Full write-up and raw evidence available.
[GH-ISSUE #91] Compatibility report: ASUS Zenbook 14 OLED UX6404VV RTX 4060 Laptop 8 GB (10de:28a0)to [GH-ISSUE #91] Compatibility report: RTX 4060 Laptop / AD107M (10de:28a0) — unlock works, 1.79–1.90× per clock; laptops need runtime D3 off@jacksonfcs commented on GitHub (Oct 26, 2026):
Resolved upstream — the local patch is no longer needed.
Two trees now admit
10de:28a0:cf08f46e:0x28a0(and0x2782) added to the sharedgu_ad10x_ids[]table that bothsupported_idsand the asset selection read, so the desync this report flagged cannot recur. The laptop runtime-D3 caveat is in the README.JustAResearcher/gpu-unlock-ada, PR #31 (merged 26 Oct):0x28a0behindgpu_unlock.ad107_experimental=1plus a single exactgpu_unlock.targets=address.Posted here because this thread otherwise has no reply, for anyone arriving later:
What the numbers were. The table in the report is a matched same-card stock/unlocked pair at both 35 W and 80 W — 462–490 → 870–898 FLOP/cyc/SM, i.e. 1.79–1.90× per clock and 1.38–1.58× wall-clock depending on power. Two further 4060 Laptop reports have appeared since (#29, #52), neither with a same-card stock baseline, so this is still the only matched 2×2 for AD107M.
What bit people on this card.
is_ad102()had to move as well, or the card takes the GA102 booter and halts.options nvidia NVreg_DynamicPowerManagement=0x00is required, andgpu_unlock: unlockedis not a success signal — only a post-bind benchmark or register read is.Left open rather than self-closing, in case it is wanted as a record under whatever labelling the repo uses.