[PR #88] Add experimental AD106M RTX 4070 Laptop GPU (10de:2860) #111

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

📋 Pull Request Information

Original PR: https://github.com/JustAResearcher/gpu-unlock-ada/pull/88
Author: @Mwiwi
Created: 10/27/2026
Status: 🔄 Open

Base: main ← Head: ad106m-rtx4070-laptop


📝 Commits (1)

  • a7abe1f Add experimental AD106M RTX 4070 Laptop GPU (10de:2860)

📊 Changes

3 files changed (+4 additions, -1 deletions)

View changed files

📝 kernel/gpu_unlock/arch_610.h (+1 -0)
📝 kernel/gpu_unlock/main.c (+2 -1)
📝 kernel/gpu_unlock/unlock_610.c (+1 -0)

📄 Description

What

Adds the mobile AD106 variant — GeForce RTX 4070 Laptop GPU, 10de:2860 — behind the
existing ad106_experimental opt-in, following the established pattern: exact PCI
address in targets required, never reachable via all.

3 files changed, +4/−1:

  • kernel/gpu_unlock/arch_610.h: #define GU_AD106M_RTX_4070_LAPTOP 0x2860u
  • kernel/gpu_unlock/main.c: experimental_ids[] entry
    { GU_AD106M_RTX_4070_LAPTOP, &ad106_experimental, true, "AD106M mobile" }
    • 10de:2860 mentioned in the ad106_experimental MODULE_PARM_DESC
  • kernel/gpu_unlock/unlock_610.c: case GU_AD106M_RTX_4070_LAPTOP: in ad102_family()

Why

Desktop AD106 (0x2803, 0x2805) is already routed through ad102_family(). The
mobile AD106M shares the same chip's boot chain, so it takes the same pinned
AD102-family assets — it just was never added. Patch tested against upstream commit
d28c485.

Hardware run (2026-10-26) — transaction completes, effect not retained after driver init

Card: Lenovo Legion Pro 5 16IRX9, AD106M [GeForce RTX 4070 Laptop GPU] 10de:2860
rev a1, subsystem 17aa:3cf3, PCI 0000:01:00.0. Cold state (no kernel driver
bound), Secure Boot off, Ubuntu live session, kernel 7.0.0-31-generic.

  • Module built cleanly, insmod with targets=0000:01:00.0 ad106_experimental=1.
  • The full transaction ran end to end on this mobile part — payload permission
    writes verified, FLR survived, and the module's own post-FLR readout reported
    full rate at handoff
    :
[ 4039.186452] AD102 permission after-payload: WPR_CFG[0x1fa7cc]=0xfffff0ff ... valid=1
[ 4039.186487] AD102 permission after-payload: FEAT[0x823804]=0xffffffff ... valid=1
[ 4039.552602] AD102 post-FLR: readout1=0x0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1
[ 4039.577158] gpu_unlock: unlocked
  • NVIDIA open driver 580.178.04 binds normally, nvidia-smi OK, no Xid errors.
  • Caveat: the effective tensor rate after driver initialization is back at half
    speed. MMA issue-rate probe (raw CUDA driver API, all-ones inputs, mismatch
    checks), unlocked live session vs. stock native-Windows baseline of the same card:
             unlocked live    stock Windows
f16_f16        92.4 TF/s        99.4 TF/s   (full-rate reference)
f16_f32        46.2 TF/s        49.7 TF/s   (FP32-accumulate path)
f16acc/f32acc   2.00x            2.00x

The ~7% absolute shift is clock-related (42 W in the live session); the ratio is
what matters and it is unchanged. So: the module's post-FLR full-rate readout is
real, but something during NVIDIA RM initialization appears to re-assert the
mobile speed-select limit on this board. Full details, stock/unlocked comparison
and open questions in the companion issue: #87.

12 consecutive benchmark runs produced identical results with zero mismatches and
no Xid errors; thermals 58–61 °C under load (~42 W via nvidia-smi dmon; the BAR
power sensor readout after unlock is bogus on this laptop, consistent with the
known "accept N/A power limit for laptops" quirk).

The ID addition still seems worth having: it lets other AD106M owners repeat the
run and pin down where the limit returns (pre- vs post-driver-init).


🔄 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/88 **Author:** [@Mwiwi](https://github.com/Mwiwi) **Created:** 10/27/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ad106m-rtx4070-laptop` --- ### 📝 Commits (1) - [`a7abe1f`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/a7abe1f5af89afc47e5033c0db36d05245f5b7d1) Add experimental AD106M RTX 4070 Laptop GPU (10de:2860) ### 📊 Changes **3 files changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `kernel/gpu_unlock/arch_610.h` (+1 -0) 📝 `kernel/gpu_unlock/main.c` (+2 -1) 📝 `kernel/gpu_unlock/unlock_610.c` (+1 -0) </details> ### 📄 Description ## What Adds the mobile AD106 variant — GeForce RTX 4070 Laptop GPU, `10de:2860` — behind the existing `ad106_experimental` opt-in, following the established pattern: exact PCI address in `targets` required, never reachable via `all`. 3 files changed, +4/−1: - `kernel/gpu_unlock/arch_610.h`: `#define GU_AD106M_RTX_4070_LAPTOP 0x2860u` - `kernel/gpu_unlock/main.c`: `experimental_ids[]` entry `{ GU_AD106M_RTX_4070_LAPTOP, &ad106_experimental, true, "AD106M mobile" }` + `10de:2860` mentioned in the `ad106_experimental` MODULE_PARM_DESC - `kernel/gpu_unlock/unlock_610.c`: `case GU_AD106M_RTX_4070_LAPTOP:` in `ad102_family()` ## Why Desktop AD106 (`0x2803`, `0x2805`) is already routed through `ad102_family()`. The mobile AD106M shares the same chip's boot chain, so it takes the same pinned AD102-family assets — it just was never added. Patch tested against upstream commit `d28c485`. ## Hardware run (2026-10-26) — transaction completes, effect not retained after driver init Card: Lenovo Legion Pro 5 16IRX9, AD106M [GeForce RTX 4070 Laptop GPU] `10de:2860` rev a1, subsystem `17aa:3cf3`, PCI `0000:01:00.0`. Cold state (no kernel driver bound), Secure Boot off, Ubuntu live session, kernel 7.0.0-31-generic. - Module built cleanly, insmod with `targets=0000:01:00.0 ad106_experimental=1`. - The full transaction ran end to end on this mobile part — payload permission writes verified, FLR survived, and **the module's own post-FLR readout reported full rate at handoff**: ``` [ 4039.186452] AD102 permission after-payload: WPR_CFG[0x1fa7cc]=0xfffff0ff ... valid=1 [ 4039.186487] AD102 permission after-payload: FEAT[0x823804]=0xffffffff ... valid=1 [ 4039.552602] AD102 post-FLR: readout1=0x0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1 [ 4039.577158] gpu_unlock: unlocked ``` - NVIDIA open driver 580.178.04 binds normally, `nvidia-smi` OK, no Xid errors. - **Caveat:** the effective tensor rate after driver initialization is back at half speed. MMA issue-rate probe (raw CUDA driver API, all-ones inputs, mismatch checks), unlocked live session vs. stock native-Windows baseline of the same card: ``` unlocked live stock Windows f16_f16 92.4 TF/s 99.4 TF/s (full-rate reference) f16_f32 46.2 TF/s 49.7 TF/s (FP32-accumulate path) f16acc/f32acc 2.00x 2.00x ``` The ~7% absolute shift is clock-related (42 W in the live session); the ratio is what matters and it is unchanged. So: the module's post-FLR full-rate readout is real, but something during NVIDIA RM initialization appears to re-assert the mobile speed-select limit on this board. Full details, stock/unlocked comparison and open questions in the companion issue: #87. 12 consecutive benchmark runs produced identical results with zero mismatches and no Xid errors; thermals 58–61 °C under load (~42 W via nvidia-smi dmon; the BAR power sensor readout after unlock is bogus on this laptop, consistent with the known "accept N/A power limit for laptops" quirk). The ID addition still seems worth having: it lets other AD106M owners repeat the run and pin down where the limit returns (pre- vs post-driver-init). --- <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 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#111
No description provided.