[PR #82] Add adaptive multi-card unlock and B660M-E D4 dual-GPU profile (3090 Ti + 3070 Ti) #139

Open
opened 2026-10-31 07:02:07 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/pull/82
Author: @jingx8885
Created: 10/27/2026
Status: 🔄 Open

Base: main ← Head: feat/b660m-dual-gpu


📝 Commits (6)

  • c800d80 Add B660M-E D4 dual-GPU profile: adaptive multi-card unlock (3090 Ti + 3070 Ti)
  • 322ca5f Fix deferred driver release for multi-card headless unlock
  • 593e519 Fix headless graph count after driver-release exclusion
  • f3adf34 Tolerate fingerprinted nvgop release by the child in the handoff graph
  • 6cc532b Add dual-card hardware run evidence (AUTO000030, both transactions clean)
  • b21e237 Merge main into PR82: keep dual-target registry, adopt main guards

📊 Changes

16 files changed (+667 additions, -161 deletions)

View changed files

📝 docs/COMPATIBILITY.en.md (+30 -1)
➕ evidence/b660m-dual-internal/README.md (+59 -0)
➕ evidence/b660m-dual-internal/report-excerpt.txt (+36 -0)
➕ evidence/b660m-dual-internal/summary.json (+60 -0)
📝 internal-boot/boot/full-release.c (+56 -5)
📝 internal-boot/install/headless-package.ps1 (+3 -2)
📝 internal-boot/unlock/app.c (+128 -100)
📝 internal-boot/unlock/app_io.c (+2 -0)
📝 internal-boot/unlock/build.ps1 (+3 -2)
📝 internal-boot/unlock/checks.c (+14 -2)
📝 internal-boot/unlock/headless-policy.h (+23 -4)
📝 internal-boot/unlock/machine-profile.h (+30 -4)
📝 internal-boot/unlock/ownership.c (+40 -7)
📝 internal-boot/unlock/port.c (+146 -30)
📝 internal-boot/unlock/port.h (+33 -0)
📝 research/headless/build-unlock.ps1 (+4 -4)

📄 Description

What

Add an adaptive multi-target unlock path and a dual-GPU profile for the
ASUS TUF B660M-E D4 board: a Colorful RTX 3090 Ti (GA102, 10de:2203) as the
console GPU and an MSI RTX 3070 Ti (GA104, 10de:2482) as the second card.

How it works

  • GU_CARD_TABLE (compile-time, immutable) replaces the single
    GU_BOARD_ID family of constants. Every profile still compiles for one
    table; single-card profiles emit one entry, GU_PROFILE_B660M_DUAL emits
    the two reviewed B660M-E D4 cards.
  • PCI enumeration matches table entries by device ID anywhere on segment 0;
    BDF and BAR0 are recorded, no longer required to be 01:00.0 / a fixed
    address. Unknown cards are skipped, never targeted.
  • GuActivate() swaps a per-card GU_PLATFORM context (ownership, DMA
    tracking, PROM/chip/memory verification, entry-latched selectors,
    selector phase). The vendor transaction itself is untouched and simply
    runs once per card.
  • The card holding BY_CHILD_CONTROLLER display children (the console GPU)
    is always processed last; earlier cards complete, quiesce and close
    first. A clean mid-run failure path keeps the original Halt semantics.
  • The headless ownership graph now excludes registered target handles from
    the foreign-edge invariant (their edges are volatile by design); the
    per-card ownership pipeline keeps validating each handle individually.
  • Driver release accepts BY_CHILD_CONTROLLER edges owned by the same agent
    so the second card's nvgop/EDID subtree can be released as one subtree.
  • GuPeekCold/BAR descriptor checks read the live BAR0; adding the second
    card moved the 3090 Ti BAR0 from 0x82000000 to 0x84000000 and the pinned
    constant would have failed the pre-release cold check.

Safety preserved

  • Per-card PROM SHA256, chip ID, VRAM size and subsystem stay exact; the
    card table is still compile-time and never user-editable.
  • One armed transaction per card; failed containment halts as before.
  • No new write surface: the same entryLatchedSs1Full flow, Esc cancellation
    and hardware gates apply to each card in turn.

Evidence

  • Both single-card profiles on this board were hardware-verified already
    (B660M_3070TI and B660M_3090TI); the dual build composes the same
    reviewed constants rather than inventing new ones.
  • Firmware builds clean for b660m-dual child + wrapper; b660m-3070ti,
    b660m-3090ti and b650m-3090fe rebuild unchanged in behaviour.
  • The first dual-card boot has not yet been exercised on hardware; treat
    this as a port that still needs its own two-transaction run report.

Follows up on the B660M_3090TI single-card profile (feat/b660m-3090ti).


🔄 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/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/pull/82 **Author:** [@jingx8885](https://github.com/jingx8885) **Created:** 10/27/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/b660m-dual-gpu` --- ### 📝 Commits (6) - [`c800d80`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/c800d805299d82d1c34bc573c899061856b14347) Add B660M-E D4 dual-GPU profile: adaptive multi-card unlock (3090 Ti + 3070 Ti) - [`322ca5f`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/322ca5f43eb0e645a6657f648c8412ad6120f3f1) Fix deferred driver release for multi-card headless unlock - [`593e519`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/593e519b9a65d787d4f78eefc3778173effbf10e) Fix headless graph count after driver-release exclusion - [`f3adf34`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/f3adf34078024d0901f9f94b557dc9627f88d731) Tolerate fingerprinted nvgop release by the child in the handoff graph - [`6cc532b`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/6cc532bbd9889e9b4c49eb9b0be48081c48c34c1) Add dual-card hardware run evidence (AUTO000030, both transactions clean) - [`b21e237`](https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/commit/b21e2373c27cdd342f23c8cb4e8e6f14e52bd44a) Merge main into PR82: keep dual-target registry, adopt main guards ### 📊 Changes **16 files changed** (+667 additions, -161 deletions) <details> <summary>View changed files</summary> 📝 `docs/COMPATIBILITY.en.md` (+30 -1) ➕ `evidence/b660m-dual-internal/README.md` (+59 -0) ➕ `evidence/b660m-dual-internal/report-excerpt.txt` (+36 -0) ➕ `evidence/b660m-dual-internal/summary.json` (+60 -0) 📝 `internal-boot/boot/full-release.c` (+56 -5) 📝 `internal-boot/install/headless-package.ps1` (+3 -2) 📝 `internal-boot/unlock/app.c` (+128 -100) 📝 `internal-boot/unlock/app_io.c` (+2 -0) 📝 `internal-boot/unlock/build.ps1` (+3 -2) 📝 `internal-boot/unlock/checks.c` (+14 -2) 📝 `internal-boot/unlock/headless-policy.h` (+23 -4) 📝 `internal-boot/unlock/machine-profile.h` (+30 -4) 📝 `internal-boot/unlock/ownership.c` (+40 -7) 📝 `internal-boot/unlock/port.c` (+146 -30) 📝 `internal-boot/unlock/port.h` (+33 -0) 📝 `research/headless/build-unlock.ps1` (+4 -4) </details> ### 📄 Description ## What Add an adaptive multi-target unlock path and a dual-GPU profile for the ASUS TUF B660M-E D4 board: a Colorful RTX 3090 Ti (GA102, 10de:2203) as the console GPU and an MSI RTX 3070 Ti (GA104, 10de:2482) as the second card. ## How it works - `GU_CARD_TABLE` (compile-time, immutable) replaces the single `GU_BOARD_ID` family of constants. Every profile still compiles for one table; single-card profiles emit one entry, `GU_PROFILE_B660M_DUAL` emits the two reviewed B660M-E D4 cards. - PCI enumeration matches table entries by device ID anywhere on segment 0; BDF and BAR0 are recorded, no longer required to be 01:00.0 / a fixed address. Unknown cards are skipped, never targeted. - `GuActivate()` swaps a per-card GU_PLATFORM context (ownership, DMA tracking, PROM/chip/memory verification, entry-latched selectors, selector phase). The vendor transaction itself is untouched and simply runs once per card. - The card holding BY_CHILD_CONTROLLER display children (the console GPU) is always processed last; earlier cards complete, quiesce and close first. A clean mid-run failure path keeps the original Halt semantics. - The headless ownership graph now excludes registered target handles from the foreign-edge invariant (their edges are volatile by design); the per-card ownership pipeline keeps validating each handle individually. - Driver release accepts BY_CHILD_CONTROLLER edges owned by the same agent so the second card's nvgop/EDID subtree can be released as one subtree. - `GuPeekCold`/BAR descriptor checks read the live BAR0; adding the second card moved the 3090 Ti BAR0 from 0x82000000 to 0x84000000 and the pinned constant would have failed the pre-release cold check. ## Safety preserved - Per-card PROM SHA256, chip ID, VRAM size and subsystem stay exact; the card table is still compile-time and never user-editable. - One armed transaction per card; failed containment halts as before. - No new write surface: the same entryLatchedSs1Full flow, Esc cancellation and hardware gates apply to each card in turn. ## Evidence - Both single-card profiles on this board were hardware-verified already (B660M_3070TI and B660M_3090TI); the dual build composes the same reviewed constants rather than inventing new ones. - Firmware builds clean for b660m-dual child + wrapper; b660m-3070ti, b660m-3090ti and b650m-3090fe rebuild unchanged in behaviour. - The first dual-card boot has not yet been exercised on hardware; treat this as a port that still needs its own two-transaction run report. ## Related Follows up on the B660M_3090TI single-card profile (feat/b660m-3090ti). --- <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
windows-GPU-UNLOCK/Windows-GPU-UNLOCK#139
No description provided.