[PR #282] Add RTX 4070 Laptop (AD106M, 2820/2860) #281

Open
opened 2026-11-07 17:54:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Zagitta/gpu-unlock/pull/282
Author: @PipelineDude
Created: 10/31/2026
Status: 🔄 Open

Base: main ← Head: add-ad106m-rtx-4070-laptop


📝 Commits (1)

  • ff98096 Add RTX 4070 Laptop (AD106M, 2820/2860) card IDs

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 kernel/gpu_unlock/recipes.c (+2 -2)

📄 Description

What

Add the two PCI device IDs of the GeForce RTX 4070 Laptop GPU (AD106M) to the existing AD106 entry:

  • 10de:2820 — RTX 4070 Laptop GPU
  • 10de:2860 — RTX 4070 Laptop GPU (Max-Q / Mobile)

No new recipe is needed: the mobile RTX 4070 is the same AD106 silicon as the already supported desktop RTX 4060 Ti, so it uses the existing ad10x family (chip 0x196, ad102_v67 payload, ad102_plm, FWSEC v3 from the card's own VBIOS). gu_card_find() matches on the PCI device ID only, and the post-FLR check (PMC_BOOT_0 >> 20) & 0x1ff reads 0x196 on this card, as expected for AD106.

Tested on

Laptop ARDOR GAMING V15x_V17xRNx (Intel i7-13620H)
GPU NVIDIA GeForce RTX 4070 Laptop GPU, 8 GB
PCI address / ID 0000:01:00.0, [10de:2820] (rev a1)
VBIOS 95.06.1E.00.28
OS Arch Linux, kernel 7.2.4-arch1-2
Boot systemd-boot + UKI, mkinitcpio 42, Secure Boot disabled
Driver nvidia-open-dkms 615.71.09
gpu-unlock 2.0.0 at 7eb51bc + this patch, make install-arch
Kernel cmdline gpu_unlock.targets=0000:01:00.0

Result

The unlock completes (journalctl -k -b | grep gpu_unlock, trimmed):

pci 0000:01:00.0: gpu_unlock: stage=claim device=0x2820 family=AD102/AD103/AD104/AD106/AD107 cmd=0x400 ...
pci 0000:01:00.0: gpu_unlock: stage=layout fb=0x1ffc00000 ...
pci 0000:01:00.0: gpu_unlock: stage=dma booter=56832 payload=0xfa00 ...
pci 0000:01:00.0: gpu_unlock: pass=1/4 ... target=0x1fa7cc value=0xfffff0ff ...
pci 0000:01:00.0: gpu_unlock: stage=host ss0=0x88888888 ss1=0x8 plm_feat=0xffffffff plm_wpr_cfg=0xfffff0ff
pci 0000:01:00.0: gpu_unlock: stage=flr ... chip=0x196000a1
pci 0000:01:00.0: gpu_unlock: unlocked

Dense matmul, 8192x8192, BF16/FP16 with FP32 accumulation (torch 2.13.0+cu130, cuBLAS), same build booted with and without gpu_unlock.targets=:

Dtype Stock Unlocked Gain
BF16 43.06 TFLOPS 63.5-64.3 TFLOPS +48-49%
FP16 43.35 TFLOPS 64.0-64.1 TFLOPS +48%

The 8 GB mobile part is power limited at 115 W, so the gain at the power limit is about +48% rather than the 2x theoretical peak.

A seeded 4096x4096 BF16 matmul (fixed RNG seed, fixed shapes) produces the same result checksum before and after the unlock (4c09b3c7f23dfdad9304ca49d11c449f7ccb0f301ba438898b8d12200ba01288), i.e. only the speed changes, as expected.

Power management note

On this laptop the dGPU runtime-suspends when idle, which resets the selectors. Keeping power/control=on while on AC preserves the unlock; on battery the driver default is restored and the unlock is expected to reset after the dGPU powers off. That is a platform limitation, not specific to this patch.

Validation

  • journalctl -k -b | grep gpu_unlock shows unlocked and no failure lines.
  • nvidia-smi reports the card normally; CUDA works (torch benchmark above).
  • 60-second sustained BF16 matmul stress (3400 iterations): peak 75 C, peak 115.4 W (the card's 115 W TDP limit), no Xid errors in dmesg.

🔄 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/282 **Author:** [@PipelineDude](https://github.com/PipelineDude) **Created:** 10/31/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-ad106m-rtx-4070-laptop` --- ### 📝 Commits (1) - [`ff98096`](https://github.com/Zagitta/gpu-unlock/commit/ff98096b01c0ba66bed3fd1e68a60fd2c7ebb9ab) Add RTX 4070 Laptop (AD106M, 2820/2860) card IDs ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `kernel/gpu_unlock/recipes.c` (+2 -2) </details> ### 📄 Description ## What Add the two PCI device IDs of the GeForce RTX 4070 Laptop GPU (AD106M) to the existing AD106 entry: - `10de:2820` — RTX 4070 Laptop GPU - `10de:2860` — RTX 4070 Laptop GPU (Max-Q / Mobile) No new recipe is needed: the mobile RTX 4070 is the same AD106 silicon as the already supported desktop RTX 4060 Ti, so it uses the existing `ad10x` family (chip `0x196`, `ad102_v67` payload, `ad102_plm`, FWSEC v3 from the card's own VBIOS). `gu_card_find()` matches on the PCI device ID only, and the post-FLR check `(PMC_BOOT_0 >> 20) & 0x1ff` reads `0x196` on this card, as expected for AD106. ## Tested on | | | |---|---| | Laptop | ARDOR GAMING V15x_V17xRNx (Intel i7-13620H) | | GPU | NVIDIA GeForce RTX 4070 Laptop GPU, 8 GB | | PCI address / ID | `0000:01:00.0`, `[10de:2820]` (rev a1) | | VBIOS | `95.06.1E.00.28` | | OS | Arch Linux, kernel `7.2.4-arch1-2` | | Boot | systemd-boot + UKI, mkinitcpio 42, Secure Boot disabled | | Driver | `nvidia-open-dkms` 615.71.09 | | gpu-unlock | 2.0.0 at `7eb51bc` + this patch, `make install-arch` | | Kernel cmdline | `gpu_unlock.targets=0000:01:00.0` | ## Result The unlock completes (`journalctl -k -b | grep gpu_unlock`, trimmed): ``` pci 0000:01:00.0: gpu_unlock: stage=claim device=0x2820 family=AD102/AD103/AD104/AD106/AD107 cmd=0x400 ... pci 0000:01:00.0: gpu_unlock: stage=layout fb=0x1ffc00000 ... pci 0000:01:00.0: gpu_unlock: stage=dma booter=56832 payload=0xfa00 ... pci 0000:01:00.0: gpu_unlock: pass=1/4 ... target=0x1fa7cc value=0xfffff0ff ... pci 0000:01:00.0: gpu_unlock: stage=host ss0=0x88888888 ss1=0x8 plm_feat=0xffffffff plm_wpr_cfg=0xfffff0ff pci 0000:01:00.0: gpu_unlock: stage=flr ... chip=0x196000a1 pci 0000:01:00.0: gpu_unlock: unlocked ``` Dense matmul, 8192x8192, BF16/FP16 with FP32 accumulation (torch 2.13.0+cu130, cuBLAS), same build booted with and without `gpu_unlock.targets=`: | Dtype | Stock | Unlocked | Gain | |---|---|---|---| | BF16 | 43.06 TFLOPS | 63.5-64.3 TFLOPS | +48-49% | | FP16 | 43.35 TFLOPS | 64.0-64.1 TFLOPS | +48% | The 8 GB mobile part is power limited at 115 W, so the gain at the power limit is about +48% rather than the 2x theoretical peak. A seeded 4096x4096 BF16 matmul (fixed RNG seed, fixed shapes) produces the same result checksum before and after the unlock (`4c09b3c7f23dfdad9304ca49d11c449f7ccb0f301ba438898b8d12200ba01288`), i.e. only the speed changes, as expected. ## Power management note On this laptop the dGPU runtime-suspends when idle, which resets the selectors. Keeping `power/control=on` while on AC preserves the unlock; on battery the driver default is restored and the unlock is expected to reset after the dGPU powers off. That is a platform limitation, not specific to this patch. ## Validation - `journalctl -k -b | grep gpu_unlock` shows `unlocked` and no failure lines. - `nvidia-smi` reports the card normally; CUDA works (torch benchmark above). - 60-second sustained BF16 matmul stress (3400 iterations): peak 75 C, peak 115.4 W (the card's 115 W TDP limit), no Xid errors in `dmesg`. --- <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#281
No description provided.