aboutsummaryrefslogtreecommitdiffstats
path: root/hw/psp_mp1_pmi3_host_readonly.py
diff options
context:
space:
mode:
authoruser <user@clank>2026-10-09 16:11:31 +0200
committeruser <user@clank>2026-10-09 16:11:31 +0200
commitbc43149d914325e15dc0490dee9d982e21287623 (patch)
treea632cf70de742d5a60d01c9c0d806bf5b9257538 /hw/psp_mp1_pmi3_host_readonly.py
parentGCP->ASD 0x403: ASD-internal chain PROVEN end-to-end in emulator (real handlers) (diff)
downloadamd-psp-re-main.tar.gz
amd-psp-re-main.tar.xz
amd-psp-re-main.zip
Record PSP security investigation artifacts and probesHEADmain
Diffstat (limited to 'hw/psp_mp1_pmi3_host_readonly.py')
-rw-r--r--hw/psp_mp1_pmi3_host_readonly.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/hw/psp_mp1_pmi3_host_readonly.py b/hw/psp_mp1_pmi3_host_readonly.py
new file mode 100644
index 0000000..74ab9b9
--- /dev/null
+++ b/hw/psp_mp1_pmi3_host_readonly.py
@@ -0,0 +1,25 @@
+#!/usr/bin/env python3
+"""Read-only host SMN survey of candidate MP1 PMI3 adjacent words.
+
+Numeric 0x03B30600 occurs in signed Navi31 SMU13 firmware; adjacent
+register names are only a Navi22 hypothesis. Do NOT read the data word here:
+a read may be destructive. The only host writes select the SMN read index.
+"""
+from tinygrad import Device
+adev=Device['AMD'].iface.dev_impl
+
+def smn_read(a):
+ adev.wreg(14,a) # PCIE_INDEX2: address selector only
+ return adev.rreg(15)&0xffffffff
+
+for name,a in (
+ ('bogus_before',0x0FEEDC00),
+ ('mp0_before',0x03810ACC),
+ ('candidate_status_first',0x03B30604),
+ ('candidate_read_pointer',0x03B30608),
+ ('candidate_write_pointer',0x03B3060C),
+ ('candidate_status_again',0x03B30604),
+ ('mp0_after',0x03810ACC),
+ ('bogus_after',0x0FEEDC00),
+):
+ print(name,hex(a),hex(smn_read(a)),flush=True)