[PR #134] ad107: admit 10de:28a1 (RTX 4050 Laptop, AD107M) and document Optimus D3cold power-rail trap #140

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

📋 Pull Request Information

Original PR: https://github.com/JustAResearcher/gpu-unlock-ada/pull/134
Author: @DannyBaanks
Created: 11/3/2026
Status: 🔄 Open

Base: main ← Head: canary-28a1-ad107


📝 Commits (9)

  • 9d42480 ad107: admit 10de:28a1 (RTX 4050 Laptop, AD107M) under ad107_experimental
  • 0526169 docs: add 10de:28a1 HP Victus canary report (transactional yes, 1.00x rate)
  • 12ec500 docs(28a1): demonstrate 2.00x unlock and Optimus D3cold power-rail trap
  • 6e1035c docs(28a1): clarify DynamicPowerManagement=0x00 over udev power/control=on
  • d19234e docs(readme): document fork enhancements, baseline divergence and add spanish edition
  • 1a71a29 docs: audit AD107M claims and polish bilingual README
  • 0da2bb6 docs: audit AD107M claims and polish bilingual README
  • a577700 docs(28a1): regenerate cuBLAS table from raw evidence and lead with medians
  • d59fb44 docs(28a1): add repetition and D3cold diagnosis follow-up

📊 Changes

183 files changed (+8690 additions, -4 deletions)

View changed files

📝 README.md (+100 -2)
➕ README_es.md (+161 -0)
➕ docs/ada-28a1-report.md (+302 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/README.md (+76 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/SHA256SUMS (+138 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/SUMMARY.txt (+97 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/SHA256SUMS.local-unredacted (+11 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/env.txt (+7 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/gemm.jsonl (+6 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/hashes.txt (+3 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/mma.txt (+9 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/numerical.txt (+7 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/sm-rates.json (+1 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/smi_after.txt (+97 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/smi_before.txt (+97 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/steps.txt (+5 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/telemetry.csv (+383 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/tensor.json (+1 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_2/SHA256SUMS.local-unredacted (+11 -0)
➕ docs/evidence/ada28a1-followup-2026-11-04/boot_stock_2/env.txt (+7 -0)

...and 80 more files

📄 Description

Overview

This pull request admits the HP Victus RTX 4050 Laptop GPU (10de:28a1, AD107M rev a1, 20 SMs) under ad107_experimental and documents a crucial operational trap affecting hybrid / Optimus laptops: the Optimus D3cold Power-Rail Trap and its resolution via runtime power management configuration.

Full test suite verification (make test) passes clean (33 tests, 0 failures, 3 skipped PyCryptodome optional tests). All hardware benchmarks and evidence artifacts are committed and hashed with SHA-256.


1. Silicon & Device Admission

  • Target: HP Victus 15-fb3xxx (PCI 10de:28a1, AD107M rev a1, 20 SMs, 6 GB VRAM).
  • Silicon: Identical AD107M silicon to the currently supported 10de:28e1, split by OEM vendor/board configuration.
  • Code Changes:
    • Added 0x28a1 to kernel/gpu_unlock/arch_610.h, unlock_610.c, main.c.
    • Added target dispatch and opt-in handling in tools/print_boot_option.py.
    • Added unit test coverage in tests/test_ad102_kernel.c, tests/test_main.c, and tests/test_unlock_adapter.c.

2. Key Discovery: The Optimus D3cold Power-Rail Trap

On hybrid/Optimus laptops where the desktop / display server runs on the integrated GPU (e.g. AMD Radeon 760M iGPU):

  1. The Issue:
    With standard driver defaults (NVreg_DynamicPowerManagement=0x02), the idle NVIDIA dGPU enters runtime D3cold (ACPI LNXPOWER:00=0, Video Memory: Off) seconds after boot.
    Upon waking from D3cold for compute, BAR0 inspection via gpu_peek demonstrates that the hardware unlock registers (SS0=0x53123046, SS1=0x3, FEAT_READOUT_1=0x00410080) are wiped back to half-rate fuses.

  2. The GSP-RM Cache False-Positive Trap:
    With NVreg_PreserveVideoMemoryAllocations=1, GSP-RM restores its cached boot-time OBJGR state. Consequently, tools/read_sm_rates.py (via client control 0x20801230) continues to report a cached 0 0 0 (full rate), giving a false-positive indication of 2.00× while physical SM execution runs at stock 1.00× rate (demonstrated across matched runs 2 and 3).

  3. The Solution & Power Management Clarification:

    • Setting options nvidia NVreg_DynamicPowerManagement=0x00 in /etc/modprobe.d/ inhibits runtime D3cold, fully preserving FEAT_OVR_PLM=0xffffffff, SS0=0x88888888, SS1=0x8, and FEAT_READOUT_1=0x00000000 across all idle cycles and compute invocations.
    • DynamicPowerManagement=0x00 vs udev power/control="on":
      We explicitly document that setting DynamicPowerManagement=0x00 is superior to forcing PCI sysfs power/control="on". While power/control="on" locks the card in P3 (1755 MHz / ~9.7 W) and generates spurious GPS ACPI DSM / NV_ERR_NO_MEMORY warning logs whenever NVML opens /dev/nvidia0, DynamicPowerManagement=0x00 cleanly allows GSP-RM to drop to P8 idle (210 MHz / ~1.6 W) with silent cooling fans while retaining the 2.00× tensor speedup.
    • Also documents the live, no-reboot unlock path using an unbound ACPI D3cold -> D0 cycle to reset WPR2_HI to 0x0.

3. Matched Hardware Benchmarks (HP Victus 10de:28a1)

Tested on kernel 7.0.0-42-generic, driver 580.178.04 open kernel module:

A. Tensor Modes Runner (tensor_modes_driver_runner)

Mode Stock Throughput Unlocked Throughput Speedup Mismatches
f16_f32 25.320 Top/s 50.682 Top/s 2.002× 0 / 270,336
tf32 12.660 Top/s 25.281 Top/s 1.997× 0 / 270,336
u4_s32 (control) 201.30 Top/s 201.84 Top/s 1.003× (invariant) 0 / 270,336

B. Microbenchmarks (mma_bench 20000 1)

Mode Stock Rate Unlocked Rate Speedup
f16/f16 25.5 TF/s 50.9 TF/s 1.996×
f16/f32 25.5 TF/s 50.9 TF/s 1.996×
bf16/f32 25.5 TF/s 50.9 TF/s 1.996×
s8/s32 50.9 TF/s 101.4 TF/s 1.992×
fp8/e4m3 50.9 TF/s 101.4 TF/s 1.992×
dp4a (control) 24.6 TF/s 24.6 TF/s 1.000× (invariant)
ffma (control) 11.6 TF/s 11.6 TF/s 1.000× (invariant)

C. cuBLAS GEMM (gemm_bench)

  • 4096³ FP16: +36.2% speedup
  • 4096³ BF16: +61.6% speedup
  • 8192³ FP16: +36.3% speedup
  • 8192³ BF16: +38.3% speedup
  • validate_gemm: 6/6 exact numerical matches, 0 failures.

4. Evidence Bundle & Integrity

All raw terminal outputs, selector states, register dumps, and benchmark logs are stored in docs/evidence/ada28a1/ with verified checksums in docs/evidence/ada28a1/SHA256SUMS.

Verified clean against sha256sum -c docs/evidence/ada28a1/SHA256SUMS.
Report document available at docs/ada-28a1-report.md.


🔄 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/134 **Author:** [@DannyBaanks](https://github.com/DannyBaanks) **Created:** 11/3/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `canary-28a1-ad107` --- ### 📝 Commits (9) - [`9d42480`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/9d4248006b3219abd006e862d44c70a4cf4bb3f0) ad107: admit 10de:28a1 (RTX 4050 Laptop, AD107M) under ad107_experimental - [`0526169`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/05261690f8c4bf5e41eaed9d62313ed69edac639) docs: add 10de:28a1 HP Victus canary report (transactional yes, 1.00x rate) - [`12ec500`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/12ec500ee8f5b7b793317d5c6dd5de5d3d1c7c2d) docs(28a1): demonstrate 2.00x unlock and Optimus D3cold power-rail trap - [`6e1035c`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/6e1035c87fc71d25e5c8c795e6b13cf631ffefa7) docs(28a1): clarify DynamicPowerManagement=0x00 over udev power/control=on - [`d19234e`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/d19234e995febb1b4ff4c7f8798b2aad666df434) docs(readme): document fork enhancements, baseline divergence and add spanish edition - [`1a71a29`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/1a71a29d8c9d5048106edad525337e698c12d840) docs: audit AD107M claims and polish bilingual README - [`0da2bb6`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/0da2bb6fd839d95d3353295a40f3c2ff506d4bbe) docs: audit AD107M claims and polish bilingual README - [`a577700`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/a5777008aba08dfd41d98d9254e2857386580cee) docs(28a1): regenerate cuBLAS table from raw evidence and lead with medians - [`d59fb44`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/d59fb44e3c90d44fefd8d8f2a5d1c8fb460deafa) docs(28a1): add repetition and D3cold diagnosis follow-up ### 📊 Changes **183 files changed** (+8690 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+100 -2) ➕ `README_es.md` (+161 -0) ➕ `docs/ada-28a1-report.md` (+302 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/README.md` (+76 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/SHA256SUMS` (+138 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/SUMMARY.txt` (+97 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/SHA256SUMS.local-unredacted` (+11 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/env.txt` (+7 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/gemm.jsonl` (+6 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/hashes.txt` (+3 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/mma.txt` (+9 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/numerical.txt` (+7 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/sm-rates.json` (+1 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/smi_after.txt` (+97 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/smi_before.txt` (+97 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/steps.txt` (+5 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/telemetry.csv` (+383 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_1/tensor.json` (+1 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_2/SHA256SUMS.local-unredacted` (+11 -0) ➕ `docs/evidence/ada28a1-followup-2026-11-04/boot_stock_2/env.txt` (+7 -0) _...and 80 more files_ </details> ### 📄 Description ## Overview This pull request admits the **HP Victus RTX 4050 Laptop GPU (`10de:28a1`, AD107M rev a1, 20 SMs)** under `ad107_experimental` and documents a crucial operational trap affecting hybrid / Optimus laptops: the **Optimus D3cold Power-Rail Trap** and its resolution via runtime power management configuration. Full test suite verification (`make test`) passes clean (33 tests, 0 failures, 3 skipped PyCryptodome optional tests). All hardware benchmarks and evidence artifacts are committed and hashed with SHA-256. --- ## 1. Silicon & Device Admission * **Target:** HP Victus 15-fb3xxx (PCI `10de:28a1`, AD107M rev a1, 20 SMs, 6 GB VRAM). * **Silicon:** Identical AD107M silicon to the currently supported `10de:28e1`, split by OEM vendor/board configuration. * **Code Changes:** - Added `0x28a1` to `kernel/gpu_unlock/arch_610.h`, `unlock_610.c`, `main.c`. - Added target dispatch and opt-in handling in `tools/print_boot_option.py`. - Added unit test coverage in `tests/test_ad102_kernel.c`, `tests/test_main.c`, and `tests/test_unlock_adapter.c`. --- ## 2. Key Discovery: The Optimus D3cold Power-Rail Trap On hybrid/Optimus laptops where the desktop / display server runs on the integrated GPU (e.g. AMD Radeon 760M iGPU): 1. **The Issue:** With standard driver defaults (`NVreg_DynamicPowerManagement=0x02`), the idle NVIDIA dGPU enters runtime D3cold (`ACPI LNXPOWER:00=0`, `Video Memory: Off`) seconds after boot. Upon waking from D3cold for compute, BAR0 inspection via `gpu_peek` demonstrates that the hardware unlock registers (`SS0=0x53123046`, `SS1=0x3`, `FEAT_READOUT_1=0x00410080`) are **wiped back to half-rate fuses**. 2. **The GSP-RM Cache False-Positive Trap:** With `NVreg_PreserveVideoMemoryAllocations=1`, GSP-RM restores its cached boot-time OBJGR state. Consequently, `tools/read_sm_rates.py` (via client control `0x20801230`) continues to report a cached `0 0 0` (full rate), giving a **false-positive indication of 2.00×** while physical SM execution runs at stock 1.00× rate (demonstrated across matched runs 2 and 3). 3. **The Solution & Power Management Clarification:** - Setting `options nvidia NVreg_DynamicPowerManagement=0x00` in `/etc/modprobe.d/` inhibits runtime D3cold, fully preserving `FEAT_OVR_PLM=0xffffffff`, `SS0=0x88888888`, `SS1=0x8`, and `FEAT_READOUT_1=0x00000000` across all idle cycles and compute invocations. - **`DynamicPowerManagement=0x00` vs udev `power/control="on"`:** We explicitly document that setting `DynamicPowerManagement=0x00` is superior to forcing PCI sysfs `power/control="on"`. While `power/control="on"` locks the card in P3 (1755 MHz / ~9.7 W) and generates spurious `GPS ACPI DSM` / `NV_ERR_NO_MEMORY` warning logs whenever NVML opens `/dev/nvidia0`, `DynamicPowerManagement=0x00` cleanly allows GSP-RM to drop to **P8 idle (210 MHz / ~1.6 W)** with silent cooling fans while retaining the 2.00× tensor speedup. - Also documents the live, no-reboot unlock path using an unbound ACPI D3cold -> D0 cycle to reset `WPR2_HI` to `0x0`. --- ## 3. Matched Hardware Benchmarks (HP Victus `10de:28a1`) Tested on kernel `7.0.0-42-generic`, driver `580.178.04` open kernel module: ### A. Tensor Modes Runner (`tensor_modes_driver_runner`) | Mode | Stock Throughput | Unlocked Throughput | Speedup | Mismatches | | :--- | :--- | :--- | :--- | :--- | | **f16_f32** | 25.320 Top/s | **50.682 Top/s** | **2.002×** | 0 / 270,336 | | **tf32** | 12.660 Top/s | **25.281 Top/s** | **1.997×** | 0 / 270,336 | | **u4_s32** (control) | 201.30 Top/s | 201.84 Top/s | 1.003× (invariant) | 0 / 270,336 | ### B. Microbenchmarks (`mma_bench 20000 1`) | Mode | Stock Rate | Unlocked Rate | Speedup | | :--- | :--- | :--- | :--- | | **f16/f16** | 25.5 TF/s | **50.9 TF/s** | **1.996×** | | **f16/f32** | 25.5 TF/s | **50.9 TF/s** | **1.996×** | | **bf16/f32** | 25.5 TF/s | **50.9 TF/s** | **1.996×** | | **s8/s32** | 50.9 TF/s | **101.4 TF/s** | **1.992×** | | **fp8/e4m3** | 50.9 TF/s | **101.4 TF/s** | **1.992×** | | **dp4a** (control) | 24.6 TF/s | 24.6 TF/s | 1.000× (invariant) | | **ffma** (control) | 11.6 TF/s | 11.6 TF/s | 1.000× (invariant) | ### C. cuBLAS GEMM (`gemm_bench`) * **4096³ FP16:** +36.2% speedup * **4096³ BF16:** +61.6% speedup * **8192³ FP16:** +36.3% speedup * **8192³ BF16:** +38.3% speedup * `validate_gemm`: 6/6 exact numerical matches, 0 failures. --- ## 4. Evidence Bundle & Integrity All raw terminal outputs, selector states, register dumps, and benchmark logs are stored in `docs/evidence/ada28a1/` with verified checksums in `docs/evidence/ada28a1/SHA256SUMS`. Verified clean against `sha256sum -c docs/evidence/ada28a1/SHA256SUMS`. Report document available at [`docs/ada-28a1-report.md`](docs/ada-28a1-report.md). --- <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#140
No description provided.