Skip to content

Universal GPU Unlock v2.1.2 — UEFI Resizable BAR Check, Device ID Expansion & Pre-MMIO BAR0 Guard

Choose a tag to compare

@BrightRaider BrightRaider released this 29 Nov 22:18
· 19 commits to main since this release

Universal GPU Unlock v2.1.2

Expanded Ampere & Turing Device IDs · Read-Only Resizable BAR in UEFI Boot Menu · [LOW_CLOCKS_OR_TDP] Badge Fix · Pre-MMIO 16-MB BAR0 Guard · Hardware FAQ & S0ix Hardening

Universal GPU Unlock v2.1.2 Scaled UEFI Boot Menu with live BIOS CSM and Resizable BAR check

v2.1.2 expands verified GPU device support across RTX 30 Series laptops/desktops (GA104 / GA106 / GA107) and RTX 2060 Mobile (TU106M), adds a read-only Resizable BAR check directly inside the BOOTX64.EFI UEFI boot menu alongside BIOS CSM, sharpens low-TDP/clock reporting in Check-GPU-Unlock.bat, enforces a pre-MMIO 16-MB BAR0 safety guard ahead of every GPU register read, and clarifies key hardware limits (RTX 50 Blackwell, Laptop MUX vs. Hybrid/RTD3, S0ix per-cycle behavior, and FMLA32 vs. FMLA16).

(0 permanent VBIOS writes · 0% gaming difference · Official signed NVIDIA drivers & Secure Boot compatible)


What's New in v2.1.2

1. Read-Only Resizable BAR Status Directly in the UEFI Boot Menu (BOOTX64.EFI)

  • GuProbePreMenuRebarStatus() (src/unlock_release.c, src/boot_io.c, src/uefi_lang.h, src/gop_menu.h): Inspects PCIe Extended Capability 0x0015 (via read-only Pci.Read) and read-only GetBarAttributes() on the VRAM BAR (0 PCI config writes, 0 MMIO reads, 0 ConnectController calls) right ahead of the boot menu.
  • Clear Color-Coded Reassurance (EN / 简体中文 / DE): Displays [OK] Resizable BAR: ON (green), [TIP] Resizable BAR: OFF (optional - does NOT block GPU unlock) (cyan 0x58A6FF), or [i] Resizable BAR: N/A (cyan) directly under BIOS CSM, making it unmistakable in both Setup.bat and pre-boot UEFI that disabled ReBAR never blocks the GPU unlock.

