[PR #82] Add guarded experimental RTX 4060 Laptop (AD107M) startup unlock #141

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

📋 Pull Request Information

Original PR: https://github.com/Zagitta/gpu-unlock/pull/82
Author: @victorhramos-dev
Created: 10/25/2026
Status: 🔄 Open

Base: main ← Head: ad107m-rtx4060-laptop


📝 Commits (10+)

  • 6a016e7 Add RTX 4080 SUPER (AD103) support with the AD10x four-PLM payload
  • 5d32058 Cover the AD103 path in the host tests
  • 96fdbc2 Ship the dracut drop-in from the deb, document AD103, bump 1.1.0
  • 83a6864 Refresh the 4080 SUPER boot evidence from the rebased HEAD
  • 527f8ce Use the GitHub identity in the changelogs
  • a250daf Print real newlines in the AD103 log strings
  • 30949dd Add RTX 4060 Ti 8GB (AD106) support
  • d8c5712 Publish RTX 4060 Ti boot-log and benchmark evidence
  • dd003ba Merge existing Ada support from upstream PR #24
  • e548a9c Add guarded startup-only RTX 4060 Laptop AD107M support

📊 Changes

33 files changed (+3225 additions, -88 deletions)

View changed files

📝 Makefile (+3 -1)
📝 README.md (+57 -16)
📝 VERSION (+1 -1)
📝 debian/changelog (+11 -0)
➕ debian/dracut/gpu-unlock.conf (+4 -0)
📝 debian/gpu-unlock-dkms.install (+1 -0)
➕ docs/evidence/rtx4060-laptop/README.md (+228 -0)
➕ docs/evidence/rtx4060-laptop/boot-log.txt (+118 -0)
➕ docs/evidence/rtx4060-laptop/measurements.json (+1357 -0)
➕ docs/evidence/rtx4060-laptop/probe.py (+313 -0)
➕ docs/evidence/rtx4060ti/README.md (+23 -0)
➕ docs/evidence/rtx4060ti/boot-log.txt (+86 -0)
➕ docs/evidence/rtx4080super/README.md (+35 -0)
➕ docs/evidence/rtx4080super/baseline.md (+12 -0)
➕ docs/evidence/rtx4080super/boot-log.txt (+96 -0)
➕ docs/evidence/rtx4080super/unlocked.md (+14 -0)
📝 firmware/NOTICE.md (+11 -0)
📝 firmware/README.md (+13 -6)
📝 firmware/artifacts-610.43.03.json (+4 -1)
📝 firmware/extract_boot_assets.py (+14 -0)

...and 13 more files

📄 Description

Dependency and validation scope

Depends on #24. This branch preserves that Ada work as a merge, followed by a separate AD107M implementation commit (e548a9c). It does not replace current main with the standalone fork or add a PCI ID without the corresponding Ada transaction path.

Draft deliberately: the implementation and host checks are complete, but the proposed upstream-shaped module has not been physically booted. The hardware observations below are from one experimental startup of a guarded local fork based on JustAResearcher/gpu-unlock-ada@491925c1079435e260137b9f3526066e764de830. The evidence documents this distinction explicitly. A physical full-power-off action was instructed but not independently confirmed.

Board admitted by this change

Property Value
GPU NVIDIA GeForce RTX 4060 Laptop GPU, AD107M
PCI ID 10de:28a0
Subsystem 1d05:1274, AIstone Global Limited
Revision / PMC_BOOT_0 a1 / 0x197000a1
VBIOS version 95.07.16.80.E1 — version string only, no image distributed
Compute / memory 24 SMs, SM89; 8 GiB physical, 8188 MiB reported usable
Observed driver NVIDIA open kernel module 615.78.08
Firmware inputs Existing pinned 610.43.03 assets

Implementation

  • Default-off, read-only ad107_experimental parameter, requiring one exact full PCI address. targets=all, comma lists, short addresses and opt-in without a target do not select AD107.
  • Exact board/revision admission plus a PMC check before layout reads, coherent DMA allocation, BAR writes or firmware launch. Other AD107 IDs and other laptop subsystems remain excluded.
  • Route AD107 through the complete existing AD10x asset and safety path: payload marker, required WPR_CFG/WPR/FEAT permissions, SEC2 HALT, payload integrity, raw readout, selector readback and post-FLR containment. No GA102 fallback.
  • Startup only: do not retain AD107 for PM re-unlock, and reject a direct AD107 resume transaction. Existing supported cards keep their resume behavior.
  • Preserve the three-argument unlock API, shared-GSP ownership and conservative retained-DMA lifecycle. No new firmware inputs, local result ABI, compatibility shim or additional release-version bump.

The measured FWSEC geometry is IMEM=0xf500, DMEM=0xd80, image 0x10300. A 256-byte-block transfer rounds DMEM to 0xe00, ending exactly at the allocation boundary. PR24 already provides the required bounded rounding; an additional PR35 port is not needed for this case. The new synthetic regression observes all 245 IMEM and 14 DMEM block submissions and rejects an oversized descriptor without embedding a board ROM.

Local-fork observations

SS0/SS1 changed from 0x67267154 / 0x1 to 0x88888888 / 0x8; raw FEATURE_READOUT_1 changed from 0x00410080 to zero and remained zero after FLR. The read-only RM command 0x20801230 subsequently reported all nine named rates as full. Previously fmla32, imla2 and imla4 reported half rate.

Matched register-resident MMA probe, best of five, not GEMM or application throughput:

Mode Stock Unlocked Ratio
FP16 / FP16 accumulation 59.385639 TF/s 59.376880 TF/s 1.000x
FP16 / FP32 accumulation 30.244118 TF/s 57.050201 TF/s 1.886x
BF16 / FP32 accumulation 30.230070 TF/s 59.655639 TF/s 1.973x
TF32 / FP32 accumulation 15.111773 TF/s 29.826715 TF/s 1.974x
INT8 / INT32 accumulation 119.459503 TOP/s 119.475010 TOP/s 1.000x

Identical PTX (c937fdef3ed6719e46b05869c6983149d7c8ec8ad1bbcf8ef7ca33a13a097051), 768 blocks, 256 threads, 1024 iterations and eight accumulator chains. Every preflight and measured numerical check passed. All samples and separately labeled medians are included in docs/evidence/rtx4060-laptop/.

Clocks were not locked; the desktop remained active. The kernel changed from 7.2.8-9-omarchy to 7.2.8-10-omarchy, with the same NVIDIA version. NVML telemetry can be cached. No LLM tokens/s, game FPS, Windows, suspend/resume, second-board, sustained-load or efficiency claim is made.

Verification performed

  • Offline verification and generation of the complete pinned firmware assets.
  • New selection/PM and transaction regressions failed against the dependency baseline for the intended behavioral reasons, then passed with this change.
  • make test ASSETS=<complete generated asset directory>: all five top-level tests passed, including the real C behavior harnesses and packaging consumers.
  • Kernel-module build through BTF for 7.2.8-10-omarchy; final srcversion=B626F50202479911DC21675. The produced module was not installed or loaded.
  • Packaged probe offline hash and refusal guards exercised; actual bounded probe executed against the already-running local-fork GPU: 30 numerical checks, zero mismatches, no cleanup errors. This is not a physical test of the proposed unlock module.
  • Sanitized logs and measurements checked against the observed source records. No private GPU UUID, hostname, root command line, boot ID, VBIOS dump or proprietary firmware binary was added by the AD107 change.

Full technical details, reproduction command, provenance and limitations: docs/evidence/rtx4060-laptop/README.md.


🔄 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/82 **Author:** [@victorhramos-dev](https://github.com/victorhramos-dev) **Created:** 10/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ad107m-rtx4060-laptop` --- ### 📝 Commits (10+) - [`6a016e7`](https://github.com/Zagitta/gpu-unlock/commit/6a016e775abea2d26ea7d7cb3e2cc2fa0e2075ab) Add RTX 4080 SUPER (AD103) support with the AD10x four-PLM payload - [`5d32058`](https://github.com/Zagitta/gpu-unlock/commit/5d32058b3e3167ef756396b31596d257c7a8af24) Cover the AD103 path in the host tests - [`96fdbc2`](https://github.com/Zagitta/gpu-unlock/commit/96fdbc22e7f116cdea002fcb3bbc0b40bdf62c73) Ship the dracut drop-in from the deb, document AD103, bump 1.1.0 - [`83a6864`](https://github.com/Zagitta/gpu-unlock/commit/83a68640f4244ced1117a17198e7374d4253eda8) Refresh the 4080 SUPER boot evidence from the rebased HEAD - [`527f8ce`](https://github.com/Zagitta/gpu-unlock/commit/527f8ce7a01e329342865907c463d7d7985abb48) Use the GitHub identity in the changelogs - [`a250daf`](https://github.com/Zagitta/gpu-unlock/commit/a250daf5744a5ff67e43780966936c0e352f7fe3) Print real newlines in the AD103 log strings - [`30949dd`](https://github.com/Zagitta/gpu-unlock/commit/30949dd1cb29a234cc7c40409db6d6efa7e0c354) Add RTX 4060 Ti 8GB (AD106) support - [`d8c5712`](https://github.com/Zagitta/gpu-unlock/commit/d8c57121f4976c861478be5d508750734d6587a6) Publish RTX 4060 Ti boot-log and benchmark evidence - [`dd003ba`](https://github.com/Zagitta/gpu-unlock/commit/dd003bae9e8f9d90979bf586fa07d95cda1a4215) Merge existing Ada support from upstream PR #24 - [`e548a9c`](https://github.com/Zagitta/gpu-unlock/commit/e548a9c1bb8bb0715dc52fe50f1e699d5089b6d9) Add guarded startup-only RTX 4060 Laptop AD107M support ### 📊 Changes **33 files changed** (+3225 additions, -88 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+3 -1) 📝 `README.md` (+57 -16) 📝 `VERSION` (+1 -1) 📝 `debian/changelog` (+11 -0) ➕ `debian/dracut/gpu-unlock.conf` (+4 -0) 📝 `debian/gpu-unlock-dkms.install` (+1 -0) ➕ `docs/evidence/rtx4060-laptop/README.md` (+228 -0) ➕ `docs/evidence/rtx4060-laptop/boot-log.txt` (+118 -0) ➕ `docs/evidence/rtx4060-laptop/measurements.json` (+1357 -0) ➕ `docs/evidence/rtx4060-laptop/probe.py` (+313 -0) ➕ `docs/evidence/rtx4060ti/README.md` (+23 -0) ➕ `docs/evidence/rtx4060ti/boot-log.txt` (+86 -0) ➕ `docs/evidence/rtx4080super/README.md` (+35 -0) ➕ `docs/evidence/rtx4080super/baseline.md` (+12 -0) ➕ `docs/evidence/rtx4080super/boot-log.txt` (+96 -0) ➕ `docs/evidence/rtx4080super/unlocked.md` (+14 -0) 📝 `firmware/NOTICE.md` (+11 -0) 📝 `firmware/README.md` (+13 -6) 📝 `firmware/artifacts-610.43.03.json` (+4 -1) 📝 `firmware/extract_boot_assets.py` (+14 -0) _...and 13 more files_ </details> ### 📄 Description ## Dependency and validation scope Depends on #24. This branch preserves that Ada work as a merge, followed by a separate AD107M implementation commit (`e548a9c`). It does not replace current main with the standalone fork or add a PCI ID without the corresponding Ada transaction path. **Draft deliberately:** the implementation and host checks are complete, but the proposed upstream-shaped module has not been physically booted. The hardware observations below are from one experimental startup of a guarded local fork based on `JustAResearcher/gpu-unlock-ada@491925c1079435e260137b9f3526066e764de830`. The evidence documents this distinction explicitly. A physical full-power-off action was instructed but not independently confirmed. ## Board admitted by this change | Property | Value | | --- | --- | | GPU | NVIDIA GeForce RTX 4060 Laptop GPU, AD107M | | PCI ID | `10de:28a0` | | Subsystem | `1d05:1274`, AIstone Global Limited | | Revision / PMC_BOOT_0 | `a1` / `0x197000a1` | | VBIOS version | `95.07.16.80.E1` — version string only, no image distributed | | Compute / memory | 24 SMs, SM89; 8 GiB physical, 8188 MiB reported usable | | Observed driver | NVIDIA open kernel module `615.78.08` | | Firmware inputs | Existing pinned `610.43.03` assets | ## Implementation - Default-off, read-only `ad107_experimental` parameter, requiring one exact full PCI address. `targets=all`, comma lists, short addresses and opt-in without a target do not select AD107. - Exact board/revision admission plus a PMC check before layout reads, coherent DMA allocation, BAR writes or firmware launch. Other AD107 IDs and other laptop subsystems remain excluded. - Route AD107 through the complete existing AD10x asset and safety path: payload marker, required WPR_CFG/WPR/FEAT permissions, SEC2 HALT, payload integrity, raw readout, selector readback and post-FLR containment. No GA102 fallback. - Startup only: do not retain AD107 for PM re-unlock, and reject a direct AD107 resume transaction. Existing supported cards keep their resume behavior. - Preserve the three-argument unlock API, shared-GSP ownership and conservative retained-DMA lifecycle. No new firmware inputs, local result ABI, compatibility shim or additional release-version bump. The measured FWSEC geometry is `IMEM=0xf500`, `DMEM=0xd80`, image `0x10300`. A 256-byte-block transfer rounds DMEM to `0xe00`, ending exactly at the allocation boundary. PR24 already provides the required bounded rounding; an additional PR35 port is not needed for this case. The new synthetic regression observes all 245 IMEM and 14 DMEM block submissions and rejects an oversized descriptor without embedding a board ROM. ## Local-fork observations SS0/SS1 changed from `0x67267154` / `0x1` to `0x88888888` / `0x8`; raw `FEATURE_READOUT_1` changed from `0x00410080` to zero and remained zero after FLR. The read-only RM command `0x20801230` subsequently reported all nine named rates as full. Previously `fmla32`, `imla2` and `imla4` reported half rate. Matched register-resident MMA probe, **best of five**, not GEMM or application throughput: | Mode | Stock | Unlocked | Ratio | | --- | ---: | ---: | ---: | | FP16 / FP16 accumulation | 59.385639 TF/s | 59.376880 TF/s | 1.000x | | FP16 / FP32 accumulation | 30.244118 TF/s | 57.050201 TF/s | 1.886x | | BF16 / FP32 accumulation | 30.230070 TF/s | 59.655639 TF/s | 1.973x | | TF32 / FP32 accumulation | 15.111773 TF/s | 29.826715 TF/s | 1.974x | | INT8 / INT32 accumulation | 119.459503 TOP/s | 119.475010 TOP/s | 1.000x | Identical PTX (`c937fdef3ed6719e46b05869c6983149d7c8ec8ad1bbcf8ef7ca33a13a097051`), 768 blocks, 256 threads, 1024 iterations and eight accumulator chains. Every preflight and measured numerical check passed. All samples and separately labeled medians are included in `docs/evidence/rtx4060-laptop/`. Clocks were not locked; the desktop remained active. The kernel changed from `7.2.8-9-omarchy` to `7.2.8-10-omarchy`, with the same NVIDIA version. NVML telemetry can be cached. No LLM tokens/s, game FPS, Windows, suspend/resume, second-board, sustained-load or efficiency claim is made. ## Verification performed - Offline verification and generation of the complete pinned firmware assets. - New selection/PM and transaction regressions failed against the dependency baseline for the intended behavioral reasons, then passed with this change. - `make test ASSETS=<complete generated asset directory>`: all five top-level tests passed, including the real C behavior harnesses and packaging consumers. - Kernel-module build through BTF for `7.2.8-10-omarchy`; final `srcversion=B626F50202479911DC21675`. The produced module was not installed or loaded. - Packaged probe offline hash and refusal guards exercised; actual bounded probe executed against the already-running **local-fork** GPU: 30 numerical checks, zero mismatches, no cleanup errors. This is not a physical test of the proposed unlock module. - Sanitized logs and measurements checked against the observed source records. No private GPU UUID, hostname, root command line, boot ID, VBIOS dump or proprietary firmware binary was added by the AD107 change. Full technical details, reproduction command, provenance and limitations: `docs/evidence/rtx4060-laptop/README.md`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#141
No description provided.