[GH-ISSUE #136] gpu_peek: FEAT_READOUT_1 is not nine contiguous 3-bit fields #129

Open
opened 2026-11-07 14:32:36 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @steviecurrie on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/136

peek_cluster() decodes FEAT_READOUT_1 as (value >> (3 * field)) & 7 for
field 0..8. The fields are not contiguous — they sit at bit offsets
0, 3, 7, 10, 13, 16, 19, 22, 28, with gaps at bit 6 and bits 27:25.

On a stock 0x00c36180 the contiguous decode prints
0 0 6 0 6 6 0 6 0: four out-of-range 6s, because the shift slips one bit
from fmla32 onward. The correct decode is 0 0 3 0 3 3 0 3 0.

That also explains the first follow-up on #12 describing "values 6 are out
of range" — it's the decoder, not the card. Anyone reading the sampled line
as a fuse mirror gets a wrong answer for every field from fmla32 up.

Fix is a shift table:

static const unsigned char shift[9] = { 0, 3, 7, 10, 13, 16, 19, 22, 28 };
out[field] = (value >> shift[field]) & 0x7u;

Suggested guard: a userspace unit test asserting 0x00c36180 decodes to
0 0 3 0 3 3 0 3 0 and that no field exceeds 7. Reproduced on GB206
(10de:2d04), and the same word is 0x00c36180 on GB202/GB203M, so it
affects every Blackwell dump, not just one card.

Originally created by @steviecurrie on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/JustAResearcher/gpu-unlock-ada/issues/136 `peek_cluster()` decodes `FEAT_READOUT_1` as `(value >> (3 * field)) & 7` for `field` 0..8. The fields are not contiguous — they sit at bit offsets `0, 3, 7, 10, 13, 16, 19, 22, 28`, with gaps at bit 6 and bits 27:25. On a stock `0x00c36180` the contiguous decode prints `0 0 6 0 6 6 0 6 0`: four out-of-range 6s, because the shift slips one bit from `fmla32` onward. The correct decode is `0 0 3 0 3 3 0 3 0`. That also explains the first follow-up on #12 describing "values 6 are out of range" — it's the decoder, not the card. Anyone reading the sampled line as a fuse mirror gets a wrong answer for every field from `fmla32` up. Fix is a shift table: ```c static const unsigned char shift[9] = { 0, 3, 7, 10, 13, 16, 19, 22, 28 }; out[field] = (value >> shift[field]) & 0x7u; ``` Suggested guard: a userspace unit test asserting `0x00c36180` decodes to `0 0 3 0 3 3 0 3 0` and that no field exceeds 7. Reproduced on GB206 (`10de:2d04`), and the same word is `0x00c36180` on GB202/GB203M, so it affects every Blackwell dump, not just one card.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JustAResearcher/gpu-unlock-ada#129
No description provided.