[PR #114] windows: add Universal Multi-GPU In-RAM unlock engine (Ampere & Ada Lovelace) #117

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

📋 Pull Request Information

Original PR: https://github.com/JustAResearcher/gpu-unlock-ada/pull/114
Author: @LightEssence
Created: 10/29/2026
Status: 🔄 Open

Base: main ← Head: feat/add-universal-windows-unlock


📝 Commits (10+)

  • 51ae941 windows: add Universal Multi-GPU In-RAM unlock engine for Ampere and Ada Lovelace
  • ff9ccb2 windows/universal: enforce CRLF and UTF-8 safe input handling in batch scripts
  • 9d83ad4 windows/universal: gate payload_verified and readout checks on is_ad102 for Ampere compatibility
  • 9c5c578 windows/universal: document dual-GPU cross-architecture unlock (Ada + Ampere) and add benchmark tool
  • 28e696c windows/universal: clarify RAM specs to 128 GB (8x16 GB Quad-Channel per socket)
  • 7ef14b6 windows/universal: make benchmark script fully universal across any GPU count and architecture
  • 69b8e47 windows/universal: document universal multi-gpu benchmark capabilities
  • 6182622 feat(windows/universal): add enable_laptop_hybrid utility crediting Mayhem50
  • c8dd920 docs: disambiguate upstream Issue #117 link to JustAResearcher
  • 37e41db fix(universal): implement fail-closed error handling, validate capability/ownership, and fix device path construction

📊 Changes

147 files changed (+35922 additions, -0 deletions)

View changed files

📝 .gitattributes (+2 -0)
➕ windows/ad104-gigabyte-x99/build/app.su (+1 -0)
➕ windows/ad104-gigabyte-x99/build/boot_io.su (+14 -0)
➕ windows/ad104-gigabyte-x99/build/checks.su (+4 -0)
➕ windows/ad104-gigabyte-x99/build/compat.su (+40 -0)
➕ windows/ad104-gigabyte-x99/build/experimental-pe.json (+8 -0)
➕ windows/ad104-gigabyte-x99/build/format.su (+1 -0)
➕ windows/ad104-gigabyte-x99/build/port.su (+23 -0)
➕ windows/ad104-gigabyte-x99/build/profile.su (+7 -0)
➕ windows/ad104-gigabyte-x99/build/runtime.su (+6 -0)
➕ windows/ad104-gigabyte-x99/build/sha256.su (+3 -0)
➕ windows/ad104-gigabyte-x99/build/vendor_gfw_eval.su (+2 -0)
➕ windows/ad104-gigabyte-x99/build/vendor_layout_610.su (+2 -0)
➕ windows/ad104-gigabyte-x99/build/vendor_prep_610.su (+11 -0)
➕ windows/ad104-gigabyte-x99/build/vendor_unlock_610.su (+16 -0)
➕ windows/ad104-gigabyte-x99/build/vendor_vbios_610.su (+3 -0)
➕ windows/ad104-gigabyte-x99/build/x99_release.su (+6 -0)
➕ windows/ad104-gigabyte-x99/local/boot_profile.h (+2 -0)
➕ windows/universal/.gitattributes (+9 -0)
➕ windows/universal/.gitignore (+19 -0)

...and 80 more files

📄 Description

Summary

Adds a standalone, motherboard-agnostic, and Multi-GPU in-RAM unlock bootloader under windows/universal/ supporting both Ada Lovelace (RTX 40-Series) and Ampere (RTX 30-Series) concurrently.

Now verified on physical hardware running a heterogeneous Dual-GPU setup (Ada + Ampere) under Windows 11 x64!


Hardware Validation Evidence (Dual-GPU Multi-Gen Platform)

  • System Motherboard: Huananzhi X99-F8D Plus (Dual LGA2011-3, Intel C612 / X99, AMI Aptio V BIOS)
  • CPUs: 2 × Intel Xeon E5-2696 v3 (Haswell-EP, 36 cores / 72 threads)
  • Memory: 128 GB DDR4 (8 × 16 GB, Quad-Channel with 64 GB per CPU socket)
  • Operating System: Windows 11 Pro 64-bit (26100), NVIDIA Game Ready Driver (both GPUs recognized and clean)
  • GPU 0 (Bus 3:00.0, Socket 0): Gigabyte GeForce RTX 4070 Ti WINDFORCE OC 12GB (AD104-400, 10de:2782, Subsystem 1458:40e8)
  • GPU 1 (Bus 130:00.0, Socket 1): Gigabyte GeForce RTX 3060 EAGLE OC 12GB (GA106-300, 10de:2504, Subsystem 1458:40e2)

Measured PyTorch cuBLAS GEMM (Simultaneous In-RAM Unlock):

GPU & Architecture Precision Stock (Factory) Unlocked (In-RAM) Delta / Speedup Latch Status in RAM
GPU 0: RTX 4070 Ti 12GB
(Ada Lovelace AD104, 60 SM)
BF16 Tensor
FP16 Tensor
FP32 CUDA
75.0 TFLOPS
74.0 TFLOPS
28.0 TFLOPS
146.94 TFLOPS
142.22 TFLOPS
28.30 TFLOPS
+95.9% (2x faster!) 🔥
+92.2% gain 🔥
Parity (CUDA cores not throttled)
SS0=0x88888888
SS1=0x8
GPU 1: RTX 3060 12GB
(Ampere GA106, 28 SM)
BF16 Tensor
FP16 Tensor
FP32 CUDA
25.6 TFLOPS
25.6 TFLOPS
9.6 TFLOPS
49.57 TFLOPS
48.07 TFLOPS
9.65 TFLOPS
+93.6% (2x faster!) 🔥
+87.8% gain 🔥
Parity (CUDA cores not throttled)
SS0=0x88888888
SS1=0x8

Key Architectural Improvements:

  1. Motherboard & Topology Independence:
    • Full PCIe bus enumeration across all segments, root complexes, and CPU sockets (tested on dual-socket platform across Intel QPI interconnect).
    • Dynamic search for Windows Boot Manager (ootmgfw.efi) across all accessible ESP/FAT filesystems via UEFI SimpleFileSystem (eliminates hardcoded partition GUIDs and bus numbers).
  2. Multi-GPU & Cross-Architecture Support:
    • Supports concurrent execution of Ada (AD102/AD104) and Ampere (GA102/GA106) firmware transactions in a single boot cycle.
    • Separate GOP release for the active display adapter while headless compute accelerators are processed without display blanking overhead.
    • Fixed selector phase gating (is_ad102 check) to ensure Ampere cards seamlessly latch full-rate SS0/SS1 registers without triggering spurious -EPROTO errors.
  3. Strict Hardware ID VBIOS Addressing:
    • VBIOS images are indexed by PCI Subsystem ID (\EFI\VBIOS<vendor>_.rom), eliminating filename collisions across cards.
    • Shared in-RAM caching for identical cards.
  4. Direct Physical Page Allocation (AllocatePages):
    • Uses gBS->AllocatePages for large firmware blobs (gsp_ga10x.bin, 84.3 MB) to prevent out-of-memory errors caused by UEFI pool fragmentation.
  5. Zero-Flash Safety:
    • 100% Volatile in-RAM speed selector latching (SS0 = 0x88888888, SS1 = 0x8). Zero physical SPI flash writes. Rebooting without the USB returns all GPUs to 100% factory state.


Safety Hardening & Community Audit Updates (Commit 2ebb638)

Following CPU-mocked fault injection and static safety audits, the engine incorporates the following hardening guarantees:

  1. Option ROM & PCIR Hardware Signature Validation (ValidateVbiosEvidence):
    • Validates Option ROM signature header (0x55, 0xAA) and verifies the PCIR structure offset and 'PCIR' header.
    • Enforces strict matching between PCIR Vendor/Device ID (0x10de:<device_id>) and the target physical GPU before any selector latching or transaction staging.
    • Validates NVIDIA production FWSEC descriptors via gpu_unlock_vbios_fwsec().
  2. Pre-Latch Verification Sequencing:
    • Resolves latch-ordering dependencies: establishes Gu.prom_verified = TRUE strictly upon cryptographic and PCIR verification, satisfying GuLatchEntrySelectors() preconditions without bypassing the fail-closed safety gate.
  3. Active PCIe Memory Decode & Bus Master Verification (CheckGpuDisplayAndOwnershipOk):
    • Replaced unconditional display release stubs with live PCI Command Register query (cmd & 0x0002 active memory decode; cmd & 0x0004 disabled bus master DMA).
  4. Full Composite UEFI Device Path Synthesis for Windows Boot Manager:
    • Synthesizes fully-qualified composite device path ([vol_dp] + [MEDIA_FILEPATH_DP] + [END]) bound to the discovered Windows volume.
    • Strictly conforms to UEFI 2.10 Spec (§7.4) by passing gImageHandle (caller's image handle) as ParentImageHandle in gBS->LoadImage.

Disclaimer: This report was prepared with the assistance of Antigravity IDE, so there may be minor inaccuracies in the description of internal processes. / Отчёт подготовлен при помощи Antigravity IDE, поэтому могут быть неточности в описании процессов.


🔄 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/114 **Author:** [@LightEssence](https://github.com/LightEssence) **Created:** 10/29/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/add-universal-windows-unlock` --- ### 📝 Commits (10+) - [`51ae941`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/51ae941ae1a646d5e8e69c90d832f73f0e0b171c) windows: add Universal Multi-GPU In-RAM unlock engine for Ampere and Ada Lovelace - [`ff9ccb2`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/ff9ccb24d500b54bf8fd03eea3685817e0cb45bd) windows/universal: enforce CRLF and UTF-8 safe input handling in batch scripts - [`9d83ad4`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/9d83ad4d9f44aab7ce53fb6ee6b8734ed16ff07f) windows/universal: gate payload_verified and readout checks on is_ad102 for Ampere compatibility - [`9c5c578`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/9c5c578bb8ba6d1b066c41571b01d0b5c18d7fcb) windows/universal: document dual-GPU cross-architecture unlock (Ada + Ampere) and add benchmark tool - [`28e696c`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/28e696c26506595031f842d9d8eb8051b358da9b) windows/universal: clarify RAM specs to 128 GB (8x16 GB Quad-Channel per socket) - [`7ef14b6`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/7ef14b64608df713435f5469469d076468a609ae) windows/universal: make benchmark script fully universal across any GPU count and architecture - [`69b8e47`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/69b8e4790acc63c8cc0b6991e597b10ba20bbb53) windows/universal: document universal multi-gpu benchmark capabilities - [`6182622`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/6182622bf410c2d341b4a85c5adae10eba93e5e2) feat(windows/universal): add enable_laptop_hybrid utility crediting Mayhem50 - [`c8dd920`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/c8dd920ebe3f0daef7178d81524410d7757b5f28) docs: disambiguate upstream Issue #117 link to JustAResearcher - [`37e41db`](https://github.com/JustAResearcher/gpu-unlock-ada/commit/37e41dbd8d5099825c3fc9a2cf7b6d45c3f8cc98) fix(universal): implement fail-closed error handling, validate capability/ownership, and fix device path construction ### 📊 Changes **147 files changed** (+35922 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.gitattributes` (+2 -0) ➕ `windows/ad104-gigabyte-x99/build/app.su` (+1 -0) ➕ `windows/ad104-gigabyte-x99/build/boot_io.su` (+14 -0) ➕ `windows/ad104-gigabyte-x99/build/checks.su` (+4 -0) ➕ `windows/ad104-gigabyte-x99/build/compat.su` (+40 -0) ➕ `windows/ad104-gigabyte-x99/build/experimental-pe.json` (+8 -0) ➕ `windows/ad104-gigabyte-x99/build/format.su` (+1 -0) ➕ `windows/ad104-gigabyte-x99/build/port.su` (+23 -0) ➕ `windows/ad104-gigabyte-x99/build/profile.su` (+7 -0) ➕ `windows/ad104-gigabyte-x99/build/runtime.su` (+6 -0) ➕ `windows/ad104-gigabyte-x99/build/sha256.su` (+3 -0) ➕ `windows/ad104-gigabyte-x99/build/vendor_gfw_eval.su` (+2 -0) ➕ `windows/ad104-gigabyte-x99/build/vendor_layout_610.su` (+2 -0) ➕ `windows/ad104-gigabyte-x99/build/vendor_prep_610.su` (+11 -0) ➕ `windows/ad104-gigabyte-x99/build/vendor_unlock_610.su` (+16 -0) ➕ `windows/ad104-gigabyte-x99/build/vendor_vbios_610.su` (+3 -0) ➕ `windows/ad104-gigabyte-x99/build/x99_release.su` (+6 -0) ➕ `windows/ad104-gigabyte-x99/local/boot_profile.h` (+2 -0) ➕ `windows/universal/.gitattributes` (+9 -0) ➕ `windows/universal/.gitignore` (+19 -0) _...and 80 more files_ </details> ### 📄 Description ### Summary Adds a standalone, motherboard-agnostic, and **Multi-GPU in-RAM unlock bootloader** under windows/universal/ supporting both **Ada Lovelace (RTX 40-Series)** and **Ampere (RTX 30-Series)** concurrently. Now verified on physical hardware running a **heterogeneous Dual-GPU setup (Ada + Ampere)** under **Windows 11 x64**! --- ### Hardware Validation Evidence (Dual-GPU Multi-Gen Platform) - **System Motherboard:** Huananzhi X99-F8D Plus (Dual LGA2011-3, Intel C612 / X99, AMI Aptio V BIOS) - **CPUs:** 2 × Intel Xeon E5-2696 v3 (Haswell-EP, 36 cores / 72 threads) - **Memory:** 128 GB DDR4 (8 × 16 GB, Quad-Channel with 64 GB per CPU socket) - **Operating System:** Windows 11 Pro 64-bit (26100), NVIDIA Game Ready Driver (both GPUs recognized and clean) - **GPU 0 (Bus 3:00.0, Socket 0):** Gigabyte GeForce RTX 4070 Ti WINDFORCE OC 12GB (AD104-400, 10de:2782, Subsystem 1458:40e8) - **GPU 1 (Bus 130:00.0, Socket 1):** Gigabyte GeForce RTX 3060 EAGLE OC 12GB (GA106-300, 10de:2504, Subsystem 1458:40e2) #### Measured PyTorch cuBLAS GEMM (Simultaneous In-RAM Unlock): | GPU & Architecture | Precision | Stock (Factory) | Unlocked (In-RAM) | Delta / Speedup | Latch Status in RAM | | :--- | :--- | :---:| :---:| :---:| :---:| | **GPU 0: RTX 4070 Ti 12GB** <br>*(Ada Lovelace AD104, 60 SM)* | **BF16 Tensor** <br>**FP16 Tensor** <br>**FP32 CUDA** | 75.0 TFLOPS <br>74.0 TFLOPS <br>28.0 TFLOPS | **146.94 TFLOPS** <br>**142.22 TFLOPS** <br>**28.30 TFLOPS** | **+95.9% (2x faster!)** 🔥 <br>**+92.2% gain** 🔥 <br>Parity (CUDA cores not throttled) | SS0=0x88888888 <br>SS1=0x8 | | **GPU 1: RTX 3060 12GB** <br>*(Ampere GA106, 28 SM)* | **BF16 Tensor** <br>**FP16 Tensor** <br>**FP32 CUDA** | 25.6 TFLOPS <br>25.6 TFLOPS <br>9.6 TFLOPS | **49.57 TFLOPS** <br>**48.07 TFLOPS** <br>**9.65 TFLOPS** | **+93.6% (2x faster!)** 🔥 <br>**+87.8% gain** 🔥 <br>Parity (CUDA cores not throttled) | SS0=0x88888888 <br>SS1=0x8 | --- ### Key Architectural Improvements: 1. **Motherboard & Topology Independence:** - Full PCIe bus enumeration across all segments, root complexes, and CPU sockets (tested on dual-socket platform across Intel QPI interconnect). - Dynamic search for Windows Boot Manager (ootmgfw.efi) across all accessible ESP/FAT filesystems via UEFI SimpleFileSystem (eliminates hardcoded partition GUIDs and bus numbers). 2. **Multi-GPU & Cross-Architecture Support:** - Supports concurrent execution of Ada (AD102/AD104) and Ampere (GA102/GA106) firmware transactions in a single boot cycle. - Separate GOP release for the active display adapter while headless compute accelerators are processed without display blanking overhead. - Fixed selector phase gating (is_ad102 check) to ensure Ampere cards seamlessly latch full-rate SS0/SS1 registers without triggering spurious -EPROTO errors. 3. **Strict Hardware ID VBIOS Addressing:** - VBIOS images are indexed by PCI Subsystem ID (\EFI\VBIOS\<vendor>_<device>_<subvendor>_<subdevice>.rom), eliminating filename collisions across cards. - Shared in-RAM caching for identical cards. 4. **Direct Physical Page Allocation (AllocatePages):** - Uses gBS->AllocatePages for large firmware blobs (gsp_ga10x.bin, 84.3 MB) to prevent out-of-memory errors caused by UEFI pool fragmentation. 5. **Zero-Flash Safety:** - 100% Volatile in-RAM speed selector latching (SS0 = 0x88888888, SS1 = 0x8). Zero physical SPI flash writes. Rebooting without the USB returns all GPUs to 100% factory state. --- --- ### Safety Hardening & Community Audit Updates (Commit 2ebb638) Following CPU-mocked fault injection and static safety audits, the engine incorporates the following hardening guarantees: 1. **Option ROM & PCIR Hardware Signature Validation (`ValidateVbiosEvidence`)**: - Validates Option ROM signature header (`0x55, 0xAA`) and verifies the PCIR structure offset and `'PCIR'` header. - Enforces strict matching between PCIR Vendor/Device ID (`0x10de:<device_id>`) and the target physical GPU before any selector latching or transaction staging. - Validates NVIDIA production FWSEC descriptors via `gpu_unlock_vbios_fwsec()`. 2. **Pre-Latch Verification Sequencing**: - Resolves latch-ordering dependencies: establishes `Gu.prom_verified = TRUE` strictly upon cryptographic and PCIR verification, satisfying `GuLatchEntrySelectors()` preconditions without bypassing the fail-closed safety gate. 3. **Active PCIe Memory Decode & Bus Master Verification (`CheckGpuDisplayAndOwnershipOk`)**: - Replaced unconditional display release stubs with live PCI Command Register query (`cmd & 0x0002` active memory decode; `cmd & 0x0004` disabled bus master DMA). 4. **Full Composite UEFI Device Path Synthesis for Windows Boot Manager**: - Synthesizes fully-qualified composite device path (`[vol_dp] + [MEDIA_FILEPATH_DP] + [END]`) bound to the discovered Windows volume. - Strictly conforms to UEFI 2.10 Spec (§7.4) by passing `gImageHandle` (caller's image handle) as `ParentImageHandle` in `gBS->LoadImage`. --- > **Disclaimer:** This report was prepared with the assistance of Antigravity IDE, so there may be minor inaccuracies in the description of internal processes. / *Отчёт подготовлен при помощи Antigravity IDE, поэтому могут быть неточности в описании процессов.* --- <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#117
No description provided.