[GH-ISSUE #52] [Silicon Report] Verified unlock on AD107M / NVIDIA GeForce RTX 4060 Laptop GPU (10de:28a0, chip 0x197000a1) #26

Closed
opened 2026-10-31 06:55:43 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @gege42o on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/52

Editor note:

The following things were generated by my local AI so take it with a grain of salt. But basically after changing a bit of the .c files after adding my chipset to its cases I got it working for my NVIDIA 4060 Laptop GPU on Arch Linux!!

Summary

Successfully tested and verified gpu-unlock-ada (v1.1.1) on an AD107M (NVIDIA GeForce RTX 4060 Laptop GPU, PCI ID 10de:28a0, chip 0x197000a1) by routing 0x28a0 through the existing AD102 firmware/Booter asset path (v67-ad102-610.43.03-four-plm.bin).

All required PLM permissions (WPR_CFG, WPR, FEAT), strap writes (SS0=0x88888888, SS1=0x8), PCIe FLR handoff, RM 0x20801230 SM rate checks, tensor_modes_driver_runner.py, mma_bench, and validate_gemm passed with 0 errors and full 1:1 f16/f32 & bf16/f32 throughput relative to f16/f16.


Hardware & Environment

  • GPU: NVIDIA GeForce RTX 4060 Laptop GPU (10de:28a0, rev a1, AD107M)
  • Chip ID (PMC_BOOT_0): 0x197000a1
  • SM Count: 24 SMs (sm_89)
  • VRAM: 8188 MiB (8 GB)
  • Max Power Cap: 80 W (Mobile Dynamic Boost; nvidia-smi --query-gpu=power.limit reports [N/A])
  • OS / Kernel: Arch Linux, 7.2.9-arch1-1
  • NVIDIA Driver / CUDA: 580.178.04 / CUDA 13.0
  • Booter / FWSEC Fuse: fuse_raw=0x1 version=1 signatures=2 size=768

1. Kernel Unlock Trace (dmesg / journalctl)

pci 0000:01:00.0: [10de:28a0] type 00 class 0x030000 PCIe Legacy Endpoint
gpu_unlock: loading out-of-tree module taints kernel.
pci 0000:01:00.0: asset request: gpu-unlock/610.43.03/gsp_ga10x.bin
pci 0000:01:00.0: asset result: gpu-unlock/610.43.03/gsp_ga10x.bin error=0 bytes=84277400
pci 0000:01:00.0: driver probe resources: phase=entry empty=1
pci 0000:01:00.0: asset request: gpu-unlock/610.43.03/v67-ad102-610.43.03-four-plm.bin
pci 0000:01:00.0: asset result: gpu-unlock/610.43.03/v67-ad102-610.43.03-four-plm.bin error=0 bytes=64000
pci 0000:01:00.0: asset request: gpu-unlock/610.43.03/gsp_boot_ad102.bin
pci 0000:01:00.0: asset result: gpu-unlock/610.43.03/gsp_boot_ad102.bin error=0 bytes=36864
pci 0000:01:00.0: asset request: gpu-unlock/610.43.03/gsp_boot_desc_ad102.bin
pci 0000:01:00.0: asset result: gpu-unlock/610.43.03/gsp_boot_desc_ad102.bin error=0 bytes=84
pci 0000:01:00.0: asset geometry: image=84226048 signature=4096 boot=36864 code=0x4800 data=0x800 manifest=0x0 parse=0
pci 0000:01:00.0: asset request: gpu-unlock/610.43.03/booter_load_ad102.bin
pci 0000:01:00.0: asset result: gpu-unlock/610.43.03/booter_load_ad102.bin error=0 bytes=57672
pci 0000:01:00.0: claim: power=0 pm_cap=0x60 flags=0x0
pci 0000:01:00.0: claim: command=0x0 capability=0x112c8de1 BAR_mask=0x4b
pci 0000:01:00.0: enabling device (0000 -> 0002)
pci 0000:01:00.0: layout inputs: fb_mb=0x1ffc vga=0x1 mmu_plm=0x45cb8f mmu_lo=0x100000 mmu_hi=0x1efbff0 image=84226048 boot=36864
pci 0000:01:00.0: layout mmu: lo=0x10000000 hi=0x1efbff000 hi_exclusive=0x1efc00000 constrain=0
pci 0000:01:00.0: mmu lock ignored: high address is not the FB top
pci 0000:01:00.0: layout decoded: fb=0x1ffc00000 vga=0x1ffb00000 mmu_valid=0 mmu_low=0x10000000 frts=0x100000 heap=0x5800000 result=0
pci 0000:01:00.0: layout ranges: nonwpr=0x1f4f00000 wpr=0x1f5000000 heap=0x1f5100000 gsp=0x1fa9a0000 boot=0x1ff9f7000 frts=0x1ffa00000 end=0x1ffb00000 scrub_floor=0x1efc00000
pci 0000:01:00.0: DMA masks: streaming=0xffffffff coherent=0xffffffff requested=0xffffffff
pci 0000:01:00.0: Booter signature: fuse_raw=0x1 version=1 signatures=2 size=768
pci 0000:01:00.0: entry: plm=0xffffff8f ss0=0x1014022 ss1=0x3 wpr2_hi=0x0
pci 0000:01:00.0: AD102 permission before-firmware: WPR_CFG[0x1fa7cc]=0x4cb8f before=0x4cb8f expected=0xfffff0ff required=1 valid=1 pci=0x28a010de chip=0x197000a1
pci 0000:01:00.0: AD102 permission before-firmware: FBPA[0x9a0148]=0xffffff0f before=0xffffff0f expected=0xffffffff required=0 valid=1 pci=0x28a010de chip=0x197000a1
pci 0000:01:00.0: AD102 permission before-firmware: WPR[0x1fa7c4]=0x4cb8f before=0x4cb8f expected=0xffffffff required=1 valid=1 pci=0x28a010de chip=0x197000a1
pci 0000:01:00.0: AD102 permission before-firmware: FEAT[0x823804]=0xffffff8f before=0xffffff8f expected=0xffffffff required=1 valid=1 pci=0x28a010de chip=0x197000a1
pci 0000:01:00.0: AD102 before-firmware: readout1=0x410080 fields=0 0 2 0 0 2 0 2 0 valid=1 full=0
pci 0000:01:00.0: FWSEC: reading PROM at 0x300000
pci 0000:01:00.0: FWSEC: PROM bytes=1048576 signature=0xaa55
gpu_unlock: FWSEC geometry: image_off=0x45598 size=0x10400 imem=0xf600 va=0x0 pa=0x0 dmem=0xd80 pa=0x0 pkc=0xb24 interface=0x1c engine=0x400 ucode=9 signatures=2 versions=0x3 bytes=768
pci 0000:01:00.0: FWSEC fuse: raw=0x1 version=1
gpu_unlock: FWSEC signature selection: versions=0x3 fuse_version=1 sig_bytes=384
pci 0000:01:00.0: FWSEC result: scratch=0x0 expected_hi16=0
pci 0000:01:00.0: FWSEC WPR2: low=0x1ffa000 high=0x1ffae00 expected_page=0x1ffa00 end=0x1ffb00000
pci 0000:01:00.0: AD102 permission after-payload: WPR_CFG[0x1fa7cc]=0xfffff0ff before=0x4cb8f expected=0xfffff0ff required=1 valid=1 pci=0x28a010de chip=0x197000a1
pci 0000:01:00.0: AD102 permission after-payload: FBPA[0x9a0148]=0xffffff0f before=0xffffff0f expected=0xffffffff required=0 valid=1 pci=0x28a010de chip=0x197000a1
pci 0000:01:00.0: AD102 permission after-payload: WPR[0x1fa7c4]=0xffffffff before=0x4cb8f expected=0xffffffff required=1 valid=1 pci=0x28a010de chip=0x197000a1
pci 0000:01:00.0: AD102 permission after-payload: FEAT[0x823804]=0xffffffff before=0xffffff8f expected=0xffffffff required=1 valid=1 pci=0x28a010de chip=0x197000a1
pci 0000:01:00.0: AD102 after-payload: readout1=0x410080 fields=0 0 2 0 0 2 0 2 0 valid=1 full=0
pci 0000:01:00.0: AD102 payload result: boot=0 halt=0 marker=0x67b00001 expected=0x67b00001 marker_ok=1 required_permissions=1 cpuctl=0x10 halted=1 debug=0xda550000 ss0=0x1014022 ss1=0x3
pci 0000:01:00.0: selector result: SS0=0x88888888 expected=0x88888888 matched=1
pci 0000:01:00.0: selector result: SS1=0x8 expected=0x8 matched=1
pci 0000:01:00.0: AD102 selectors-applied: readout1=0x0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1
pci 0000:01:00.0: PCIe FLR returned: result=0
pci 0000:01:00.0: post-FLR GFW result: error=0 pci=0x28a010de plm=0x8b8f boot=0x3ff cpuctl=0x10 budget_us=2050000
pci 0000:01:00.0: post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008
pci 0000:01:00.0: AD102 post-FLR: readout1=0x0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1
pci 0000:01:00.0: gpu_unlock: unlocked

2. RM SM Rates Readout (tools/read_sm_rates.py)

{"gpu": "GPU-1545cc23-6e8d-e681-6add-04bac8c68173, NVIDIA GeForce RTX 4060 Laptop GPU, 00000000:01:00.0, 580.178.04, [N/A], 210, 405", "command": "0x20801230", "rates": {"imla0": 0, "fmla16": 0, "dp": 0, "fmla32": 0, "ffma": 0, "imla1": 0, "imla2": 0, "imla3": 0, "imla4": 0}, "meaning": "0=full; 1=half; 2=quarter; higher values are further reductions", "hardware_changes": false}

3. Benchmarks & Numerical Validation

tensor_modes_driver_runner.py

(Note: Mobile GPUs with Dynamic Boost report [N/A] for power.limit in nvidia-smi, so tensor_modes_driver_runner.py line 51 needed if fields[4] != '[N/A]': to avoid ValueError: could not convert string to float: '[N/A]'.)

{"gpu": "GPU-1545cc23-6e8d-e681-6add-04bac8c68173, NVIDIA GeForce RTX 4060 Laptop GPU, 00000000:01:00.0, 580.178.04, [N/A]", "cubin_sha256": "33aa6db385aa9eb8a1f73bb2f74891aea84794326b7c40992bc642f93a3c614d", "iters": 20000, "reps": 3, "blocks": 1056, "threads": 256, "warps": 8448, "chains": 8, "modes": {"f16_f32": {"instruction": "bench_f16_f32", "k": 16, "times_ms": [98.56819152832031, 88.83904266357422, 88.8647689819336], "rates_Top_per_s": [56.169045958495396, 62.32036179144992, 62.30232006933568], "best_Top_per_s": 62.32036179144992, "expected_cell": 10240000, "cells_checked": 270336, "mismatches": 0}, "tf32": {"instruction": "bench_tf32", "k": 8, "times_ms": [88.81970977783203, 88.81254577636719, 88.80025482177734], "rates_Top_per_s": [31.166963356717794, 31.169477417869743, 31.173791624313196], "best_Top_per_s": 31.173791624313196, "expected_cell": 5120000, "cells_checked": 270336, "mismatches": 0}, "u4_s32": {"instruction": "bench_u4", "k": 64, "times_ms": [88.96307373046875, 88.98355102539062, 88.98038482666016], "rates_Top_per_s": [248.93390247616068, 248.87661668706463, 248.88547249083908], "best_Top_per_s": 248.93390247616068, "expected_cell": 40960000, "cells_checked": 270336, "mismatches": 0}}, "seconds": 1.3060452938079834}

mma_bench

# NVIDIA GeForce RTX 4060 Laptop GPU, 24 SMs, sm_89, iters=20000 reps=3
mode        best TF/s   all runs
f16/f16          62.6 62.6/62.6/62.6
f16/f32          62.6 62.6/62.6/62.6
bf16/f32         62.5 62.5/62.5/62.5
s8/s32          125.2 125.1/125.1/125.2
dp4a             31.1 31.1/31.1/31.1
ffma             15.0 15.0/15.0/15.0

validate_gemm

GPU: NVIDIA GeForce RTX 4060 Laptop GPU, sm_89, PCI 0000:01:00.0
FP16/FP32: m=256 n=256 k=256 seed=1, 65536 cells, failures=0, max_abs=0
BF16/FP32: m=256 n=256 k=256 seed=1, 65536 cells, failures=0, max_abs=0
FP16/FP32: m=64 n=96 k=128 seed=2, 6144 cells, failures=0, max_abs=0
BF16/FP32: m=64 n=96 k=128 seed=2, 6144 cells, failures=0, max_abs=0
FP16/FP32: m=127 n=65 k=95 seed=3, 8255 cells, failures=0, max_abs=0
BF16/FP32: m=127 n=65 k=95 seed=3, 8255 cells, failures=0, max_abs=0

4. Minimal Kernel Patch Used

diff --git a/kernel/gpu_unlock/arch_610.h b/kernel/gpu_unlock/arch_610.h
index cab84bc..b14a6cf 100644
--- a/kernel/gpu_unlock/arch_610.h
+++ b/kernel/gpu_unlock/arch_610.h
@@ -11,6 +11,8 @@ enum gpu_unlock_booter_arch {
 #define GU_AD103_RTX_4070_TI_SUPER 0x2705u
 /* Exact experimental AD106 target, untested on silicon. */
 #define GU_AD106_RTX_4060_TI_16GB 0x2805u
+/* Exact experimental AD107 target (RTX 4060 Laptop). */
+#define GU_AD107_RTX_4060_LAPTOP 0x28a0u
 
 /* RTX 4090 D uses the AD102 firmware path; gated as experimental. */
 #define GU_AD102_RTX_4090_D 0x2685u
diff --git a/kernel/gpu_unlock/main.c b/kernel/gpu_unlock/main.c
index 099f736..a546f19 100644
--- a/kernel/gpu_unlock/main.c
+++ b/kernel/gpu_unlock/main.c
@@ -18,6 +18,9 @@ MODULE_PARM_DESC(ad103_experimental, "permit only the exact 10de:2705 AD103 cana
 static bool ad106_experimental;
 module_param(ad106_experimental, bool, 0444);
 MODULE_PARM_DESC(ad106_experimental, "permit only the exact 10de:2805 AD106 target with a single explicit PCI address; untested on silicon");
+static bool ad107_experimental;
+module_param(ad107_experimental, bool, 0444);
+MODULE_PARM_DESC(ad107_experimental, "permit only the exact 10de:28a0 AD107 (RTX 4060 Laptop) target with a single explicit PCI address; untested on silicon");
 
 static bool rtx4090d_experimental;
 module_param(rtx4090d_experimental, bool, 0444);
@@ -58,6 +61,8 @@ static bool supported(const struct pci_dev *pdev)
                return rtx4090d_experimental;
        if (pdev->device == GU_AD106_RTX_4060_TI_16GB)
                return ad106_experimental;
+       if (pdev->device == GU_AD107_RTX_4060_LAPTOP)
+               return ad107_experimental;
        for (i = 0; i < ARRAY_SIZE(supported_ids); i++)
                if (pdev->device == supported_ids[i])
                        return true;
@@ -147,6 +152,11 @@ static int __init gpu_unlock_init(void)
                        pci_err(pdev, "gpu_unlock: experimental AD106 requires a single exact PCI target\n");
                        continue;
                }
+               if (pdev->device == GU_AD107_RTX_4060_LAPTOP &&
+                   (all || strcasecmp(targets, pci_name(pdev)))) {
+                       pci_err(pdev, "gpu_unlock: experimental AD107 requires a single exact PCI target\n");
+                       continue;
+               }
                if (!all && !listed(pci_name(pdev)))
                        continue;
                if (!shared.gsp) {
diff --git a/kernel/gpu_unlock/unlock_610.c b/kernel/gpu_unlock/unlock_610.c
index ab6452f..933595c 100644
--- a/kernel/gpu_unlock/unlock_610.c
+++ b/kernel/gpu_unlock/unlock_610.c
@@ -77,7 +77,8 @@ static const struct gpu_unlock_assets *unlock_assets(const struct pci_dev *pdev)
        return (pdev->device == GU_AD102_RTX_4090 ||
                pdev->device == GU_AD102_RTX_4090_D ||
                pdev->device == GU_AD103_RTX_4070_TI_SUPER ||
-               pdev->device == GU_AD106_RTX_4060_TI_16GB) ? &ad102 : &ga102;
+               pdev->device == GU_AD106_RTX_4060_TI_16GB ||
+               pdev->device == GU_AD107_RTX_4060_LAPTOP) ? &ad102 : &ga102;
 }
 
 /* The two falcons this module ever touches. SEC2 is the secure boot engine
@@ -351,7 +352,8 @@ static bool is_ad102(const struct unlock_transaction_work *work)
        return work->pdev->device == GU_AD102_RTX_4090 ||
               work->pdev->device == GU_AD102_RTX_4090_D ||
               work->pdev->device == GU_AD103_RTX_4070_TI_SUPER ||
-              work->pdev->device == GU_AD106_RTX_4060_TI_16GB;
+              work->pdev->device == GU_AD106_RTX_4060_TI_16GB ||
+              work->pdev->device == GU_AD107_RTX_4060_LAPTOP;
 }
Originally created by @gege42o on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/52 ## Editor note: The following things were generated by my local AI so take it with a grain of salt. But basically after changing a bit of the .c files after adding my chipset to its cases I got it working for my NVIDIA 4060 Laptop GPU on **Arch Linux**!! ## Summary Successfully tested and verified `gpu-unlock-ada` (`v1.1.1`) on an **AD107M (NVIDIA GeForce RTX 4060 Laptop GPU, PCI ID `10de:28a0`, chip `0x197000a1`)** by routing `0x28a0` through the existing `AD102` firmware/Booter asset path (`v67-ad102-610.43.03-four-plm.bin`). All required PLM permissions (`WPR_CFG`, `WPR`, `FEAT`), strap writes (`SS0=0x88888888`, `SS1=0x8`), PCIe FLR handoff, RM `0x20801230` SM rate checks, `tensor_modes_driver_runner.py`, `mma_bench`, and `validate_gemm` passed with 0 errors and full 1:1 `f16/f32` & `bf16/f32` throughput relative to `f16/f16`. --- ## Hardware & Environment * **GPU:** NVIDIA GeForce RTX 4060 Laptop GPU (`10de:28a0`, rev `a1`, `AD107M`) * **Chip ID (`PMC_BOOT_0`):** `0x197000a1` * **SM Count:** 24 SMs (`sm_89`) * **VRAM:** 8188 MiB (8 GB) * **Max Power Cap:** 80 W (Mobile Dynamic Boost; `nvidia-smi --query-gpu=power.limit` reports `[N/A]`) * **OS / Kernel:** Arch Linux, `7.2.9-arch1-1` * **NVIDIA Driver / CUDA:** `580.178.04` / CUDA `13.0` * **Booter / FWSEC Fuse:** `fuse_raw=0x1 version=1 signatures=2 size=768` --- ## 1. Kernel Unlock Trace (`dmesg` / `journalctl`) ```text pci 0000:01:00.0: [10de:28a0] type 00 class 0x030000 PCIe Legacy Endpoint gpu_unlock: loading out-of-tree module taints kernel. pci 0000:01:00.0: asset request: gpu-unlock/610.43.03/gsp_ga10x.bin pci 0000:01:00.0: asset result: gpu-unlock/610.43.03/gsp_ga10x.bin error=0 bytes=84277400 pci 0000:01:00.0: driver probe resources: phase=entry empty=1 pci 0000:01:00.0: asset request: gpu-unlock/610.43.03/v67-ad102-610.43.03-four-plm.bin pci 0000:01:00.0: asset result: gpu-unlock/610.43.03/v67-ad102-610.43.03-four-plm.bin error=0 bytes=64000 pci 0000:01:00.0: asset request: gpu-unlock/610.43.03/gsp_boot_ad102.bin pci 0000:01:00.0: asset result: gpu-unlock/610.43.03/gsp_boot_ad102.bin error=0 bytes=36864 pci 0000:01:00.0: asset request: gpu-unlock/610.43.03/gsp_boot_desc_ad102.bin pci 0000:01:00.0: asset result: gpu-unlock/610.43.03/gsp_boot_desc_ad102.bin error=0 bytes=84 pci 0000:01:00.0: asset geometry: image=84226048 signature=4096 boot=36864 code=0x4800 data=0x800 manifest=0x0 parse=0 pci 0000:01:00.0: asset request: gpu-unlock/610.43.03/booter_load_ad102.bin pci 0000:01:00.0: asset result: gpu-unlock/610.43.03/booter_load_ad102.bin error=0 bytes=57672 pci 0000:01:00.0: claim: power=0 pm_cap=0x60 flags=0x0 pci 0000:01:00.0: claim: command=0x0 capability=0x112c8de1 BAR_mask=0x4b pci 0000:01:00.0: enabling device (0000 -> 0002) pci 0000:01:00.0: layout inputs: fb_mb=0x1ffc vga=0x1 mmu_plm=0x45cb8f mmu_lo=0x100000 mmu_hi=0x1efbff0 image=84226048 boot=36864 pci 0000:01:00.0: layout mmu: lo=0x10000000 hi=0x1efbff000 hi_exclusive=0x1efc00000 constrain=0 pci 0000:01:00.0: mmu lock ignored: high address is not the FB top pci 0000:01:00.0: layout decoded: fb=0x1ffc00000 vga=0x1ffb00000 mmu_valid=0 mmu_low=0x10000000 frts=0x100000 heap=0x5800000 result=0 pci 0000:01:00.0: layout ranges: nonwpr=0x1f4f00000 wpr=0x1f5000000 heap=0x1f5100000 gsp=0x1fa9a0000 boot=0x1ff9f7000 frts=0x1ffa00000 end=0x1ffb00000 scrub_floor=0x1efc00000 pci 0000:01:00.0: DMA masks: streaming=0xffffffff coherent=0xffffffff requested=0xffffffff pci 0000:01:00.0: Booter signature: fuse_raw=0x1 version=1 signatures=2 size=768 pci 0000:01:00.0: entry: plm=0xffffff8f ss0=0x1014022 ss1=0x3 wpr2_hi=0x0 pci 0000:01:00.0: AD102 permission before-firmware: WPR_CFG[0x1fa7cc]=0x4cb8f before=0x4cb8f expected=0xfffff0ff required=1 valid=1 pci=0x28a010de chip=0x197000a1 pci 0000:01:00.0: AD102 permission before-firmware: FBPA[0x9a0148]=0xffffff0f before=0xffffff0f expected=0xffffffff required=0 valid=1 pci=0x28a010de chip=0x197000a1 pci 0000:01:00.0: AD102 permission before-firmware: WPR[0x1fa7c4]=0x4cb8f before=0x4cb8f expected=0xffffffff required=1 valid=1 pci=0x28a010de chip=0x197000a1 pci 0000:01:00.0: AD102 permission before-firmware: FEAT[0x823804]=0xffffff8f before=0xffffff8f expected=0xffffffff required=1 valid=1 pci=0x28a010de chip=0x197000a1 pci 0000:01:00.0: AD102 before-firmware: readout1=0x410080 fields=0 0 2 0 0 2 0 2 0 valid=1 full=0 pci 0000:01:00.0: FWSEC: reading PROM at 0x300000 pci 0000:01:00.0: FWSEC: PROM bytes=1048576 signature=0xaa55 gpu_unlock: FWSEC geometry: image_off=0x45598 size=0x10400 imem=0xf600 va=0x0 pa=0x0 dmem=0xd80 pa=0x0 pkc=0xb24 interface=0x1c engine=0x400 ucode=9 signatures=2 versions=0x3 bytes=768 pci 0000:01:00.0: FWSEC fuse: raw=0x1 version=1 gpu_unlock: FWSEC signature selection: versions=0x3 fuse_version=1 sig_bytes=384 pci 0000:01:00.0: FWSEC result: scratch=0x0 expected_hi16=0 pci 0000:01:00.0: FWSEC WPR2: low=0x1ffa000 high=0x1ffae00 expected_page=0x1ffa00 end=0x1ffb00000 pci 0000:01:00.0: AD102 permission after-payload: WPR_CFG[0x1fa7cc]=0xfffff0ff before=0x4cb8f expected=0xfffff0ff required=1 valid=1 pci=0x28a010de chip=0x197000a1 pci 0000:01:00.0: AD102 permission after-payload: FBPA[0x9a0148]=0xffffff0f before=0xffffff0f expected=0xffffffff required=0 valid=1 pci=0x28a010de chip=0x197000a1 pci 0000:01:00.0: AD102 permission after-payload: WPR[0x1fa7c4]=0xffffffff before=0x4cb8f expected=0xffffffff required=1 valid=1 pci=0x28a010de chip=0x197000a1 pci 0000:01:00.0: AD102 permission after-payload: FEAT[0x823804]=0xffffffff before=0xffffff8f expected=0xffffffff required=1 valid=1 pci=0x28a010de chip=0x197000a1 pci 0000:01:00.0: AD102 after-payload: readout1=0x410080 fields=0 0 2 0 0 2 0 2 0 valid=1 full=0 pci 0000:01:00.0: AD102 payload result: boot=0 halt=0 marker=0x67b00001 expected=0x67b00001 marker_ok=1 required_permissions=1 cpuctl=0x10 halted=1 debug=0xda550000 ss0=0x1014022 ss1=0x3 pci 0000:01:00.0: selector result: SS0=0x88888888 expected=0x88888888 matched=1 pci 0000:01:00.0: selector result: SS1=0x8 expected=0x8 matched=1 pci 0000:01:00.0: AD102 selectors-applied: readout1=0x0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1 pci 0000:01:00.0: PCIe FLR returned: result=0 pci 0000:01:00.0: post-FLR GFW result: error=0 pci=0x28a010de plm=0x8b8f boot=0x3ff cpuctl=0x10 budget_us=2050000 pci 0000:01:00.0: post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008 pci 0000:01:00.0: AD102 post-FLR: readout1=0x0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1 pci 0000:01:00.0: gpu_unlock: unlocked ``` --- ## 2. RM SM Rates Readout (`tools/read_sm_rates.py`) ```json {"gpu": "GPU-1545cc23-6e8d-e681-6add-04bac8c68173, NVIDIA GeForce RTX 4060 Laptop GPU, 00000000:01:00.0, 580.178.04, [N/A], 210, 405", "command": "0x20801230", "rates": {"imla0": 0, "fmla16": 0, "dp": 0, "fmla32": 0, "ffma": 0, "imla1": 0, "imla2": 0, "imla3": 0, "imla4": 0}, "meaning": "0=full; 1=half; 2=quarter; higher values are further reductions", "hardware_changes": false} ``` --- ## 3. Benchmarks & Numerical Validation ### `tensor_modes_driver_runner.py` *(Note: Mobile GPUs with Dynamic Boost report `[N/A]` for `power.limit` in `nvidia-smi`, so `tensor_modes_driver_runner.py` line 51 needed `if fields[4] != '[N/A]':` to avoid `ValueError: could not convert string to float: '[N/A]'`.)* ```json {"gpu": "GPU-1545cc23-6e8d-e681-6add-04bac8c68173, NVIDIA GeForce RTX 4060 Laptop GPU, 00000000:01:00.0, 580.178.04, [N/A]", "cubin_sha256": "33aa6db385aa9eb8a1f73bb2f74891aea84794326b7c40992bc642f93a3c614d", "iters": 20000, "reps": 3, "blocks": 1056, "threads": 256, "warps": 8448, "chains": 8, "modes": {"f16_f32": {"instruction": "bench_f16_f32", "k": 16, "times_ms": [98.56819152832031, 88.83904266357422, 88.8647689819336], "rates_Top_per_s": [56.169045958495396, 62.32036179144992, 62.30232006933568], "best_Top_per_s": 62.32036179144992, "expected_cell": 10240000, "cells_checked": 270336, "mismatches": 0}, "tf32": {"instruction": "bench_tf32", "k": 8, "times_ms": [88.81970977783203, 88.81254577636719, 88.80025482177734], "rates_Top_per_s": [31.166963356717794, 31.169477417869743, 31.173791624313196], "best_Top_per_s": 31.173791624313196, "expected_cell": 5120000, "cells_checked": 270336, "mismatches": 0}, "u4_s32": {"instruction": "bench_u4", "k": 64, "times_ms": [88.96307373046875, 88.98355102539062, 88.98038482666016], "rates_Top_per_s": [248.93390247616068, 248.87661668706463, 248.88547249083908], "best_Top_per_s": 248.93390247616068, "expected_cell": 40960000, "cells_checked": 270336, "mismatches": 0}}, "seconds": 1.3060452938079834} ``` ### `mma_bench` ```text # NVIDIA GeForce RTX 4060 Laptop GPU, 24 SMs, sm_89, iters=20000 reps=3 mode best TF/s all runs f16/f16 62.6 62.6/62.6/62.6 f16/f32 62.6 62.6/62.6/62.6 bf16/f32 62.5 62.5/62.5/62.5 s8/s32 125.2 125.1/125.1/125.2 dp4a 31.1 31.1/31.1/31.1 ffma 15.0 15.0/15.0/15.0 ``` ### `validate_gemm` ```text GPU: NVIDIA GeForce RTX 4060 Laptop GPU, sm_89, PCI 0000:01:00.0 FP16/FP32: m=256 n=256 k=256 seed=1, 65536 cells, failures=0, max_abs=0 BF16/FP32: m=256 n=256 k=256 seed=1, 65536 cells, failures=0, max_abs=0 FP16/FP32: m=64 n=96 k=128 seed=2, 6144 cells, failures=0, max_abs=0 BF16/FP32: m=64 n=96 k=128 seed=2, 6144 cells, failures=0, max_abs=0 FP16/FP32: m=127 n=65 k=95 seed=3, 8255 cells, failures=0, max_abs=0 BF16/FP32: m=127 n=65 k=95 seed=3, 8255 cells, failures=0, max_abs=0 ``` --- ## 4. Minimal Kernel Patch Used ```diff diff --git a/kernel/gpu_unlock/arch_610.h b/kernel/gpu_unlock/arch_610.h index cab84bc..b14a6cf 100644 --- a/kernel/gpu_unlock/arch_610.h +++ b/kernel/gpu_unlock/arch_610.h @@ -11,6 +11,8 @@ enum gpu_unlock_booter_arch { #define GU_AD103_RTX_4070_TI_SUPER 0x2705u /* Exact experimental AD106 target, untested on silicon. */ #define GU_AD106_RTX_4060_TI_16GB 0x2805u +/* Exact experimental AD107 target (RTX 4060 Laptop). */ +#define GU_AD107_RTX_4060_LAPTOP 0x28a0u /* RTX 4090 D uses the AD102 firmware path; gated as experimental. */ #define GU_AD102_RTX_4090_D 0x2685u diff --git a/kernel/gpu_unlock/main.c b/kernel/gpu_unlock/main.c index 099f736..a546f19 100644 --- a/kernel/gpu_unlock/main.c +++ b/kernel/gpu_unlock/main.c @@ -18,6 +18,9 @@ MODULE_PARM_DESC(ad103_experimental, "permit only the exact 10de:2705 AD103 cana static bool ad106_experimental; module_param(ad106_experimental, bool, 0444); MODULE_PARM_DESC(ad106_experimental, "permit only the exact 10de:2805 AD106 target with a single explicit PCI address; untested on silicon"); +static bool ad107_experimental; +module_param(ad107_experimental, bool, 0444); +MODULE_PARM_DESC(ad107_experimental, "permit only the exact 10de:28a0 AD107 (RTX 4060 Laptop) target with a single explicit PCI address; untested on silicon"); static bool rtx4090d_experimental; module_param(rtx4090d_experimental, bool, 0444); @@ -58,6 +61,8 @@ static bool supported(const struct pci_dev *pdev) return rtx4090d_experimental; if (pdev->device == GU_AD106_RTX_4060_TI_16GB) return ad106_experimental; + if (pdev->device == GU_AD107_RTX_4060_LAPTOP) + return ad107_experimental; for (i = 0; i < ARRAY_SIZE(supported_ids); i++) if (pdev->device == supported_ids[i]) return true; @@ -147,6 +152,11 @@ static int __init gpu_unlock_init(void) pci_err(pdev, "gpu_unlock: experimental AD106 requires a single exact PCI target\n"); continue; } + if (pdev->device == GU_AD107_RTX_4060_LAPTOP && + (all || strcasecmp(targets, pci_name(pdev)))) { + pci_err(pdev, "gpu_unlock: experimental AD107 requires a single exact PCI target\n"); + continue; + } if (!all && !listed(pci_name(pdev))) continue; if (!shared.gsp) { diff --git a/kernel/gpu_unlock/unlock_610.c b/kernel/gpu_unlock/unlock_610.c index ab6452f..933595c 100644 --- a/kernel/gpu_unlock/unlock_610.c +++ b/kernel/gpu_unlock/unlock_610.c @@ -77,7 +77,8 @@ static const struct gpu_unlock_assets *unlock_assets(const struct pci_dev *pdev) return (pdev->device == GU_AD102_RTX_4090 || pdev->device == GU_AD102_RTX_4090_D || pdev->device == GU_AD103_RTX_4070_TI_SUPER || - pdev->device == GU_AD106_RTX_4060_TI_16GB) ? &ad102 : &ga102; + pdev->device == GU_AD106_RTX_4060_TI_16GB || + pdev->device == GU_AD107_RTX_4060_LAPTOP) ? &ad102 : &ga102; } /* The two falcons this module ever touches. SEC2 is the secure boot engine @@ -351,7 +352,8 @@ static bool is_ad102(const struct unlock_transaction_work *work) return work->pdev->device == GU_AD102_RTX_4090 || work->pdev->device == GU_AD102_RTX_4090_D || work->pdev->device == GU_AD103_RTX_4070_TI_SUPER || - work->pdev->device == GU_AD106_RTX_4060_TI_16GB; + work->pdev->device == GU_AD106_RTX_4060_TI_16GB || + work->pdev->device == GU_AD107_RTX_4060_LAPTOP; } ```
Author
Owner

@JustAResearcher commented on GitHub (Oct 26, 2026):

Thanks for the report, and for being upfront about which parts were AI-generated! The log looks like a clean run and matches the other 28a0 results.

Since you posted, 28a0 has been admitted on main under ad107_experimental (PR #31), so you no longer need the local patch. On current main the option is gpu_unlock.targets=0000:01:00.0 gpu_unlock.ad107_experimental=1.

This run only shows the unlocked state. A stock run with the same driver and binaries would turn it into a matched pair, and since f16/f16 and f16/f32 both read 62.6 here, it would confirm that f16/f32 actually doubled.

The [N/A] power-limit crash in tensor_modes_driver_runner.py is a fair catch on laptops. A small PR for it would be welcome if you'd like to send one.

Closing since 28a0 support is in.

<!-- gh-comment-id:6408011025 --> @JustAResearcher commented on GitHub (Oct 26, 2026): Thanks for the report, and for being upfront about which parts were AI-generated! The log looks like a clean run and matches the other 28a0 results. Since you posted, `28a0` has been admitted on main under `ad107_experimental` (PR #31), so you no longer need the local patch. On current main the option is `gpu_unlock.targets=0000:01:00.0 gpu_unlock.ad107_experimental=1`. This run only shows the unlocked state. A stock run with the same driver and binaries would turn it into a matched pair, and since f16/f16 and f16/f32 both read 62.6 here, it would confirm that f16/f32 actually doubled. The `[N/A]` power-limit crash in `tensor_modes_driver_runner.py` is a fair catch on laptops. A small PR for it would be welcome if you'd like to send one. Closing since 28a0 support is in.
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#26
No description provided.