mirror of
https://github.com/JustAResearcher/gpu-unlock-ada.git
synced 2026-12-03 20:45:57 +07:00
[PR #142] gpu_peek: fix FEAT_READOUT_1 nine-field decode #141
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JustAResearcher/gpu-unlock-ada#141
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/JustAResearcher/gpu-unlock-ada/pull/142
Author: @ducduong97hn
Created: 11/7/2026
Status: 🔄 Open
Base:
main← Head:fix/feat-readout-1-decode📝 Commits (1)
bd84eefgpu_peek: fix FEAT_READOUT_1 nine-field decode (#136)📊 Changes
1 file changed (+9 additions, -1 deletions)
View changed files
📝
diagnostics/peek/gpu_peek.c(+9 -1)📄 Description
peek_cluster()decodesFEAT_READOUT_1as(value >> (3 * field)) & 7forfield0..8, treating the nine fields as contiguous 3-bit groups. They are not: the fields sit at bit offsets0, 3, 7, 10, 13, 16, 19, 22, 28, with gaps at bit 6 and bits 27:25. The shift slips one bit from the third field onward.Checked by hand against the issue's example:
Both match what the issue reports (the old decode produces four out-of-range 6s for a field that is only ever 0-5; the new one matches the expected correct decode). This also confirms the issue's point that the "values 6 are out of range" follow-up on #12 was the decoder, not the card.
Fix is exactly the shift table the issue suggested:
Didn't add the suggested userspace unit test:
gpu_peek.chas no#ifdef __KERNEL__userspace branch the wayvbios_610.cdoes, so there's no existing harness to hang a test on, and building one just for this one function felt like more new infrastructure than the fix warrants. Happy to add one if you'd rather have it than not.Fixes #136
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.