Skip to content

v1.2.7 GPU-Tensor-Unlock-Universal

Choose a tag to compare

@MindAllik MindAllik released this 08 Nov 07:44
· 9 commits to main since this release

Release v1.2.7 — Universal UEFI Display Handoff, Native-GOP CSM Recovery, Multi-Mirror Asset Pipeline & Full Architecture Sync

Overview

v1.2.7 introduces foundational architectural improvements to the pre-boot UEFI transaction engine, post-FLR display handoff, and host firmware staging pipeline across Ada Lovelace (RTX 40-series), Ampere (RTX 30-series), and Turing (RTX 20-series) GPUs. Instead of per-board workarounds, this release addresses the underlying UEFI firmware, PCIe bus, CSM legacy video, and network transport behaviors that affect wide classes of motherboards and GPU SKUs.

Key Architectural Improvements

1. Universal UEFI Display Handoff & CSM BiosVideoDxe Bypass (handoff.inc, app.c)

  • Explicit DriverBinding->Start() & Native-GOP OptionROM Recovery: On many motherboards with CSM enabled (or hybrid UEFI display routing), the pre-boot display is owned by BiosVideoDxe (<= 64 KB, version <= 0x30) rather than a native UEFI GOP driver. Calling the generic PCI-level ConnectController() after a PCIe Function-Level Reset (FLR) re-invokes BiosVideoDxe 16-bit Int10h real-mode routines and deadlocks the system at stage=before_GOP_reconnect. The handoff engine now bypasses generic PCI-level ConnectController() calls on real hardware:
    • When the pre-release owner is a native UEFI GOP driver, it invokes DriverBinding->Supported() and DriverBinding->Start() directly and connects only child GOP handles non-recursively.
    • When a legacy CSM BiosVideoDxe binding is detected (or direct rebind does not produce a child), GuStartNativeGopFromProm() locates the CodeType = 0x03 (0x0EF1) UEFI OptionROM image directly inside the GPU's PROM, decompresses it via the firmware's EFI_DECOMPRESS_PROTOCOL, loads and starts the native UEFI GOP driver, and hands off cleanly to bootmgfw.efi.
  • Unattended Confirmation Fallback & Multi-Key Input (Arm): Generated USB bundles now default to KOH_UNATTENDED_AUTOFIRE=1 and accept U, Enter, Space, Y, and localized scan-code equivalents, ensuring the unlock proceeds automatically even on motherboards where ConIn->Reset() re-initializes USB HID keyboards.
  • FAT32 Directory-Entry Checkpoint Commits (GuCheckpointReport): Added explicit close-and-reopen-at-EOF checkpoints before every critical transition (Arm, DisconnectController, SEC2 launch, and GOP reconnect) plus GuCloseLogForHalt() on fatal stops, forcing UEFI EnhancedFatDxe to commit DIR_FileSize to the USB flash drive immediately.

2. Universal Single-GPU PCIe Bus & Memory Map Handling (checks.h, ownership.c, port.h, app.c)

  • Pre-Enabled Bus Master (0x00100007) & 32-bit BAR0 (0xfb000000) Compatibility: Single-GPU systems where the target card drives the boot display often enter UEFI with Bus Master Enable (BME=1) active and a 32-bit BAR0 aperture. GuCheckConfig() and RestoreDecode() now normalize BME after DisconnectController(), refresh volatile PCIe Device Status / vendor capability scratch dwords (0x58, 0x80), and restore MEMORY_SPACE decoding even on platforms that do not re-enable legacy IO_SPACE.
  • Upstream PCIe Root-Port Bus Master Guard (GuEnsureUpstreamBridgeMaster): Automatically inspects parent PCI-to-PCI bridges (header_type == 0x01, sec_bus <= GPU_BUS <= sub_bus) after DisconnectController() and ensures MEMORY_SPACE | BUS_MASTER (0x0006) remains enabled during FWSEC/SEC2 execution so GPU DMA reads of WprMeta are never blocked by the root port (booter status 0x89).
  • Early Firmware Pool Release Before OS Chainload (GuReleaseAssets): Frees the 46–84 MB GSP firmware buffer immediately after transaction completion prior to RestoreDisplayForWindows() and StartImage(WindowsImage), preventing < 4 GiB conventional memory fragmentation (winload.efi 0xc000009a).
  • Silicon Process Strap Masking in NV_PMC_BOOT_0 (GuValidArchChip): Masks foundry process strap bits 31:29 (0xa0000000) when validating NV_PMC_BOOT_0, ensuring all silicon stepping and fab variants across AD10x, GA10x, and TU10x are recognized universally.

3. Resilient Firmware Download Pipeline & Windows File-Lock Protection (core_detector.py, linux_backend.py)

  • Eliminated [WinError 32] .part File Locks: Removed the pre-urlopen() tempfile.mkstemp() file-descriptor allocation that left an open OS handle on Windows whenever a network exception occurred before entering the write context, and added retry loops (_safe_replace / _safe_unlink) to handle transient Windows Defender (MsMpEng.exe) file-scan locks.
  • Multi-Transport & Multi-Mirror GSP Extraction (ensure_cached_gsp_firmware): Added automatic fallback from Python urllib to native Windows curl.exe (Schannel TLS) to bypass Cloudflare JA3 fingerprinting, plus automatic failover from archive.cachyos.org to NVIDIA's official download.nvidia.com 610.43.03 .run archive (with built-in Makeself .tar.zst / .tar.xz stream extraction) and local ~/Downloads / cache discovery.

4. Generalized Turing (TU10x) Firmware & Register Pipeline (extract_boot_assets.py, vbios_610.c, prep_610.c, unlock_610.c)

  • Dual-Entry Bindata Archive Parser: Supports multi-entry UCODE_IMAGE_PROD (01/00) and uncompressed UCODE_IMAGE / UCODE_DESC arrays across NVIDIA 610.43.03 generated C sources, and resolves exact gsp_tu10x.bin size and SHA-256 prior to compiling BOOTX64.EFI.
  • Falcon Ucode Descriptor V2 (AES-128) & 76-Byte Boot Descriptor Support: Validates both V2 (AES-128 embedded BROM signature, sig_count == 0) and V3 (RSA-3K) FWSEC descriptors, supports 76-byte RM_FLCN_BL_DESC structures, tolerates PL0-gated WPR_CFG_PLM (0x1fa7cc / 0xbadf5040) reads on Turing, verifies WPR2 (0x1fa824) directly when Falcon PIO is gated, and reads fallback VRAM capacity from 0x00118f80 (NV_PFB_PRI_MMU_LOCAL_MEMORY_RANGE).

5. Complete PCI ID Matrix Sync, UI Ergonomics & Version Stamping (v1.2.7)

  • Synchronized all desktop and workstation-derived AD10x, GA10x, and TU10x PCI Device IDs across core_detector.py, linux_backend.py, and kernel/gpu_unlock/, with automatic model-name enrichment when the OS reports a generic NVIDIA Graphics Device.
  • Adjusted initial UI pane proportions so all action buttons (READ USB REPORT.TXT, GRACEFUL COLD SHUTDOWN) are visible on launch without manual resizing, and embedded v1.2.7 version stamps across window titles, console logs, INSTALL_JOURNAL.JSON, and the header of every UEFI REPORT.TXT (VERSION=1.2.7).