[GH-ISSUE #54] AD103 (RTX 4080 SUPER 32GB, 10de:2702): UEFI/DXE unlock dies at FWSEC 0xbadf5620 while the same sequence succeeds in Linux #34

Open
opened 2026-10-31 07:00:51 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @yakold on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/issues/54

Summary

I ported the upstream Linux gpu-unlock (Zagitta, v1.1.x, payload built from driver 615.71.10 per Zagitta/gpu-unlock#168) into a UEFI DXE driver, so the unlock would happen in firmware and then hand off to whatever OS boots next — the same idea this project uses for GA10x.

On AD103 (RTX 4080 SUPER, 10de:2702, modified 32 GB) everything up to and including the Falcon start matches the Linux module beat for beat, but the FWSEC step inside DXE always fails: the engine dies with 0xbadf5620 and WPR2 never gets written. The same module, on the same card, in the same power cycle, succeeds under Linux.

I am not continuing this line (I have no Windows machine with a supported card, so I cannot validate a Windows-side driver either). Posting the negative result so nobody has to re-run the same 11 experiments.

Hardware

  • 2× RTX 4080 SUPER 32 GB (modified), 10de:2702, AD103, PCIe Gen4 x8 each (0000:02:00.0, 0000:03:00.0)
  • ProArt Z890-CREATOR WIFI, Core Ultra 9 285T, 4×48 GB UDIMM, 2000 W PSU
  • Secure Boot off, firmware boots Ubuntu from a separate NVMe

What works in DXE

The port keeps upstream code unchanged and only adds a shim (readl/writel, dma_alloc_coherent, request_firmware, pcie_flr, pci_save_state, ktime, …) plus stubs for 13 linux/*.h headers. Everything below reproduces identically in both environments:

BAR0=0x8e000000  BAR1/2→0xa800000000  BAR3/4→0xac00000000  BAR5=io 0xa000
entry:  plm=0xffffff8f ss0=0x0 ss1=0x0 wpr2_hi=0x0
Falcon reset done: hwcfg=0x67b7 chip=0x193000a1
Falcon DMA: size 0xf700 cmd 0x614 / size 0xd80 cmd 0x600
Falcon start: cpuctl=0x10 code_va=0x0 sig_dmem=0xb24 engine_mask=0x400 ucode=9
prestart: IMEM readback imem=0xdead5ec1   (identical in Linux at the same point)

Where it dies

FWSEC WPR2: low=0x1ffffe00 high=0x0  expected_page=0x7ff600 end=0x7ff700000
engine after: cpuctl[0x110100]=0x10  code_va[0x110104]=0xbadf5620
              dma_sts[0x110118]=0xbadf5620  wpr2_lo[0x1fa824]=0x1ffffe00
unlock → -5 (not unlocked)   // upstream: if (!(wpr_hi >> 4) || …) ret = -EIO

Under Linux, immediately after, in the same power cycle:

FWSEC WPR2: low=0x7ff6000 high=0x7ff6e00
gpu_unlock: unlocked

wpr_hi = 0x0 vs 0x7ff6e00 is the whole failure. 0xbadf in code_va/dma_sts is NVIDIA's bad-state marker — the falcon microcode started and then crashed.

Already excluded (please don't spend time re-testing these)

# Hypothesis How it was tested Result
1 BARs unassigned read BAR0–BAR5 incl. 64-bit upper halves bit-identical to Linux
2 PCI command differs force command=0x3 before the transaction no change
3 reads too fast after reset 100 µs delay before every readl no change
4 DMA not drained Stall(50 ms) before the start bit no change
5 firmware driver holding the card removed DisconnectController no change
6 cache incoherence wbinvd instead of dma_wmb no change
7 microcode not in IMEM PIO readback via IMEMC/IMEMD 0xdead5ec1 in both; Linux succeeds reading the same value, so the check is a red herring
8 PROM/VBIOS content differs 1 MiB read three ways (8/32/64-bit) + FNV, vs Linux /dev/mem range 0x60000 is byte-identical (7ec133c572920bb6); FWSEC image region also identical
9 card state differs 260 registers dumped at the same point from both DXE and the Linux module, same power cycle 0 / 260 differ
10 VT-d blocking DMA parsed ACPI DMAR, read the IOMMU GCMD=0x00000000, RTADDR=0x00000000 — translation never enabled. Two DRHD units at 0xfc800000 / 0xfc810000
11 firmware never POSTed the card put the monitor on that card and re-ran no change

So: same inputs, same register state, same commands — different outcome.

One more thing that may matter for this project

A failed run must leave the card in a recoverable state. Without a cleanup step the card stays in "firmware started but never finished", and the next Linux boot fails chain-style (wait_post_flr_gfw -110, module holds BAR0, request_mem_region failed for 16M @ 0x8e000000, card disappears from the system, PSU power-cycle required). Doing Falcon halt (cpuctl |= 1<<4) + PCIe FLR at the end of a failed attempt made 5 consecutive failures recoverable without a power cycle. If the UEFI path can fail on a user's machine, that finaliser is worth having.

Open questions I could not answer without NVIDIA register documentation

  • What state must FWSEC see in order to write WPR2? DMATRFCMD bit semantics and the Falcon HS-mode preconditions are not documented publicly.
  • Is the AD10x FWSEC stricter about who runs the transaction (firmware vs kernel), or about the security-fuse state left by firmware POST? Both cards unlock fine from Linux after the DXE attempt has run and failed.

What I can share

If useful, I can post the DXE shim layer, the mode-file driven staged harness (load → prom → dma → full, with logging flushed to the ESP on every step so a hang still leaves a trace), and the 260-register dump harness that produces the diff above. The DXE build is ~74 KB, freestanding clang/lld, no EDK2 tree required.

Originally created by @yakold on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK/issues/54 ## Summary I ported the upstream Linux `gpu-unlock` (Zagitta, v1.1.x, payload built from driver 615.71.10 per Zagitta/gpu-unlock#168) into a UEFI **DXE driver**, so the unlock would happen in firmware and then hand off to whatever OS boots next — the same idea this project uses for GA10x. On **AD103 (RTX 4080 SUPER, `10de:2702`, modified 32 GB)** everything up to and including the Falcon start matches the Linux module beat for beat, but the **FWSEC step inside DXE always fails**: the engine dies with `0xbadf5620` and `WPR2` never gets written. The **same module, on the same card, in the same power cycle, succeeds under Linux**. I am not continuing this line (I have no Windows machine with a supported card, so I cannot validate a Windows-side driver either). Posting the negative result so nobody has to re-run the same 11 experiments. ## Hardware - 2× RTX 4080 SUPER 32 GB (modified), `10de:2702`, AD103, PCIe Gen4 x8 each (`0000:02:00.0`, `0000:03:00.0`) - ProArt Z890-CREATOR WIFI, Core Ultra 9 285T, 4×48 GB UDIMM, 2000 W PSU - Secure Boot off, firmware boots Ubuntu from a separate NVMe ## What works in DXE The port keeps upstream code **unchanged** and only adds a shim (`readl`/`writel`, `dma_alloc_coherent`, `request_firmware`, `pcie_flr`, `pci_save_state`, `ktime`, …) plus stubs for 13 `linux/*.h` headers. Everything below reproduces identically in both environments: ``` BAR0=0x8e000000 BAR1/2→0xa800000000 BAR3/4→0xac00000000 BAR5=io 0xa000 entry: plm=0xffffff8f ss0=0x0 ss1=0x0 wpr2_hi=0x0 Falcon reset done: hwcfg=0x67b7 chip=0x193000a1 Falcon DMA: size 0xf700 cmd 0x614 / size 0xd80 cmd 0x600 Falcon start: cpuctl=0x10 code_va=0x0 sig_dmem=0xb24 engine_mask=0x400 ucode=9 prestart: IMEM readback imem=0xdead5ec1 (identical in Linux at the same point) ``` ## Where it dies ``` FWSEC WPR2: low=0x1ffffe00 high=0x0 expected_page=0x7ff600 end=0x7ff700000 engine after: cpuctl[0x110100]=0x10 code_va[0x110104]=0xbadf5620 dma_sts[0x110118]=0xbadf5620 wpr2_lo[0x1fa824]=0x1ffffe00 unlock → -5 (not unlocked) // upstream: if (!(wpr_hi >> 4) || …) ret = -EIO ``` Under Linux, immediately after, in the **same power cycle**: ``` FWSEC WPR2: low=0x7ff6000 high=0x7ff6e00 gpu_unlock: unlocked ``` `wpr_hi = 0x0` vs `0x7ff6e00` is the whole failure. `0xbadf` in `code_va`/`dma_sts` is NVIDIA's bad-state marker — the falcon microcode started and then crashed. ## Already excluded (please don't spend time re-testing these) | # | Hypothesis | How it was tested | Result | |---|---|---|---| | 1 | BARs unassigned | read BAR0–BAR5 incl. 64-bit upper halves | bit-identical to Linux | | 2 | PCI `command` differs | force `command=0x3` before the transaction | no change | | 3 | reads too fast after reset | 100 µs delay before every `readl` | no change | | 4 | DMA not drained | `Stall(50 ms)` before the start bit | no change | | 5 | firmware driver holding the card | removed `DisconnectController` | no change | | 6 | cache incoherence | `wbinvd` instead of `dma_wmb` | no change | | 7 | microcode not in IMEM | PIO readback via `IMEMC/IMEMD` | `0xdead5ec1` in **both**; Linux succeeds reading the same value, so the check is a red herring | | 8 | PROM/VBIOS content differs | 1 MiB read three ways (8/32/64-bit) + FNV, vs Linux `/dev/mem` | range `0x60000` is byte-identical (`7ec133c572920bb6`); FWSEC image region also identical | | 9 | card state differs | **260 registers** dumped at the same point from both DXE and the Linux module, same power cycle | 0 / 260 differ | | 10 | VT-d blocking DMA | parsed ACPI DMAR, read the IOMMU | `GCMD=0x00000000`, `RTADDR=0x00000000` — translation never enabled. Two DRHD units at `0xfc800000` / `0xfc810000` | | 11 | firmware never POSTed the card | put the monitor on that card and re-ran | no change | So: same inputs, same register state, same commands — different outcome. ## One more thing that may matter for this project A failed run must leave the card in a recoverable state. Without a cleanup step the card stays in "firmware started but never finished", and the next Linux boot fails chain-style (`wait_post_flr_gfw -110`, module holds BAR0, `request_mem_region failed for 16M @ 0x8e000000`, card disappears from the system, PSU power-cycle required). Doing **Falcon halt (`cpuctl |= 1<<4`) + PCIe FLR** at the end of a failed attempt made 5 consecutive failures recoverable without a power cycle. If the UEFI path can fail on a user's machine, that finaliser is worth having. ## Open questions I could not answer without NVIDIA register documentation - What state must FWSEC see in order to write `WPR2`? `DMATRFCMD` bit semantics and the Falcon HS-mode preconditions are not documented publicly. - Is the AD10x FWSEC stricter about *who* runs the transaction (firmware vs kernel), or about the security-fuse state left by firmware POST? Both cards unlock fine from Linux *after* the DXE attempt has run and failed. ## What I can share If useful, I can post the DXE shim layer, the mode-file driven staged harness (load → prom → dma → full, with logging flushed to the ESP on every step so a hang still leaves a trace), and the 260-register dump harness that produces the diff above. The DXE build is ~74 KB, freestanding clang/lld, no EDK2 tree required.
Author
Owner

@yakold commented on GitHub (Oct 26, 2026):

Follow-up after reading this repo's implementation

I went through internal-boot/, docs/HEADLESS.en.md, port.c and checks.c to see whether your verified path does anything structurally different from what I built. It does not — same vendored unlock_610.c, same 13 compat/linux/*.h stubs, same clang/lld-link EFI app. So the difference is not in the code, it is in the preconditions your verified case satisfies.

Three things stand out:

  1. Dedicated 1 GiB ESP that wins the firmware boot order (rather than a one-shot BootNext into a menu entry).
  2. The firmware's driver binding on the target GPU is released before the transaction. docs/HEADLESS.en.md records the capture as "one RTX physical GOP before release and none afterward" — i.e. the card runs with no firmware driver attached when the transaction starts.
  3. No reset between the transaction and Windows (chainload bootmgfw.efi), because the unlocked state does not survive a reset.

Correction to my first comment

I wrote that the monitor was attached to the target card in every DXE run. That was wrong, and I am retracting it. The display was on the motherboard iGPU at the start; it was only moved onto a 4080S for one later experiment. The failure signature was identical in both configurations — FWSEC WPR2: low=0x1ffffe00 high=0x0 and code_va/dma_sts = 0xbadf5620 either way.

So console ownership is not the deciding factor. Please disregard that part of the previous comment.

What is still genuinely untested

Not where the console is, but your actual step: releasing the firmware GOP binding on the target GPU and verifying the handle is gone before the transaction runs. UEFI normally attaches a GOP driver to discrete GPUs even when the console lives on the iGPU, so "display on the iGPU" does not by itself mean "no firmware driver bound to this card".

I did try DisconnectController early on, backed it out after it appeared to disturb device state, and — importantly — never had a capture equivalent to confirm the GOP was actually removed before running the transaction. So the "release and verify" step is untested on my side; it should not have been listed as merely "excluded".

Related: my hypothesis #9 (260 registers dumped at the same point from DXE and from the Linux module, 0/260 differ) does not contradict this. Both dumps were taken with the firmware driver bound, so they could only ever agree. It rules out register-state differences under that binding, nothing else.

Hypothesis worth testing next by someone with an AD10x card

  1. Release the firmware binding on the target GPU and confirm the GOP is gone by walking the handles, not by trusting the return code.
  2. Then run the transaction, with no display on the target and no reset in between.
  3. Verify wpr2_hi != 0 before leaving, and keep the halt + PCIe FLR finaliser for the failure path.

Either that fixes 0xbadf5620 on Ada, or it rules the firmware-binding angle out for good.

I cannot run this myself: my only Windows machine has a Blackwell card that is not in supported_ids[], so the Windows side is unverifiable here either way.

<!-- gh-comment-id:6428062333 --> @yakold commented on GitHub (Oct 26, 2026): ## Follow-up after reading this repo's implementation I went through `internal-boot/`, `docs/HEADLESS.en.md`, `port.c` and `checks.c` to see whether your verified path does anything structurally different from what I built. It does not — same vendored `unlock_610.c`, same 13 `compat/linux/*.h` stubs, same clang/lld-link EFI app. So the difference is not in the code, it is in the **preconditions** your verified case satisfies. Three things stand out: 1. **Dedicated 1 GiB ESP that wins the firmware boot order** (rather than a one-shot `BootNext` into a menu entry). 2. **The firmware's driver binding on the target GPU is released before the transaction.** `docs/HEADLESS.en.md` records the capture as *"one RTX physical GOP before release and none afterward"* — i.e. the card runs with no firmware driver attached when the transaction starts. 3. **No reset between the transaction and Windows** (chainload `bootmgfw.efi`), because the unlocked state does not survive a reset. ## Correction to my first comment I wrote that the monitor was attached to the target card in every DXE run. **That was wrong, and I am retracting it.** The display was on the **motherboard iGPU** at the start; it was only moved onto a 4080S for one later experiment. The failure signature was identical in both configurations — `FWSEC WPR2: low=0x1ffffe00 high=0x0` and `code_va/dma_sts = 0xbadf5620` either way. So *console ownership* is **not** the deciding factor. Please disregard that part of the previous comment. ## What is still genuinely untested Not where the console is, but your actual step: **releasing the firmware GOP binding on the target GPU and verifying the handle is gone** before the transaction runs. UEFI normally attaches a GOP driver to discrete GPUs even when the console lives on the iGPU, so "display on the iGPU" does not by itself mean "no firmware driver bound to this card". I did try `DisconnectController` early on, backed it out after it appeared to disturb device state, and — importantly — **never had a capture equivalent to confirm the GOP was actually removed** before running the transaction. So the "release and verify" step is untested on my side; it should not have been listed as merely "excluded". Related: my hypothesis #9 (260 registers dumped at the same point from DXE and from the Linux module, 0/260 differ) does not contradict this. Both dumps were taken **with the firmware driver bound**, so they could only ever agree. It rules out register-state differences under that binding, nothing else. ## Hypothesis worth testing next by someone with an AD10x card 1. Release the firmware binding on the target GPU and **confirm the GOP is gone** by walking the handles, not by trusting the return code. 2. Then run the transaction, with no display on the target and no reset in between. 3. Verify `wpr2_hi != 0` before leaving, and keep the halt + PCIe FLR finaliser for the failure path. Either that fixes `0xbadf5620` on Ada, or it rules the firmware-binding angle out for good. I cannot run this myself: my only Windows machine has a Blackwell card that is not in `supported_ids[]`, so the Windows side is unverifiable here either way.
Author
Owner

@DeclanFrampton commented on GitHub (Oct 27, 2026):

Thanks for posting this, especially the follow-up correction about GOP release. This is relevant to the AD104 / MSI RTX 4070 Ti work in #44, although it is a different board and GPU from your modified AD103 cards.

Our latest completed run removed the text, GOP-consumer and EDID relationships in sequence, with fresh graph/state checks after each callback: 8 → 6 → 5 → 4 active relationships. Keyboard checks passed and Windows booted afterward. Importantly, that did not remove the GOP-producing PCI owner: command remained 0007 (BME enabled), attributes 0x718, and all eight full PCI configuration snapshots were identical. So we have not yet tested your released-GOP hypothesis or reproduced the FWSEC failure.

The next test is built and staged, but has no physical result yet: directly invoke the pinned owner's Stop(binding, gpu, 1, &child), then verify the old child is absent through fresh handle enumeration, without dereferencing saved GOP/mode pointers. PCI ownership and input must remain intact. This is child removal only, not parent release or an unlock transaction.

One detail worth flagging: EDK II's CoreDisconnectController can append a zero-child parent Stop after a successful explicit-child stop when that is the driver's only child. A non-NULL child argument therefore does not necessarily isolate child cleanup. That is reference-source behavior, not a claim that your OEM firmware follows the exact implementation: https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c

Please do share the DXE shim, staged harness and paired 260-register dump harness, ideally with the exact payload/source revisions and a DMA allocation/mapping description. They would help compare the later transaction preconditions without repeating your experiments blindly. We have not validated the halt + FLR finaliser on this AD104 setup and would treat that as a separate recovery experiment rather than assume it transfers.

Our completed-run evidence: github.com/DeclanFrampton/Windows-GPU-UNLOCK@e86462d8c7/research/profile/AD104-ELEVENTH-RESULT.en.md
Next-test contract: github.com/DeclanFrampton/Windows-GPU-UNLOCK@e86462d8c7/research/profile/AD104-TWELFTH-BOOT.en.md

No cold-entry, FWSEC/WPR2 transaction result or 4070 Ti unlock is claimed.

<!-- gh-comment-id:6439042553 --> @DeclanFrampton commented on GitHub (Oct 27, 2026): Thanks for posting this, especially the follow-up correction about GOP release. This is relevant to the AD104 / MSI RTX 4070 Ti work in #44, although it is a different board and GPU from your modified AD103 cards. Our latest completed run removed the text, GOP-consumer and EDID relationships in sequence, with fresh graph/state checks after each callback: 8 → 6 → 5 → 4 active relationships. Keyboard checks passed and Windows booted afterward. Importantly, that did **not** remove the GOP-producing PCI owner: command remained 0007 (BME enabled), attributes 0x718, and all eight full PCI configuration snapshots were identical. So we have not yet tested your released-GOP hypothesis or reproduced the FWSEC failure. The next test is built and staged, but has no physical result yet: directly invoke the pinned owner's Stop(binding, gpu, 1, &child), then verify the old child is absent through fresh handle enumeration, without dereferencing saved GOP/mode pointers. PCI ownership and input must remain intact. This is child removal only, not parent release or an unlock transaction. One detail worth flagging: EDK II's CoreDisconnectController can append a zero-child parent Stop after a successful explicit-child stop when that is the driver's only child. A non-NULL child argument therefore does not necessarily isolate child cleanup. That is reference-source behavior, not a claim that your OEM firmware follows the exact implementation: https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Core/Dxe/Hand/DriverSupport.c Please do share the DXE shim, staged harness and paired 260-register dump harness, ideally with the exact payload/source revisions and a DMA allocation/mapping description. They would help compare the later transaction preconditions without repeating your experiments blindly. We have not validated the halt + FLR finaliser on this AD104 setup and would treat that as a separate recovery experiment rather than assume it transfers. Our completed-run evidence: https://github.com/DeclanFrampton/Windows-GPU-UNLOCK/blob/e86462d8c7242846be9f33cdc52d28528d358849/research/profile/AD104-ELEVENTH-RESULT.en.md Next-test contract: https://github.com/DeclanFrampton/Windows-GPU-UNLOCK/blob/e86462d8c7242846be9f33cdc52d28528d358849/research/profile/AD104-TWELFTH-BOOT.en.md No cold-entry, FWSEC/WPR2 transaction result or 4070 Ti unlock is claimed.
Author
Owner

@DeclanFrampton commented on GitHub (Oct 27, 2026):

Update, 2026-10-27: the staged AD104 / MSI RTX 4070 Ti test in #44 has now run successfully. After the three consumer stops, direct IMG29 Stop(binding, gpu, 1, &child) returned success. Both postcollections and fresh full handle enumeration confirmed the old GOP child was absent; final input/state checks passed and Windows booted.

The relevant graph went 8 → 6 → 5 → 4 → 3. The remaining three relationships are PCI BY_DRIVER ownership and both pointer relationships. All ten full PCI configuration snapshots are identical: command 0007 (BME still enabled), attributes 0x718, supported 0x1b77b. All 34 capture files were preserved and hash-verified. No parent Stop, GPU MMIO or unlock transaction ran.

This is verified display-child removal on this AD104 setup, not complete firmware PCI-owner release or proof that it fixes the AD103 FWSEC/WPR2 failure in #54. It does not establish general RTX 4000 support (#2). The next step is a separately designed parent-stop test; none is staged.

English report | 한국어 | Sanitized evidence

<!-- gh-comment-id:6439417608 --> @DeclanFrampton commented on GitHub (Oct 27, 2026): Update, 2026-10-27: the staged AD104 / MSI RTX 4070 Ti test in #44 has now run successfully. After the three consumer stops, direct IMG29 Stop(binding, gpu, 1, &child) returned success. Both postcollections and fresh full handle enumeration confirmed the old GOP child was absent; final input/state checks passed and Windows booted. The relevant graph went 8 → 6 → 5 → 4 → 3. The remaining three relationships are PCI BY_DRIVER ownership and both pointer relationships. All ten full PCI configuration snapshots are identical: command 0007 (BME still enabled), attributes 0x718, supported 0x1b77b. All 34 capture files were preserved and hash-verified. No parent Stop, GPU MMIO or unlock transaction ran. This is verified display-child removal on this AD104 setup, not complete firmware PCI-owner release or proof that it fixes the AD103 FWSEC/WPR2 failure in #54. It does not establish general RTX 4000 support (#2). The next step is a separately designed parent-stop test; none is staged. [English report](https://github.com/DeclanFrampton/Windows-GPU-UNLOCK/blob/2009744/research/profile/AD104-TWELFTH-RESULT.en.md) | [한국어](https://github.com/DeclanFrampton/Windows-GPU-UNLOCK/blob/2009744/research/profile/AD104-TWELFTH-RESULT.ko.md) | [Sanitized evidence](https://github.com/DeclanFrampton/Windows-GPU-UNLOCK/blob/2009744/research/profile/ad104-twelfth-boot-evidence.json)
Author
Owner

@yakold commented on GitHub (Oct 27, 2026):

Thanks — this is the most useful result anyone has posted on this issue, and it is worth being precise about what it does and does not cover, because the two layers involved are easy to conflate.

Your 8 → 3 result is display-child removal, not PCI-owner release

Your own graph accounting makes this unambiguous:

  • First run: 8 → 6 → 5 → 4, with command = 0007 (BME enabled), attributes = 0x718, and all eight PCI configuration snapshots identical.
  • Second run: 4 → 3 via IMG29 Stop(binding, gpu, 1, &child), child confirmed absent by fresh enumeration.
  • The remaining three relationships are PCI BY_DRIVER ownership and both pointer relationships.

So what you have verified is: a GOP display child can be removed without disturbing PCI ownership, input, or bootability. What my hypothesis in the earlier comment asks for is the opposite half: the firmware driver binding on the GPU being released. Those are different edges of the same graph, and your result correctly keeps the one I care about intact.

This matters for how the thread reads later, because "AD104 test succeeded" will get quoted out of context. Your framing — "not complete firmware PCI-owner release or proof that it fixes the AD103 FWSEC/WPR2 failure in #54" — is the correct one and I would ask that it stay attached to any summary of this result.

The EDK II note explains our earlier failure — please keep it prominent

That observation is the single most useful thing I have read on this problem:

EDK II's CoreDisconnectController can append a zero-child parent Stop after a successful explicit-child stop when that is the driver's only child.

This retroactively explains a result I reported a few comments up as "tried DisconnectController, disturbed device state, backed it out." At the time I assumed a non-NULL child argument isolated child cleanup, so when state changed I attributed it to the child removal itself and rolled back. If the core appended a parent Stop after my explicit child stop, then the transaction I thought I was running and the transaction that actually ran were different — and I had no fresh-enumeration check after each callback, so I had no way to notice.

That is exactly why your staged approach works and mine did not: you check the graph between every step instead of trusting a return code. I would not have gotten this from the source alone.

Correction to my own register-diff evidence

Related, and worth stating plainly since I cited it as an exclusion:

I previously listed "260 registers dumped at the same point from DXE and from the Linux module, 0/260 differ" as evidence that register state was not the difference. Both dumps were taken with the firmware driver bound. Under that binding the two environments can only agree — the measurement cannot distinguish "registers are identical" from "the binding makes them identical." It rules out register divergence within that shared precondition and nothing beyond it. It is not evidence against the binding hypothesis.

Full exclusion list, so you do not repeat these

Every one of these produced no change in the FWSEC failure on AD103:

Hypothesis What was done Result
BARs unassigned Read BAR0–BAR5 in full, including 64-bit upper halves Bit-identical to Linux
PCI command differs Forced command = 0x3 (IO + mem decode) before the transaction No change
Read timing too fast 100 µs stall before each readl No change
DMA not drained Stall(50 ms) before the start bit No change
Firmware driver holding the device Did not call DisconnectController No change
Cache incoherence dma_wmb → wbinvd (full flush) No change
PROM content differs 1 MiB read three ways (8/32/64-bit), FNV compared to Linux Byte-identical over 0x60000
Card state differs 260 registers (PMC / Falcon / WPR / PLM / FBPA) dumped at the same point on both sides 0 differ (see caveat above)
VT-d intercepting DMA Parsed ACPI DMAR, read IOMMU GCMD GCMD = 0, translation not enabled
Card never POSTed Moved the monitor onto the target card and re-ran No change
DMA landing low AllocateMaxAddress = 0xFFFFFFFF Sub-4 GB RAM only extends to ~1.2 GB, cannot be moved; the Linux 0xfe4c0000 is an IOVA, not a physical address

Two of these are traps worth calling out explicitly:

  1. The "firmware driver holding the device" row above is not valid. Not calling DisconnectController is not the same as confirming no driver is bound. UEFI attaches a GOP to discrete GPUs even when the console lives on the iGPU, so "display is on the iGPU" does not imply "no firmware driver bound to this card." This is the row I should have marked untested, not excluded.
  2. The Linux 0xfe4c0000 address is a red herring. It is an IOVA from the DMA mapping layer, not a physical address. Chasing the physical allocation location because of it costs time and proves nothing.

Port structure (upstream unmodified)

The 1,738 lines of upstream unlock_610.c are byte-for-byte untouched; the port is a compatibility layer around them, so upstream changes can be pulled without rebasing anything.

src/                  upstream files, unmodified (re-synced by the staging script)
port/linux_shim.h     40+ kernel primitive declarations
port/linux_env.c      readl / writel / dma_alloc_coherent / request_firmware /
                      pcie_flr / pci_save_state / pci_restore_state / ktime
port/include/         13 stubbed linux/*.h headers + errno/stdio/stdlib/string
port/uefi_lib.c       ConOut + 64 KB log buffer + flush-to-ESP
unlock_uefi.c         efi_main + mode dispatch + diagnostics
build-c.sh            clang --target=x86_64-pc-windows-msvc -ffreestanding
                      → lld-link /subsystem:efi_application

Same toolchain shape you described — clang + lld-link, freestanding, EFI application subsystem.

Staged harness: mode file, no recompilation

The ESP root holds \gpu-unlock-mode.txt; its contents select the action. Unknown or missing content means do nothing, which is what makes it safe to leave in place across boots.

c1            toggle Bus Master / enumerate capabilities (does not touch the card)
load          read the 5 assets from ESP + FNV verify
prom          read 1 MiB PROM from BAR0+0x300000 and run the upstream parser
rom           via the expansion ROM BAR (wrong — see below)
dma           allocate 27 MB contiguous pages, write + read back
off           do nothing
full bb:dd.f  full transaction (append 's' = 100 µs stall before each read)

Because the mode lives on disk, changing what runs does not change what is flashed or built. Every capture in my exclusion table above is a different mode string, not a different binary.

Register-diff harness

A single register list is compiled into both the Linux module and the UEFI application; both are run within the same power cycle, and the two dumps are diffed field by field. That is how the 260-register comparison was produced. Both sides must run in the same boot, or the comparison is meaningless — and, per the caveat above, both sides must be in the same driver-binding state or the comparison answers a different question than the one you are asking.

Practical findings that cost the most time

These are independent of the hypothesis and will apply to your harness as-is:

  1. VBIOS is only readable at BAR0 + 0x300000, 1 MiB. The expansion ROM BAR is wrong: pci_map_rom stops at the PCI last-image marker and hides the VN extension. Reading BAR0 + 0x300000 produced field-for-field agreement with the kernel.
  2. Byte-wise memcpy_fromio takes 9 minutes for 1 MiB (1,048,576 non-posted PCIe reads × ~500 ns). 8-byte-wide reads bring it to 567 ms, a 1000× improvement. rep movsb hangs this firmware — do not use it.
  3. Flush the log to ESP as you go. If the transaction hangs, an in-memory buffer leaves you with nothing.
  4. Freestanding printf pitfalls: a flag-parsing loop that skips %s (advance fmt inside the case), and \n needs an explicit \r.
  5. EFI_FILE_INFO.FileSize is at offset 16, not 8; the buffer must be ≥512 bytes and the GUID must be passed explicitly.
  6. Cleanup is mandatory on failure: stop the Falcon (cpuctl |= 1<<4) and issue FLR. Without it, a failed unlock leaves the card in "firmware started but not finished" state, which cascades — the Linux kernel module then fails with wait_post_flr_gfw -110, holds BAR0, the nvidia driver's probe fails, and the card disappears from the system. With cleanup in place, five consecutive failures cost no power cycles.
  7. BootNext survives power loss. If the program hangs and you pull the plug, BootNext is still set and it will run again and hang again. Recovery is: clear BootNext first, then power cycle.

On your parent-stop test

That is exactly the step my hypothesis needs exercised, and you are right that it is separately designed rather than a variation of what already ran. Two things I would flag before you spend a boot on it:

  1. Verify the recovery path first, separately. Parent release followed by a failed transaction leaves the card in a worse state than child removal does. The halt + FLR finaliser is what makes a failure survivable — on this side it turned "card disappears, needs a power cycle" into "five failures, no power cycle." You noted it is unvalidated on your AD104 setup; I would treat validating that as the prerequisite for the parent-stop experiment rather than an afterthought, so a failed run does not cost you a card state you have to recover blind.
  2. After the parent Stop, confirm via fresh handle enumeration that the driver binding is actually gone, not just that Stop() returned success. That is the same lesson your EDK II note taught: a successful explicit-child stop can be followed by an implicit parent Stop, so the return code does not tell you which transitions occurred. Walking the handles does.

I am genuinely interested in the result either way. A clean parent release followed by a successful transaction would mean my FWSEC hypothesis is wrong and the cause is elsewhere; a parent release followed by the same 0xbadf5620 narrows it to something the binding does not gate. Both outcomes are informative, which is more than can be said for the eleven exclusions already on the list.

Regarding the source you asked for

The DXE shim, staged harness, register-diff harness and the transaction path all exist locally and I am happy to share what is useful. I would rather not paste the whole project into an issue thread, so tell me which of these you actually want and I will provide that piece:

  • port/linux_shim.h + port/linux_env.c (the primitive layer — dma_alloc_coherent, request_firmware, pcie_flr, save/restore)
  • port/include/ (the 13 stub headers)
  • unlock_uefi.c mode dispatch (the staged-mode logic and diagnostics, not the upstream transaction)
  • build-c.sh + link line
  • the register-diff harness and its list

For the DMA allocation specifically, since you asked: it is AllocatePages with AllocateMaxAddress = 0xFFFFFFFF for a 27 MB contiguous range, mapped through the device's own DMA interface, and the mapping description (bus address returned vs. physical) is the part that matters — the buffer address you get back from the firmware is not the address the device sees. Happy to go into detail on that separately, since it is the piece with the most room for a silent mismatch.

Payload/source revisions: the transaction code is the upstream unlock_610.c unchanged, and the asset set is the standard five files (booter load, V67, GSP boot, GSP boot descriptor, gsp_ga10x.bin). I did not modify or re-derive any of them for the DXE build.

<!-- gh-comment-id:6445960303 --> @yakold commented on GitHub (Oct 27, 2026): Thanks — this is the most useful result anyone has posted on this issue, and it is worth being precise about **what it does and does not cover**, because the two layers involved are easy to conflate. ## Your 8 → 3 result is display-child removal, not PCI-owner release Your own graph accounting makes this unambiguous: - First run: 8 → 6 → 5 → 4, with `command = 0007` (BME enabled), `attributes = 0x718`, and all eight PCI configuration snapshots identical. - Second run: 4 → 3 via `IMG29 Stop(binding, gpu, 1, &child)`, child confirmed absent by fresh enumeration. - **The remaining three relationships are PCI BY_DRIVER ownership and both pointer relationships.** So what you have verified is: *a GOP display child can be removed without disturbing PCI ownership, input, or bootability*. What my hypothesis in the earlier comment asks for is the opposite half: *the firmware driver binding on the GPU being released*. Those are different edges of the same graph, and your result correctly keeps the one I care about intact. This matters for how the thread reads later, because "AD104 test succeeded" will get quoted out of context. Your framing — *"not complete firmware PCI-owner release or proof that it fixes the AD103 FWSEC/WPR2 failure in #54"* — is the correct one and I would ask that it stay attached to any summary of this result. ## The EDK II note explains our earlier failure — please keep it prominent That observation is the single most useful thing I have read on this problem: > EDK II's `CoreDisconnectController` can append a zero-child parent Stop after a successful explicit-child stop when that is the driver's only child. This retroactively explains a result I reported a few comments up as "tried `DisconnectController`, disturbed device state, backed it out." At the time I assumed a non-NULL child argument isolated child cleanup, so when state changed I attributed it to the child removal itself and rolled back. If the core appended a parent Stop after my explicit child stop, then the transaction I thought I was running and the transaction that actually ran were different — and I had no fresh-enumeration check after each callback, so I had no way to notice. That is exactly why your staged approach works and mine did not: **you check the graph between every step instead of trusting a return code.** I would not have gotten this from the source alone. ## Correction to my own register-diff evidence Related, and worth stating plainly since I cited it as an exclusion: I previously listed "260 registers dumped at the same point from DXE and from the Linux module, 0/260 differ" as evidence that register state was not the difference. **Both dumps were taken with the firmware driver bound.** Under that binding the two environments can only agree — the measurement cannot distinguish "registers are identical" from "the binding makes them identical." It rules out register divergence within that shared precondition and nothing beyond it. It is not evidence against the binding hypothesis. ## Full exclusion list, so you do not repeat these Every one of these produced no change in the FWSEC failure on AD103: | Hypothesis | What was done | Result | |---|---|---| | BARs unassigned | Read BAR0–BAR5 in full, including 64-bit upper halves | Bit-identical to Linux | | PCI command differs | Forced `command = 0x3` (IO + mem decode) before the transaction | No change | | Read timing too fast | 100 µs stall before each `readl` | No change | | DMA not drained | `Stall(50 ms)` before the start bit | No change | | Firmware driver holding the device | Did *not* call `DisconnectController` | No change | | Cache incoherence | `dma_wmb` → `wbinvd` (full flush) | No change | | PROM content differs | 1 MiB read three ways (8/32/64-bit), FNV compared to Linux | Byte-identical over `0x60000` | | Card state differs | 260 registers (PMC / Falcon / WPR / PLM / FBPA) dumped at the same point on both sides | 0 differ *(see caveat above)* | | VT-d intercepting DMA | Parsed ACPI DMAR, read IOMMU `GCMD` | `GCMD = 0`, translation not enabled | | Card never POSTed | Moved the monitor onto the target card and re-ran | No change | | DMA landing low | `AllocateMaxAddress = 0xFFFFFFFF` | Sub-4 GB RAM only extends to ~1.2 GB, cannot be moved; the Linux `0xfe4c0000` is an IOVA, not a physical address | Two of these are traps worth calling out explicitly: 1. **The "firmware driver holding the device" row above is not valid.** Not calling `DisconnectController` is not the same as confirming no driver is bound. UEFI attaches a GOP to discrete GPUs even when the console lives on the iGPU, so "display is on the iGPU" does not imply "no firmware driver bound to this card." This is the row I should have marked *untested*, not *excluded*. 2. **The Linux `0xfe4c0000` address is a red herring.** It is an IOVA from the DMA mapping layer, not a physical address. Chasing the physical allocation location because of it costs time and proves nothing. ## Port structure (upstream unmodified) The 1,738 lines of upstream `unlock_610.c` are byte-for-byte untouched; the port is a compatibility layer around them, so upstream changes can be pulled without rebasing anything. ``` src/ upstream files, unmodified (re-synced by the staging script) port/linux_shim.h 40+ kernel primitive declarations port/linux_env.c readl / writel / dma_alloc_coherent / request_firmware / pcie_flr / pci_save_state / pci_restore_state / ktime port/include/ 13 stubbed linux/*.h headers + errno/stdio/stdlib/string port/uefi_lib.c ConOut + 64 KB log buffer + flush-to-ESP unlock_uefi.c efi_main + mode dispatch + diagnostics build-c.sh clang --target=x86_64-pc-windows-msvc -ffreestanding → lld-link /subsystem:efi_application ``` Same toolchain shape you described — clang + lld-link, freestanding, EFI application subsystem. ## Staged harness: mode file, no recompilation The ESP root holds `\gpu-unlock-mode.txt`; its contents select the action. Unknown or missing content means do nothing, which is what makes it safe to leave in place across boots. ``` c1 toggle Bus Master / enumerate capabilities (does not touch the card) load read the 5 assets from ESP + FNV verify prom read 1 MiB PROM from BAR0+0x300000 and run the upstream parser rom via the expansion ROM BAR (wrong — see below) dma allocate 27 MB contiguous pages, write + read back off do nothing full bb:dd.f full transaction (append 's' = 100 µs stall before each read) ``` Because the mode lives on disk, changing what runs does not change what is flashed or built. Every capture in my exclusion table above is a different mode string, not a different binary. ## Register-diff harness A single register list is compiled into both the Linux module and the UEFI application; both are run within the same power cycle, and the two dumps are diffed field by field. That is how the 260-register comparison was produced. **Both sides must run in the same boot**, or the comparison is meaningless — and, per the caveat above, both sides must be in the same driver-binding state or the comparison answers a different question than the one you are asking. ## Practical findings that cost the most time These are independent of the hypothesis and will apply to your harness as-is: 1. **VBIOS is only readable at `BAR0 + 0x300000`, 1 MiB.** The expansion ROM BAR is wrong: `pci_map_rom` stops at the PCI last-image marker and hides the VN extension. Reading `BAR0 + 0x300000` produced field-for-field agreement with the kernel. 2. **Byte-wise `memcpy_fromio` takes 9 minutes for 1 MiB** (1,048,576 non-posted PCIe reads × ~500 ns). 8-byte-wide reads bring it to 567 ms, a 1000× improvement. **`rep movsb` hangs this firmware — do not use it.** 3. **Flush the log to ESP as you go.** If the transaction hangs, an in-memory buffer leaves you with nothing. 4. **Freestanding `printf` pitfalls**: a flag-parsing loop that skips `%s` (advance `fmt` inside the case), and `\n` needs an explicit `\r`. 5. **`EFI_FILE_INFO.FileSize` is at offset 16, not 8**; the buffer must be ≥512 bytes and the GUID must be passed explicitly. 6. **Cleanup is mandatory on failure**: stop the Falcon (`cpuctl |= 1<<4`) and issue FLR. Without it, a failed unlock leaves the card in "firmware started but not finished" state, which cascades — the Linux kernel module then fails with `wait_post_flr_gfw -110`, holds BAR0, the nvidia driver's probe fails, and the card disappears from the system. With cleanup in place, five consecutive failures cost no power cycles. 7. **`BootNext` survives power loss.** If the program hangs and you pull the plug, `BootNext` is still set and it will run again and hang again. Recovery is: clear `BootNext` first, then power cycle. ## On your parent-stop test That is exactly the step my hypothesis needs exercised, and you are right that it is separately designed rather than a variation of what already ran. Two things I would flag before you spend a boot on it: 1. **Verify the recovery path first, separately.** Parent release followed by a failed transaction leaves the card in a worse state than child removal does. The halt + FLR finaliser is what makes a failure survivable — on this side it turned "card disappears, needs a power cycle" into "five failures, no power cycle." You noted it is unvalidated on your AD104 setup; I would treat validating *that* as the prerequisite for the parent-stop experiment rather than an afterthought, so a failed run does not cost you a card state you have to recover blind. 2. **After the parent Stop, confirm via fresh handle enumeration that the driver binding is actually gone**, not just that `Stop()` returned success. That is the same lesson your EDK II note taught: a successful explicit-child stop can be followed by an implicit parent Stop, so the return code does not tell you which transitions occurred. Walking the handles does. I am genuinely interested in the result either way. A clean parent release followed by a *successful* transaction would mean my FWSEC hypothesis is wrong and the cause is elsewhere; a parent release followed by the same `0xbadf5620` narrows it to something the binding does not gate. Both outcomes are informative, which is more than can be said for the eleven exclusions already on the list. ## Regarding the source you asked for The DXE shim, staged harness, register-diff harness and the transaction path all exist locally and I am happy to share what is useful. I would rather not paste the whole project into an issue thread, so tell me which of these you actually want and I will provide that piece: - `port/linux_shim.h` + `port/linux_env.c` (the primitive layer — `dma_alloc_coherent`, `request_firmware`, `pcie_flr`, save/restore) - `port/include/` (the 13 stub headers) - `unlock_uefi.c` mode dispatch (the staged-mode logic and diagnostics, not the upstream transaction) - `build-c.sh` + link line - the register-diff harness and its list For the DMA allocation specifically, since you asked: it is `AllocatePages` with `AllocateMaxAddress = 0xFFFFFFFF` for a 27 MB contiguous range, mapped through the device's own DMA interface, and the mapping description (bus address returned vs. physical) is the part that matters — the buffer address you get back from the firmware is not the address the device sees. Happy to go into detail on that separately, since it is the piece with the most room for a silent mismatch. Payload/source revisions: the transaction code is the upstream `unlock_610.c` unchanged, and the asset set is the standard five files (booter load, V67, GSP boot, GSP boot descriptor, `gsp_ga10x.bin`). I did not modify or re-derive any of them for the DXE build.
Author
Owner

@yakold commented on GitHub (Oct 27, 2026):

Source is up: https://gist.github.com/yakold/31c18ec34eea889dce4222c59b7a2cdf (secret gist — link access only)

What is in it:

File Lines What it is
linux_shim.h 275 Kernel primitive declarations the upstream code compiles against
linux_env.c 757 The implementations: readl/writel, dma_alloc_coherent, request_firmware, pcie_flr, pci_save_state/pci_restore_state, ktime, msleep/udelay
uefi_lib.h / uefi_lib.c 38 / 278 ConOut, 64 KB log buffer, flush-to-ESP (ul_mark)
unlock_uefi.c 712 efi_main, mode dispatch, diagnostics, cleanup path
build-c.sh 27 Full clang → lld-link invocation
stage-c.sh 49 Re-syncs upstream src/, applies the port
regdiff_snippet.c 30 The register-list block compiled into both sides
probe.c 311 Standalone register/BAR/PROM prober
romtest.c 58 The expansion-ROM-BAR experiment (the wrong path, kept for reference)
Makefile 31

What is deliberately not included, so you do not go looking for it:

  • Upstream unlock_610.c and friends (prep_610.c, vbios_610.c, layout_610.c, gfw_eval.c). Not included because it is unmodified upstream — take it from Zagitta/gpu-unlock at whatever revision you are pinning, and the shim compiles against it as-is. That is the whole point of the layering.
  • port/include/ — the 13 stub linux/*.h headers plus errno.h/stdio.h/stdlib.h/string.h. Not included because they are mechanical stubs that exist only to satisfy #include directives from upstream; reproducing them from the missing-symbol list takes minutes and is less error-prone than inheriting mine. Your compiler errors will name exactly which ones you need.
  • src/ — the upstream working tree.

Two things to know before building:

  1. build-c.sh has hardcoded paths (/root/gpu-uefi, $PROJ/src, $PROJ/port). Rewrite them for your tree — I left them as-is rather than templating, so the diff against what actually ran is zero.
  2. It needs the EDK II headers (/usr/include/efi, x86_64, protocol) — from edk2 or gnu-efi depending on your distro.

Where to look for the parts you asked about specifically:

  • DMA allocation and mapping → linux_env.c, the dma_alloc_coherent implementation. It is AllocatePages with AllocateMaxAddress = 0xFFFFFFFF for a 27 MB contiguous range, then mapped through the device's EFI_PCI_IO_PROTOCOL DMA interface. The detail that matters: the address AllocatePages returns is not the address the device sees — you have to take the bus address from PciIo->Map(), and the descriptor (page count, CommonBufferDmaMemory/CommonBufferMemory split) is where a silent mismatch hides. My first version used the returned pointer directly and it "worked" for c1 and load and only failed once real MMIO traffic started.
  • Register-diff harness → regdiff_snippet.c is the block itself; the surrounding driver is the same list compiled into the kernel module. Both dump to a text file, then diffed. The patch_regdiff.py glue script is not in the gist but is trivial — tell me if you want it.
  • Mode dispatch → unlock_uefi.c, near the top: read \gpu-unlock-mode.txt, compare against the string table, anything unrecognised falls through to a no-op with a log line.
  • Cleanup path → unlock_uefi.c, the failure branch after the transaction: Falcon stop (cpuctl |= 1<<4) then FLR, in that order.

If any of it does not compile against current upstream, tell me what breaks and I will port it; the shim tracks upstream closely enough that breakage is informative rather than incidental.

<!-- gh-comment-id:6446011018 --> @yakold commented on GitHub (Oct 27, 2026): Source is up: **https://gist.github.com/yakold/31c18ec34eea889dce4222c59b7a2cdf** (secret gist — link access only) What is in it: | File | Lines | What it is | |---|---:|---| | `linux_shim.h` | 275 | Kernel primitive declarations the upstream code compiles against | | `linux_env.c` | 757 | The implementations: `readl`/`writel`, `dma_alloc_coherent`, `request_firmware`, `pcie_flr`, `pci_save_state`/`pci_restore_state`, `ktime`, `msleep`/`udelay` | | `uefi_lib.h` / `uefi_lib.c` | 38 / 278 | ConOut, 64 KB log buffer, flush-to-ESP (`ul_mark`) | | `unlock_uefi.c` | 712 | `efi_main`, mode dispatch, diagnostics, cleanup path | | `build-c.sh` | 27 | Full clang → lld-link invocation | | `stage-c.sh` | 49 | Re-syncs upstream `src/`, applies the port | | `regdiff_snippet.c` | 30 | The register-list block compiled into both sides | | `probe.c` | 311 | Standalone register/BAR/PROM prober | | `romtest.c` | 58 | The expansion-ROM-BAR experiment (the wrong path, kept for reference) | | `Makefile` | 31 | | **What is deliberately not included, so you do not go looking for it:** - **Upstream `unlock_610.c` and friends** (`prep_610.c`, `vbios_610.c`, `layout_610.c`, `gfw_eval.c`). Not included because it is unmodified upstream — take it from `Zagitta/gpu-unlock` at whatever revision you are pinning, and the shim compiles against it as-is. That is the whole point of the layering. - **`port/include/`** — the 13 stub `linux/*.h` headers plus `errno.h`/`stdio.h`/`stdlib.h`/`string.h`. Not included because they are mechanical stubs that exist only to satisfy `#include` directives from upstream; reproducing them from the missing-symbol list takes minutes and is less error-prone than inheriting mine. Your compiler errors will name exactly which ones you need. - **`src/`** — the upstream working tree. **Two things to know before building:** 1. **`build-c.sh` has hardcoded paths** (`/root/gpu-uefi`, `$PROJ/src`, `$PROJ/port`). Rewrite them for your tree — I left them as-is rather than templating, so the diff against what actually ran is zero. 2. **It needs the EDK II headers** (`/usr/include/efi`, `x86_64`, `protocol`) — from `edk2` or `gnu-efi` depending on your distro. **Where to look for the parts you asked about specifically:** - DMA allocation and mapping → `linux_env.c`, the `dma_alloc_coherent` implementation. It is `AllocatePages` with `AllocateMaxAddress = 0xFFFFFFFF` for a 27 MB contiguous range, then mapped through the device's `EFI_PCI_IO_PROTOCOL` DMA interface. The detail that matters: **the address `AllocatePages` returns is not the address the device sees** — you have to take the bus address from `PciIo->Map()`, and the descriptor (page count, `CommonBufferDmaMemory`/`CommonBufferMemory` split) is where a silent mismatch hides. My first version used the returned pointer directly and it "worked" for `c1` and `load` and only failed once real MMIO traffic started. - Register-diff harness → `regdiff_snippet.c` is the block itself; the surrounding driver is the same list compiled into the kernel module. Both dump to a text file, then diffed. The `patch_regdiff.py` glue script is not in the gist but is trivial — tell me if you want it. - Mode dispatch → `unlock_uefi.c`, near the top: read `\gpu-unlock-mode.txt`, compare against the string table, anything unrecognised falls through to a no-op with a log line. - Cleanup path → `unlock_uefi.c`, the failure branch after the transaction: Falcon stop (`cpuctl |= 1<<4`) then FLR, in that order. If any of it does not compile against current upstream, tell me what breaks and I will port it; the shim tracks upstream closely enough that breakage is informative rather than incidental.
Author
Owner

@DeclanFrampton commented on GitHub (Oct 27, 2026):

Thanks for the detailed write-up and for sharing the source, @yakold. The binding caveat on the 260-register comparison and the possible explanation of your earlier DisconnectController result are useful context. I agree that a successful child stop alone does not establish that the PCI owner was released.

Update since my earlier comment: I subsequently ran the separately guarded parent stop on the AD104. Across the staged runs, fresh enumeration showed the relevant relationship graph progress 8 → 6 → 5 → 4 → 3 → 2. The GPU's PCI BY_DRIVER owner relationship was gone after the final stop; PCI command changed from 0007 to 0000 and attributes from 0x718 to 0. This is evidence of release of that GPU relationship, not unloading the shared DriverBinding image or proof that all firmware activity stopped. The EDK II explicit-child caveat remains important: the core can append a parent stop when the explicit child is the driver's only child, so I check the graph after each callback rather than infer the result from its return status.

No FWSEC transaction or uploaded firmware execution followed that release, so your AD103 binding hypothesis remains open. PR #44 has the work; the pinned runs 13–18 report records the sequence and limits.

On 0xBADF5620, I have seen the pattern returned with transport status 0 at DMACTL 0x11010c (test 25), RISC-V CPUCTL 0x111388 (tests 28/29), and BCR 0x111668 (test 30), without this harness uploading or starting GPU firmware. The guards rejected the data: in test 30 the read returned and the harness deliberately held; the log does not show an MMIO call hanging. The pattern on its own therefore cannot establish a microcode crash or a common cause with your transaction.

Test 29 has a narrower recovery result: after that exact CPUCTL refusal, a separately guarded branch completed 14 required-state reads, one Disable(0x300), postchecks and an operator-confirmed automatic Windows return. That's recovery from this refused observation on this setup, not a qualified Falcon halt/FLR finalizer or recovery from failed FWSEC execution. I take your point that a transaction failure path needs to be understood and qualified before attempting an execution experiment.

Could you share the exact versions associated with your reported run? In the shared gist revision I reviewed, linux_env.c uses AllocateAnyPages and returns the physical allocation address as the DMA address; I don't see the AllocateMaxAddress plus PciIo->Map() path you described. In unlock_uefi.c:591–597, I also don't see the described failure-specific Falcon-stop/FLR branch. The upstream transaction source is omitted, so I cannot tell whether cleanup happened elsewhere. This may simply be a revision mismatch, and the supplied revision does not let me verify the reported mapping or finalizer.

The most useful pieces would be the actual tested allocator/map/unmap and failure-finalizer code, tied to the EFI binary SHA-256, exact upstream commit and included header identities/versions or hashes, plus SHA-256 hashes for each of the five assets. Paired logs identifying the transaction phase and driver-binding state, along with reset/power history, would help compare like with like. For the mapping, the returned device address, mapped byte count, operation, lifetime and synchronization matter as well as the allocation address; UEFI PCI I/O Map defines the device-visible mapping. I don't need you to reconstruct a project around the omitted headers; knowing the actual ABI used by the tested build is the important part.

Three small corrections for anyone using the notes: the standard EFI_FILE_INFO layout places FileSize at offset 8 and PhysicalSize at 16; the gist uses the typed FileSize field, so the comment alone doesn't establish a functional bug (UEFI file info). Also, 1,048,576 × 500 ns is 0.524288 seconds; the reported 9 minutes versus 567 ms is about 952×, while read width alone changes the transaction count by 8×. Finally, UEFI specifies consuming BootNext before transferring control; a platform may behave differently, so recording the variable state would help explain your observation.

I've put the fuller source and evidence review in English and 한국어. Thanks again for offering the pieces; the tested mapping and finalizer are the ones I'd most like to compare.

<!-- gh-comment-id:6451342433 --> @DeclanFrampton commented on GitHub (Oct 27, 2026): Thanks for the detailed write-up and for sharing the source, @yakold. The binding caveat on the 260-register comparison and the possible explanation of your earlier `DisconnectController` result are useful context. I agree that a successful child stop alone does not establish that the PCI owner was released. **Update since my earlier comment:** I subsequently ran the separately guarded parent stop on the AD104. Across the staged runs, fresh enumeration showed the relevant relationship graph progress **8 → 6 → 5 → 4 → 3 → 2**. The GPU's PCI `BY_DRIVER` owner relationship was gone after the final stop; PCI command changed from `0007` to `0000` and attributes from `0x718` to `0`. This is evidence of release of that GPU relationship, not unloading the shared DriverBinding image or proof that all firmware activity stopped. The EDK II explicit-child caveat remains important: the core can append a parent stop when the explicit child is the driver's only child, so I check the graph after each callback rather than infer the result from its return status. No FWSEC transaction or uploaded firmware execution followed that release, so your AD103 binding hypothesis remains open. [PR #44](https://github.com/impacifist/Windows-GPU-UNLOCK/pull/44) has the work; the pinned [runs 13–18 report](https://github.com/DeclanFrampton/Windows-GPU-UNLOCK/blob/8b50a5409fbb3cce4a5004c49ec6533d99c74ccb/research/profile/AD104-THIRTEENTH-EIGHTEENTH-RESULT.en.md) records the sequence and limits. On `0xBADF5620`, I have seen the pattern returned with transport status `0` at DMACTL `0x11010c` (test 25), RISC-V CPUCTL `0x111388` (tests 28/29), and BCR `0x111668` (test 30), without this harness uploading or starting GPU firmware. The guards rejected the data: in test 30 the read returned and the harness deliberately held; the log does not show an MMIO call hanging. The pattern on its own therefore cannot establish a microcode crash or a common cause with your transaction. Test 29 has a narrower recovery result: after that exact CPUCTL refusal, a separately guarded branch completed 14 required-state reads, one `Disable(0x300)`, postchecks and an operator-confirmed automatic Windows return. That's recovery from this refused observation on this setup, not a qualified Falcon halt/FLR finalizer or recovery from failed FWSEC execution. I take your point that a transaction failure path needs to be understood and qualified before attempting an execution experiment. **Could you share the exact versions associated with your reported run?** In the [shared gist revision I reviewed](https://gist.github.com/yakold/31c18ec34eea889dce4222c59b7a2cdf/09ab194a9d9446c2bd56318815e459984a46d5ad), `linux_env.c` uses `AllocateAnyPages` and returns the physical allocation address as the DMA address; I don't see the `AllocateMaxAddress` plus `PciIo->Map()` path you described. In `unlock_uefi.c:591–597`, I also don't see the described failure-specific Falcon-stop/FLR branch. The upstream transaction source is omitted, so I cannot tell whether cleanup happened elsewhere. This may simply be a revision mismatch, and the supplied revision does not let me verify the reported mapping or finalizer. The most useful pieces would be the actual tested allocator/map/unmap and failure-finalizer code, tied to the **EFI binary SHA-256**, exact upstream commit and included header identities/versions or hashes, plus SHA-256 hashes for each of the five assets. Paired logs identifying the transaction phase and driver-binding state, along with reset/power history, would help compare like with like. For the mapping, the returned device address, mapped byte count, operation, lifetime and synchronization matter as well as the allocation address; [UEFI PCI I/O Map](https://uefi.org/specs/UEFI/2.10/14_Protocols_PCI_Bus_Support.html) defines the device-visible mapping. I don't need you to reconstruct a project around the omitted headers; knowing the actual ABI used by the tested build is the important part. Three small corrections for anyone using the notes: the standard `EFI_FILE_INFO` layout places `FileSize` at offset 8 and `PhysicalSize` at 16; the gist uses the typed `FileSize` field, so the comment alone doesn't establish a functional bug ([UEFI file info](https://uefi.org/specs/UEFI/2.10/13_Protocols_Media_Access.html#efi-file-info)). Also, 1,048,576 × 500 ns is 0.524288 seconds; the reported 9 minutes versus 567 ms is about 952×, while read width alone changes the transaction count by 8×. Finally, [UEFI specifies consuming `BootNext` before transferring control](https://uefi.org/specs/UEFI/2.10/03_Boot_Manager.html#load-option-processing); a platform may behave differently, so recording the variable state would help explain your observation. I've put the fuller source and evidence review in [English](https://github.com/DeclanFrampton/Windows-GPU-UNLOCK/blob/8b50a5409fbb3cce4a5004c49ec6533d99c74ccb/research/profile/ISSUE54-VALIDATION.en.md) and [한국어](https://github.com/DeclanFrampton/Windows-GPU-UNLOCK/blob/8b50a5409fbb3cce4a5004c49ec6533d99c74ccb/research/profile/ISSUE54-VALIDATION.ko.md). Thanks again for offering the pieces; the tested mapping and finalizer are the ones I'd most like to compare.
Author
Owner

@yakold commented on GitHub (Oct 27, 2026):

Two things I wrote are wrong, and you found both of them. Correcting them first, because one of them changes what my report actually establishes.

1. The DMA path I described is not the DMA path in the code

I wrote that the 27 MB buffer is AllocatePages with AllocateMaxAddress = 0xFFFFFFFF and is mapped through EFI_PCI_IO_PROTOCOL → Map(), and that the address AllocatePages returns is not the address the device sees.

The published linux_env.c (dma_alloc_coherent, lines 199–221) does neither. It calls AllocateAnyPages, takes the returned physical address, and returns it as the DMA address with an identity-map assertion:

st = gBS->AllocatePages(AllocateAnyPages, EfiBootServicesData, pages, &addr);
if (st != EFI_SUCCESS)
    return NULL;
cpu = (void *)(UINTN)addr;
if (dma)
    *dma = (dma_addr_t)addr;
/* Verify identity mapping: DXE maps all memory 1:1. */

There is no PciIo->Map(), no bus-address translation, and no "first version used the returned pointer and it only failed once MMIO traffic started" story that belongs to code in the gist. I retract that description, that anecdote, and the corresponding row in my exclusion table ("DMA landing low — AllocateMaxAddress = 0xFFFFFFFF"). None of them describe a build that was compiled or run here. Your revision check was correct, and it is the only revision the gist has ever had.

2. The failure finalizer is not in unlock_uefi.c

unlock_uefi.c:591–597 is gpu_unlock_610_unlock() → dump_engine() → release_shared() → printf → return. There is no failure-specific Falcon-halt/FLR branch.

The halt + FLR code does exist, but as a standalone fragment that was written to be spliced into the transaction path and is now uploaded as cleanup_snippet.c (cpuctl |= 1<<4, then pcie_flr()). I cannot show it was compiled into a binary that ran, and the project tree was removed from the machine on 2026-10-26 with no artefacts kept. So the claim I made — that cleanup is mandatory on failure and is in the code — is retracted. What stands is only the observation that a failed transaction without cleanup left the card in a state the Linux module could not recover from.

3. Your three corrections

  • EFI_FILE_INFO: offset 8 is FileSize, 16 is PhysicalSize. I had it backwards. You are also right that it does not matter for the shipped code: read_mode() uses Read() and never calls GetInfo.
  • The read-width arithmetic: 1,048,576 × 500 ns = 0.524 s, not 9 minutes. The two numbers in that bullet are inconsistent as written, and read width alone changes the transaction count by 8×, so it cannot account for the observed ratio. The 9 min and 567 ms figures are what was measured; my explanation for them was not derived and does not survive the check.
  • BootNext: the spec requires consuming it before transferring control. My observation (still set after a power cut) is platform behaviour on this board, not a spec claim. Recording the variable state, as you suggest, is the right way to describe it.

What I can give you — now in the gist

Same URL, still secret: https://gist.github.com/yakold/31c18ec34eea889dce4222c59b7a2cdf — now 33 files. New since the eleven you reviewed:

  • harness / staging: phase-a.sh (OVMF smoke test for probe.efi), qemu-c1.sh, qemu-load.sh (real 27 MB asset through a FAT image), do-restart.sh, 70-gpu-dyndbg.cfg
  • patchers (rewrite unlock_uefi.c between builds): patch_fnv.py, patch_fnv2.py, patch_imem.py, patch_imem2.py, patch_imem3.py, patch_iommu.py, patch_iommu2.py, patch_linux_ab.py, patch_regdiff.py, patch_stall.py, cleanup_diag.py
  • experiment bodies spliced in during runs: cleanup_snippet.c, iommu_snippet.c, iommu_snippet2.c, imem_snippet.c, prestart_snippet.c, writel_snippet.c

Asset set actually used

Not 610.43.03 — the port ran on assets extracted from 615.71.10. The nine files the module loads on this machine today, with size:

6ee05b20e1dc244c08c052f36ef28469b8d09f4955d1fe33e48a179e11a7fd49   57672  booter_load_ad102.bin
056cbc064a888f80717726c54d7f64fcd68044d123870c95a74f37f4975dcaa4   61256  booter_load_ga102.bin
45d6335a8185d6ff13e8d1484cea73f68d3d13aa1c19dc080ed1c3482dd5bac0   36864  gsp_boot_ad102.bin
83f8f3f1f5f9496e0ea8fc7103c2beb64d0b6de2f5ffe725f13514de5a95fa42      84  gsp_boot_desc_ad102.bin
cc5a3fc1f4c47f2fe107b1b68f0176d8a448e6dec84b575e5560ccef5262bf15      84  gsp_boot_desc_ga102.bin
3df651acb174fd5f5561a1996965b192f50c5d763168446ed0d4ead19d895768   24576  gsp_boot_ga102.bin
4b05cec5063384b014b5f6801cc9634ab8198379ef960fef51a737b236266a22 27043992  gsp_ga10x.bin
44c36b2d6b3424e53e18f3e55db85c833655de071ce66ce42749588a4a7dc8cb   64000  v67-ad102-615.71.10-four-plm.bin
2a0aa1f86d0b6afff5214d641d87d46dc98ef06ed908ff05d0ddbad5ffb7e197   64000  v67-ga102-615.71.10.bin

The v67 payloads are built per-version (v67-ad102-615.71.10-four-plm.bin), which is the part of the earlier extraction that is driver-version dependent — the Booter/GSP images come out of the same generated BINDATA sources as upstream and are the same bytes upstream would produce for that driver.

Working module built from those assets: gpu_unlock.ko.zst, 38593 B, 51c331fd56c042da49fc0b7f1aa5140cf8d05f5a608d2e09b84d4fc1b4a44ade, DKMS 1.1.1, MODULE_VERSION("1.1.1"). Source tree (/usr/src/gpu-unlock-1.1.1/) is still on the machine and I can upload it if you want it — it is upstream plus a dkms.conf edit, so I have left it out rather than pad the gist with upstream files.

Upstream baseline for the port: Zagitta/gpu-unlock PR #24 (woodsonl:ad103-rtx4080super), head 4662fae094041881eba15440ae0f6a7901a94748, base 6081407b312aa3139a2bed62bdda354f4ffddc1d. unlock_610.c was carried unmodified at 1,738 lines.

What I cannot give you, and why

  • The EFI binary and its SHA-256. The build tree, the staged unlock.efi, and the ESP copies were removed from the machine on 2026-10-26; nothing was kept. I therefore cannot tie any hash to "the binary that produced those runs".
  • Byte-identity of the assets as they sat on the ESP during the runs. Deleted with the rest. The hashes above come from the same 615.71.10 extraction and are still loaded by the working kernel module, but I cannot prove they are the exact bytes the DXE run loaded.
  • Paired logs, the 260-register dumps, phase and binding-state records. Deleted with the project.
  • port/include/, the 13 stub headers. Not kept.

On 0xBADF5620

Your point changes what my report means, and I accept it: the same pattern at DMACTL 0x11010c, RISC-V CPUCTL 0x111388 and BCR 0x111668, with transport status 0 and no firmware uploaded or started in those paths, means the value on its own does not evidence a microcode crash and does not establish a common cause with my transaction. I should have recorded it as one observation with unexplained provenance, not as the failure signature.

State of this line

I cannot run it further: the DXE path was exercised on a single machine and that work is torn down, and my only Windows host carries a Blackwell card outside supported_ids[]. There will be no further results from my side — what is above is everything that still exists. Your parent-stop result and the EDK II explicit-child caveat both remain the most useful things in this thread, and I would keep them attached to any summary of it.

<!-- gh-comment-id:6455834943 --> @yakold commented on GitHub (Oct 27, 2026): Two things I wrote are wrong, and you found both of them. Correcting them first, because one of them changes what my report actually establishes. ## 1. The DMA path I described is not the DMA path in the code I wrote that the 27 MB buffer is `AllocatePages` with `AllocateMaxAddress = 0xFFFFFFFF` and is mapped through `EFI_PCI_IO_PROTOCOL` → `Map()`, and that the address `AllocatePages` returns is not the address the device sees. The published `linux_env.c` (`dma_alloc_coherent`, lines 199–221) does neither. It calls `AllocateAnyPages`, takes the returned physical address, and returns it as the DMA address with an identity-map assertion: ```c st = gBS->AllocatePages(AllocateAnyPages, EfiBootServicesData, pages, &addr); if (st != EFI_SUCCESS) return NULL; cpu = (void *)(UINTN)addr; if (dma) *dma = (dma_addr_t)addr; /* Verify identity mapping: DXE maps all memory 1:1. */ ``` There is no `PciIo->Map()`, no bus-address translation, and no "first version used the returned pointer and it only failed once MMIO traffic started" story that belongs to code in the gist. **I retract that description, that anecdote, and the corresponding row in my exclusion table ("DMA landing low — `AllocateMaxAddress = 0xFFFFFFFF`").** None of them describe a build that was compiled or run here. Your revision check was correct, and it is the only revision the gist has ever had. ## 2. The failure finalizer is not in `unlock_uefi.c` `unlock_uefi.c:591–597` is `gpu_unlock_610_unlock()` → `dump_engine()` → `release_shared()` → `printf` → `return`. There is no failure-specific Falcon-halt/FLR branch. The halt + FLR code does exist, but as a standalone fragment that was written to be spliced into the transaction path and is now uploaded as `cleanup_snippet.c` (`cpuctl |= 1<<4`, then `pcie_flr()`). I cannot show it was compiled into a binary that ran, and the project tree was removed from the machine on 2026-10-26 with no artefacts kept. So the claim I made — that cleanup is mandatory on failure and is in the code — is retracted. What stands is only the observation that a failed transaction without cleanup left the card in a state the Linux module could not recover from. ## 3. Your three corrections - **`EFI_FILE_INFO`**: offset 8 is `FileSize`, 16 is `PhysicalSize`. I had it backwards. You are also right that it does not matter for the shipped code: `read_mode()` uses `Read()` and never calls `GetInfo`. - **The read-width arithmetic**: 1,048,576 × 500 ns = 0.524 s, not 9 minutes. The two numbers in that bullet are inconsistent as written, and read width alone changes the transaction count by 8×, so it cannot account for the observed ratio. The 9 min and 567 ms figures are what was measured; my explanation for them was not derived and does not survive the check. - **`BootNext`**: the spec requires consuming it before transferring control. My observation (still set after a power cut) is platform behaviour on this board, not a spec claim. Recording the variable state, as you suggest, is the right way to describe it. ## What I can give you — now in the gist Same URL, still secret: https://gist.github.com/yakold/31c18ec34eea889dce4222c59b7a2cdf — now 33 files. New since the eleven you reviewed: - **harness / staging**: `phase-a.sh` (OVMF smoke test for `probe.efi`), `qemu-c1.sh`, `qemu-load.sh` (real 27 MB asset through a FAT image), `do-restart.sh`, `70-gpu-dyndbg.cfg` - **patchers** (rewrite `unlock_uefi.c` between builds): `patch_fnv.py`, `patch_fnv2.py`, `patch_imem.py`, `patch_imem2.py`, `patch_imem3.py`, `patch_iommu.py`, `patch_iommu2.py`, `patch_linux_ab.py`, `patch_regdiff.py`, `patch_stall.py`, `cleanup_diag.py` - **experiment bodies spliced in during runs**: `cleanup_snippet.c`, `iommu_snippet.c`, `iommu_snippet2.c`, `imem_snippet.c`, `prestart_snippet.c`, `writel_snippet.c` ## Asset set actually used Not 610.43.03 — the port ran on assets extracted from **615.71.10**. The nine files the module loads on this machine today, with size: ```text 6ee05b20e1dc244c08c052f36ef28469b8d09f4955d1fe33e48a179e11a7fd49 57672 booter_load_ad102.bin 056cbc064a888f80717726c54d7f64fcd68044d123870c95a74f37f4975dcaa4 61256 booter_load_ga102.bin 45d6335a8185d6ff13e8d1484cea73f68d3d13aa1c19dc080ed1c3482dd5bac0 36864 gsp_boot_ad102.bin 83f8f3f1f5f9496e0ea8fc7103c2beb64d0b6de2f5ffe725f13514de5a95fa42 84 gsp_boot_desc_ad102.bin cc5a3fc1f4c47f2fe107b1b68f0176d8a448e6dec84b575e5560ccef5262bf15 84 gsp_boot_desc_ga102.bin 3df651acb174fd5f5561a1996965b192f50c5d763168446ed0d4ead19d895768 24576 gsp_boot_ga102.bin 4b05cec5063384b014b5f6801cc9634ab8198379ef960fef51a737b236266a22 27043992 gsp_ga10x.bin 44c36b2d6b3424e53e18f3e55db85c833655de071ce66ce42749588a4a7dc8cb 64000 v67-ad102-615.71.10-four-plm.bin 2a0aa1f86d0b6afff5214d641d87d46dc98ef06ed908ff05d0ddbad5ffb7e197 64000 v67-ga102-615.71.10.bin ``` The `v67` payloads are built per-version (`v67-ad102-615.71.10-four-plm.bin`), which is the part of the earlier extraction that is driver-version dependent — the Booter/GSP images come out of the same generated BINDATA sources as upstream and are the same bytes upstream would produce for that driver. Working module built from those assets: `gpu_unlock.ko.zst`, 38593 B, `51c331fd56c042da49fc0b7f1aa5140cf8d05f5a608d2e09b84d4fc1b4a44ade`, DKMS `1.1.1`, `MODULE_VERSION("1.1.1")`. Source tree (`/usr/src/gpu-unlock-1.1.1/`) is still on the machine and I can upload it if you want it — it is upstream plus a `dkms.conf` edit, so I have left it out rather than pad the gist with upstream files. Upstream baseline for the port: `Zagitta/gpu-unlock` PR #24 (`woodsonl:ad103-rtx4080super`), head `4662fae094041881eba15440ae0f6a7901a94748`, base `6081407b312aa3139a2bed62bdda354f4ffddc1d`. `unlock_610.c` was carried unmodified at 1,738 lines. ## What I cannot give you, and why - **The EFI binary and its SHA-256.** The build tree, the staged `unlock.efi`, and the ESP copies were removed from the machine on 2026-10-26; nothing was kept. I therefore cannot tie any hash to "the binary that produced those runs". - **Byte-identity of the assets as they sat on the ESP during the runs.** Deleted with the rest. The hashes above come from the same 615.71.10 extraction and are still loaded by the working kernel module, but I cannot prove they are the exact bytes the DXE run loaded. - **Paired logs, the 260-register dumps, phase and binding-state records.** Deleted with the project. - **`port/include/`**, the 13 stub headers. Not kept. ## On `0xBADF5620` Your point changes what my report means, and I accept it: the same pattern at DMACTL `0x11010c`, RISC-V CPUCTL `0x111388` and BCR `0x111668`, with transport status 0 and no firmware uploaded or started in those paths, means the value on its own does not evidence a microcode crash and does not establish a common cause with my transaction. I should have recorded it as one observation with unexplained provenance, not as the failure signature. ## State of this line I cannot run it further: the DXE path was exercised on a single machine and that work is torn down, and my only Windows host carries a Blackwell card outside `supported_ids[]`. There will be no further results from my side — what is above is everything that still exists. Your parent-stop result and the EDK II explicit-child caveat both remain the most useful things in this thread, and I would keep them attached to any summary of it.
Author
Owner

@DeclanFrampton commented on GitHub (Oct 27, 2026):

Thanks, @yakold. I appreciate you checking the source carefully, correcting the DMA and cleanup claims, and preserving what you could. Your clarification about the lost build and logs makes the limits of the original result much clearer.

I'll treat the published allocator as AllocateAnyPages with the physical address used as the DMA address. The Map()/below-4 GiB description and associated anecdote are retracted, and the halt/FLR snippet is a proposed failure path whose use in a tested build is unverified. I won't treat either as an established recovery result. Likewise, 0xBADF5620 alone doesn't establish a firmware crash or a common cause.

The 615.71.10 asset hashes and working Linux module hash are useful identifiers for the current Linux setup. I won't assume those hashes identify the deleted EFI binary or the assets that were on the ESP during its runs. The pinned upstream PR baseline and the additional patchers and snippets should be useful for an offline comparison too; I won't execute them as part of that review.

Thanks for offering the Linux source. If you still have it and it's convenient, an archive of the actual /usr/src/gpu-unlock-1.1.1 tree, or a diff against the pinned upstream commit, including dkms.conf and the asset-generation recipe, would help reconcile the working AD103 Linux baseline and 615.71.10 assets with my 610-based work. Source and recipes are enough; please leave out binaries, credentials and unrelated machine files. No urgency, and I'm not asking you to recreate the deleted material or run more hardware tests.

I'll keep the parent-release result and the EDK II explicit-child caveat together in summaries. My AD104 run removed the target GPU's BY_DRIVER relationship, but it did not execute FWSEC or demonstrate an unlock, so the binding hypothesis remains untested. Test 31 remains the already prepared capture and recovery check, not a firmware-execution test.

<!-- gh-comment-id:6455995774 --> @DeclanFrampton commented on GitHub (Oct 27, 2026): Thanks, @yakold. I appreciate you checking the source carefully, correcting the DMA and cleanup claims, and preserving what you could. Your clarification about the lost build and logs makes the limits of the original result much clearer. I'll treat the published allocator as `AllocateAnyPages` with the physical address used as the DMA address. The `Map()`/below-4 GiB description and associated anecdote are retracted, and the halt/FLR snippet is a proposed failure path whose use in a tested build is unverified. I won't treat either as an established recovery result. Likewise, `0xBADF5620` alone doesn't establish a firmware crash or a common cause. The 615.71.10 asset hashes and working Linux module hash are useful identifiers for the current Linux setup. I won't assume those hashes identify the deleted EFI binary or the assets that were on the ESP during its runs. The pinned upstream PR baseline and the additional patchers and snippets should be useful for an offline comparison too; I won't execute them as part of that review. Thanks for offering the Linux source. If you still have it and it's convenient, an archive of the actual `/usr/src/gpu-unlock-1.1.1` tree, or a diff against the pinned upstream commit, including `dkms.conf` and the asset-generation recipe, would help reconcile the working AD103 Linux baseline and 615.71.10 assets with my 610-based work. Source and recipes are enough; please leave out binaries, credentials and unrelated machine files. No urgency, and I'm not asking you to recreate the deleted material or run more hardware tests. I'll keep the parent-release result and the EDK II explicit-child caveat together in summaries. My AD104 run removed the target GPU's `BY_DRIVER` relationship, but it did not execute FWSEC or demonstrate an unlock, so the binding hypothesis remains untested. Test 31 remains the already prepared capture and recovery check, not a firmware-execution test.
Author
Owner

@yakold commented on GitHub (Oct 27, 2026):

Thanks — your reading of what is and is not established matches mine, so I won't restate it.

Two corrections from my side, then the material you asked for.

1. The baseline sha I gave last time was wrong

I wrote 4662fae0. That is the current head of woodsonl:ad103-rtx4080super, but the branch was re-committed onto the 2.0 layout at 2026-10-27T22:21:59Z — twelve minutes before Release 2.0. The tree I actually built 1.1.1 from is:

8a6f6bde63fcdeefb9956cd743ca61201d38e5cf   "Accept the RTX 4060 Ti 16GB device ID"   2026-10-25 18:38:58 -0500

Diffing against 4662fae0 would compare two different generations of the tree. Use 8a6f6bd.

2. The 1.1.1 tree was removed, but an identical copy survived

/usr/src/gpu-unlock-1.1.1 was deleted on 2026-10-28 at the machine owner's request. A self-contained kit directory packed on 2026-10-26 still held a copy of the same DKMS source tree, the git clone it came from (with .git), and both generation scripts. That is why the diff below is an actual git diff rather than something reconstructed from memory — it was produced by unpacking that clone and running git diff in it a few minutes ago.

3. What's in the new gist

https://gist.github.com/yakold/31888e55cc60a534efdefa03f2bdbdd6

file bytes what it is
1.1.1-vs-8a6f6bd.patch 8,008 git diff of the tree that was compiled — 7 files, +36/−26
extract_boot_assets-1.1.1.py 8,129 the patched extractor (NvU64 elements + re-pinned sources)
generate_v67-1.1.1.py 6,380 the V67 payload generator, unmodified upstream
dkms-1.1.1.conf 489 the dkms.conf that was installed
tb2-1.1.1.cu 2,375 the cuBLAS harness behind the 183.4 / 93.5 TF numbers

4. What the diff actually contains

Makefile                          NV 610.43.03 → 615.71.10
VERSION                           1.1.0 → 1.1.1
firmware/extract_boot_assets.py   accept NvU64 elements, trim 8-byte alignment
                                  padding, re-pin 4 generated-source SHA-256s
kernel/gpu_unlock/dkms.conf       PACKAGE_VERSION 1.1.1
kernel/gpu_unlock/main.c          MODULE_VERSION 1.1.1
kernel/gpu_unlock/gfw_eval.h      version string in two comments
kernel/gpu_unlock/unlock_610.c    7 firmware path #defines → 615.71.10

unlock_610.c is 1,738 lines and the diff touches 12 of them (12 insertions, 12 deletions). Filtering every changed line for gpu-unlock/, 610.43.03 and 615.71.10 leaves nothing, so that file changed only in path strings and comment text — the statement that its logic is unmodified does hold.

5. Two things about the recipes that should not be assumed

  • The V67 payloads are synthetic, not extracted. generate_v67.py fills 0xFA00 bytes with 0x0000019C and then writes 19 fixed offsets. The two payload SHA-256s it pins (2a0aa1f8… for GA102, 44c36b2d… for the AD10x four-PLM chain) are exactly the values the 615.71.10 asset set has, because the output does not depend on the input driver package at all.
  • The gsp_ga10x.bin I shipped did not come out of that script. generate_v67.py still pins GSP 57237362…, which is the 610.43.03 image. The 615.71.10 image (4b05cec5…) was taken from the driver package's /lib/firmware/nvidia/615.71.10/gsp_ga10x.bin. Run the script as-is against a 615 input and it will stop at the GSP check — that is by design, not a bug you need to work around.

So of the nine assets, only the GSP is driver-version-dependent per this recipe; the four Booter/boot/desc files and the two V67 payloads come out of processes that don't read version-specific bytes.

6. What I left out, per your note

No binaries — not the 27 MB GSP, not the 64 KB V67 payloads, not the compiled .ko. No credentials, no unrelated machine files. The nine asset SHA-256 values are in my earlier comment, and I can confirm any of them against what is installed on this machine if a specific byte comparison matters to you.

<!-- gh-comment-id:6456352020 --> @yakold commented on GitHub (Oct 27, 2026): Thanks — your reading of what is and is not established matches mine, so I won't restate it. Two corrections from my side, then the material you asked for. ## 1. The baseline sha I gave last time was wrong I wrote `4662fae0`. That is the *current* head of `woodsonl:ad103-rtx4080super`, but the branch was re-committed onto the 2.0 layout at **2026-10-27T22:21:59Z** — twelve minutes before Release 2.0. The tree I actually built 1.1.1 from is: ```text 8a6f6bde63fcdeefb9956cd743ca61201d38e5cf "Accept the RTX 4060 Ti 16GB device ID" 2026-10-25 18:38:58 -0500 ``` Diffing against `4662fae0` would compare two different generations of the tree. Use `8a6f6bd`. ## 2. The 1.1.1 tree was removed, but an identical copy survived `/usr/src/gpu-unlock-1.1.1` was deleted on 2026-10-28 at the machine owner's request. A self-contained kit directory packed on 2026-10-26 still held a copy of the same DKMS source tree, the git clone it came from (with `.git`), and both generation scripts. That is why the diff below is an actual `git diff` rather than something reconstructed from memory — it was produced by unpacking that clone and running `git diff` in it a few minutes ago. ## 3. What's in the new gist https://gist.github.com/yakold/31888e55cc60a534efdefa03f2bdbdd6 | file | bytes | what it is | |---|---:|---| | `1.1.1-vs-8a6f6bd.patch` | 8,008 | `git diff` of the tree that was compiled — 7 files, +36/−26 | | `extract_boot_assets-1.1.1.py` | 8,129 | the patched extractor (NvU64 elements + re-pinned sources) | | `generate_v67-1.1.1.py` | 6,380 | the V67 payload generator, unmodified upstream | | `dkms-1.1.1.conf` | 489 | the `dkms.conf` that was installed | | `tb2-1.1.1.cu` | 2,375 | the cuBLAS harness behind the 183.4 / 93.5 TF numbers | ## 4. What the diff actually contains ```text Makefile NV 610.43.03 → 615.71.10 VERSION 1.1.0 → 1.1.1 firmware/extract_boot_assets.py accept NvU64 elements, trim 8-byte alignment padding, re-pin 4 generated-source SHA-256s kernel/gpu_unlock/dkms.conf PACKAGE_VERSION 1.1.1 kernel/gpu_unlock/main.c MODULE_VERSION 1.1.1 kernel/gpu_unlock/gfw_eval.h version string in two comments kernel/gpu_unlock/unlock_610.c 7 firmware path #defines → 615.71.10 ``` `unlock_610.c` is 1,738 lines and the diff touches 12 of them (12 insertions, 12 deletions). Filtering every changed line for `gpu-unlock/`, `610.43.03` and `615.71.10` leaves **nothing**, so that file changed only in path strings and comment text — the statement that its logic is unmodified does hold. ## 5. Two things about the recipes that should not be assumed - **The V67 payloads are synthetic, not extracted.** `generate_v67.py` fills `0xFA00` bytes with `0x0000019C` and then writes 19 fixed offsets. The two payload SHA-256s it pins (`2a0aa1f8…` for GA102, `44c36b2d…` for the AD10x four-PLM chain) are exactly the values the 615.71.10 asset set has, because the output does not depend on the input driver package at all. - **The `gsp_ga10x.bin` I shipped did not come out of that script.** `generate_v67.py` still pins GSP `57237362…`, which is the 610.43.03 image. The 615.71.10 image (`4b05cec5…`) was taken from the driver package's `/lib/firmware/nvidia/615.71.10/gsp_ga10x.bin`. Run the script as-is against a 615 input and it will stop at the GSP check — that is by design, not a bug you need to work around. So of the nine assets, only the GSP is driver-version-dependent per this recipe; the four Booter/boot/desc files and the two V67 payloads come out of processes that don't read version-specific bytes. ## 6. What I left out, per your note No binaries — not the 27 MB GSP, not the 64 KB V67 payloads, not the compiled `.ko`. No credentials, no unrelated machine files. The nine asset SHA-256 values are in my earlier comment, and I can confirm any of them against what is installed on this machine if a specific byte comparison matters to you.
Sign in to join this conversation.
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
windows-GPU-UNLOCK/Windows-GPU-UNLOCK#34
No description provided.