mirror of
https://github.com/JustAResearcher/gpu-unlock-ada.git
synced 2026-12-03 20:45:57 +07:00
[GH-ISSUE #115] [Windows UEFI] RTX 4080 16 GB (AD103, 10de:2704) unlock verified on ASRock Z390 — FP16 91.9→174.4 TFLOPS (+89.7%), BF16 +91.6% #72
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#72
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 @pepsiboy87 on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/115
Summary
Windows 11 / UEFI unlock verified on a retail RTX 4080 16 GB (AD103,
10de:2704) installed in anASRock Z390 Taichi, using the UEFI application lineage from
TOTORONG/AD103_win_unlocker, rebuiltfrom source with MSVC and adapted with seven board/card-specific changes.
This is not a new unlock method. The unlock itself (permission-level-mask elevation, the four-PLM
chain and the SS0/SS1 selector writes) is upstream work — see Scope and credit. What is new here is a
port to a machine nobody has publicly documented, and an honest account of why the obvious approach
does not work on it.
Selector state, from the run log:
Honest boundary up front: an fp8-quantised video workflow (MiniMax H3, 19.9 GB checkpoint on a 16 GB
card) showed no gain — 312.5 s warm versus 270.9–279.9 s recorded on the same machine before the
unlock. That is expected: the fp8 path is not the path these selectors govern, and the checkpoint does
not fit in VRAM, so the loop is transfer-bound rather than issue-rate-bound. Details in Limitations.
Scope and credit
What this report contributes, and what it does not:
Zagitta/gpu-unlockand earlier CMP researchTOTORONG/AD103_win_unlockerJustAResearcher/gpu-unlock-ada0xbadf5620signatureimpacifist/Windows-GPU-UNLOCKLicensing: the UEFI code is GPL-2.0-derived, so modified source can be shared with notices intact.
TOTORONG's narrative documentation is CC BY-NC 4.0 — the analysis below is written independently and
copies none of it. NVIDIA firmware assets are not redistributed.
Environment
10de:2704, subsystem6688:2704193000a10000:04:00.0(second CPU PEG port,00:01.1)0xB1000000, length0x10000001002:687f) — see Limitations for the cable ruleIdentity binding used for the live PROM view (BAR0 +
0x300000,0xd6c00bytes):Why a naive port fails on this board
An attempt built on
Goldlionren/gpu-unlock-4080sreachedadmissionbut never completed. Acrossroughly 14 boot cycles the failures collapsed into five classes; all five are instructive:
1in several places (card is on bus 4)owners_beforedeniedBY_DRIVERopen on the targetDisconnectController(handle, NULL, NULL)FWSECreturns0xbadf5620,WPR2stays 0impacifist/Windows-GPU-UNLOCK#54Class 3 and 5 are the real wall. The fix is not a parameter: it is the release sequence —
RaiseTPL(TPL_NOTIFY),DisconnectController(handle, agent, NULL),PciIounderTPL_NOTIFYafter the handle is replaced,OpenProtocol(EXCLUSIVE)claim, then restore only the cleared IO/MEM decode bits,That is what the AD103 lineage does and what the first port did not.
Seven adaptations required on this machine
port.hGU_BOARD_SUBSYSTEM 0x179510de→0x27046688checks.cGuCheckConfigBus == 1port.cGuTargetConfigB == 1app.cBarCheckAddrRangeMaxaccepts0xb1ffffff(plus the EDK2 alignment form0x00ffffff)0x80ffffffapp.cPromCheckRomImagehash (150 528 bytes) logged, not enforcedprom_profile.hGU_PROM_VIEW_SHA256→ measured95cb1464…ownership.cGuRefreshTargetPciPciIohandles and match the saved BDFBuild notes — no Zig needed, MSVC 2022 works:
compat.c:__atomic_thread_fence(__ATOMIC_SEQ_CST)→_ReadWriteBarrier()+__faststorefence().vendor/unlock_610.c:void *bar→u8 *bar(MSVC rejectsvoid *arithmetic).link /subsystem:efi_application /entry:EfiMain /nodefaultlib /machine:x64.Validation evidence
Trimmed from the run log; timestamps removed.
FBPAnot reaching its requested value is documented upstream as non-fatal and reproduced here.Limitations
one GOP on the target. Afterwards it can be moved back, which returns 1–2 GB of VRAM.
H3 workflow took 312.5 s warm versus 270.9–279.9 s before the unlock. The gain lands on
bf16/fp16 compute-bound work — GEMM, LoRA training, LLM prefill — not on transfer-bound inference.
measures 174.35 / 176.20 (−4.6%). Power is not the cause here (340 W default versus the reference's
320 W), so the likely difference is measurement environment (WSL2 + PyTorch 2.8/cu128 there, native
Windows torch here). Treat both as same-order results, not a ranking.
Reproduction
Source:
TOTORONG/AD103_win_unlocker. This report distributes no binaries and no NVIDIA firmware;the five assets must be generated locally from the pinned driver package. The PROM hash above is what
this machine measured — it is not something to copy.
Risks
Experimental privileged firmware execution, before any OS driver loads. It can hang the GPU or the
host, prevent boot, or corrupt state. Power off (do not reset) if it reports STOP. Treat the machine as
expendable while iterating.
Tooling and workflow (for transparency)
This port was executed with an AI agent in the loop: OpenClaw (agent runtime) driving DeepSeek's API
for log interpretation, source analysis, patch authoring and build orchestration. Every physical action
— USB staging, BIOS changes, power cycling, pressing the confirmation key — was performed by the human
operator, who also made all go/no-go decisions.
Runtime accounting for the two days of this port: 779 agent turns, 35.9 M new input tokens, 0.59 M
output tokens, 201 M cached reads, ≈ US$10 of API usage. The figure covers the whole session, of
which the GPU work was the dominant part. Roughly 24 boot cycles were spent rejecting incorrect
hypotheses; they are itemised above rather than hidden.
Every number in this report was measured on the physical card, not generated by the agent.
Credits
TOTORONG/AD103_win_unlocker(UEFI lineage, payload research),JustAResearcher/gpu-unlock-ada(AD102 evidence, firmware generators),
Zagitta/gpu-unlock(transaction lineage),impacifist/Windows-GPU-UNLOCK(handoff reference and the #54 failure signature),Goldlionren/gpu-unlock-4080s(signing/db enrollment reference).中文摘要
板卡:RTX 4080 16 GB(AD103,
10de:2704,子系统6688:2704,BDF00:04:00.0)平台:华擎 Z390 Taichi + Windows 11(CSM 关闭,无核显,CPU 为 6C/12T 工程样品)
结果:FP16 91.93 → 174.35 TFLOPS(+89.7%),BF16 91.94 → 176.20(+91.6%),PCIe FLR 后仍保持
三点必须说明:
本文的贡献是"在没人公开过的机器上跑通"以及"为什么朴素移植必然失败"的归因。
收益集中在 bf16/fp16 计算密集型任务(GEMM、LoRA 训练、LLM 预填充)。
代价:易失,每次冷启动需从 U 盘跑一次;解锁期间显示器线必须在目标卡上。
@pepsiboy87 commented on GitHub (Oct 30, 2026):
Update — repeatability verified, and one correction to my earlier claim
Two follow-ups since the original report.
1. Cold-boot repeatability confirmed
Three power cycles on the same machine (RUN10–RUN12):
stage=display—GOP physical=1 target=0driver release: status=0 refresh=0 same_pci=1Cold state reads back
SS0=0x54110026on every boot and is then rewritten to0x88888888. Re-measured after the third boot: FP16 175.17 TFLOPS, BF16 174.68 — consistent with the first run (174.35 / 176.20).So the unlock is reproducible per cold boot, not a one-off. The display-cable rule is not a guess; it is three runs of evidence.
2. Correction: the "Turbo LoRA" speedup I mentioned was wrong
On my side
minimax_h3_turbo_v4_step600_ema.safetensorshas keys without thediffusion_model.prefix and does not load intofl2va_pruned_fp8_scaled— ComfyUI logs shape errors on theadaln_projlayers and continues silently. The 146 s figure I had attributed to that LoRA was actually 8 steps without it.The LoRA that matches this model is
minimax_h3_ref2v_turbo_4step_v0.1_comfyui_bf16.safetensors— despite the name, its metadata declaresminimax_h3_fl2va_bf16as the base model. With it: 4 steps, 104.6 s, no shape errors.Lesson worth passing on: check the LoRA metadata's
base_model, not the filename.3. Hands-free boot variant
The confirmation prompt in
Arm()was a 30 s key wait. It is now a 6 s auto-proceed window (Esc still cancels), so with the USB first in boot order a cold boot unlocks with no keyboard input.Source, patch and the bilingual notes:
https://github.com/pepsiboy87/ad103-win-uefi-port
The fp8/quantised-inference finding is unchanged: no gain there, the win is compute-bound only.