aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruser <user@clank>2026-09-23 15:00:20 +0200
committeruser <user@clank>2026-09-23 15:00:20 +0200
commit537ece6e89b1842e02efe0bb6de2f713dc50dc59 (patch)
tree69913a686cc55c80d2a699cd9e60f68482a04c96
parentTrace RAS's last blocker to uninitialised SYS_DRV context, not a bad request (diff)
downloadamd-psp-re-537ece6e89b1842e02efe0bb6de2f713dc50dc59.tar.gz
amd-psp-re-537ece6e89b1842e02efe0bb6de2f713dc50dc59.tar.xz
amd-psp-re-537ece6e89b1842e02efe0bb6de2f713dc50dc59.zip
Record the bounded search for what populates SYS_DRV's 0xE575B8 context
The 0x000d bound check fails because the capacity at 0xE575B8 is 0. Searched for what should fill it; did not find it, so the negative is recorded with its scope rather than left as a vague next step. Excluded: * run_init writes that region but only ZEROES it -- 8 word writes of 0 from the memset at 0xE019F4/F8; * none of RAS's four RPCs (0x0001, 0x0002, 0x1077, 0x000d) touch it; * no low opcode 0x01..0x40 changes it; * none of 36 sampled high opcodes change it, including all 11 ASD-emitted opcodes and every ACL-range start; * it is still all-zero in full_system.py after SYS_DRV has run ~548k blocks, so ordinary boot does not populate it either. Untested hypothesis, stated so it is not mistaken for excluded: the capacity may come from the caller's config block (request dword 18) rather than a global. I could not test it -- standalone 0x000d faults before reaching the bound check, which is the replay unfaithfulness already documented in this file -- so it has to be tried with RAS driving inside the bridge. Two scans in this area returned zero hits and were NOT trusted, because both failed a sanity check: a search for instructions loading the 0xffff0010 literal, and one for instructions loading the 0xE575B8 pointer. Both missed `ldr.w` wide encodings at the alignments I scanned. The error site was found by single-stepping instead. Recording this because a zero-hit scan is worthless unless it can find a known positive, and neither of those could.
-rw-r--r--psp_emu/harness/sysdrv_bridge.py22
1 files changed, 20 insertions, 2 deletions
diff --git a/psp_emu/harness/sysdrv_bridge.py b/psp_emu/harness/sysdrv_bridge.py
index 6d8ac13..f51bee0 100644
--- a/psp_emu/harness/sysdrv_bridge.py
+++ b/psp_emu/harness/sysdrv_bridge.py
@@ -56,8 +56,26 @@ the CCP queue globals at 0xE257D0/D4/D8/DC that used to make opcode 0x0001 fault
`pspemu/sysdrv_env.py` already mentions init touching 0xE575D4, immediately
adjacent, so whatever populates this region is close to work already modelled.
-The next step is to find what legitimately fills 0xE575B8 -- NOT to write a
-capacity there by hand, which would move the numbers and mean nothing.
+Search for what fills 0xE575B8 -- bounded negative, recorded so it is not
+repeated:
+
+ * `sysdrv_env.run_init` writes the region, but only ZEROES it (memset at
+ 0xE019F4/F8, 8 word writes of 0);
+ * none of RAS's four RPCs (0x0001, 0x0002, 0x1077, 0x000d) write it at all;
+ * no low opcode 0x01..0x40 changes it;
+ * none of 36 sampled high opcodes change it -- all 11 ASD-emitted opcodes,
+ each ACL-range start, and the harness's extras;
+ * it is still all-zero in the FULL system (`full_system.py`) after SYS_DRV has
+ executed ~548k blocks, so ordinary boot does not populate it either.
+
+One hypothesis remains untested: that the capacity comes from the caller's
+config block (request dword 18) rather than a global. It could not be checked
+standalone -- 0x000d faults before reaching the bound check when replayed
+outside the bridge, which is the unfaithfulness documented below -- so it has to
+be tried with RAS driving.
+
+Whatever the answer, do NOT write a capacity into 0xE575B8 by hand. That would
+move every number downstream and mean nothing.
Methodology note for whoever picks up 0x000d: **do not replay these opcodes
standalone.** Hand-building a request that looks like RAS's is not faithful --