Repository navigation
v1.2.7 GPU-Tensor-Unlock-Universal
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 byBiosVideoDxe(<= 64 KB,version <= 0x30) rather than a native UEFI GOP driver. Calling the generic PCI-levelConnectController()after a PCIe Function-Level Reset (FLR) re-invokesBiosVideoDxe16-bitInt10hreal-mode routines and deadlocks the system atstage=before_GOP_reconnect. The handoff engine now bypasses generic PCI-levelConnectController()calls on real hardware:- When the pre-release owner is a native UEFI GOP driver, it invokes
DriverBinding->Supported()andDriverBinding->Start()directly and connects only child GOP handles non-recursively. - When a legacy CSM
BiosVideoDxebinding is detected (or direct rebind does not produce a child),GuStartNativeGopFromProm()locates theCodeType = 0x03(0x0EF1) UEFI OptionROM image directly inside the GPU'sPROM, decompresses it via the firmware'sEFI_DECOMPRESS_PROTOCOL, loads and starts the native UEFI GOP driver, and hands off cleanly tobootmgfw.efi.
- When the pre-release owner is a native UEFI GOP driver, it invokes
- Unattended Confirmation Fallback & Multi-Key Input (
Arm): Generated USB bundles now default toKOH_UNATTENDED_AUTOFIRE=1and acceptU,Enter,Space,Y, and localized scan-code equivalents, ensuring the unlock proceeds automatically even on motherboards whereConIn->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,SEC2launch, and GOP reconnect) plusGuCloseLogForHalt()on fatal stops, forcing UEFIEnhancedFatDxeto commitDIR_FileSizeto 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-bitBAR0(0xfb000000) Compatibility: Single-GPU systems where the target card drives the boot display often enter UEFI withBus Master Enable(BME=1) active and a 32-bitBAR0aperture.GuCheckConfig()andRestoreDecode()now normalizeBMEafterDisconnectController(), refresh volatile PCIe Device Status / vendor capability scratch dwords (0x58,0x80), and restoreMEMORY_SPACEdecoding even on platforms that do not re-enable legacyIO_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) afterDisconnectController()and ensuresMEMORY_SPACE | BUS_MASTER(0x0006) remains enabled duringFWSEC/SEC2execution so GPU DMA reads ofWprMetaare never blocked by the root port (booter status 0x89). - Early Firmware Pool Release Before OS Chainload (
GuReleaseAssets): Frees the 46–84 MBGSPfirmware buffer immediately after transaction completion prior toRestoreDisplayForWindows()andStartImage(WindowsImage), preventing< 4 GiBconventional memory fragmentation (winload.efi0xc000009a). - Silicon Process Strap Masking in
NV_PMC_BOOT_0(GuValidArchChip): Masks foundry process strap bits31:29(0xa0000000) when validatingNV_PMC_BOOT_0, ensuring all silicon stepping and fab variants acrossAD10x,GA10x, andTU10xare recognized universally.
3. Resilient Firmware Download Pipeline & Windows File-Lock Protection (core_detector.py, linux_backend.py)
- Eliminated
[WinError 32].partFile 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 Pythonurllibto native Windowscurl.exe(Schannel TLS) to bypass Cloudflare JA3 fingerprinting, plus automatic failover fromarchive.cachyos.orgto NVIDIA's officialdownload.nvidia.com610.43.03.runarchive (with built-in Makeself.tar.zst/.tar.xzstream 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 uncompressedUCODE_IMAGE/UCODE_DESCarrays across NVIDIA610.43.03generated C sources, and resolves exactgsp_tu10x.binsize and SHA-256 prior to compilingBOOTX64.EFI. - Falcon Ucode Descriptor V2 (
AES-128) & 76-Byte Boot Descriptor Support: Validates bothV2(AES-128embedded BROM signature,sig_count == 0) andV3(RSA-3K)FWSECdescriptors, supports 76-byteRM_FLCN_BL_DESCstructures, tolerates PL0-gatedWPR_CFG_PLM(0x1fa7cc/0xbadf5040) reads on Turing, verifiesWPR2(0x1fa824) directly when Falcon PIO is gated, and reads fallback VRAM capacity from0x00118f80(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, andTU10xPCI Device IDs acrosscore_detector.py,linux_backend.py, andkernel/gpu_unlock/, with automatic model-name enrichment when the OS reports a genericNVIDIA 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 embeddedv1.2.7version stamps across window titles, console logs,INSTALL_JOURNAL.JSON, and the header of every UEFIREPORT.TXT(VERSION=1.2.7).