mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[PR #72] gfw_eval: keep polling on PRI-error samples #139
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#139
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/72
Author: @rafaellm2
Created: 10/25/2026
Status: 🔄 Open
Base:
main← Head:gfw-reject-pri-errors📝 Commits (1)
1cb357fgfw_eval: keep polling on PRI-error samples📊 Changes
2 files changed (+9 additions, -0 deletions)
View changed files
📝
kernel/gpu_unlock/gfw_eval.c(+5 -0)📝
tests/test_gfw_eval.c(+4 -0)📄 Description
Fixes #42.
gpu_unlock_gfw_assess()rejects all-ones reads but accepts0xbadfxxxxPRI-error values when they happen to pass the bit tests:
plm=0xbadf0001 boot=0xbadf00ff cpuctl=0xbadf0010is reported as complete.inaccessible()in unlock_610.c already treats that family as unreadable.
Such samples now return
-EAGAIN, so the initial wait inunlock_transaction_gfw()keeps polling and ends in-ETIMEDOUTif theypersist.
-EAGAINrather than the-ENODEVthe issue suggests:wait_post_flr_gfw()already maps inaccessible samples to
-EAGAIN, and the boot scratch registeris PL-protected until GFW opens it, so a PRI error there can be transient on a
card that is still booting. All-ones handling is unchanged.
Testing: a new case in tests/test_gfw_eval.c fails before and passes after.
make testwith generated firmware (full mocked unlock included) passes.Not tested on hardware.
Disclosure: the patch and its testing were done with an AI assistant (Claude).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.