mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[PR #282] Add RTX 4070 Laptop (AD106M, 2820/2860) #281
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#281
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
ff98096Add 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 GPU10de: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
ad10xfamily (chip0x196,ad102_v67payload,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) & 0x1ffreads0x196on this card, as expected for AD106.Tested on
0000:01:00.0,[10de:2820](rev a1)95.06.1E.00.287.2.4-arch1-2nvidia-open-dkms615.71.097eb51bc+ this patch,make install-archgpu_unlock.targets=0000:01:00.0Result
The unlock completes (
journalctl -k -b | grep gpu_unlock, trimmed):Dense matmul, 8192x8192, BF16/FP16 with FP32 accumulation (torch 2.13.0+cu130, cuBLAS), same build booted with and without
gpu_unlock.targets=: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=onwhile 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_unlockshowsunlockedand no failure lines.nvidia-smireports the card normally; CUDA works (torch benchmark above).dmesg.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.