mirror of
https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK.git
synced 2026-12-03 20:13:30 +07:00
[PR #9] [MERGED] Headless USB media; read-only cold pre-check before driver release #116
Labels
No labels
bug
documentation
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
windows-GPU-UNLOCK/Windows-GPU-UNLOCK#116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/pull/9
Author: @pavel-shpilev
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @impacifist
Base:
main← Head:feat/headless-usb-cold-precheck📝 Commits (3)
322dabeHeadless USB media; read-only cold pre-check before driver release8515eeaMerge current main before hardening PR 9 cold pre-check80a9ef3Validate decoding and BAR resources before cold-state MMIO📊 Changes
12 files changed (+504 additions, -11 deletions)
View changed files
📝
CHANGES.md(+31 -0)➕
docs/HEADLESS-USB.en.md(+86 -0)📝
internal-boot/boot/full-release.c(+69 -9)📝
internal-boot/boot/full-release.h(+1 -0)📝
internal-boot/boot/handoff.c(+33 -0)➕
internal-boot/boot/test-cold-precheck.ps1(+23 -0)➕
internal-boot/boot/test_cold_precheck.c(+158 -0)📝
internal-boot/unlock/app_io.c(+2 -2)📝
internal-boot/unlock/build.ps1(+3 -0)📝
internal-boot/unlock/tests/test_headless.c(+13 -0)➕
research/headless/build-usb.ps1(+52 -0)➕
research/headless/stage-usb.ps1(+33 -0)📄 Description
Lets the headless wrapper/child run from an ordinary FAT32 USB stick, and makes that stick safe to leave as a default boot device. Independent of #8.
What changes
GU_USB_MEDIA(internal-boot/unlock/build.ps1 -UsbMedia, newresearch/headless/build-usb.ps1): instead of pinning an internal ESP GUID, wrapper (handoff.cPrepare) and child (app_io.cUsbPath) accept only the USB device they were loaded from. The Windows ESP GUID, the child SHA256 contract and every exact-profile check are unchanged. No partition is created or retyped and no boot entry is registered.research/headless/stage-usb.ps1copies the package and the five local assets with hash verification and keeps any previousBOOTX64.EFI.GuPeekColdreads the nine cold-state registers of the exact RTX at0000:01:00.0through the PciIo its firmware driver still owns. The acceptance rules are the same asCold(), now shared asColdRead. A non-cold GPU (restart without platform reset, already unlocked, initialized WPR2, wrong memory size) takes the existing skip path to Windows. Before this, that state was only caught byVerifyColdafter release: black screen, then stop.VerifyColditself is unchanged.EFI_NOT_STARTED, so the firmware continues with the next option (normally Windows Boot Manager). Failures after release still stop without reset or retry.Tests (no fixtures needed)
internal-boot/boot/test-cold-precheck.ps1 -HardwareProfile <p>: 31GuPeekColdcases, passing for bothb650m-3090feandb660m-3070ti.0x88888888,0xbadf....or running GFW; other memory, chip, subsystem or slot; two targets; no device; read failure.test_headless.cwith-DGU_USB_MEDIA: USB volume accepted; a USB build loaded from an internal partition refuses before any hardware effect.build-usb.ps1produces packages forb650m-3090feandb660m-3070ti.handoff.c/full-release.ccompile in the headless-internal, automatic-AMD and full-manual configurations.Hardware
Gigabyte X870 AORUS ELITE WIFI7 + ASUS RTX 3090 Ti (GA102), using a profile from a follow-up PR:
FINAL status=0 … clean=1,SS0=88888888 SS1=8, one FLR) and started Windows. BF16 measured 150.2 TFLOPS after the restart boot.0/0). So the pre-check's skip branch and the BootOrder fallback have only run in host tests, not on hardware.0x40123070/7,0x40123070/3,0x44123070/7,0/0), whichentryLatchedSs1Fullhandles as designed.Docs:
docs/HEADLESS-USB.en.md,CHANGES.md. Korean docs not updated.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.