[GH-ISSUE #107] [SUCCESS / EXPERIMENTAL] Gigabyte RTX 4070 Ti AD104: Windows UEFI GPU unlock on MSI B450, successful cold boot and driver handoff #64

Open
opened 2026-10-31 06:56:03 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @zefirkapie-star on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/107

[SUCCESS / EXPERIMENTAL] Gigabyte RTX 4070 Ti AD104 (10de:2782, 1458:40e8): Windows UEFI GPU unlock on MSI B450, successful cold boot and driver handoff

Test date: October 28, 2026
Report updated: October 28, 2026 — validated unlocked Windows CUDA/cuBLAS results, Ubuntu comparison, and final ComfyUI application-performance follow-up
Hardware: Gigabyte GeForce RTX 4070 Ti Windforce OC 12 GB on MSI B450 Gaming Pro Carbon Max WiFi
Related reports: Successful native Ubuntu unlock, issue #77; earlier Gigabyte/UEFI investigation, issue #38; Gigabyte X99 Windows UEFI port, PR #96.

Summary

A fully logged cold-boot Windows UEFI unlock attempt completed its hardware transaction successfully on a Gigabyte RTX 4070 Ti Windforce OC 12 GB (AD104, 10de:2782, subsystem 1458:40e8) installed in an MSI B450 Gaming Pro Carbon Max WiFi motherboard. The experiment used a locally adapted Windows UEFI application built from the AD104/Gigabyte X99 code in PR #96, with the three-stage console/GOP release mechanism adapted from the repository's MSI UEFI port.

The application's USB log confirms successful FWSEC/payload execution, setting SS0=0x88888888 and SS1=0x8, retention of the fully enabled selector readback after one PCIe FLR, DMA teardown, and a successful final hardware transaction status:

Transaction result=0 safe=1 retained=0 started=1 quiesced=1 flrs=1 DMA_live=0
TRANSACTION OK: hardware readbacks passed, DMA released; final pre-Windows check follows unlogged; benchmark still required

Windows then booted successfully. The normal NVIDIA 617.42 Windows WDDM driver bound the GPU (00000000:26:00.0). The native CUDA/cuBLAS benchmark, using the same source and problem sizes as the previous Ubuntu evaluation, completed all six FP16/BF16 GEMM configurations with failures=0. On 8192³ GEMM, the unlocked Windows system achieved 144.084844 TFLOPS (FP16/FP32) and 144.489097 TFLOPS (BF16/FP32), compared with 146.122117 / 146.070428 TFLOPS on unlocked Ubuntu. This corresponds to 98.6% / 98.9% of Ubuntu throughput on those large-matrix workloads. In the latest operator-reported ComfyUI/Krea2 comparison, unlocked Windows and Ubuntu differed by only approximately 0.5 seconds per sampling step, a practically negligible gap for the tested workflows. Full final per-scenario timing distributions were not archived, so this is an observed practical near-parity result, not a statistical equivalence claim.

Evidence boundary: The firmware transaction, post-FLR full-rate selector checks, Windows driver handoff, and high unlocked native Windows CUDA/cuBLAS throughput are directly demonstrated. The earlier Ubuntu test in issue #77 supplied a matched stock/unlocked GEMM comparison and independent NVIDIA RM rate readback. This report does not claim a separately clock-controlled Windows stock/unlocked benchmark or an independent Windows NVIDIA RM issue-rate readback. The one complete UEFI transaction log, exact Windows benchmark samples, and the scope of the application comparison are distinguished below. Long-term reliability and compatibility with other boards remain unverified.

Hardware and software

Component Observed configuration
GPU Gigabyte GeForce RTX 4070 Ti Windforce OC, 12 GB; AD104; 60 SMs; compute capability sm_89
GPU PCI ID / subsystem 10de:2782 / 1458:40e8
VBIOS 95.04.3C.08.E3 from earlier board-specific read-only capture; not independently reread in this Windows run
Motherboard MSI B450 Gaming Pro Carbon Max WiFi, AM4 / B450
GPU PCI location PCI domain 0, bus 38 (0x26), device 0, function 0; Windows 00000000:26:00.0
BAR0 0xfb000000, 16 MiB; board-specific value
Installed system RAM 32 GB
Graphics configuration One GPU installed in this test; the RTX 4070 Ti also drove the UEFI/Windows display
Operating system Bare-metal Windows x64; precise edition/build not included in supplied output
NVIDIA Windows driver NVIDIA-SMI 617.42; KMD 617.42; CUDA UMD 13.4; WDDM
NVIDIA power cap 285 W (reported by nvidia-smi, not a sustained-load measurement)
ComfyUI environment Existing Windows installation uses torch 2.14.1+cu126; ComfyUI/Krea2 runs used the RTX 4070 Ti
Matched CUDA benchmark Exact source docs/evidence/rtx4090-pr1-stock/gemm_bench.cu (the source used in Ubuntu issue #77); compiled separately for Windows sm_89 and linked to cuBLAS; Windows nvcc reported CUDA release 12.6, V12.6.20; the linked cuBLAS library build was not independently recorded
UEFI Secure Boot Off / SecureBoot check passed in the test image
Firmware payload inputs Five exact pinned NVIDIA 610.43.03 assets staged on the USB stick
USB launch Removable FAT32 UEFIPROBE, launched manually from the motherboard's F11 UEFI boot menu
Source provenance Local adaptation of LightEssence/gpu-unlock-ada at fbff6979986260732733630b8c204e27eb846c66, corresponding to PR #96 head at the time

This is not an MSI Z490 or Huananzhi X99 test. Their device paths, BAR0 addresses, GPU topology, loaded UEFI driver bytes, and Windows ESP details must not be applied unchanged to this B450 machine.

Local Windows port and implementation

1. Fork and board-specific profile

A separate, initially fail-closed working directory, windows/ad104-gigabyte-b450/, was derived from the Gigabyte X99 UEFI port. The important changes were:

  • GPU PCI bus 38 / 0x26, not the X99 board's bus.
  • GPU BAR0 0xfb000000, not the X99 address.
  • Exact 1 MiB physical PROM and 626,176-byte prefix SHA-256 pins for this card; the code checks both captured image spans. The local script used full-image SHA-256 3721223371f2e7f2ce565ce1c4aaee43cb0c012ddb18b73753ff46ef4acaae74 and prefix SHA-256 e3165826d5217fb3b4e758f3e9ad3ae95ffa074e994dc774b8f82cd14a8ac96f.
  • Windows Boot Manager pin updated to a 3,086,680-byte bootmgfw.efi with SHA-256 2d60a2203865122dad22772136b3d905167d9dcf926d602bb5f48b3b6668abec; EFI partition size in the board profile was 409,600 sectors. The machine-specific ESP partition GUID was kept locally and is not reproduced here.
  • Hardware transactions deliberately blocked initially by #error B450_PORT_BLOCKED in the main B450 app.c.

Important provenance: This B450 adaptation, including its diagnostic scripts, is local experimental work, not an upstream release or a claim that PR #96 already supports this motherboard.

2. Read-only UEFI graph discovery

Earlier read-only captures (CAP0003) and multiple USB-launched EFI probes established the live driver relationships before any write-capable image was attempted. The final structural probe reported:

GPU ownership roles: PCI_BY_DRIVER=1 PATH_BY_CHILD=1
Child roles: GOP_DRIVER=1 TEXT_DRIVER=1 TEXT_CHILD=1
Root matches=1 child count=41
handles=495 protocols=1090 records(all)=865
active(BY_DRIVER+BY_CHILD)=135 drivers=56 children=79
passive=730 other=0
Contract: A-self=MATCH B-self=MATCH A-vs-B=MATCH
Active A=135 B=135 (archived required=135)
PASS: two local graph reads matched; NON-ATOMIC.
RESULT: READ-ONLY STRUCTURE MATCHED

These values describe the live UEFI snapshot of this particular machine, not universal constants. The preserved archive contained 496 handles; the live probe enumerated 495, while the key 135 active ownership edges matched. The 865 OpenProtocolInformation records include 730 passive/non-owning records and should not be misread as 865 active consumers.

A significant MSI B450-specific detail is that ConsoleInHandle == ConsoleOutHandle in this firmware session. The first strict C graph contract incorrectly required those handles to be distinct, causing A-self=DENY with diagnostic bit 0x004. Allowing only this console-in/console-out alias (while continuing to reject aliases involving the GPU, GOP child, or PCI root) yielded the final MATCH/MATCH/MATCH result. The reads are explicitly non-atomic.

The five required local edges are: PCI I/O BY_DRIVER on the GPU, DevicePath BY_CHILD_CONTROLLER to the GOP child, GOP BY_DRIVER, TextOut BY_DRIVER, and TextOut BY_CHILD_CONTROLLER to the console. Ownership is tied to discovered handles and protocol relationships rather than hard-coded transient handle addresses.

3. Exact loaded UEFI driver code identities

DriverBinding interfaces and LoadedImage metadata were checked. Historical handle indexes are omitted from executable logic; handles are discovered afresh at boot. The read-only code-fingerprint profiles are:

Stage Role Image bytes DriverBinding version Stop RVA Code span (RVA, length) Loaded code SHA-256
1 TextOut 24,608 0x10 0x11f0 0x2a0, 19,962 bytes 4b183861d78918e6770d104dd2e65208e8c769b5e41fc742bb92e97c7fb095f2
2 GOP 14,816 0x10 0x0a3c 0x2a0, 7,280 bytes 5611b854c94d96dd18e511316d9702e1407895fd52ce1ab6c961891f78d1df95
3 NVIDIA GOP 162,016 0x7000b 0x06ec 0x280, 137,711 bytes 77632902f0ceb0ba2848200f396ab61eacd7910e9cce7c535f65d6cdbe2b6c32

The code spans in the archived capture had zero detected code relocations and matching SHA-256. A later live read-only EFI probe reported executable-code MATCH for loaded drivers (the supplied photograph explicitly shows GOP and NVIDIA GOP, and the final aggregate RESULT: READ-ONLY STRUCTURE MATCHED). A pointer to a valid Stop method does not by itself prove that stopping, restarting, or reconnecting a driver is safe.

4. Three-stage console/GOP release

The final local B450 UEFI source adapted the three-stage GuMsiRelease() logic from windows/ad104-msi/msi_release.c into the B450 application's x99_release.c, with GuMsi* function names mapped to the B450 application's existing GuX99* entry points. These names are compatibility names inherited from PR #96, not evidence that X99 hardware was used.

Release sequence used by the candidate:

  1. TextOut driver (on the GOP child controller).
  2. GOP driver (on the GOP child controller).
  3. NVIDIA GOP driver (on the GPU PCI controller).
  4. Exclusive PCI I/O ownership, required PCI decode restoration, and cold-state checks.
  5. Existing AD104 firmware transaction (FWSEC/payload, selector writes, FLR and cleanup).
  6. Close exclusive PCI claim, verify final state, and call StartImage() for Windows Boot Manager.

The adapted code retained strict driver-code identity pins, the expected UEFI graph-delta logic, PCI command/configuration checks, and stop-on-error behavior. The release source SHA-256 was:

34d6455b6508c8488f1dd74ce2e07c6fe1713f82531138e44e4fec9a7b8642d0

The design does not claim an automatic, validated GOP rebind/rollback after a partial detach. A post-mutation failure may deliberately halt with no display until power is removed. That remains a material unresolved safety limitation, even though the fully logged attempt succeeded.

5. Build and USB staging

The complete application was compiled from 15 C translation units using Clang targeting x86_64-pc-windows-msvc and lld-link as a freestanding PE32+ EFI application. Build validation reported EFI subsystem, relocations, and no imports/TLS/CLR.

The original B450 app.c retained B450_PORT_BLOCKED; only a temporary build copy excluded that compile-time directive to link the actual write-capable experimental image. The resulting EFI was not safety-blocked at runtime by that source directive.

PASS: full EFI candidate linked, not deployed
PASS: original B450 app.c remains blocked
BINARY: .../efi_candidate_build/AD104-B450-STAGED-EXPERIMENTAL.EFI
SIZE: 99840 bytes
SHA256: 08ae2947758cc7a76b1c873da405451fa234c036351a7bcd7f0402c6c150cdff
MODE: GPU-WRITE-CAPABLE EXPERIMENTAL, NOT HARDWARE QUALIFIED

The five firmware inputs present in the local ~/.cache/gpu-unlock/assets were checked against exact expected lengths/hashes and copied to the removable UEFI volume:

NVIDIA 610.43.03 asset Expected bytes SHA-256
booter_load_ad102.bin 57,672 6ee05b20e1dc244c08c052f36ef28469b8d09f4955d1fe33e48a179e11a7fd49
v67-ad102-610.43.03-four-plm.bin 64,000 44c36b2d6b3424e53e18f3e55db85c833655de071ce66ce42749588a4a7dc8cb
gsp_ga10x.bin 84,277,400 572373620a37418f24dc16b5031c39338778c3257e48e8408de9a57291b24f3a
gsp_boot_ad102.bin 36,864 45d6335a8185d6ff13e8d1484cea73f68d3d13aa1c19dc080ed1c3482dd5bac0
gsp_boot_desc_ad102.bin 84 83f8f3f1f5f9496e0ea8fc7103c2beb64d0b6de2f5ffe725f13514de5a95fa42

The staging script reported:

PASS: experimental EFI SHA256: 08ae2947758cc7a76b1c873da405451fa234c036351a7bcd7f0402c6c150cdff
PASS: all five pinned firmware assets: /home/bsmost/.cache/gpu-unlock/assets
PASS: USB /dev/sda1 (UEFIPROBE, vfat)
PASS: existing original USB boot backup preserved
PASS: all five firmware assets staged on USB
PASS: experimental EFI installed on USB only
NO Windows/Ubuntu ESP or NVRAM changes performed

The USB had an original EFI/BOOT/BOOTX64.BACKUP.EFI. No original Windows or Ubuntu ESP, boot-variable, NVIDIA Windows driver, or VBIOS modification was performed as part of USB staging. The experimental EFI itself did write GPU/PCI state during the actual unlock.

Execution: Cold shutdown and AC-power removal, then a manual one-shot boot from the removable UEFI drive using the motherboard's F11 menu. The application offers an explicit [U] unlock action, [S]/ESC stock-Windows option, and a 30-second stock-Windows timeout. The operator chose U; this was not an automatic unlock at startup. The machine successfully entered Windows after the experimental operation.

Physical boot evidence: AD104-UNLOCK/RUN0001.TXT

The complete original log resides on the USB; the following verbatim lines are selected from the user's Get-Content ... -Tail 60 output. Runtime DMA addresses and driver handle pointers are deliberately omitted from this public report, since they are process/boot-specific and not part of the required device profile.

FWSEC and payload

FWSEC fuse: raw=0x1 version=1
Bus Master enable intent: command=0x3 attributes=0x300
Bus Master enabled: command=0x7 attributes=0x700 matched=1
Falcon reset begin: base=0x110000
Falcon pre-reset timeout tolerated per HW bug 3419321
Falcon reset done: base=0x110000 hwcfg=0x67b7 chip=0x194000a1
FWSEC result: scratch=0 expected_hi16=0
Falcon reset begin: base=0x840000
Falcon reset done: base=0x840000 hwcfg=0x67b7 chip=0x194000a1
AD102 permission after-payload: WPR_CFG[0x1fa7cc]=0xfffff0ff before=0x4cb8f expected=0xfffff0ff required=1 valid=1 pci=0x278210de chip=0x194000a1
AD102 permission after-payload: WPR[0x1fa7c4]=0xffffffff before=0x4cb8f expected=0xffffffff required=1 valid=1 pci=0x278210de chip=0x194000a1
AD102 permission after-payload: FEAT[0x823804]=0xffffffff before=0xffffff8f expected=0xffffffff required=1 valid=1 pci=0x278210de chip=0x194000a1
AD102 after-payload: readout1=0x410080 fields=0 0 2 0 0 2 0 2 0 valid=1 full=0
AD102 payload result: boot=0 halt=0 marker=0x67b00001 expected=0x67b00001 marker_ok=1 required_permissions=1 cpuctl=0x10 halted=1 debug=0xda550000 ss0=0x5031035 ss1=0x4

The internal log calls its firmware stages AD102; this identifies the reused firmware/payload path, not the physical chip (which is AD104 / 0x194000a1). The tolerated Falcon pre-reset polling timeout should be reported as a log observation, not silently erased or treated as a fatal failure.

Speed selector changes and PCIe FLR

selector read: SS0=0x5031035 expected_unlock=0x88888888
selector write: SS0=0x88888888
selector result: SS0=0x88888888 expected=0x88888888 matched=1
selector read: SS1=0x4 expected_unlock=0x8
selector write: SS1=0x8
selector result: SS1=0x8 expected=0x8 matched=1
AD102 selectors-applied: readout1=0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1
pre-FLR selectors: ss0=0x88888888 expected=0x88888888 ss1=0x8 expected=0x8
AD102 pre-FLR: readout1=0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1
PCIe FLR begin: BME=0 DMA retained, chip=0x194000a1
PCIe FLR returned: result=0
post-FLR BAR ready: chip=0x194000a1
post-FLR GFW result: error=0 pci=0x278210de plm=0x8b8f boot=0x3ff cpuctl=0x10 budget_us=2050000
post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008
AD102 post-FLR: readout1=0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1

Nuance: Certain permission-register values are shown in the raw log as reverted to their earlier values after FLR; the separate selector readback remained full=1. This report claims preservation of the speed selectors across the single reset—not permanent persistence of every FWSEC permission register.

Cleanup and Windows handoff

driver probe resources: phase=handoff empty=1
restore streaming mask: actual=0xffffffffffff expected=0xffffffffffff
restore coherent mask: actual=0xfffffffff expected=0xfffffffff
restore PCI command: actual=0x3 original=0x3 mask=0x6
Transaction result=0 safe=1 retained=0 started=1 quiesced=1 flrs=1 DMA_live=0
PCI status drift tolerated: offset=0x80 captured=0x92930 now=0x2930 bits=0x90000 flrs=1
TRANSACTION OK: hardware readbacks passed, DMA released; final pre-Windows check follows unlogged; benchmark still required

The final TRANSACTION OK line precedes a last unlogged pre-Windows check and StartImage(): it does not alone prove the OS booted. The separate observation that the operator reached Windows and nvidia-smi/PyTorch worked establishes successful handoff in this specific run. The log also records a tolerated PCI status drift after FLR; it is not evidence of an unchanged PCI configuration byte-for-byte.

Windows driver and independent compute observations

The operator captured the following nvidia-smi result after Windows boot:

NVIDIA-SMI 617.42                 KMD Version: 617.42        CUDA UMD Version: 13.4
GPU  Name                      Driver-Model | Bus-Id          Disp.A
0    NVIDIA GeForce RTX 4070 Ti WDDM         | 00000000:26:00.0 On
Temp 42 C; P0; 33 W / 285 W; 1015 MiB / 12282 MiB; GPU-Util 0%

This idle snapshot confirms successful normal-driver initialization and an active desktop, not sustained-load power or thermals. No Code 43 problem was observed or reported, but the exact Windows Device Manager diagnostic state was not separately captured.

Native Windows CUDA/cuBLAS benchmark after unlock (October 28, 2026)

Source: docs/evidence/rtx4090-pr1-stock/gemm_bench.cu, the identical source used in the successful Ubuntu test documented in issue #77. The Windows and Ubuntu executables were compiled separately, so the source and workload are matched while the complete toolchain and operating-system environments are not identical.

Method: cublasGemmEx, CUBLAS_GEMM_DEFAULT_TENSOR_OP; FP16 or BF16 input matrices with FP32 accumulation, square matrix sizes 1024³, 4096³, and 8192³; CUDA target sm_89; 10 warmups, 20 timed GEMMs per repetition, five repetitions. Throughput is based on CUDA-event elapsed time; the table reports the median and best of five repetition rates. The benchmark validates every output cell against its deliberately simple, deterministic expected result.

Mode GEMM size Windows unlocked median TFLOPS Best TFLOPS Output cells checked Failures
FP16/FP32 1024³ 70.730256 70.737706 1,048,576 0
BF16/FP32 1024³ 70.745165 70.849727 1,048,576 0
FP16/FP32 4096³ 131.110412 140.801523 16,777,216 0
BF16/FP32 4096³ 142.345661 145.769998 16,777,216 0
FP16/FP32 8192³ 144.084844 145.238609 67,108,864 0
BF16/FP32 8192³ 144.489097 145.659264 67,108,864 0

In total, the six benchmark configurations checked 169,869,312 output elements, reporting no mismatches for these exact-reference patterns. In a separate monitoring capture during this performance evaluation, the GPU's SM clock was predominantly 2595–2640 MHz under active load, with momentary excursions outside that range; observed board power reached approximately 209 W, below the 285 W board limit. These telemetry samples are a partial observation rather than synchronized per-GEMM averages.

The final unlocked Windows dataset is presented on its own merits. A controlled stock/unlocked Windows ratio under demonstrably identical operating conditions is not claimed from these measurements. The prior Ubuntu report includes such an A/B comparison and an independent rate readback.

Windows vs Ubuntu: identical cuBLAS source, different OS/toolchain

The unlocked GPU throughput was compared using the same gemm_bench.cu source and the same FP16/BF16 workloads with FP32 accumulation on the same Gigabyte RTX 4070 Ti. Both operating systems completed the benchmark's numerical checks (failures=0).

Data type GEMM size Ubuntu unlocked (TFLOPS) Windows unlocked (TFLOPS) Windows relative to Ubuntu
FP16/FP32 1024³ 75.302 70.730 −6.1%
BF16/FP32 1024³ 75.573 70.745 −6.4%
FP16/FP32 4096³ 130.626 131.110 +0.4%
BF16/FP32 4096³ 147.096 142.346 −3.2%
FP16/FP32 8192³ 146.122 144.085 −1.4%
BF16/FP32 8192³ 146.070 144.489 −1.1%

At 8192³, Windows reached 98.6% of the Ubuntu FP16 throughput and 98.9% of the Ubuntu BF16 throughput. These results establish near-parity in large-matrix CUDA/cuBLAS throughput after unlock for this particular GPU. Smaller matrices exhibit workload-dependent differences. This comparison uses matching benchmark source and mathematical workloads, but not identical compiled binaries or an isolated measurement of operating-system overhead: Ubuntu used CUDA Toolkit 13.4.3, while Windows nvcc --version reported 12.6.20; the NVIDIA drivers also differed.

Submitted raw Windows unlocked timing samples (milliseconds per GEMM)

Each five-element array records per-repetition CUDA-event milliseconds per GEMM (20 GEMMs per repetition), directly from the measured unlocked Windows run. Every configuration returned failures=0.

FP16/FP32  n=1024 times_ms=[0.03041280, 0.03148800, 0.03036160, 0.03035840, 0.03036160]
BF16/FP32  n=1024 times_ms=[0.03035520, 0.03031360, 0.03041280, 0.03041280, 0.03031040]
FP16/FP32  n=4096 times_ms=[0.99646082, 0.97611837, 1.04826880, 1.06014719, 1.09035521]
BF16/FP32  n=4096 times_ms=[0.94284801, 0.94617596, 0.96552963, 1.06199036, 1.09015036]
FP16/FP32  n=8192 times_ms=[7.57038116, 7.63611221, 7.61240463, 7.63100128, 7.67662048]
BF16/FP32  n=8192 times_ms=[7.60965118, 7.54851837, 7.55758057, 7.63279343, 7.65455704]

Scope of validation: failures=0 supports correctness for the benchmark's deliberately simple exact-reference input patterns; it is not a broad randomized numerical-validation campaign for Windows. The earlier Ubuntu issue #77 included additional varied-input checks. The Windows benchmark does not replace an independent NVIDIA RM issue-rate readback.

ComfyUI / Krea2 / DynamicVRAM: final cross-OS performance observation

The operator compared image generation on the same Gigabyte RTX 4070 Ti using unlocked Ubuntu and unlocked Windows, including text-to-image and reference-guided Krea2 workflows with DynamicVRAM. In the latest follow-up comparison, the operator reported that Windows and Ubuntu differed by only approximately 0.5 seconds per sampling step. For these practical workloads, this is near-parity, and the operator no longer considers the remaining difference material to the choice of operating system.

Metric Latest operator-reported result
Compared environments Unlocked Ubuntu and unlocked Windows on the same RTX 4070 Ti
Workload ComfyUI / Krea2 image generation; prior comparisons included text-only and reference-guided scenarios
Observed cross-OS gap Approximately 0.5 s per sampling step
Practical interpretation No meaningful application-level performance disadvantage observed for Windows in the latest comparison
At a typical 12 sampling steps Approximately 6 seconds difference in sampling time, if the observed per-step gap remains consistent

The 12-step figure is an arithmetic extrapolation, not a separately measured end-to-end duration. It excludes reference preprocessing, model loading, VAE decoding, and image saving. The latest comparison was reported by the operator without a separate per-scenario timing table, confidence interval, repeated-run variance, or side-by-side software manifest. It should therefore be described as practical performance parity in the observed workflow, not mathematical or statistical proof of zero OS overhead.

Taken together with the 98.6–98.9% of Ubuntu cuBLAS throughput at 8192³ shown above, the latest ComfyUI observation supports the practical conclusion that the experimental Windows UEFI path does not impose a material performance penalty compared with Ubuntu on this specific system and workload.

Relation to prior Ubuntu result

The same card previously showed an independently confirmed native Ubuntu unlock in issue #77, using gpu-unlock-ada 1.1.1 and NVIDIA open kernel driver 615.78.08. That Linux test included an NVIDIA RM speed-rate readback (fmla32, imla2, imla4: 1 stock → 0 unlocked), matched stock/unlocked cuBLAS GEMM tests, zero reported numerical mismatches for the exercised inputs, and a subsequent cold stock boot that restored the half-rate state.

This Windows result adds B450-specific UEFI driver/console ownership mapping, exact loaded-driver fingerprints, staged GOP release, firmware transaction and FLR, then a successful Windows WDDM-driver boot and independently measured unlocked native Windows CUDA/cuBLAS performance at near-Ubuntu throughput. The Linux report separately provides matched stock/unlocked benchmarks, an NVIDIA RM-rate readback, and broader varied-input validation not performed in this Windows follow-up.

Known limitations, confidence, and maintenance implications

  1. One fully captured UEFI transaction log. No second complete UEFI log/boot trace, repeated cold-boot reliability series, warm reboot test, sustained-load thermal validation, or multi-day stability observation was provided.
  2. Windows unlocked CUDA/cuBLAS benchmark verified. Six final unlocked Windows GEMM configurations completed with failures=0, reaching 144.084844 TFLOPS FP16 and 144.489097 TFLOPS BF16 at 8192³. A separate rigorously frequency-matched Windows stock/unlocked A/B result is not asserted in this report; Ubuntu issue #77 supplies the independent A/B evidence. An NVIDIA RM issue-rate getter has not been recorded under Windows.
  3. Board-specific. The MSI B450 PCI path, GPU bus, BAR0, USB-host path, firmware driver bytes/versions, PROM pin, Windows Boot Manager fingerprint, and UEFI graph are not portable without requalification. A matching GPU/subsystem ID is not enough.
  4. Single-GPU display dependency. The only GPU drove UEFI and Windows graphics. Any failed staged disconnect can leave the screen black. The adaptation has no established automatic reconnect/rollback after a partial driver detach; it may halt until a full power cycle. Firmware/OS/GPU failure consequences can exceed an ordinary reboot.
  5. Source vs binary gate. B450_PORT_BLOCKED remains in the primary source; the physically run EFI was built from a temporary app_candidate.c excluding that directive, and was capable of real GPU writes. A source-level #error is not protection against executing this EFI binary.
  6. No permanent firmware alteration was intended. No VBIOS flash, NVIDIA driver patch, or Windows ESP/NVRAM modification was performed in the reported staging procedure. The transaction modified volatile GPU/PCI state. Persistence across a cold power cycle has not been independently tested under Windows; the earlier Ubuntu report did demonstrate stock-state restoration for its own cold A/B sequence.
  7. Transient handles and addresses. Never use archived UEFI handles, DMA source addresses, or the local Windows ESP GUID as global constants or share full raw private captures without review.
  8. Unpublished B450 implementation. This report documents a local patch based on the PR #96 fork and MSI implementation, not an upstream-supported reproducible package. An upstream PR would need to include reviewable source changes, exact device-specific pin definitions, firmware-asset acquisition instructions, and a safer recovery strategy. No proprietary firmware binaries are attached.
  9. Hardware-transaction readbacks are not identical to an RM getter. The post-FLR selector full=1 is significant but does not substitute for a separate SM-rate readback by NVIDIA's running driver.
  10. Application-level parity is an operator-reported observation. In the latest ComfyUI/Krea2 comparison the remaining Windows–Ubuntu difference was approximately 0.5 s per sampling step. A per-scenario final-run timing log, repeated-run variance, and exact cross-OS software manifest were not archived; practical near-parity should not be presented as statistically proven zero overhead.

Suggested upstream follow-up

This is a concrete board-specific Windows success report, not a claim of general AD104 Windows support. It may be useful to upstream for:

  • Tracking the MSI B450 shared ConsoleInHandle == ConsoleOutHandle behavior and exact five-edge GOP/console ownership structure.
  • Reviewing the three-stage release adaptation against the existing MSI Z490 logic and Gigabyte X99 PR.
  • Considering a reviewed, machine-profiled B450 port with carefully scoped driver-image hashes, not hard-coded UEFI handles.
  • Improving fault recovery for single-display-GPU UEFI detachment.
  • Obtaining a repeatable Windows stock/unlocked CUDA/cuBLAS A/B comparison under matched frequency/power conditions with a second archived UEFI boot trace, collecting an independent Windows NVIDIA RM-rate readback if possible, and collecting repeatable per-workflow ComfyUI timings to validate the latest approximately 0.5 s/step Windows–Ubuntu gap without assigning an unverified cause to the small residual difference.

Conclusion: On this specific MSI B450 + Gigabyte RTX 4070 Ti configuration, the fully logged Windows UEFI attempt completed the unlock transaction, preserved full-rate selector state after PCIe FLR, and handed off successfully to the unmodified NVIDIA WDDM driver. A native unlocked Windows CUDA/cuBLAS run measured 144.084844 TFLOPS FP16/FP32 and 144.489097 TFLOPS BF16/FP32 on 8192³ GEMM, with no output mismatches in any of the six recorded benchmark configurations. The corresponding Ubuntu unlocked results were 146.122117 and 146.070428 TFLOPS, placing Windows within 1.4% / 1.1% of Ubuntu on these large-matrix workloads. In the latest ComfyUI/Krea2 comparison, the operator observed an approximately 0.5-second-per-step cross-OS difference, regarded as negligible for practical use. No independent Windows NVIDIA RM speed-rate readback, frequency-controlled Windows stock/unlocked benchmark, second full UEFI transaction log, or long-term reliability validation is claimed. This is a board-specific experimental success, not evidence of general Windows AD104 compatibility.

After unlocking, my RTX 4070 Ti achieves about 87-88% of the performance of the stock RTX 4090 in large FP16/BF16 cuBLAS calculations with FP32 accumulation, falling only about 12-13%. It sounds like magic.

Originally created by @zefirkapie-star on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/107 # [SUCCESS / EXPERIMENTAL] Gigabyte RTX 4070 Ti AD104 (`10de:2782`, `1458:40e8`): Windows UEFI GPU unlock on MSI B450, successful cold boot and driver handoff **Test date:** October 28, 2026 **Report updated:** October 28, 2026 — validated unlocked Windows CUDA/cuBLAS results, Ubuntu comparison, and final ComfyUI application-performance follow-up **Hardware:** Gigabyte GeForce RTX 4070 Ti Windforce OC 12 GB on MSI B450 Gaming Pro Carbon Max WiFi **Related reports:** [Successful native Ubuntu unlock, issue #77](https://github.com/JustAResearcher/gpu-unlock-ada/issues/77); [earlier Gigabyte/UEFI investigation, issue #38](https://github.com/JustAResearcher/gpu-unlock-ada/issues/38); [Gigabyte X99 Windows UEFI port, PR #96](https://github.com/JustAResearcher/gpu-unlock-ada/pull/96). ## Summary A **fully logged cold-boot Windows UEFI unlock attempt completed its hardware transaction successfully** on a **Gigabyte RTX 4070 Ti Windforce OC 12 GB (AD104, `10de:2782`, subsystem `1458:40e8`)** installed in an **MSI B450 Gaming Pro Carbon Max WiFi** motherboard. The experiment used a locally adapted Windows UEFI application built from the AD104/Gigabyte X99 code in [PR #96](https://github.com/JustAResearcher/gpu-unlock-ada/pull/96), with the three-stage console/GOP release mechanism adapted from the repository's MSI UEFI port. The application's USB log confirms successful FWSEC/payload execution, setting **`SS0=0x88888888`** and **`SS1=0x8`**, retention of the fully enabled selector readback after **one PCIe FLR**, DMA teardown, and a successful final hardware transaction status: ```text Transaction result=0 safe=1 retained=0 started=1 quiesced=1 flrs=1 DMA_live=0 TRANSACTION OK: hardware readbacks passed, DMA released; final pre-Windows check follows unlogged; benchmark still required ``` **Windows then booted successfully**. The normal NVIDIA **617.42** Windows WDDM driver bound the GPU (`00000000:26:00.0`). The native CUDA/cuBLAS benchmark, using the same source and problem sizes as the previous Ubuntu evaluation, completed **all six FP16/BF16 GEMM configurations with `failures=0`**. On 8192³ GEMM, the unlocked Windows system achieved **144.084844 TFLOPS (FP16/FP32)** and **144.489097 TFLOPS (BF16/FP32)**, compared with **146.122117 / 146.070428 TFLOPS** on unlocked Ubuntu. This corresponds to **98.6% / 98.9% of Ubuntu throughput** on those large-matrix workloads. In the latest operator-reported ComfyUI/Krea2 comparison, unlocked Windows and Ubuntu differed by only **approximately 0.5 seconds per sampling step**, a practically negligible gap for the tested workflows. Full final per-scenario timing distributions were not archived, so this is an observed practical near-parity result, not a statistical equivalence claim. **Evidence boundary:** The firmware transaction, post-FLR full-rate selector checks, Windows driver handoff, and high unlocked native Windows CUDA/cuBLAS throughput are directly demonstrated. The earlier **Ubuntu** test in [issue #77](https://github.com/JustAResearcher/gpu-unlock-ada/issues/77) supplied a matched stock/unlocked GEMM comparison and independent NVIDIA RM rate readback. This report does **not** claim a separately clock-controlled Windows stock/unlocked benchmark or an independent Windows NVIDIA RM issue-rate readback. The one complete UEFI transaction log, exact Windows benchmark samples, and the scope of the application comparison are distinguished below. Long-term reliability and compatibility with other boards remain unverified. ## Hardware and software | Component | Observed configuration | |---|---| | GPU | Gigabyte GeForce RTX 4070 Ti Windforce OC, 12 GB; AD104; 60 SMs; compute capability `sm_89` | | GPU PCI ID / subsystem | `10de:2782` / `1458:40e8` | | VBIOS | `95.04.3C.08.E3` from earlier board-specific read-only capture; not independently reread in this Windows run | | Motherboard | **MSI B450 Gaming Pro Carbon Max WiFi**, AM4 / B450 | | GPU PCI location | PCI domain 0, bus 38 (`0x26`), device 0, function 0; Windows `00000000:26:00.0` | | BAR0 | `0xfb000000`, 16 MiB; board-specific value | | Installed system RAM | 32 GB | | Graphics configuration | **One GPU installed** in this test; the RTX 4070 Ti also drove the UEFI/Windows display | | Operating system | Bare-metal Windows x64; precise edition/build **not included in supplied output** | | NVIDIA Windows driver | NVIDIA-SMI **617.42**; KMD **617.42**; CUDA UMD **13.4**; WDDM | | NVIDIA power cap | 285 W (reported by `nvidia-smi`, not a sustained-load measurement) | | ComfyUI environment | Existing Windows installation uses `torch 2.14.1+cu126`; ComfyUI/Krea2 runs used the RTX 4070 Ti | | Matched CUDA benchmark | Exact source `docs/evidence/rtx4090-pr1-stock/gemm_bench.cu` (the source used in Ubuntu issue #77); compiled separately for Windows `sm_89` and linked to cuBLAS; Windows `nvcc` reported CUDA release **12.6**, `V12.6.20`; the linked cuBLAS library build was not independently recorded | | UEFI Secure Boot | Off / SecureBoot check passed in the test image | | Firmware payload inputs | Five exact pinned NVIDIA `610.43.03` assets staged on the USB stick | | USB launch | Removable FAT32 `UEFIPROBE`, launched manually from the motherboard's F11 UEFI boot menu | | Source provenance | Local adaptation of `LightEssence/gpu-unlock-ada` at `fbff6979986260732733630b8c204e27eb846c66`, corresponding to PR #96 head at the time | This is **not** an MSI Z490 or Huananzhi X99 test. Their device paths, BAR0 addresses, GPU topology, loaded UEFI driver bytes, and Windows ESP details **must not** be applied unchanged to this B450 machine. ## Local Windows port and implementation ### 1. Fork and board-specific profile A separate, initially fail-closed working directory, `windows/ad104-gigabyte-b450/`, was derived from the Gigabyte X99 UEFI port. The important changes were: - GPU PCI bus **38 / `0x26`**, not the X99 board's bus. - GPU BAR0 **`0xfb000000`**, not the X99 address. - Exact **1 MiB physical PROM** and **626,176-byte prefix** SHA-256 pins for this card; the code checks both captured image spans. The local script used full-image SHA-256 `3721223371f2e7f2ce565ce1c4aaee43cb0c012ddb18b73753ff46ef4acaae74` and prefix SHA-256 `e3165826d5217fb3b4e758f3e9ad3ae95ffa074e994dc774b8f82cd14a8ac96f`. - Windows Boot Manager pin updated to a **3,086,680-byte** `bootmgfw.efi` with SHA-256 `2d60a2203865122dad22772136b3d905167d9dcf926d602bb5f48b3b6668abec`; EFI partition size in the board profile was **409,600 sectors**. The machine-specific ESP partition GUID was kept locally and is **not reproduced here**. - Hardware transactions deliberately blocked initially by `#error B450_PORT_BLOCKED` in the main B450 `app.c`. **Important provenance:** This B450 adaptation, including its diagnostic scripts, is **local experimental work**, not an upstream release or a claim that PR #96 already supports this motherboard. ### 2. Read-only UEFI graph discovery Earlier read-only captures (`CAP0003`) and multiple USB-launched EFI probes established the live driver relationships before any write-capable image was attempted. The final structural probe reported: ```text GPU ownership roles: PCI_BY_DRIVER=1 PATH_BY_CHILD=1 Child roles: GOP_DRIVER=1 TEXT_DRIVER=1 TEXT_CHILD=1 Root matches=1 child count=41 handles=495 protocols=1090 records(all)=865 active(BY_DRIVER+BY_CHILD)=135 drivers=56 children=79 passive=730 other=0 Contract: A-self=MATCH B-self=MATCH A-vs-B=MATCH Active A=135 B=135 (archived required=135) PASS: two local graph reads matched; NON-ATOMIC. RESULT: READ-ONLY STRUCTURE MATCHED ``` These values describe the **live UEFI snapshot of this particular machine**, not universal constants. The preserved archive contained 496 handles; the live probe enumerated 495, while the key **135 active ownership edges** matched. The 865 OpenProtocolInformation records include 730 passive/non-owning records and should **not** be misread as 865 active consumers. A significant MSI B450-specific detail is that `ConsoleInHandle == ConsoleOutHandle` in this firmware session. The first strict C graph contract incorrectly required those handles to be distinct, causing `A-self=DENY` with diagnostic bit **`0x004`**. Allowing **only** this console-in/console-out alias (while continuing to reject aliases involving the GPU, GOP child, or PCI root) yielded the final `MATCH/MATCH/MATCH` result. The reads are explicitly **non-atomic**. The five required local edges are: PCI I/O `BY_DRIVER` on the GPU, DevicePath `BY_CHILD_CONTROLLER` to the GOP child, GOP `BY_DRIVER`, TextOut `BY_DRIVER`, and TextOut `BY_CHILD_CONTROLLER` to the console. Ownership is tied to discovered handles and protocol relationships rather than hard-coded transient handle addresses. ### 3. Exact loaded UEFI driver code identities DriverBinding interfaces and LoadedImage metadata were checked. Historical handle *indexes* are omitted from executable logic; handles are discovered afresh at boot. The read-only code-fingerprint profiles are: | Stage | Role | Image bytes | DriverBinding version | `Stop` RVA | Code span `(RVA, length)` | Loaded code SHA-256 | |---|---|---:|---:|---:|---|---| | 1 | TextOut | 24,608 | `0x10` | `0x11f0` | `0x2a0`, 19,962 bytes | `4b183861d78918e6770d104dd2e65208e8c769b5e41fc742bb92e97c7fb095f2` | | 2 | GOP | 14,816 | `0x10` | `0x0a3c` | `0x2a0`, 7,280 bytes | `5611b854c94d96dd18e511316d9702e1407895fd52ce1ab6c961891f78d1df95` | | 3 | NVIDIA GOP | 162,016 | `0x7000b` | `0x06ec` | `0x280`, 137,711 bytes | `77632902f0ceb0ba2848200f396ab61eacd7910e9cce7c535f65d6cdbe2b6c32` | The code spans in the archived capture had zero detected code relocations and matching SHA-256. A later **live read-only EFI probe reported executable-code `MATCH` for loaded drivers** (the supplied photograph explicitly shows GOP and NVIDIA GOP, and the final aggregate `RESULT: READ-ONLY STRUCTURE MATCHED`). A pointer to a valid `Stop` method does **not** by itself prove that stopping, restarting, or reconnecting a driver is safe. ### 4. Three-stage console/GOP release The final local B450 UEFI source adapted the **three-stage `GuMsiRelease()` logic** from `windows/ad104-msi/msi_release.c` into the B450 application's `x99_release.c`, with `GuMsi*` function names mapped to the B450 application's existing `GuX99*` entry points. These names are compatibility names inherited from PR #96, not evidence that X99 hardware was used. **Release sequence used by the candidate:** 1. TextOut driver (on the GOP child controller). 2. GOP driver (on the GOP child controller). 3. NVIDIA GOP driver (on the GPU PCI controller). 4. Exclusive PCI I/O ownership, required PCI decode restoration, and cold-state checks. 5. Existing AD104 firmware transaction (FWSEC/payload, selector writes, FLR and cleanup). 6. Close exclusive PCI claim, verify final state, and call `StartImage()` for Windows Boot Manager. The adapted code retained strict driver-code identity pins, the expected UEFI graph-delta logic, PCI command/configuration checks, and stop-on-error behavior. The release source SHA-256 was: ```text 34d6455b6508c8488f1dd74ce2e07c6fe1713f82531138e44e4fec9a7b8642d0 ``` The design **does not claim an automatic, validated GOP rebind/rollback after a partial detach**. A post-mutation failure may deliberately halt with no display until power is removed. That remains a material unresolved safety limitation, even though the fully logged attempt succeeded. ### 5. Build and USB staging The complete application was compiled from **15 C translation units** using Clang targeting `x86_64-pc-windows-msvc` and `lld-link` as a freestanding PE32+ EFI application. Build validation reported EFI subsystem, relocations, and no imports/TLS/CLR. The original B450 `app.c` retained `B450_PORT_BLOCKED`; **only a temporary build copy** excluded that compile-time directive to link the actual write-capable experimental image. The resulting EFI **was not safety-blocked at runtime by that source directive**. ```text PASS: full EFI candidate linked, not deployed PASS: original B450 app.c remains blocked BINARY: .../efi_candidate_build/AD104-B450-STAGED-EXPERIMENTAL.EFI SIZE: 99840 bytes SHA256: 08ae2947758cc7a76b1c873da405451fa234c036351a7bcd7f0402c6c150cdff MODE: GPU-WRITE-CAPABLE EXPERIMENTAL, NOT HARDWARE QUALIFIED ``` The five firmware inputs present in the local `~/.cache/gpu-unlock/assets` were checked against exact expected lengths/hashes and copied to the removable UEFI volume: | NVIDIA 610.43.03 asset | Expected bytes | SHA-256 | |---|---:|---| | `booter_load_ad102.bin` | 57,672 | `6ee05b20e1dc244c08c052f36ef28469b8d09f4955d1fe33e48a179e11a7fd49` | | `v67-ad102-610.43.03-four-plm.bin` | 64,000 | `44c36b2d6b3424e53e18f3e55db85c833655de071ce66ce42749588a4a7dc8cb` | | `gsp_ga10x.bin` | 84,277,400 | `572373620a37418f24dc16b5031c39338778c3257e48e8408de9a57291b24f3a` | | `gsp_boot_ad102.bin` | 36,864 | `45d6335a8185d6ff13e8d1484cea73f68d3d13aa1c19dc080ed1c3482dd5bac0` | | `gsp_boot_desc_ad102.bin` | 84 | `83f8f3f1f5f9496e0ea8fc7103c2beb64d0b6de2f5ffe725f13514de5a95fa42` | The staging script reported: ```text PASS: experimental EFI SHA256: 08ae2947758cc7a76b1c873da405451fa234c036351a7bcd7f0402c6c150cdff PASS: all five pinned firmware assets: /home/bsmost/.cache/gpu-unlock/assets PASS: USB /dev/sda1 (UEFIPROBE, vfat) PASS: existing original USB boot backup preserved PASS: all five firmware assets staged on USB PASS: experimental EFI installed on USB only NO Windows/Ubuntu ESP or NVRAM changes performed ``` The USB had an original `EFI/BOOT/BOOTX64.BACKUP.EFI`. No original Windows or Ubuntu ESP, boot-variable, NVIDIA Windows driver, or VBIOS modification was performed as part of USB staging. The experimental EFI itself did write GPU/PCI state during the actual unlock. **Execution:** Cold shutdown and AC-power removal, then a manual one-shot boot from the removable UEFI drive using the motherboard's F11 menu. The application offers an explicit `[U]` unlock action, `[S]/ESC` stock-Windows option, and a 30-second stock-Windows timeout. The operator chose **`U`**; this was not an automatic unlock at startup. The machine successfully entered Windows after the experimental operation. ## Physical boot evidence: `AD104-UNLOCK/RUN0001.TXT` The complete original log resides on the USB; the following verbatim lines are selected from the user's `Get-Content ... -Tail 60` output. Runtime DMA addresses and driver handle pointers are deliberately omitted from this public report, since they are process/boot-specific and not part of the required device profile. ### FWSEC and payload ```text FWSEC fuse: raw=0x1 version=1 Bus Master enable intent: command=0x3 attributes=0x300 Bus Master enabled: command=0x7 attributes=0x700 matched=1 Falcon reset begin: base=0x110000 Falcon pre-reset timeout tolerated per HW bug 3419321 Falcon reset done: base=0x110000 hwcfg=0x67b7 chip=0x194000a1 FWSEC result: scratch=0 expected_hi16=0 Falcon reset begin: base=0x840000 Falcon reset done: base=0x840000 hwcfg=0x67b7 chip=0x194000a1 AD102 permission after-payload: WPR_CFG[0x1fa7cc]=0xfffff0ff before=0x4cb8f expected=0xfffff0ff required=1 valid=1 pci=0x278210de chip=0x194000a1 AD102 permission after-payload: WPR[0x1fa7c4]=0xffffffff before=0x4cb8f expected=0xffffffff required=1 valid=1 pci=0x278210de chip=0x194000a1 AD102 permission after-payload: FEAT[0x823804]=0xffffffff before=0xffffff8f expected=0xffffffff required=1 valid=1 pci=0x278210de chip=0x194000a1 AD102 after-payload: readout1=0x410080 fields=0 0 2 0 0 2 0 2 0 valid=1 full=0 AD102 payload result: boot=0 halt=0 marker=0x67b00001 expected=0x67b00001 marker_ok=1 required_permissions=1 cpuctl=0x10 halted=1 debug=0xda550000 ss0=0x5031035 ss1=0x4 ``` The internal log calls its firmware stages `AD102`; this identifies the reused firmware/payload path, **not** the physical chip (which is AD104 / `0x194000a1`). The tolerated Falcon pre-reset polling timeout should be reported as a log observation, not silently erased or treated as a fatal failure. ### Speed selector changes and PCIe FLR ```text selector read: SS0=0x5031035 expected_unlock=0x88888888 selector write: SS0=0x88888888 selector result: SS0=0x88888888 expected=0x88888888 matched=1 selector read: SS1=0x4 expected_unlock=0x8 selector write: SS1=0x8 selector result: SS1=0x8 expected=0x8 matched=1 AD102 selectors-applied: readout1=0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1 pre-FLR selectors: ss0=0x88888888 expected=0x88888888 ss1=0x8 expected=0x8 AD102 pre-FLR: readout1=0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1 PCIe FLR begin: BME=0 DMA retained, chip=0x194000a1 PCIe FLR returned: result=0 post-FLR BAR ready: chip=0x194000a1 post-FLR GFW result: error=0 pci=0x278210de plm=0x8b8f boot=0x3ff cpuctl=0x10 budget_us=2050000 post-FLR SEC2 reset released, GSP halted, BME=0 pending=0 WPR2=1ffffe00:00000000 SS0=88888888 SS1=00000008 AD102 post-FLR: readout1=0 fields=0 0 0 0 0 0 0 0 0 valid=1 full=1 ``` **Nuance:** Certain permission-register values are shown in the raw log as reverted to their earlier values after FLR; the separate selector readback remained `full=1`. This report claims preservation of the speed selectors across the single reset—not permanent persistence of every FWSEC permission register. ### Cleanup and Windows handoff ```text driver probe resources: phase=handoff empty=1 restore streaming mask: actual=0xffffffffffff expected=0xffffffffffff restore coherent mask: actual=0xfffffffff expected=0xfffffffff restore PCI command: actual=0x3 original=0x3 mask=0x6 Transaction result=0 safe=1 retained=0 started=1 quiesced=1 flrs=1 DMA_live=0 PCI status drift tolerated: offset=0x80 captured=0x92930 now=0x2930 bits=0x90000 flrs=1 TRANSACTION OK: hardware readbacks passed, DMA released; final pre-Windows check follows unlogged; benchmark still required ``` The final `TRANSACTION OK` line **precedes** a last unlogged pre-Windows check and `StartImage()`: it does not alone prove the OS booted. The **separate observation that the operator reached Windows and `nvidia-smi`/PyTorch worked** establishes successful handoff in this specific run. The log also records a tolerated PCI status drift after FLR; it is not evidence of an unchanged PCI configuration byte-for-byte. ## Windows driver and independent compute observations The operator captured the following `nvidia-smi` result after Windows boot: ```text NVIDIA-SMI 617.42 KMD Version: 617.42 CUDA UMD Version: 13.4 GPU Name Driver-Model | Bus-Id Disp.A 0 NVIDIA GeForce RTX 4070 Ti WDDM | 00000000:26:00.0 On Temp 42 C; P0; 33 W / 285 W; 1015 MiB / 12282 MiB; GPU-Util 0% ``` This idle snapshot confirms successful normal-driver initialization and an active desktop, **not** sustained-load power or thermals. No Code 43 problem was observed or reported, but the exact Windows Device Manager diagnostic state was not separately captured. ### Native Windows CUDA/cuBLAS benchmark after unlock (October 28, 2026) **Source:** [`docs/evidence/rtx4090-pr1-stock/gemm_bench.cu`](https://github.com/JustAResearcher/gpu-unlock-ada/blob/main/docs/evidence/rtx4090-pr1-stock/gemm_bench.cu), the identical source used in the successful Ubuntu test documented in issue #77. The Windows and Ubuntu executables were compiled separately, so the source and workload are matched while the complete toolchain and operating-system environments are not identical. **Method:** `cublasGemmEx`, `CUBLAS_GEMM_DEFAULT_TENSOR_OP`; FP16 or BF16 input matrices with FP32 accumulation, square matrix sizes 1024³, 4096³, and 8192³; CUDA target `sm_89`; 10 warmups, 20 timed GEMMs per repetition, five repetitions. Throughput is based on CUDA-event elapsed time; the table reports the median and best of five repetition rates. The benchmark validates every output cell against its deliberately simple, deterministic expected result. | Mode | GEMM size | Windows unlocked median TFLOPS | Best TFLOPS | Output cells checked | Failures | |---|---:|---:|---:|---:|---:| | FP16/FP32 | 1024³ | **70.730256** | 70.737706 | 1,048,576 | **0** | | BF16/FP32 | 1024³ | **70.745165** | 70.849727 | 1,048,576 | **0** | | FP16/FP32 | 4096³ | **131.110412** | 140.801523 | 16,777,216 | **0** | | BF16/FP32 | 4096³ | **142.345661** | 145.769998 | 16,777,216 | **0** | | FP16/FP32 | 8192³ | **144.084844** | 145.238609 | 67,108,864 | **0** | | BF16/FP32 | 8192³ | **144.489097** | 145.659264 | 67,108,864 | **0** | In total, the six benchmark configurations checked **169,869,312 output elements**, reporting no mismatches for these exact-reference patterns. In a separate monitoring capture during this performance evaluation, the GPU's SM clock was predominantly **2595–2640 MHz** under active load, with momentary excursions outside that range; observed board power reached approximately **209 W**, below the **285 W** board limit. These telemetry samples are a partial observation rather than synchronized per-GEMM averages. The final unlocked Windows dataset is presented on its own merits. A **controlled stock/unlocked Windows ratio under demonstrably identical operating conditions is not claimed** from these measurements. The prior Ubuntu report includes such an A/B comparison and an independent rate readback. #### Windows vs Ubuntu: identical cuBLAS source, different OS/toolchain The **unlocked** GPU throughput was compared using the same `gemm_bench.cu` source and the same FP16/BF16 workloads with FP32 accumulation on the same Gigabyte RTX 4070 Ti. Both operating systems completed the benchmark's numerical checks (`failures=0`). | Data type | GEMM size | Ubuntu unlocked (TFLOPS) | Windows unlocked (TFLOPS) | Windows relative to Ubuntu | |---|---:|---:|---:|---:| | FP16/FP32 | 1024³ | 75.302 | **70.730** | −6.1% | | BF16/FP32 | 1024³ | 75.573 | **70.745** | −6.4% | | FP16/FP32 | 4096³ | 130.626 | **131.110** | +0.4% | | BF16/FP32 | 4096³ | 147.096 | **142.346** | −3.2% | | FP16/FP32 | 8192³ | 146.122 | **144.085** | −1.4% | | BF16/FP32 | 8192³ | 146.070 | **144.489** | −1.1% | At **8192³**, Windows reached **98.6%** of the Ubuntu FP16 throughput and **98.9%** of the Ubuntu BF16 throughput. These results establish **near-parity in large-matrix CUDA/cuBLAS throughput after unlock** for this particular GPU. Smaller matrices exhibit workload-dependent differences. This comparison uses matching benchmark source and mathematical workloads, but not identical compiled binaries or an isolated measurement of operating-system overhead: Ubuntu used CUDA Toolkit **13.4.3**, while Windows `nvcc --version` reported **12.6.20**; the NVIDIA drivers also differed. #### Submitted raw Windows unlocked timing samples (milliseconds per GEMM) Each five-element array records per-repetition CUDA-event milliseconds per GEMM (20 GEMMs per repetition), directly from the measured unlocked Windows run. Every configuration returned `failures=0`. ```text FP16/FP32 n=1024 times_ms=[0.03041280, 0.03148800, 0.03036160, 0.03035840, 0.03036160] BF16/FP32 n=1024 times_ms=[0.03035520, 0.03031360, 0.03041280, 0.03041280, 0.03031040] FP16/FP32 n=4096 times_ms=[0.99646082, 0.97611837, 1.04826880, 1.06014719, 1.09035521] BF16/FP32 n=4096 times_ms=[0.94284801, 0.94617596, 0.96552963, 1.06199036, 1.09015036] FP16/FP32 n=8192 times_ms=[7.57038116, 7.63611221, 7.61240463, 7.63100128, 7.67662048] BF16/FP32 n=8192 times_ms=[7.60965118, 7.54851837, 7.55758057, 7.63279343, 7.65455704] ``` **Scope of validation:** `failures=0` supports correctness for the benchmark's deliberately simple exact-reference input patterns; it is **not** a broad randomized numerical-validation campaign for Windows. The earlier Ubuntu issue #77 included additional varied-input checks. The Windows benchmark does **not** replace an independent NVIDIA RM issue-rate readback. ### ComfyUI / Krea2 / DynamicVRAM: final cross-OS performance observation The operator compared image generation on the **same Gigabyte RTX 4070 Ti** using unlocked Ubuntu and unlocked Windows, including text-to-image and reference-guided Krea2 workflows with DynamicVRAM. In the **latest follow-up comparison**, the operator reported that **Windows and Ubuntu differed by only approximately 0.5 seconds per sampling step**. For these practical workloads, this is **near-parity**, and the operator no longer considers the remaining difference material to the choice of operating system. | Metric | Latest operator-reported result | |---|---| | Compared environments | Unlocked Ubuntu and unlocked Windows on the same RTX 4070 Ti | | Workload | ComfyUI / Krea2 image generation; prior comparisons included text-only and reference-guided scenarios | | Observed cross-OS gap | **Approximately 0.5 s per sampling step** | | Practical interpretation | **No meaningful application-level performance disadvantage observed for Windows in the latest comparison** | | At a typical 12 sampling steps | **Approximately 6 seconds difference in sampling time**, if the observed per-step gap remains consistent | The 12-step figure is an arithmetic extrapolation, **not** a separately measured end-to-end duration. It excludes reference preprocessing, model loading, VAE decoding, and image saving. The latest comparison was reported by the operator without a separate per-scenario timing table, confidence interval, repeated-run variance, or side-by-side software manifest. It should therefore be described as **practical performance parity in the observed workflow**, not mathematical or statistical proof of zero OS overhead. Taken together with the **98.6–98.9% of Ubuntu cuBLAS throughput at 8192³** shown above, the latest ComfyUI observation supports the practical conclusion that **the experimental Windows UEFI path does not impose a material performance penalty compared with Ubuntu on this specific system and workload**. ## Relation to prior Ubuntu result The *same card* previously showed an independently confirmed native Ubuntu unlock in [issue #77](https://github.com/JustAResearcher/gpu-unlock-ada/issues/77), using `gpu-unlock-ada 1.1.1` and NVIDIA open kernel driver `615.78.08`. That Linux test included an NVIDIA RM speed-rate readback (`fmla32`, `imla2`, `imla4`: `1` stock → `0` unlocked), matched stock/unlocked cuBLAS GEMM tests, zero reported numerical mismatches for the exercised inputs, and a subsequent cold stock boot that restored the half-rate state. This **Windows** result adds B450-specific UEFI driver/console ownership mapping, exact loaded-driver fingerprints, staged GOP release, firmware transaction and FLR, then a successful **Windows WDDM-driver boot** and independently measured **unlocked native Windows CUDA/cuBLAS performance at near-Ubuntu throughput**. The Linux report separately provides matched stock/unlocked benchmarks, an NVIDIA RM-rate readback, and broader varied-input validation not performed in this Windows follow-up. ## Known limitations, confidence, and maintenance implications 1. **One fully captured UEFI transaction log.** No second complete UEFI log/boot trace, repeated cold-boot reliability series, warm reboot test, sustained-load thermal validation, or multi-day stability observation was provided. 2. **Windows unlocked CUDA/cuBLAS benchmark verified.** Six final unlocked Windows GEMM configurations completed with **`failures=0`**, reaching **144.084844 TFLOPS FP16** and **144.489097 TFLOPS BF16** at 8192³. A separate rigorously frequency-matched Windows stock/unlocked A/B result is **not asserted** in this report; Ubuntu issue #77 supplies the independent A/B evidence. An NVIDIA RM issue-rate getter has **not** been recorded under Windows. 3. **Board-specific.** The MSI B450 PCI path, GPU bus, BAR0, USB-host path, firmware driver bytes/versions, PROM pin, Windows Boot Manager fingerprint, and UEFI graph are not portable without requalification. A matching GPU/subsystem ID is not enough. 4. **Single-GPU display dependency.** The only GPU drove UEFI and Windows graphics. Any failed staged disconnect can leave the screen black. The adaptation has **no established automatic reconnect/rollback** after a partial driver detach; it may halt until a full power cycle. Firmware/OS/GPU failure consequences can exceed an ordinary reboot. 5. **Source vs binary gate.** `B450_PORT_BLOCKED` remains in the primary source; the physically run EFI was built from a temporary `app_candidate.c` excluding that directive, and was capable of real GPU writes. A source-level `#error` is not protection against executing this EFI binary. 6. **No permanent firmware alteration was intended.** No VBIOS flash, NVIDIA driver patch, or Windows ESP/NVRAM modification was performed in the reported staging procedure. The transaction modified volatile GPU/PCI state. Persistence across a cold power cycle **has not been independently tested under Windows**; the earlier Ubuntu report did demonstrate stock-state restoration for its own cold A/B sequence. 7. **Transient handles and addresses.** Never use archived UEFI handles, DMA source addresses, or the local Windows ESP GUID as global constants or share full raw private captures without review. 8. **Unpublished B450 implementation.** This report documents a local patch based on the PR #96 fork and MSI implementation, not an upstream-supported reproducible package. An upstream PR would need to include reviewable source changes, exact device-specific pin definitions, firmware-asset acquisition instructions, and a safer recovery strategy. **No proprietary firmware binaries are attached.** 9. **Hardware-transaction readbacks are not identical to an RM getter.** The post-FLR selector `full=1` is significant but does not substitute for a separate SM-rate readback by NVIDIA's running driver. 10. **Application-level parity is an operator-reported observation.** In the latest ComfyUI/Krea2 comparison the remaining Windows–Ubuntu difference was approximately **0.5 s per sampling step**. A per-scenario final-run timing log, repeated-run variance, and exact cross-OS software manifest were not archived; practical near-parity should not be presented as statistically proven zero overhead. ## Suggested upstream follow-up This is a concrete **board-specific Windows success report**, not a claim of general AD104 Windows support. It may be useful to upstream for: - Tracking the MSI B450 shared `ConsoleInHandle == ConsoleOutHandle` behavior and exact five-edge GOP/console ownership structure. - Reviewing the three-stage release adaptation against the existing MSI Z490 logic and Gigabyte X99 PR. - Considering a reviewed, machine-profiled B450 port with carefully scoped driver-image hashes, not hard-coded UEFI handles. - Improving fault recovery for single-display-GPU UEFI detachment. - Obtaining a repeatable **Windows stock/unlocked CUDA/cuBLAS A/B comparison under matched frequency/power conditions** with a second archived UEFI boot trace, collecting an independent Windows NVIDIA RM-rate readback if possible, and collecting repeatable per-workflow ComfyUI timings to validate the **latest approximately 0.5 s/step Windows–Ubuntu gap** without assigning an unverified cause to the small residual difference. **Conclusion:** On this specific MSI B450 + Gigabyte RTX 4070 Ti configuration, the fully logged Windows UEFI attempt completed the unlock transaction, preserved full-rate selector state after PCIe FLR, and handed off successfully to the unmodified NVIDIA WDDM driver. A native **unlocked Windows CUDA/cuBLAS** run measured **144.084844 TFLOPS FP16/FP32** and **144.489097 TFLOPS BF16/FP32** on 8192³ GEMM, with no output mismatches in any of the six recorded benchmark configurations. The corresponding **Ubuntu unlocked** results were **146.122117** and **146.070428 TFLOPS**, placing Windows within **1.4% / 1.1%** of Ubuntu on these large-matrix workloads. In the latest ComfyUI/Krea2 comparison, the operator observed an approximately **0.5-second-per-step** cross-OS difference, regarded as negligible for practical use. No independent Windows NVIDIA RM speed-rate readback, frequency-controlled Windows stock/unlocked benchmark, second full UEFI transaction log, or long-term reliability validation is claimed. This is a **board-specific experimental success**, not evidence of general Windows AD104 compatibility. After unlocking, my RTX 4070 Ti achieves about 87-88% of the performance of the stock RTX 4090 in large FP16/BF16 cuBLAS calculations with FP32 accumulation, falling only about 12-13%. It sounds like magic.
Sign in to join this conversation.
No labels
pull-request
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
JustAResearcher/gpu-unlock-ada#64
No description provided.