[PR #41] [CLOSED] Add AD103 (RTX 4080 / 4080 SUPER) support #133

Closed
opened 2026-10-26 16:41:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Zagitta/gpu-unlock/pull/41
Author: @NeoChen1024
Created: 10/24/2026
Status: ❌ Closed

Base: main ← Head: ad103-upstream


📝 Commits (3)

  • 8f81bad firmware: add AD102 boot assets and the four-PLM V67 payload
  • c69c441 kernel: select GA102 or AD103 firmware assets per card
  • 531a2f3 kernel: add a read-only inspection mode

📊 Changes

16 files changed (+675 additions, -59 deletions)

View changed files

📝 Makefile (+4 -2)
📝 firmware/NOTICE.md (+11 -0)
📝 firmware/README.md (+6 -3)
📝 firmware/artifacts-610.43.03.json (+6 -3)
📝 firmware/extract_boot_assets.py (+25 -8)
📝 firmware/generate_v67.py (+38 -3)
📝 kernel/gpu_unlock/main.c (+30 -5)
📝 kernel/gpu_unlock/prep_610.h (+0 -1)
📝 kernel/gpu_unlock/unlock_610.c (+318 -25)
📝 kernel/gpu_unlock/unlock_610.h (+15 -4)
📝 kernel/gpu_unlock/vbios_610.c (+15 -0)
📝 kernel/gpu_unlock/vbios_610.h (+3 -0)
📝 tests/test_main.c (+40 -0)
📝 tests/test_packaging.py (+13 -0)
📝 tests/test_unlock_adapter.c (+150 -4)
📝 tests/unlock_shim/compat.h (+1 -1)

📄 Description

Adds the two desktop AD103 parts (10de:2702, 10de:2704) by selecting the
AD102 firmware assets and a four-PLM V67 payload from the PCI ID. GA10x paths
are unchanged.

  • firmware: generate booter_load_ad102.bin, gsp_boot_ad102.bin,
    gsp_boot_desc_ad102.bin and v67-ad102-610.43.03.bin from the pinned
    610.43.03 inputs, with the new hashes pinned in the manifest. No binaries
    are committed.
  • kernel: per-card profile (assets, .fwsignature_ad10x, 0xd6c00 PROM
    view, Booter geometry), 256-byte rounding for the FWSEC DMEM transfer
    (AD103 declares 0xd80), and post-Booter checks for the 0x67b00001
    marker, SEC2 HALT, 0xda550000 debug value and WPR_CFG/WPR/FEAT
    readbacks. FBPA's rejected write is logged and non-fatal.
  • kernel: gpu_unlock.dry_run=1 read-only preflight that logs cold
    registers, PROM and FWSEC geometry without writing BAR0 or starting
    firmware. This commit can be dropped if you prefer a smaller change.

Validated on an RTX 4080 SUPER (10de:2702, VBIOS 95.03.44.40.74, driver
615.78.08, 32 GB modified card, single display GPU). Selectors
0x36000134 → 0x88888888 and 0x4 → 0x8 survive the FLR, WPR2 HI=0 at
probe, and nvidia binds normally. mmapeak, 3 s per kernel, one run each
before/after:

Kernel Before (TFLOPS) After (TFLOPS)
BF16→FP32 101.2 198.4
FP16→FP32 101.5 202.7
TF32 50.6 99.2
FP8→FP32 201.8 376.1
FP16→FP16 202.5 201.8

FP16-accumulate, INT8, scalar FP32/FP64 are unchanged. make test passes
with the generated assets.

Notes: 0x2704 uses the same profile but is untested with this module; AD103
needs a cold boot, and a failed attempt needs a power cycle. The AD102 payload
table and AD103 geometry are adapted from
TOTORONG/AD103_win_unlocker
(GPL-2.0-only), recorded in firmware/NOTICE.md. I can add the full log, cold
register dump and raw benchmark outputs as docs/VALIDATION.md if useful.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Zagitta/gpu-unlock/pull/41 **Author:** [@NeoChen1024](https://github.com/NeoChen1024) **Created:** 10/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `ad103-upstream` --- ### 📝 Commits (3) - [`8f81bad`](https://github.com/Zagitta/gpu-unlock/commit/8f81bade10ce3227703394324ce2bad95e10e9ed) firmware: add AD102 boot assets and the four-PLM V67 payload - [`c69c441`](https://github.com/Zagitta/gpu-unlock/commit/c69c4410c3d595ded4b0ade7455dbc07f10292f1) kernel: select GA102 or AD103 firmware assets per card - [`531a2f3`](https://github.com/Zagitta/gpu-unlock/commit/531a2f3d65c8013343bcc19735d0e681b21496bf) kernel: add a read-only inspection mode ### 📊 Changes **16 files changed** (+675 additions, -59 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+4 -2) 📝 `firmware/NOTICE.md` (+11 -0) 📝 `firmware/README.md` (+6 -3) 📝 `firmware/artifacts-610.43.03.json` (+6 -3) 📝 `firmware/extract_boot_assets.py` (+25 -8) 📝 `firmware/generate_v67.py` (+38 -3) 📝 `kernel/gpu_unlock/main.c` (+30 -5) 📝 `kernel/gpu_unlock/prep_610.h` (+0 -1) 📝 `kernel/gpu_unlock/unlock_610.c` (+318 -25) 📝 `kernel/gpu_unlock/unlock_610.h` (+15 -4) 📝 `kernel/gpu_unlock/vbios_610.c` (+15 -0) 📝 `kernel/gpu_unlock/vbios_610.h` (+3 -0) 📝 `tests/test_main.c` (+40 -0) 📝 `tests/test_packaging.py` (+13 -0) 📝 `tests/test_unlock_adapter.c` (+150 -4) 📝 `tests/unlock_shim/compat.h` (+1 -1) </details> ### 📄 Description Adds the two desktop AD103 parts (`10de:2702`, `10de:2704`) by selecting the AD102 firmware assets and a four-PLM V67 payload from the PCI ID. GA10x paths are unchanged. - **firmware**: generate `booter_load_ad102.bin`, `gsp_boot_ad102.bin`, `gsp_boot_desc_ad102.bin` and `v67-ad102-610.43.03.bin` from the pinned 610.43.03 inputs, with the new hashes pinned in the manifest. No binaries are committed. - **kernel**: per-card profile (assets, `.fwsignature_ad10x`, `0xd6c00` PROM view, Booter geometry), 256-byte rounding for the FWSEC DMEM transfer (AD103 declares `0xd80`), and post-Booter checks for the `0x67b00001` marker, SEC2 HALT, `0xda550000` debug value and WPR_CFG/WPR/FEAT readbacks. FBPA's rejected write is logged and non-fatal. - **kernel**: `gpu_unlock.dry_run=1` read-only preflight that logs cold registers, PROM and FWSEC geometry without writing BAR0 or starting firmware. This commit can be dropped if you prefer a smaller change. Validated on an RTX 4080 SUPER (`10de:2702`, VBIOS `95.03.44.40.74`, driver 615.78.08, 32 GB modified card, single display GPU). Selectors `0x36000134 → 0x88888888` and `0x4 → 0x8` survive the FLR, WPR2 HI=0 at probe, and `nvidia` binds normally. `mmapeak`, 3 s per kernel, one run each before/after: | Kernel | Before (TFLOPS) | After (TFLOPS) | | --- | ---: | ---: | | BF16→FP32 | 101.2 | 198.4 | | FP16→FP32 | 101.5 | 202.7 | | TF32 | 50.6 | 99.2 | | FP8→FP32 | 201.8 | 376.1 | | FP16→FP16 | 202.5 | 201.8 | FP16-accumulate, INT8, scalar FP32/FP64 are unchanged. `make test` passes with the generated assets. Notes: `0x2704` uses the same profile but is untested with this module; AD103 needs a cold boot, and a failed attempt needs a power cycle. The AD102 payload table and AD103 geometry are adapted from [TOTORONG/AD103_win_unlocker](https://huggingface.co/TOTORONG/AD103_win_unlocker) (GPL-2.0-only), recorded in `firmware/NOTICE.md`. I can add the full log, cold register dump and raw benchmark outputs as `docs/VALIDATION.md` if useful. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 16:41:05 +07:00
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#133
No description provided.