|
|
Took four open questions to an RX 7900 XTX over the USB<->PCIe bridge. Two
produced results, one is not host-observable, one needs a build we do not have.
Ring status codes, emulator vs silicon: 7/9 exact. GET_FW_ATTESTATION -> 0x0,
every unknown command id (0x00/0x55/0x99/0xfe/0x1000) -> 0x100, INVOKE_CMD ->
0x117, all matching. LOAD_TA (hw 0x5 vs emu 0x116) and UNLOAD_TA (hw 0x117 vs
emu 0x11a) differ, and are explicitly NOT reported as firmware divergence: they
are the only state-dependent paths in the set, hardware has a live TMR and
loaded TAs, and the ring harness is a bare sOS with neither. Inputs were
equalised first (tinygrad leaves buf_size 0; the harness sends 0x400).
TA versions, the result I did not expect. The card's psp_13_0_0_ta.bin carries
four TAs, and our ras2.elf body is BYTE-IDENTICAL to the card's RAS 27.0.2.5
(db2ed53e...b58385, full hash equal on both sides). So RAS findings apply to
this silicon directly. But the card runs HDCP 23.0.0.63, DTM 18.0.0.22 and ASD
33.0.0.217, and none of those are the images in this tree -- we do not hold .63
at all, only .49/.70/.82 in vdiff. The HDCP fuzzing work, the largest body of
results here, is against a version this card does not run. That qualification
was stated nowhere before today.
Three successive attempts to read the emulator's ring status were wrong, and
each produced a clean, completely fake comparison table:
* R0 after tee_cmd_dispatch -- a code address, 0x206164;
* ring frame +20 -- gave 0 for every command, which was MY OWN INPUT echoed
back. A 0xDEADBEEF sentinel proved sOS never writes there. Without it I
would have published "emulator says 0 everywhere, hardware says 0x100" as a
divergence;
* the real location is resp.status at offset 864 of the command buffer,
confirmed independently on both sides.
The sentinel is the only reason the table above is trustworthy.
0x3141 is not decidable from the host: the host speaks GFX ring commands, while
0x3141 is a TA->SYS_DRV RPC on a path the host never addresses. Checked the
driver anyway -- and the first check was garbage, running lzma on a .zst and
silently searching compressed bytes for a meaningless 0. Done properly, with
controls, amdgpu.ko has the dword 37 times, all in `add eax,0x3141` register
arithmetic, none an RPC emission.
sOS gate semantics are not host-observable at all -- SVCs happen between a TA
and sOS inside the PSP. Said plainly instead of substituting a weaker check and
implying it covered them. Same for the 0xE575B8 blocker.
Also fixed vram_probe.py on the box: it called a healthy card FROZEN by sampling
the heartbeat three times back-to-back when the counter ticks ~132/s, so all
three reads landed in one tick. Spaced sampling; measured deltas 68/57/71/69.
|