mirror of
https://github.com/windows-GPU-UNLOCK/Windows-GPU-UNLOCK.git
synced 2026-12-03 20:13:30 +07:00
[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
Labels
No labels
bug
documentation
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
windows-GPU-UNLOCK/Windows-GPU-UNLOCK#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 with0xbadf5620andWPR2never 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
10de:2702, AD103, PCIe Gen4 x8 each (0000:02:00.0,0000:03:00.0)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 13linux/*.hheaders. Everything below reproduces identically in both environments:Where it dies
Under Linux, immediately after, in the same power cycle:
wpr_hi = 0x0vs0x7ff6e00is the whole failure.0xbadfincode_va/dma_stsis NVIDIA's bad-state marker — the falcon microcode started and then crashed.Already excluded (please don't spend time re-testing these)
commanddifferscommand=0x3before the transactionreadlStall(50 ms)before the start bitDisconnectControllerwbinvdinstead ofdma_wmbIMEMC/IMEMD0xdead5ec1in both; Linux succeeds reading the same value, so the check is a red herring/dev/mem0x60000is byte-identical (7ec133c572920bb6); FWSEC image region also identicalGCMD=0x00000000,RTADDR=0x00000000— translation never enabled. Two DRHD units at0xfc800000/0xfc810000So: 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
WPR2?DMATRFCMDbit semantics and the Falcon HS-mode preconditions are not documented publicly.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.
@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.candchecks.cto see whether your verified path does anything structurally different from what I built. It does not — same vendoredunlock_610.c, same 13compat/linux/*.hstubs, 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:
BootNextinto a menu entry).docs/HEADLESS.en.mdrecords 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.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=0x0andcode_va/dma_sts = 0xbadf5620either 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
DisconnectControllerearly 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
wpr2_hi != 0before leaving, and keep the halt + PCIe FLR finaliser for the failure path.Either that fixes
0xbadf5620on 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.@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.mdNext-test contract:
github.com/DeclanFrampton/Windows-GPU-UNLOCK@e86462d8c7/research/profile/AD104-TWELFTH-BOOT.en.mdNo cold-entry, FWSEC/WPR2 transaction result or 4070 Ti unlock is claimed.
@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
@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:
command = 0007(BME enabled),attributes = 0x718, and all eight PCI configuration snapshots identical.IMG29 Stop(binding, gpu, 1, &child), child confirmed absent by fresh enumeration.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:
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:
command = 0x3(IO + mem decode) before the transactionreadlStall(50 ms)before the start bitDisconnectControllerdma_wmb→wbinvd(full flush)0x60000GCMDGCMD = 0, translation not enabledAllocateMaxAddress = 0xFFFFFFFF0xfe4c0000is an IOVA, not a physical addressTwo of these are traps worth calling out explicitly:
DisconnectControlleris 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.0xfe4c0000address 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.care byte-for-byte untouched; the port is a compatibility layer around them, so upstream changes can be pulled without rebasing anything.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.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:
BAR0 + 0x300000, 1 MiB. The expansion ROM BAR is wrong:pci_map_romstops at the PCI last-image marker and hides the VN extension. ReadingBAR0 + 0x300000produced field-for-field agreement with the kernel.memcpy_fromiotakes 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 movsbhangs this firmware — do not use it.printfpitfalls: a flag-parsing loop that skips%s(advancefmtinside the case), and\nneeds an explicit\r.EFI_FILE_INFO.FileSizeis at offset 16, not 8; the buffer must be ≥512 bytes and the GUID must be passed explicitly.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 withwait_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.BootNextsurvives power loss. If the program hangs and you pull the plug,BootNextis still set and it will run again and hang again. Recovery is: clearBootNextfirst, 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:
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
0xbadf5620narrows 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.cmode dispatch (the staged-mode logic and diagnostics, not the upstream transaction)build-c.sh+ link lineFor the DMA allocation specifically, since you asked: it is
AllocatePageswithAllocateMaxAddress = 0xFFFFFFFFfor 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.cunchanged, 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.@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:
linux_shim.hlinux_env.creadl/writel,dma_alloc_coherent,request_firmware,pcie_flr,pci_save_state/pci_restore_state,ktime,msleep/udelayuefi_lib.h/uefi_lib.cul_mark)unlock_uefi.cefi_main, mode dispatch, diagnostics, cleanup pathbuild-c.shstage-c.shsrc/, applies the portregdiff_snippet.cprobe.cromtest.cMakefileWhat is deliberately not included, so you do not go looking for it:
unlock_610.cand friends (prep_610.c,vbios_610.c,layout_610.c,gfw_eval.c). Not included because it is unmodified upstream — take it fromZagitta/gpu-unlockat 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 stublinux/*.hheaders pluserrno.h/stdio.h/stdlib.h/string.h. Not included because they are mechanical stubs that exist only to satisfy#includedirectives 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:
build-c.shhas 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./usr/include/efi,x86_64,protocol) — fromedk2orgnu-efidepending on your distro.Where to look for the parts you asked about specifically:
linux_env.c, thedma_alloc_coherentimplementation. It isAllocatePageswithAllocateMaxAddress = 0xFFFFFFFFfor a 27 MB contiguous range, then mapped through the device'sEFI_PCI_IO_PROTOCOLDMA interface. The detail that matters: the addressAllocatePagesreturns is not the address the device sees — you have to take the bus address fromPciIo->Map(), and the descriptor (page count,CommonBufferDmaMemory/CommonBufferMemorysplit) is where a silent mismatch hides. My first version used the returned pointer directly and it "worked" forc1andloadand only failed once real MMIO traffic started.regdiff_snippet.cis the block itself; the surrounding driver is the same list compiled into the kernel module. Both dump to a text file, then diffed. Thepatch_regdiff.pyglue script is not in the gist but is trivial — tell me if you want it.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.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.
@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
DisconnectControllerresult 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_DRIVERowner relationship was gone after the final stop; PCI command changed from0007to0000and attributes from0x718to0. 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 status0at DMACTL0x11010c(test 25), RISC-V CPUCTL0x111388(tests 28/29), and BCR0x111668(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.cusesAllocateAnyPagesand returns the physical allocation address as the DMA address; I don't see theAllocateMaxAddressplusPciIo->Map()path you described. Inunlock_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_INFOlayout placesFileSizeat offset 8 andPhysicalSizeat 16; the gist uses the typedFileSizefield, 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 consumingBootNextbefore 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.
@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
AllocatePageswithAllocateMaxAddress = 0xFFFFFFFFand is mapped throughEFI_PCI_IO_PROTOCOL→Map(), and that the addressAllocatePagesreturns is not the address the device sees.The published
linux_env.c(dma_alloc_coherent, lines 199–221) does neither. It callsAllocateAnyPages, takes the returned physical address, and returns it as the DMA address with an identity-map assertion: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.cunlock_uefi.c:591–597isgpu_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, thenpcie_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 isFileSize, 16 isPhysicalSize. I had it backwards. You are also right that it does not matter for the shipped code:read_mode()usesRead()and never callsGetInfo.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:
phase-a.sh(OVMF smoke test forprobe.efi),qemu-c1.sh,qemu-load.sh(real 27 MB asset through a FAT image),do-restart.sh,70-gpu-dyndbg.cfgunlock_uefi.cbetween 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.pycleanup_snippet.c,iommu_snippet.c,iommu_snippet2.c,imem_snippet.c,prestart_snippet.c,writel_snippet.cAsset 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:
The
v67payloads 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, DKMS1.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 adkms.confedit, so I have left it out rather than pad the gist with upstream files.Upstream baseline for the port:
Zagitta/gpu-unlockPR #24 (woodsonl:ad103-rtx4080super), head4662fae094041881eba15440ae0f6a7901a94748, base6081407b312aa3139a2bed62bdda354f4ffddc1d.unlock_610.cwas carried unmodified at 1,738 lines.What I cannot give you, and why
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".port/include/, the 13 stub headers. Not kept.On
0xBADF5620Your point changes what my report means, and I accept it: the same pattern at DMACTL
0x11010c, RISC-V CPUCTL0x111388and BCR0x111668, 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.@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
AllocateAnyPageswith the physical address used as the DMA address. TheMap()/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,0xBADF5620alone 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.1tree, or a diff against the pinned upstream commit, includingdkms.confand 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_DRIVERrelationship, 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.@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 ofwoodsonl: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:Diffing against
4662fae0would compare two different generations of the tree. Use8a6f6bd.2. The 1.1.1 tree was removed, but an identical copy survived
/usr/src/gpu-unlock-1.1.1was 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 actualgit diffrather than something reconstructed from memory — it was produced by unpacking that clone and runninggit diffin it a few minutes ago.3. What's in the new gist
https://gist.github.com/yakold/31888e55cc60a534efdefa03f2bdbdd6
1.1.1-vs-8a6f6bd.patchgit diffof the tree that was compiled — 7 files, +36/−26extract_boot_assets-1.1.1.pygenerate_v67-1.1.1.pydkms-1.1.1.confdkms.confthat was installedtb2-1.1.1.cu4. What the diff actually contains
unlock_610.cis 1,738 lines and the diff touches 12 of them (12 insertions, 12 deletions). Filtering every changed line forgpu-unlock/,610.43.03and615.71.10leaves 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
generate_v67.pyfills0xFA00bytes with0x0000019Cand 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.gsp_ga10x.binI shipped did not come out of that script.generate_v67.pystill pins GSP57237362…, 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.