mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[GH-ISSUE #184] Compatibility report: Gigabyte RTX 3060 12 GB (10de:2544), VBIOS 94.06.54.00.2E — unlock failed (-22): FWSEC dmem_size 0x980 not 256-aligned; failed unlock then blocks nvidia #168
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#168
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 @Ronrey66 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/184
Result
Unlock failed (error in the log)
Card
Gigabyte GeForce RTX 3060 12 GB (GA106, subsystem 1458:4074), retail
PCI IDs
(as seen in the guest)
VBIOS version
00000000:01:00.0, 94.06.54.00.2E
Is the card modified?
Stock
Distribution
Ubuntu 24.04.5 LTS (Proxmox VM guest)
Kernel
6.8.0-147-generic
NVIDIA driver
595.91.07, open kernel module (Ubuntu prebuilt
linux-modules-nvidia-595-server-open;nvidia.kois not in the initramfs)Initramfs generator
initramfs-tools
gpu-unlock version and install method
1.0.0,
af28cbb,make install(auto-detected install-deb)Kernel command line
Setup
Single RTX 3060 passed through with vfio-pci to a Proxmox q35 VM; gpu-unlock installed inside the guest (as in #17 / #172). Headless, no framebuffer on the card. Stock 200 W power limit. Secure Boot disabled. Entry state was clean (
plm=0xffffff8f wpr2_hi=0x0).Kernel log
/proc/iomemafter the failure:81000000-81ffffff : gpu_unlock(BAR0 still claimed by the module).Benchmark before and after
Before only (unlock failed). torch 2.8.0+cu128, 8192³ dense GEMM, FP32 accumulation, median of 5 windows, 200 W: FP16 29.06 / BF16 29.04 / TF32 14.68 TFLOPS.
Suspend and resume
Not tested
Anything else
1. Cause of -22: FWSEC DMEM size on this VBIOS is not a multiple of 256.
unlock_transaction_fwseccallsfalcon_hs(work, &gsp, 0, fw.imem_size, ..., fw.data_off, fw.dmem_size, fw.dmem_pa, ...)(unlock_610.c:993).falcon_hsvalidates both transfers withfalcon_dma_valid(), which requires!((size | dest | mem_off | src) & 255). With this VBIOS:imem=0xe300, pa/va 0 → passesdmem=0x980, srcimage + data_offwheredata_off = imem_size = 0xe300→0x980 & 0xff = 0x80→-EINVALat line 364The failure is the pre-check, before
falcon_reset()and before any Falcon write or DMA submission (no "Falcon reset done" / "Falcon DMA" lines in the log). The other reports I could find showdmem=0x800andversions=0x7; this VBIOS hasdmem=0x980,versions=0xf,signatures=4. Possibly the data transfer just needs rounding up to the 256-byte DMA block (as long as the rounded range stays inside the image buffer), but I have not tried that and don't know whether the extra bytes are harmless for FWSEC.2. A preflight failure still leaves the card unusable for nvidia until reboot.
work->firmware_started = trueis set at line 992, beforefalcon_hs()runs its validation, so this pure preflight failure goes down the retention path ("firmware did not stop; keeping its DMA buffers until power off") and the module keeps BAR0.nvidiathen failsrequest_mem_regionand no GPU is available for that boot. This looks like the case described in the comment on #38 (setting the retention marker before the first Falcon write). Removinggpu_unlock.targets=and rebooting the VM (no host power cycle) fully recovered the card: GEMM numbers were identical to the stock baseline afterwards.Happy to test a patch on this card.
@Ronrey66 commented on GitHub (Oct 26, 2026):
Tested #35 on this card: it works.
Build:
af28cbb+ cherry-pick offb457b1(#35),make install(deb + DKMS), Ubuntu 24.04 guest, kernel 6.8.0-147-generic, NVIDIA 595.91.07 open, Proxmox VM with the GPU passed through, Secure Boot off. Cold boot (VM stopped and started) withgpu_unlock.targets=0000:01:00.0.FWSEC geometry is identical to the ZOTAC board in #35 (
size=0xed00 imem=0xe300 dmem=0x980 signatures=4 versions=0xf), so the rounded DMEM fits exactly (0xe300 + 0xa00 = 0xed00).nvidia binds normally, no Xid / NVRM errors.
Stock vs unlocked, same day, 200 W power limit, torch 2.8.0+cu128, FP32 accumulation:
So #35 also covers VBIOS
94.06.54.00.2E(Gigabyte1458:4074), not only.17. Happy to close this once #35 is merged.Disclosure: an AI assistant (Claude Code) applied the patch, ran the tests and drafted this comment for the card's owner. The hardware runs and measurements are real.
@Zagitta commented on GitHub (Oct 29, 2026):
Thanks for testing #35 and for the benchmark numbers.
I didn't merge #35 because 2.0 fixes the same problem differently. The FWSEC v3 parser no longer requires
dmem_sizeto be a multiple of 256. It only checks that the size rounded up to 256 still fits in the image. Your card's geometry fits exactly (0xe300 + 0xa00 = 0xed00). The Falcon DMA path also rounds each transfer up to a full 256-byte block, which is what #35 did.Could you retest on 2.0 (current
main)?make install.gpu_unlock.targets=0000:01:00.0.dmesg | grep -i gpu_unlock, and say whether nvidia binds and the GEMM numbers match what you got with #35.If the unlock fails again, please also say whether nvidia still binds afterwards, since that was the second problem in this issue.
If it works, I'll close this issue and #35.