[GH-ISSUE #145] [Comprehensive Review] Resolving Open Compatibility Issues via Universal In-RAM Windows Engine: Multi-GPU, RTX 3060/4070 Whitelists, and GOP Detachment #108

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

Originally created by @LightEssence on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/issues/145

Overview & Architectural Context

Over the past few weeks, a growing number of compatibility requests and failure reports have accumulated in this repository across diverse hardware configurations:

  • Multi-GPU setups encountering single-device / Bus-1 limits (#137, #110, #103).
  • RTX 4070 (AD104) blocked by hardcoded subsystem whitelist checks (#27).
  • RTX 3060 (GA106 / GA104) blocked by missing subsystem whitelists, Bus 1 hardcoding, or GOP detachment refusals (#143, #134, #132, #114, #109, #107).
  • UEFI GOP / Console detachment refusals on modern AMI Aptio V and vendor boards (attributes_mismatch, nvgop refused, topology_scope) (#129, #123, #95).
  • Multi-socket workstation / HEDT platforms (Dual Xeon / Intel X99 / C612) (#117 platform host context).

To solve these systemic limitations without requiring per-board manual whitelisting, custom VBIOS dumping into source headers, or separate binary rebuilds for every Subsystem ID, we built and verified a fully autonomous, dynamic UEFI engine:
👉 LightEssence/universal-windows-unlock-gpu
(Note: This PR was submitted to the root upstream repository JustAResearcher/gpu-unlock-ada#114, not to impacifist's PR queue. We can also submit a PR directly here if the maintainer wants to adopt the universal dynamic engine).\n*(Multi-GPU testbed report and benchmarks are documented in upstream JustAResearcher/gpu-unlock-ada#116).*

Below is a technical breakdown of how the Universal Engine addresses each class of reported issues.


1. Multi-GPU Systems (#137, #110, #103)

The Bottleneck in checks.c

In the reference Windows port, validation enforces a single adapter on Bus 1:

if (Config == NULL || Segment != 0 || Bus != 1 || Device != 0 || Function != 0)
    return FALSE;

Any secondary card installed on secondary PCIe slots (Bus 2, Bus 3, chipset PCIe, etc.) is ignored or causes immediate rejection.

The Universal Solution

Our engine implements dynamic multi-GPU enumeration in pci_scan.c:

  • ScanSystemGpus() probes all PCI segments, buses, and devices, populating an array of detected NVIDIA adapters (from 1 to 8+ GPUs).
  • Iterates sequentially through all detected GPUs, extracting VBIOS descriptors and latching tensor speed selectors (SS0=0x88888888, SS1=0x8) across PCIe FLR resets before chainloading Windows.
  • Physical Verification: Successfully validated simultaneous in-RAM unlock of RTX 4070 Ti (AD104, Bus 3) + RTX 3060 (GA106, Bus 130) on physical hardware under Windows 11 (see Issue #116).

2. RTX 4070 & AD104 Subsystem Whitelist Refusals (#27)

The Bottleneck

checks.c validates the vendor Subsystem ID against a fixed compiled macro:

if (Config[0] != GU_BOARD_ID || Config[0x2c / 4] != GU_BOARD_SUBSYSTEM || ...

Because of this, users with MSI (1462:5138), Gigabyte (1458:4127), or MSI Gaming X (1462:5136) variants of the RTX 4070 receive Can unlock: false (not yet validated) in collect_compatibility.py.

The Universal Solution

The universal engine classifies hardware by Device ID ranges rather than exact board tuples:

  • 0x2780–0x27FF maps dynamically to AD104 (RTX 4070 / 4070 Ti).
  • Subsystem vendor and device IDs are parsed dynamically; BAR0 base is queried from PCI config space offset 0x10.
  • All AD104 cards unlock automatically out of the box with the single prebuilt BOOTX64.EFI.

3. RTX 3060 (GA106 / GA104) Compatibility & Unified Ada/Ampere Architecture (#143, #134, #132, #114, #109, #107)

The Community Roadblocks

Community members attempting to run RTX 3060 cards under the legacy Windows loader consistently encountered several blocking issues:

  1. Unrecognized Subsystem IDs: Cards like HP GA106 (103c:8903), Gigabyte GA104 (10de:2487), or MSI Tomahawk setups are rejected by static compiled macros (#134, #132, #109, #107).
  2. UEFI Driver Conflicts: GOP detachment refusals such as nvgop 0x6000a refused (#143) when running with integrated graphics or non-standard slot configurations.
  3. Hardcoded Bus 1 Limitation: Systems where the GPU is not at Bus 1 are immediately rejected.

Our Adaptation Finding: Resolving the -71 EPROTO Porting Hurdle

When creating a single unified UEFI codebase supporting both Ada Lovelace (e.g., RTX 4070 Ti) and Ampere (RTX 3060 / 3080 Ti), we encountered an architecture-specific divergence in the selector phase:

  • In Ada Lovelace, SEC2 booter execution populates an Ada-specific 4-PLM marker loop verified via work->payload_verified.
  • On Ampere (!is_ad102), SEC2 booter execution finishes earlier without populating this Ada marker.
  • During our initial adaptation of the 4070 Ti code for Ampere, an unguarded check:
    if (!work->payload_verified || check_entry_selectors(work))
        return GU_RESULT(-EPROTO);
    
    caused Ampere cards to immediately abort at the selector stage with error=-71 (-EPROTO).

The Universal Solution

In vendor/unlock_610.c, gating the verification and readout behind is_ad102(work) fully decouples the two pipelines, allowing both architectures to use the same binary:

static int unlock_transaction_selector(struct unlock_transaction_work *work) {
  int ret;
  if ((is_ad102(work) && !work->payload_verified) || check_entry_selectors(work))
    return GU_RESULT(-EPROTO);
  ret = write_selector(work, "SS0", GU_FEAT_SS0_OFFSET, GU_SS0_UNLOCK);
  ...
  ret = write_selector(work, "SS1", GU_FEAT_SS1_OFFSET, GU_SS1_UNLOCK);
  ...
  if (is_ad102(work))
    return ad102_readout(work, "selectors-applied", true);
  return 0;
}

Combined with dynamic PCI scanning that bypasses static subsystem whitelists and decoupled GOP detachment, RTX 3060 cards initialize cleanly.

Physical Result on RTX 3060 12GB: Dense BF16 GEMM jumped from 25.6 TFLOPS stock to 49.57 TFLOPS (+93.6%) under Windows 11.


4. UEFI GOP Detachment Failures (#129, #123, #95)

The Bottleneck

Static handle traversal, hardcoded USB bus agent trees, and fragile GOP protocols often trigger attributes_mismatch, nvgop refused, or topology_scope errors on modern UEFI implementations (ASRock X570/B760, ASUS ProArt Z690).

The Universal Solution

display_release.c uses a platform-agnostic detachment sequence:

  1. Queries handles supporting EFI_PCI_IO_PROTOCOL_GUID.
  2. Matches the exact PCI segment/bus/device/function of the target GPU.
  3. Invokes DisconnectController(handle, NULL, NULL).
  4. Opens protocol with EFI_OPEN_PROTOCOL_EXCLUSIVE and safely restores PCI Command memory/IO decode bits (0x03).
    This clean sequence eliminates dependencies on motherboard-specific USB/GOP tree heuristics.

5. Dual Xeon & Server Platforms (#117) & Architectural Scope (Ampere/Ada)

Host Platform Compatibility

While the reference loader frequently hung on multi-socket enterprise motherboards due to non-standard PCI root topologies, our engine was tested and fully verified on Dual Intel Xeon E5-2696 v3 on Huananzhi X99-F8D Plus (Intel C612 / X99) with 128 GB DDR4 Quad-Channel RAM across two NUMA sockets. The dynamic BAR0 memory query handles multi-socket PCI root complexes seamlessly.

Architectural Scope Clarification (Important regarding #117):

In #117, the reporter inquired about a system featuring a GeForce GTX 1070 (Pascal):

  • ❌ Pascal (GTX 10-series) and older: NOT SUPPORTED / Out of Scope. Pascal silicon lacks Tensor Cores entirely; there are no matrix-rate registers to unlock.
  • ✅ Currently Supported & Verified: Ampere (GeForce RTX 30-series, SM 8.6) and Ada Lovelace (GeForce RTX 40-series, SM 8.9).
  • 🔬 Future Investigation: Turing (RTX 20-series, SM 7.5) is under evaluation for future research, but is not currently supported in this build.

How to Test on Your Configuration (Fully Automated Setup)

Users experiencing refusals or blockers on the configurations listed above can test the unified loader without manual path formatting or binary compilation:

Step 1: Dump your GPU VBIOS (dump_vbios.bat)

Because UEFI security blocks runtime EEPROM reads over PCI, the loader parses FWSEC descriptors from a ROM file on the USB drive:

  1. Clone or download LightEssence/universal-windows-unlock-gpu.
  2. In the folder, right-click dump_vbios.bat -> Run as Administrator.
    • Automatically detects all installed NVIDIA GPUs (single or multi-GPU).
    • Queries exact PCI PNP IDs (Device ID, Subsystem Vendor, Subsystem Device).
    • Dumps the VBIOS via nvflashk and formats the filename directly into EFI\VBIOS\<vendor>_<device>_<subvendor>_<subdevice>.rom.
      (Manual alternative: In TechPowerUp GPU-Z, click the save arrow next to BIOS Version -> "Save to file...", saving into EFI\VBIOS\).

Step 2: Deploy to FAT32 USB Flash Drive (copy_to_usb.bat)

  1. Insert a FAT32 USB flash drive.
  2. Run copy_to_usb.bat and enter your USB drive letter (e.g. G).
    • The script automatically stages the complete boot tree onto the USB drive:
      USB:\EFI\BOOT\BOOTX64.EFI
      USB:\EFI\ASSETS\...
      USB:\EFI\VBIOS\<your_dumped_vbios>.rom
      

Step 3: Boot & Verify

  1. Boot from the USB drive via your motherboard's UEFI Boot Menu (F8 / F11 / F12).
  2. The loader automatically enumerates all GPUs, matches each card with its corresponding ROM dump in \EFI\VBIOS\, latches the in-RAM speed selectors (SS0=0x88888888, SS1=0x8), and chainloads Windows.
  3. Check resulting GEMM throughput in Windows with PyTorch or python tools/benchmark_multi_gpu.py.

Diagnostics & Feedback:

If the unlock fails on your specific board or reverts to stock:

  • The loader writes detailed execution logs directly to \UNLOCK-LOGS\RUNxxxx.TXT on the USB drive (e.g., USB:\UNLOCK-LOGS\RUN0001.TXT).
  • Please share the RUNxxxx.TXT log from \UNLOCK-LOGS\ in this thread or open an issue on LightEssence/universal-windows-unlock-gpu/issues. We will gladly assist in diagnosing the register state.

Cross-references: Upstream PR JustAResearcher/gpu-unlock-ada#114, Dual-GPU Validation Report JustAResearcher/gpu-unlock-ada#116.


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, поэтому могут быть неточности в описании процессов.

Originally created by @LightEssence on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/issues/145 ## Overview & Architectural Context Over the past few weeks, a growing number of compatibility requests and failure reports have accumulated in this repository across diverse hardware configurations: - **Multi-GPU setups** encountering single-device / Bus-1 limits (#137, #110, #103). - **RTX 4070 (AD104)** blocked by hardcoded subsystem whitelist checks (#27). - **RTX 3060 (GA106 / GA104)** blocked by missing subsystem whitelists, Bus 1 hardcoding, or GOP detachment refusals (#143, #134, #132, #114, #109, #107). - **UEFI GOP / Console detachment refusals** on modern AMI Aptio V and vendor boards (`attributes_mismatch`, `nvgop refused`, `topology_scope`) (#129, #123, #95). - **Multi-socket workstation / HEDT platforms** (Dual Xeon / Intel X99 / C612) (#117 platform host context). To solve these systemic limitations without requiring per-board manual whitelisting, custom VBIOS dumping into source headers, or separate binary rebuilds for every Subsystem ID, we built and verified a fully autonomous, dynamic UEFI engine: 👉 **[LightEssence/universal-windows-unlock-gpu](https://github.com/LightEssence/universal-windows-unlock-gpu)** *(Note: This PR was submitted to the root upstream repository [`JustAResearcher/gpu-unlock-ada#114`](https://github.com/JustAResearcher/gpu-unlock-ada/pull/114), not to `impacifist`'s PR queue. We can also submit a PR directly here if the maintainer wants to adopt the universal dynamic engine).*\n*(Multi-GPU testbed report and benchmarks are documented in upstream [`JustAResearcher/gpu-unlock-ada#116`](https://github.com/JustAResearcher/gpu-unlock-ada/issues/116)).* Below is a technical breakdown of how the Universal Engine addresses each class of reported issues. --- ## 1. Multi-GPU Systems (#137, #110, #103) ### The Bottleneck in `checks.c` In the reference Windows port, validation enforces a single adapter on Bus 1: ```c if (Config == NULL || Segment != 0 || Bus != 1 || Device != 0 || Function != 0) return FALSE; ``` Any secondary card installed on secondary PCIe slots (Bus 2, Bus 3, chipset PCIe, etc.) is ignored or causes immediate rejection. ### The Universal Solution Our engine implements dynamic multi-GPU enumeration in `pci_scan.c`: - `ScanSystemGpus()` probes all PCI segments, buses, and devices, populating an array of detected NVIDIA adapters (from 1 to 8+ GPUs). - Iterates sequentially through all detected GPUs, extracting VBIOS descriptors and latching tensor speed selectors (`SS0=0x88888888, SS1=0x8`) across PCIe FLR resets before chainloading Windows. - **Physical Verification:** Successfully validated simultaneous in-RAM unlock of **RTX 4070 Ti (AD104, Bus 3) + RTX 3060 (GA106, Bus 130)** on physical hardware under Windows 11 (see [Issue #116](https://github.com/JustAResearcher/gpu-unlock-ada/issues/116)). --- ## 2. RTX 4070 & AD104 Subsystem Whitelist Refusals (#27) ### The Bottleneck `checks.c` validates the vendor Subsystem ID against a fixed compiled macro: ```c if (Config[0] != GU_BOARD_ID || Config[0x2c / 4] != GU_BOARD_SUBSYSTEM || ... ``` Because of this, users with MSI (`1462:5138`), Gigabyte (`1458:4127`), or MSI Gaming X (`1462:5136`) variants of the RTX 4070 receive `Can unlock: false (not yet validated)` in `collect_compatibility.py`. ### The Universal Solution The universal engine classifies hardware by **Device ID ranges** rather than exact board tuples: - `0x2780`–`0x27FF` maps dynamically to **AD104** (RTX 4070 / 4070 Ti). - Subsystem vendor and device IDs are parsed dynamically; BAR0 base is queried from PCI config space offset `0x10`. - All AD104 cards unlock automatically out of the box with the single prebuilt `BOOTX64.EFI`. --- ## 3. RTX 3060 (GA106 / GA104) Compatibility & Unified Ada/Ampere Architecture (#143, #134, #132, #114, #109, #107) ### The Community Roadblocks Community members attempting to run RTX 3060 cards under the legacy Windows loader consistently encountered several blocking issues: 1. **Unrecognized Subsystem IDs:** Cards like HP GA106 (`103c:8903`), Gigabyte GA104 (`10de:2487`), or MSI Tomahawk setups are rejected by static compiled macros (#134, #132, #109, #107). 2. **UEFI Driver Conflicts:** GOP detachment refusals such as `nvgop 0x6000a refused` (#143) when running with integrated graphics or non-standard slot configurations. 3. **Hardcoded Bus 1 Limitation:** Systems where the GPU is not at Bus 1 are immediately rejected. ### Our Adaptation Finding: Resolving the -71 EPROTO Porting Hurdle When creating a single unified UEFI codebase supporting both Ada Lovelace (e.g., RTX 4070 Ti) and Ampere (RTX 3060 / 3080 Ti), we encountered an architecture-specific divergence in the selector phase: - In Ada Lovelace, SEC2 booter execution populates an Ada-specific 4-PLM marker loop verified via `work->payload_verified`. - On Ampere (`!is_ad102`), SEC2 booter execution finishes earlier without populating this Ada marker. - During our initial adaptation of the 4070 Ti code for Ampere, an unguarded check: ```c if (!work->payload_verified || check_entry_selectors(work)) return GU_RESULT(-EPROTO); ``` caused Ampere cards to immediately abort at the selector stage with `error=-71` (`-EPROTO`). ### The Universal Solution In `vendor/unlock_610.c`, gating the verification and readout behind `is_ad102(work)` fully decouples the two pipelines, allowing both architectures to use the same binary: ```c static int unlock_transaction_selector(struct unlock_transaction_work *work) { int ret; if ((is_ad102(work) && !work->payload_verified) || check_entry_selectors(work)) return GU_RESULT(-EPROTO); ret = write_selector(work, "SS0", GU_FEAT_SS0_OFFSET, GU_SS0_UNLOCK); ... ret = write_selector(work, "SS1", GU_FEAT_SS1_OFFSET, GU_SS1_UNLOCK); ... if (is_ad102(work)) return ad102_readout(work, "selectors-applied", true); return 0; } ``` Combined with dynamic PCI scanning that bypasses static subsystem whitelists and decoupled GOP detachment, RTX 3060 cards initialize cleanly. **Physical Result on RTX 3060 12GB:** Dense BF16 GEMM jumped from 25.6 TFLOPS stock to **49.57 TFLOPS (+93.6%)** under Windows 11. --- ## 4. UEFI GOP Detachment Failures (#129, #123, #95) ### The Bottleneck Static handle traversal, hardcoded USB bus agent trees, and fragile GOP protocols often trigger `attributes_mismatch`, `nvgop refused`, or `topology_scope` errors on modern UEFI implementations (ASRock X570/B760, ASUS ProArt Z690). ### The Universal Solution `display_release.c` uses a platform-agnostic detachment sequence: 1. Queries handles supporting `EFI_PCI_IO_PROTOCOL_GUID`. 2. Matches the exact PCI segment/bus/device/function of the target GPU. 3. Invokes `DisconnectController(handle, NULL, NULL)`. 4. Opens protocol with `EFI_OPEN_PROTOCOL_EXCLUSIVE` and safely restores PCI Command memory/IO decode bits (`0x03`). This clean sequence eliminates dependencies on motherboard-specific USB/GOP tree heuristics. --- ## 5. Dual Xeon & Server Platforms (#117) & Architectural Scope (Ampere/Ada) ### Host Platform Compatibility While the reference loader frequently hung on multi-socket enterprise motherboards due to non-standard PCI root topologies, our engine was tested and fully verified on **Dual Intel Xeon E5-2696 v3 on Huananzhi X99-F8D Plus (Intel C612 / X99)** with 128 GB DDR4 Quad-Channel RAM across two NUMA sockets. The dynamic BAR0 memory query handles multi-socket PCI root complexes seamlessly. ### Architectural Scope Clarification (Important regarding #117): In #117, the reporter inquired about a system featuring a **GeForce GTX 1070 (Pascal)**: - ❌ **Pascal (GTX 10-series) and older:** **NOT SUPPORTED / Out of Scope.** Pascal silicon lacks Tensor Cores entirely; there are no matrix-rate registers to unlock. - ✅ **Currently Supported & Verified:** **Ampere (GeForce RTX 30-series, SM 8.6)** and **Ada Lovelace (GeForce RTX 40-series, SM 8.9)**. - 🔬 **Future Investigation:** **Turing (RTX 20-series, SM 7.5)** is under evaluation for future research, but is not currently supported in this build. --- ## How to Test on Your Configuration (Fully Automated Setup) Users experiencing refusals or blockers on the configurations listed above can test the unified loader without manual path formatting or binary compilation: ### Step 1: Dump your GPU VBIOS (`dump_vbios.bat`) Because UEFI security blocks runtime EEPROM reads over PCI, the loader parses FWSEC descriptors from a ROM file on the USB drive: 1. Clone or download **[LightEssence/universal-windows-unlock-gpu](https://github.com/LightEssence/universal-windows-unlock-gpu)**. 2. In the folder, right-click **`dump_vbios.bat`** -> **Run as Administrator**. - Automatically detects all installed NVIDIA GPUs (single or multi-GPU). - Queries exact PCI PNP IDs (`Device ID`, `Subsystem Vendor`, `Subsystem Device`). - Dumps the VBIOS via `nvflashk` and formats the filename directly into `EFI\VBIOS\<vendor>_<device>_<subvendor>_<subdevice>.rom`. *(Manual alternative: In **TechPowerUp GPU-Z**, click the save arrow next to BIOS Version -> "Save to file...", saving into `EFI\VBIOS\`)*. ### Step 2: Deploy to FAT32 USB Flash Drive (`copy_to_usb.bat`) 1. Insert a **FAT32** USB flash drive. 2. Run **`copy_to_usb.bat`** and enter your USB drive letter (e.g. `G`). - The script automatically stages the complete boot tree onto the USB drive: ```text USB:\EFI\BOOT\BOOTX64.EFI USB:\EFI\ASSETS\... USB:\EFI\VBIOS\<your_dumped_vbios>.rom ``` ### Step 3: Boot & Verify 1. Boot from the USB drive via your motherboard's UEFI Boot Menu (F8 / F11 / F12). 2. The loader automatically enumerates all GPUs, matches each card with its corresponding ROM dump in `\EFI\VBIOS\`, latches the in-RAM speed selectors (`SS0=0x88888888, SS1=0x8`), and chainloads Windows. 3. Check resulting GEMM throughput in Windows with PyTorch or `python tools/benchmark_multi_gpu.py`. ### Diagnostics & Feedback: If the unlock fails on your specific board or reverts to stock: - The loader writes detailed execution logs directly to `\UNLOCK-LOGS\RUNxxxx.TXT` on the USB drive (e.g., `USB:\UNLOCK-LOGS\RUN0001.TXT`). - Please share the `RUNxxxx.TXT` log from `\UNLOCK-LOGS\` in this thread or open an issue on [LightEssence/universal-windows-unlock-gpu/issues](https://github.com/LightEssence/universal-windows-unlock-gpu/issues). We will gladly assist in diagnosing the register state. --- *Cross-references: Upstream PR [JustAResearcher/gpu-unlock-ada#114](https://github.com/JustAResearcher/gpu-unlock-ada/pull/114), Dual-GPU Validation Report [JustAResearcher/gpu-unlock-ada#116](https://github.com/JustAResearcher/gpu-unlock-ada/issues/116).* --- > **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, поэтому могут быть неточности в описании процессов.*
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#108
No description provided.