2. Verified Device IDs & Mobile Card Profiles (src/gpu_device_ids.h, tools/gu_system_info.py)

  • Ampere (GU_AMPERE_DEVICE_IDS): Added 0x249c (RTX 3080 Laptop 16GB, GA104 — requested and hardware-verified in Discussion #26 at 70.70 TFLOPS FP16 (+101.4%) / 76.34 TFLOPS BF16, FMLA32/16 = 0.94x), 0x249d (RTX 3070 Laptop, GA104), 0x2544 (RTX 3060 Desktop, GA106), 0x2584 (RTX 3050 6GB Desktop, GA107), 0x25a0 (RTX 3050 Ti Laptop, GA107), and 0x25a2 / 0x25a5 (RTX 3050 Laptop, GA107), verified against official NVIDIA open-gpu-kernel-modules (g_nv_name_released.h) and pci.ids.
  • Turing (GU_TURING_DEVICE_IDS): Added 0x1f15 (RTX 2060 Mobile / Max-Q, TU106M).
  • Laptop TFLOPS Thresholds: Added "3080 laptop", "3070 laptop", "3050 ti laptop", and "3050 laptop" entries ahead of desktop substrings in CARD_PROFILES (tools/gu_system_info.py), preventing false stock alarms on mobile GPUs.

3. Unambiguous [LOW_CLOCKS_OR_TDP] Summary Badge (tools/quick_check.py, tools/gu_system_info.py)

  • When Ampere FMLA32/FMLA16 >= 0.80 triggers UNLOCKED_LOW_TFLOPS at reduced clocks or laptop TGP limits (for example battery / Eco / power-capped runs below the idle threshold), Check-GPU-Unlock.bat previously collapsed the copyable summary badge to [UNLOCKED].
  • Added shared get_quick_check_badge_tag() and build_quick_check_summary_badge() helpers so [LOW_CLOCKS_OR_TDP] (as well as UNLOCKED_UNDER_LOAD and NO_TENSOR_CORES) is clearly displayed in both single-GPU clipboard badges and multi-GPU CLI summaries.

4. Pre-MMIO 16-MB BAR0 Size & Alignment Audit Closure (src/port.h, src/profile.c, src/port.c, src/compat.c, src/gpu_discovery.c, src/unlock_release.c, src/s3_resume.c)

  • Hardened pre-unlock and diagnostic entrypoints (GuIsUnlocked(), GuDiagnosticScan(), Config(), GuPrepare(), GuColdEntry(), GuRead32(), GuWrite32(), GuCopyFromIo(), GuBindDevice(), and GuS3PrepareAndRegister()) with shared GuBarWindowReady() and GuValidateBar0Attributes() checks.
  • Ensures 16-MB BAR0 alignment (!(bar_base & 0xffffff)), bar_size == 0x1000000, and live GetBarAttributes() validation are enforced before any BAR0 MMIO read (PMC_BOOT_0, 0x1fa828 WPR2_HI, 0x82381c/20, BAR0 + 0x300000 PROM) can occur — covered by tests/test_bar0_guard.c (26/26 checks; 13 total suites in tests/Run-MsvcHostTests.ps1).

5. Hardware FAQ, S0ix Clarification & UEFI Audits (README.md, docs/README.de.md, docs/README.zh-CN.md, DOCUMENTATION.md)

  • RTX 50 Series (Blackwell, e.g., GB202 / GB206 0x2d04): Documented why Blackwell remains unsupported (FUSE_SS_FMLA32 / FEAT_OVR_PLM = 0xfffffb8f present, but no known SEC2 Falcon path 0xbadf5720).
  • Gaming Laptops (dGPU-Direct MUX vs. Hybrid / RTD3) & Modern Standby (S0ix): Clarified that isolated short S0ix cycles retaining an unlock are strictly per-cycle luck (dependent on dGPU power-rail gating), whereas reliable sleep persistence still requires classic ACPI S3 (FADT Bit 21 = 0), and MUX / dGPU-Direct or tools\Setup-FastResume.bat (Idle Guard) avoids RTD3 idle resets in Hybrid mode.
  • Precision Terminology & Read-Only UEFI Audit: Standardized FP16/BF16 -> FP32 (FMLA32, throttled) vs. FP16 -> FP16 (FMLA16, unthrottled) across docs, and recorded the audit of GuDmaFree(), GuLog() flushing, Config()/Snapshot(), and targeted post-unlock ConnectController behavior vs. ASM2464PD USB4 eGPUs in DOCUMENTATION.md.

Quick Upgrade / Setup

  1. Upgrade existing USB (Setup.bat): Download Universal_GPU_Unlock_v2.1.2.zip, extract it over your existing folder, plug in your USB drive, and run Setup.bat ➔ [2] Update Existing USB Drive.
  2. If you use Stickless [I]: Boot once from the updated USB drive (F8 / F11 / F12) and press [I] so the internal ESP / hidden partition updates to v2.1.2.
  3. Verify in Windows: Run Launch-Dashboard.bat or Check-GPU-Unlock.bat.

Technical Notes & SHA-256 Checksums (Click to expand)

Verification Scope

  • MSVC Host Tests (tests\Run-MsvcHostTests.ps1): All 13 suites passed (MSVC_HOST_TESTS=PASS, including TestProbePreMenuRebarStatus, test_boot_select, test_turing_local, test_bar0_guard 26/26 checks, test_s3_resume 9,809 checks, and test_s3_non_identity 77 checks).
  • Python Unit Tests (python -m unittest tests.test_clock_cap -v): 9/9 passed (0.075s), plus py_compile.
  • Authenticode Signed UEFI Binaries: bin/BOOTX64.EFI and bin/AdaUnlockDxe.efi rebuilt and signed cleanly (9A473CC6F043EA7E826D9FEBE8748AC5522A075A).

SHA-256 Checksums

Universal_GPU_Unlock_v2.1.2.zip : 6d8c1019fb1c1514b10eebb456e11b1060b5633ebcc4b37fd3b6ca9f32853315
bin/BOOTX64.EFI                 : e06a82eee3673903bc4dfff7e66e1232459bc203ae5bf7a56fe6352c9e7c1e3a
bin/AdaUnlockDxe.efi            : d216bd7097b2a711e10befed976294f7e20fe58cbbb2449417afba41dadfffed
Signer Thumbprint (Secure Boot) : 9A473CC6F043EA7E826D9FEBE8748AC5522A075A