mirror of
https://github.com/JustAResearcher/gpu-unlock-ada.git
synced 2026-12-03 20:45:57 +07:00
[GH-ISSUE #14] RTX 3070 (GA104, 10de:2484) unlocked inside a VFIO guest; an in-guest FLR cleared WPR2, so no cold boot was needed #9
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JustAResearcher/gpu-unlock-ada#9
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 @goktug7913 on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/14
Summary
10de:2484, VBIOS 94.04.3A.40.2B, at revision4e7fefc.vfio-pci.nvidiafor days. I unloadednvidia, triggered an FLR from inside the guest, and the module then readwpr2_hi=0x0and completed the full sequence. On this card under VFIO, an FLR clears WPR2.-EALREADY.Setup
reset_method=flr bus, and DevCap showsFLReset+. The guest also seesFLReset+, so the claim check passes and the guest'spcie_flrbecomes a real FLR.nvidiais not in the initramfs. Firmware is generated withmake assetsand staged in/lib/firmware/gpu-unlock/610.43.03/. The module is built withmake -C kernel/gpu_unlockagainst the guest kernel.Live sequence (card previously initialized by nvidia)
Key log lines:
The stock 580.178.04 driver then loaded with no Xid errors.
Results (same card, 270 W cap, same driver and cubin, stock vs unlocked)
tensor_modes_issuef16/f32 (built for sm_86)tensor_modes_issuetf32/f32tensor_modes_issueu4/s32 (control)tensor_modes_issuemode.validate_gemm: 6/6 FP16/BF16 cases exact vs the CPU reference.Boot persistence
modules.dfile, andgpu_unlock.targets=0000:06:00.0on the guest cmdline.entry: plm=0xffffffff ss0=0x88888888 ss1=0x8 wpr2_hi=0x0, then-EALREADY. Throughput is still unlocked (f16/f32 90.6 T, cuBLAS 79.9 TF/s).Small suggestions
validate_gemm.cuhard-rejects anything other than sm_89. Allowing sm_86 (prop.minor != 9 && prop.minor != 6) was the only change needed to run it on Ampere.tensor_modes_issue.cubuilds unchanged with-arch=sm_86.gpu_unlock: unlock failed (-114). A distinct info-level message such as "already unlocked (PLM open), skipping" would avoid alarming anyone on warm/VM reboots.nvidiaand write to the sysfsresetnode first.@JustAResearcher commented on GitHub (Oct 26, 2026):
Thanks for a really clear report! GA104 under VFIO, with an in-guest FLR clearing WPR2, is a new and useful data point, and the matched numbers line up with the 3090/3080 results.
On your suggestions:
validate_gemmaccepts sm_86 on main now.-114on an already-unlocked card is the module skipping because the PLM is already open. Agreed that an info-level "already unlocked, skipping" would read better than "unlock failed".Closing as completed. Thanks again!