mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[PR #115] [CLOSED] FWSEC: round DMEM DMA up to 256 bytes (fixes RTX 3060 10de:2544) #147
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#147
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?
📋 Pull Request Information
Original PR: https://github.com/Zagitta/gpu-unlock/pull/115
Author: @lerpongn
Created: 10/25/2026
Status: ❌ Closed
Base:
main← Head:fwsec-dmem-align📝 Commits (1)
b78b713FWSEC: round DMEM DMA up to 256 bytes📊 Changes
1 file changed (+28 additions, -4 deletions)
View changed files
📝
kernel/gpu_unlock/unlock_610.c(+28 -4)📄 Description
Summary
Unlocks the RTX 3060
10de:2544(non-LHR GA106), which previously failed with-22inunlock_transaction_fwsecand left the card stuck until a power cycle.Root cause
This card's FWSEC image has
dmem=0x980, which is not a multiple of 256. Falcon DMA moves 256-byte blocks, sofalcon_dma_valid()rejected the DMEM load insidefalcon_hs()with-EINVAL. This happened afterfirmware_startedwas set, so the unwind tried to stop firmware that was never started (quiesced=0), kept the DMA buffers, andnvidiathen failed to claim the BAR (request_mem_region failed).The last MMIO before the failure was
0x8241e0(the FWSEC fuse read for ucode 9), which confirms the failure was before any Falcon access.The FWSEC header differs from previously reported cards:
signatures=4 versions=0xf(working cards reportsignatures=3 versions=0x7). Signature selection itself was fine (fuse version 2 -> 3rd signature).Fix
0x980 -> 0xa00, buffer0xed00= image size).firmware_startedis set, so an unloadable layout fails cleanly instead of needing a power cycle.ALIGN/max_tsotests/unlock_shimstill compiles.Cards with a 256-aligned DMEM (e.g.
10de:2504,dmem=0x800) take exactly the same path as before.Hardware
10de:2544(subsystem19da:2630)10de:250494.06.54.00.1794.06.2F.00.89unlock failed (-22), card stuckUbuntu 24.04, kernel
6.8.0-147-generic, NVIDIA open driver595.99.02,gpu_unlock.targets=0000:2b:00.0,0000:04:00.0. Both cards unlock in the same boot.Logs
Before (Zotac):
After (Zotac, now at 04:00.0 after a slot swap):
Benchmark
Dense 8192^3 GEMM, FP32 accumulation, median of 5, both cards at 140 W:
10de:254410de:2504Testing
make install(Debian package path) passes all 5 unit tests, includingtest_components.6.8.0-147-generic.nvidiabinds both.This patch was developed with AI assistance (Claude) and tested on the hardware above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #115] FWSEC: round DMEM DMA up to 256 bytes (fixes RTX 3060 10de:2544)to [PR #115] [CLOSED] FWSEC: round DMEM DMA up to 256 bytes (fixes RTX 3060 10de:2544)