mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[GH-ISSUE #42] Reject PRI-error samples in the initial GFW assessment #28
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#28
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 @odcpw on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/42
Problem
At
4189b17711bd487d9ea4a8ff0055e6d58d19d6d3,gpu_unlock_gfw_assess()rejects
0xffffffffbut accepts some0xbadfxxxxregister-error values as acompleted GFW state. The same module's
inaccessible()helper treats the0xbadfxxxxfamily as inaccessible.This is an offline-reproduced validator inconsistency, not a report that a
specific GPU produced this sample or that the entire unlock bypassed its
remaining checks.
Minimal reproduction
Save as
gfw-sentinel-repro.cat the repository root:Actual:
0(complete). Expected: an inaccessible-device result (-ENODEV),not success.
Caller distinction
The initial
unlock_transaction_gfw()passes samples directly to this helper.It has additional feature/WPR2 checks after a successful assessment, so this
does not prove a complete transaction bypass.
wait_post_flr_gfw()already appliesinaccessible()to the sample first andtreats temporary unreadable values as
-EAGAINwithin a bounded deadline.That post-reset tolerance should remain intact.
Proposed patch and acceptance tests
predicate before testing completion bits.
full PCI identity, defer the protected BOOT read until PL0 is readable, and
retry transient inaccessible samples within the existing bounded deadline.
Keep the predicate's inaccessible classification separate from the caller's
retry policy.
mixed error samples, all-ones values, valid completion, and legitimate
not-yet-complete samples.
launching FWSEC or Booter: a permanent error must time out; an error followed
by valid samples must recover without succeeding on the error sample.
No driver reload, firmware execution, or live GPU testing was performed for
this finding.