[PR #57] [MERGED] Add experimental desktop RTX 4060 (AD107, 10de:2882) target with matched evidence #103

Closed
opened 2026-10-31 06:56:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JustAResearcher/gpu-unlock-ada/pull/57
Author: @techneut92
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @JustAResearcher

Base: main ← Head: feat/ad107-rtx4060-2882


📝 Commits (3)

  • 57c128e Add experimental AD107 RTX 4060 target
  • 8f228a9 Mark 10de:2882 as a one-card canary
  • 0522a77 Document the RTX 4060 2882 canary and add its boot option

📊 Changes

22 files changed (+543 additions, -19 deletions)

View changed files

📝 QUICKSTART.md (+12 -4)
📝 README.md (+16 -5)
➕ docs/ada-2882-report.md (+149 -0)
➕ docs/evidence/ada2882/README.md (+27 -0)
➕ docs/evidence/ada2882/SHA256SUMS (+11 -0)
➕ docs/evidence/ada2882/sm-rates-stock.json (+1 -0)
➕ docs/evidence/ada2882/sm-rates-unlocked.json (+1 -0)
➕ docs/evidence/ada2882/tensor-modes-unlocked.json (+1 -0)
➕ docs/evidence/ada2882/torch-gemm-check-unlocked.txt (+7 -0)
➕ docs/evidence/ada2882/torch-gemm-check.py (+49 -0)
➕ docs/evidence/ada2882/torch-gemm-stock.txt (+15 -0)
➕ docs/evidence/ada2882/torch-gemm-unlocked.txt (+15 -0)
➕ docs/evidence/ada2882/torch-gemm.py (+58 -0)
➕ docs/evidence/ada2882/transaction-excerpt.txt (+52 -0)
➕ docs/evidence/ada2882/warm-reboot-excerpt.txt (+52 -0)
📝 kernel/gpu_unlock/arch_610.h (+2 -0)
📝 kernel/gpu_unlock/main.c (+11 -1)
📝 kernel/gpu_unlock/unlock_610.c (+6 -4)
📝 tests/test_ad102_kernel.c (+16 -0)
📝 tests/test_main.c (+27 -0)

...and 2 more files

📄 Description

Summary

Adds the desktop RTX 4060 (10de:2882, AD107) as an experimental target, gated the same way as the 2705 and 2805 canaries.

  • AD107 target (57c128e): admits 0x2882 through the existing AD102-family Booter profile and four-PLM payload behind gpu_unlock.ad107_experimental=1. It requires a single exact PCI address and is never selected by targets=all. The marker, permission, HALT, selector and post-FLR gates are unchanged. This is the commit the tested module was built from.
  • Canary wording (8f228a9): comments and the parameter description, no logic.
  • Docs and helper (0522a77): docs/ada-2882-report.md, evidence in docs/evidence/ada2882/ with SHA256SUMS, README and QUICKSTART entries, and tools/print_boot_option.py support for 2882.

Hardware result (one card, cold boot and warm reboot)

Fedora 44, kernel 7.2.11-200.fc44.x86_64, NVIDIA 615.78.08 open kernel modules, PNY RTX 4060 8 GB (24 SMs) at its 115 W default cap. Module built with make rpm and installed through DKMS and the dracut drop-in.

  • Cold boot from a full power-off (entry SS0=0x3374074 SS1=0x5, WPR2 high 0x0): payload marker 0x67b00001, SEC2 halted, required permissions written (WPR_CFG=0xfffff0ff, WPR=0xffffffff, FEAT=0xffffffff; FBPA stayed 0xffffff0f, as on 2705 and 2805). SS0=0x88888888 and SS1=0x8 read back and persisted across FLR; gpu_unlock: unlocked.
  • Warm reboot (entry SS0=0x0 SS1=0x0): the module ran the full sequence again with identical results. In both boots the stock driver loaded and the log has no NVRM Xid.
  • RM getter: FMLA32, IMLA2 and IMLA4 went from 1 (half) to 0 (full).
  • Matched stock and unlocked cuBLAS GEMM through PyTorch (same card, driver, cap and build), n=8192: FP16/FP32 31.38 to 44.23 TF/s (+41%), BF16/FP32 31.59 to 45.37 (+44%), TF32 15.89 to 25.30 (+59%). Controls level: FP16/FP16 49.47 to 49.19, FP32 7.79 to 7.78, INT8 26.62 to 26.62.
  • FP8 torch._scaled_mm went from 63.49 to 100.43 TF/s (+58%). That differs from the one matched FP8 GEMM on the 2705, which stayed level; I did not record which kernel cuBLAS picked.
  • Numerical check (unlocked): FP16 error 3.60e-04 against an input-rounding floor of 2.94e-04 and 3.33e-03 for the FP16-accumulate path, so accumulation stays FP32. 57,074 repeated FP16/BF16 GEMMs over 180 s were bitwise identical.
  • tensor_modes_issue (unlocked only, the same cubin SHA-256 as the 2805 report): FP16/FP32 65.5 TF/s, TF32 34.0 TF/s, INT4 271.2 TOP/s, 0 mismatches. The TF32-to-INT4 ratio is 0.125, the full-rate value.

Not done yet: a stock boot with tensor_modes_issue and validate_gemm.cu, a second cold boot, suspend and resume, and other 2882 boards.

Testing

  • make test-full: 29 tests pass, none skipped (assets generated with make firmware, PyCryptodome installed), including new 0x2882 gating cases in test_main.c, profile selection in test_unlock_adapter.c, and a mocked full dispatch in test_ad102_kernel.c.
  • tools/print_boot_option.py on the test host prints gpu_unlock.targets=0000:0d:00.0 gpu_unlock.ad107_experimental=1.

Note: open PRs #10 (28e0/28e1) and #31 (28a0) add laptop AD107 IDs under the same ad107_experimental flag name and touch the same lines in arch_610.h, main.c, unlock_610.c, the three C tests and the docs. The gating is per exact device ID in all three, so the targets combine without changing each other's gating; I am happy to rebase onto whichever merges first.


🔄 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/JustAResearcher/gpu-unlock-ada/pull/57 **Author:** [@techneut92](https://github.com/techneut92) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@JustAResearcher](https://github.com/JustAResearcher) **Base:** `main` ← **Head:** `feat/ad107-rtx4060-2882` --- ### 📝 Commits (3) - [`57c128e`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/57c128e8246a13da79af13e6a9c206db0f700171) Add experimental AD107 RTX 4060 target - [`8f228a9`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/8f228a9d5563bff832a61a72a5d5473832d82233) Mark 10de:2882 as a one-card canary - [`0522a77`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/0522a7744e0cd74553266f77ba7e11ba45371b6c) Document the RTX 4060 2882 canary and add its boot option ### 📊 Changes **22 files changed** (+543 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `QUICKSTART.md` (+12 -4) 📝 `README.md` (+16 -5) ➕ `docs/ada-2882-report.md` (+149 -0) ➕ `docs/evidence/ada2882/README.md` (+27 -0) ➕ `docs/evidence/ada2882/SHA256SUMS` (+11 -0) ➕ `docs/evidence/ada2882/sm-rates-stock.json` (+1 -0) ➕ `docs/evidence/ada2882/sm-rates-unlocked.json` (+1 -0) ➕ `docs/evidence/ada2882/tensor-modes-unlocked.json` (+1 -0) ➕ `docs/evidence/ada2882/torch-gemm-check-unlocked.txt` (+7 -0) ➕ `docs/evidence/ada2882/torch-gemm-check.py` (+49 -0) ➕ `docs/evidence/ada2882/torch-gemm-stock.txt` (+15 -0) ➕ `docs/evidence/ada2882/torch-gemm-unlocked.txt` (+15 -0) ➕ `docs/evidence/ada2882/torch-gemm.py` (+58 -0) ➕ `docs/evidence/ada2882/transaction-excerpt.txt` (+52 -0) ➕ `docs/evidence/ada2882/warm-reboot-excerpt.txt` (+52 -0) 📝 `kernel/gpu_unlock/arch_610.h` (+2 -0) 📝 `kernel/gpu_unlock/main.c` (+11 -1) 📝 `kernel/gpu_unlock/unlock_610.c` (+6 -4) 📝 `tests/test_ad102_kernel.c` (+16 -0) 📝 `tests/test_main.c` (+27 -0) _...and 2 more files_ </details> ### 📄 Description ## Summary Adds the desktop RTX 4060 (`10de:2882`, AD107) as an **experimental** target, gated the same way as the 2705 and 2805 canaries. - **AD107 target** (`57c128e`): admits `0x2882` through the existing AD102-family Booter profile and four-PLM payload behind `gpu_unlock.ad107_experimental=1`. It requires a single exact PCI address and is never selected by `targets=all`. The marker, permission, HALT, selector and post-FLR gates are unchanged. This is the commit the tested module was built from. - **Canary wording** (`8f228a9`): comments and the parameter description, no logic. - **Docs and helper** (`0522a77`): `docs/ada-2882-report.md`, evidence in `docs/evidence/ada2882/` with `SHA256SUMS`, README and QUICKSTART entries, and `tools/print_boot_option.py` support for 2882. ## Hardware result (one card, cold boot and warm reboot) Fedora 44, kernel `7.2.11-200.fc44.x86_64`, NVIDIA `615.78.08` open kernel modules, PNY RTX 4060 8 GB (24 SMs) at its 115 W default cap. Module built with `make rpm` and installed through DKMS and the dracut drop-in. - Cold boot from a full power-off (entry `SS0=0x3374074 SS1=0x5`, WPR2 high `0x0`): payload marker `0x67b00001`, SEC2 halted, required permissions written (`WPR_CFG=0xfffff0ff`, `WPR=0xffffffff`, `FEAT=0xffffffff`; FBPA stayed `0xffffff0f`, as on 2705 and 2805). `SS0=0x88888888` and `SS1=0x8` read back and persisted across FLR; `gpu_unlock: unlocked`. - Warm reboot (entry `SS0=0x0 SS1=0x0`): the module ran the full sequence again with identical results. In both boots the stock driver loaded and the log has no NVRM Xid. - RM getter: FMLA32, IMLA2 and IMLA4 went from 1 (half) to 0 (full). - Matched stock and unlocked cuBLAS GEMM through PyTorch (same card, driver, cap and build), n=8192: FP16/FP32 31.38 to 44.23 TF/s (+41%), BF16/FP32 31.59 to 45.37 (+44%), TF32 15.89 to 25.30 (+59%). Controls level: FP16/FP16 49.47 to 49.19, FP32 7.79 to 7.78, INT8 26.62 to 26.62. - FP8 `torch._scaled_mm` went from 63.49 to 100.43 TF/s (+58%). That differs from the one matched FP8 GEMM on the 2705, which stayed level; I did not record which kernel cuBLAS picked. - Numerical check (unlocked): FP16 error 3.60e-04 against an input-rounding floor of 2.94e-04 and 3.33e-03 for the FP16-accumulate path, so accumulation stays FP32. 57,074 repeated FP16/BF16 GEMMs over 180 s were bitwise identical. - `tensor_modes_issue` (unlocked only, the same cubin SHA-256 as the 2805 report): FP16/FP32 **65.5 TF/s**, TF32 34.0 TF/s, INT4 271.2 TOP/s, 0 mismatches. The TF32-to-INT4 ratio is 0.125, the full-rate value. **Not done yet:** a stock boot with `tensor_modes_issue` and `validate_gemm.cu`, a second cold boot, suspend and resume, and other 2882 boards. ## Testing - `make test-full`: 29 tests pass, none skipped (assets generated with `make firmware`, PyCryptodome installed), including new 0x2882 gating cases in `test_main.c`, profile selection in `test_unlock_adapter.c`, and a mocked full dispatch in `test_ad102_kernel.c`. - `tools/print_boot_option.py` on the test host prints `gpu_unlock.targets=0000:0d:00.0 gpu_unlock.ad107_experimental=1`. Note: open PRs #10 (28e0/28e1) and #31 (28a0) add laptop AD107 IDs under the same `ad107_experimental` flag name and touch the same lines in `arch_610.h`, `main.c`, `unlock_610.c`, the three C tests and the docs. The gating is per exact device ID in all three, so the targets combine without changing each other's gating; I am happy to rebase onto whichever merges first. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 06:56:25 +07:00
Sign in to join this conversation.
No labels
pull-request
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
JustAResearcher/gpu-unlock-ada#103
No description provided.