mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[GH-ISSUE #38] unlock failed - thunderbolt attached 3090 #30
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#30
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 @dagbdagb on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/38
This is a laptop with a single TB3-connected 3090. Is there some kind of timing sensitive code in gpu_unlock which may need tuning for this type of connection? I note the
budget_us=1000line in the output below. Is this a safe parameter to change in the code?For testing, I have blacklisted all nvidia modules and evicted both those and gpu_unlock from initramfs to be able to run the module loading by hand for now.
On loading gpu_unlock, I see this:
Would be grateful for suggestions on how to proceed.
@odcpw commented on GitHub (Oct 24, 2026):
There is a related state-accounting problem in reviewed revision
4189b17711bd487d9ea4a8ff0055e6d58d19d6d3that is worth separating fromtimeout tuning. This does not establish the cause of the Thunderbolt
failure above: the report does not identify that revision, and its line
numbers/log behavior differ.
unlock_transaction_fwsec()setswork->firmware_started = truebeforecalling
falcon_hs(). Butfalcon_hs()can still fail during pure validationor a read-only reset-readiness check, before its first Falcon write, DMA
command or CPU start. The early flag then causes normal unwind to be refused.
I reproduced this offline with the production transaction, pinned firmware,
and the existing synthetic-ROM/MMIO/PCI/DMA shim: start with the cold-success
setup and make the first GSP reset-control read (
regs[0x1103c0 / 4]) return0xbadf0001. The diagnostic output is:Thus a failure before any Falcon write still retains the coherent allocation
set, BAR claim, device reference and module pin. PCI setup/BME configuration
has already occurred; "no Falcon write" does not mean the whole transaction
was read-only. This was a simulated failure, not a GPU experiment.
Relevant source:
A bounded improvement would distinguish "no Falcon mutation/exposure yet"
from "Falcon touched / DMA may be live", setting the conservative retention
marker no earlier than the first Falcon write. Normal unwind could then run
for a pure preflight/read failure. PR #35 already addresses a related geometry
preflight case; this read-only reset-control case extends beyond that change.
Do not move the marker only to CPU start: a failed DMA submission can
leave host memory exposed before the CPU starts. Keep retention conservative
after the first Falcon write, DMA submission or launch until quiescence is
proven. Tests should distinguish preflight/read-only failure from first-write,
DMA-timeout and post-launch failures. Increasing or ignoring timeouts would
not fix this accounting problem.
@dagbdagb commented on GitHub (Oct 24, 2026):
A git pull and rebuild, and proper validation that the installed module is from the recently built tree, and it works.
af28cbbfd3results in a working unlock for me.