[PR #42] [MERGED] Allow experimental targets inside an explicit multi-card address list #95

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

📋 Pull Request Information

Original PR: https://github.com/JustAResearcher/gpu-unlock-ada/pull/42
Author: @cgarrot
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @JustAResearcher

Base: main ← Head: pr-experimental-in-list


📝 Commits (1)

  • 83f8813 Allow experimental AD103/AD106 targets inside an explicit address list

📊 Changes

2 files changed (+31 additions, -11 deletions)

View changed files

📝 kernel/gpu_unlock/main.c (+7 -7)
📝 tests/test_main.c (+24 -4)

📄 Description

Summary

The experimental canaries (AD103 10de:2705, AD106 10de:2805) currently require gpu_unlock.targets= to be their single exact PCI address: a comma-separated list containing an experimental card makes the module skip it with experimental AD1xx requires a single exact PCI target. Mixed rigs therefore cannot unlock all their cards with one command line.

This changes the check from a whole-string comparison to listed() membership: an experimental card is accepted when its exact address appears in the list, together with its experimental flag. all still never selects experimental targets, and each card still requires its own flag.

Behavior

cmdline before after
targets=<addr> (experimental card alone) unlocked unchanged
targets=<addr1>,<addr2> (experimental + other) experimental card skipped both unlocked
targets=all refused refused (unchanged)
missing experimental flag refused refused (unchanged)

Tests

Host suite updated and passing (29 tests): AD103-in-list and AD106-in-list now unlock alongside a second listed card; the all refusal and single-address paths are unchanged; new case for the exact AD106(2805)+GA106(2504) pair (one shared firmware load, two concurrent unlocks).

Silicon evidence (one host, warm boot)

Kernel 6.12 (Debian 13), stock NVIDIA driver 550.163.01, DKMS module built from this exact commit. Command line:

gpu_unlock.targets=0000:04:00.0,0000:03:00.0 gpu_unlock.ad106_experimental=1

kernel: pci 0000:04:00.0: gpu_unlock: unlocked
kernel: pci 0000:03:00.0: gpu_unlock: unlocked

Both transactions completed with the expected marker/permission/selector gates, both cards kept the stock driver bound, and the boot log shows no Xid. This was an ordinary warm reboot. Caveats: single host, no extended stability run at this point, and this PR is about target selection — the tensor-rate gains themselves are already covered by the existing canary reports.

Related: #22 (mixed rigs reporting the 2803/2805 IDs). Device-ID additions such as 2803 are intentionally out of scope here (see #32/#34).


🔄 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/42 **Author:** [@cgarrot](https://github.com/cgarrot) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@JustAResearcher](https://github.com/JustAResearcher) **Base:** `main` ← **Head:** `pr-experimental-in-list` --- ### 📝 Commits (1) - [`83f8813`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/83f8813e1d887481fd6ca8f9db7d320e9788607b) Allow experimental AD103/AD106 targets inside an explicit address list ### 📊 Changes **2 files changed** (+31 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `kernel/gpu_unlock/main.c` (+7 -7) 📝 `tests/test_main.c` (+24 -4) </details> ### 📄 Description ## Summary The experimental canaries (AD103 `10de:2705`, AD106 `10de:2805`) currently require `gpu_unlock.targets=` to be their single exact PCI address: a comma-separated list containing an experimental card makes the module skip it with `experimental AD1xx requires a single exact PCI target`. Mixed rigs therefore cannot unlock all their cards with one command line. This changes the check from a whole-string comparison to `listed()` membership: an experimental card is accepted when its exact address appears in the list, together with its experimental flag. `all` still never selects experimental targets, and each card still requires its own flag. ## Behavior | cmdline | before | after | |---|---|---| | `targets=<addr>` (experimental card alone) | unlocked | unchanged | | `targets=<addr1>,<addr2>` (experimental + other) | experimental card **skipped** | both unlocked | | `targets=all` | refused | refused (unchanged) | | missing experimental flag | refused | refused (unchanged) | ## Tests Host suite updated and passing (29 tests): AD103-in-list and AD106-in-list now unlock alongside a second listed card; the `all` refusal and single-address paths are unchanged; new case for the exact AD106(2805)+GA106(2504) pair (one shared firmware load, two concurrent unlocks). ## Silicon evidence (one host, warm boot) Kernel 6.12 (Debian 13), stock NVIDIA driver 550.163.01, DKMS module built from this exact commit. Command line: `gpu_unlock.targets=0000:04:00.0,0000:03:00.0 gpu_unlock.ad106_experimental=1` ``` kernel: pci 0000:04:00.0: gpu_unlock: unlocked kernel: pci 0000:03:00.0: gpu_unlock: unlocked ``` Both transactions completed with the expected marker/permission/selector gates, both cards kept the stock driver bound, and the boot log shows no Xid. This was an ordinary warm reboot. Caveats: single host, no extended stability run at this point, and this PR is about target selection — the tensor-rate gains themselves are already covered by the existing canary reports. Related: #22 (mixed rigs reporting the 2803/2805 IDs). Device-ID additions such as 2803 are intentionally out of scope here (see #32/#34). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 06:56:20 +07:00
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#95
No description provided.