#
#asahi-dev · 2026-04-02 20:23
tryhard[m]i mean it doesnt use any iomom
#asahi-dev · 2026-04-02 20:23
chaos_princessit already does the right thing (almost)
#asahi-dev · 2026-04-02 20:22
chaos_princessmarcan's pmp tracer :P
#asahi-dev · 2026-04-02 20:22
tryhard[m]yes
#asahi-dev · 2026-04-02 20:22
chaos_princessfor iomon?
#asahi-dev · 2026-04-02 20:22
tryhard[m]so do you have maybe an example from the repo i can reference from?
#asahi-dev · 2026-04-02 20:21
tryhard[m]yeah
#asahi-dev · 2026-04-02 20:21
chaos_princesswell, you still want to figure out where all the junk that macos writes comes from, as your driver will also have to write it there
#asahi-dev · 2026-04-02 20:21
tryhard[m]so this type of thing is more relevant to the driver
#asahi-dev · 2026-04-02 20:20
tryhard[m]ok nice.
#asahi-dev · 2026-04-02 20:19
chaos_princessyou don't need to, just use iomon.poll() at the right places
#asahi-dev · 2026-04-02 20:19
tryhard[m]so if i want to read this before its gets override, how can i stop it before it does
#asahi-dev · 2026-04-02 20:19
chaos_princessthe iomon stuff is supposed to help you deal with this thing, you register memory addresses you want to watch, and every time you call iomon.poll(), it reads them, and prints a pretty diff
#asahi-dev · 2026-04-02 20:18
chaos_princessyep
#asahi-dev · 2026-04-02 20:18
tryhard[m]chaos_princess: mhm. and i care about this junk
#asahi-dev · 2026-04-02 20:17
tryhard[m]chaos_princess: uh you're right. didnt notice its not the same.
#asahi-dev · 2026-04-02 20:15
chaos_princessin case of 0x10, the payload follows the message, and it is an address in pmp's address space that macos is about to write a bunch of junk to
#asahi-dev · 2026-04-02 20:14
chaos_princessso, first, it is not 0x1, it is 0x10, you haven't fully copied over the message structs from where i said, as your tracer still has `TYPE = 56, 48` in PMPMessage, while the other file had `TYPE = 56, 44` (pay attention to the last digit)
#asahi-dev · 2026-04-02 20:12
tryhard[m]also how is the payload structured?
#asahi-dev · 2026-04-02 20:12
tryhard[m]?
#asahi-dev · 2026-04-02 20:12
tryhard[m]for example this: [cpu0] [PMPTracer@/arm-io/pmp] [pmpep] >0x1(None) 000100000003c000 (TYPE=0x1)
#asahi-dev · 2026-04-02 20:12
tryhard[m]it basically means message id is 0x1, None because we dont know whats the message, then the payload.
#asahi-dev · 2026-04-02 20:12
tryhard[m]just to make sure i understand the struct:
#asahi-dev · 2026-04-02 20:09
tryhard[m]nice it works
#asahi-dev · 2026-04-02 20:04
chaos_princesspass the dart to the superclass, it is reading from the wrong address without it
#asahi-dev · 2026-04-02 20:04
tryhard[m]or pass dart somehow
#asahi-dev · 2026-04-02 20:04
tryhard[m]so should i delete that?
#asahi-dev · 2026-04-02 20:04
tryhard[m]ok
#asahi-dev · 2026-04-02 20:03
chaos_princesssuper().start() <- this line does not pass dart to the superclass
#asahi-dev · 2026-04-02 20:02
chaos_princessoh, right, that thing, i remember now
#asahi-dev · 2026-04-02 19:59
tryhard[m]tracer: https://pastebin.com/rYdJwuKt
#asahi-dev · 2026-04-02 19:59
tryhard[m]the crash: https://pastebin.com/KEqrJThY
#asahi-dev · 2026-04-02 19:57
chaos_princessand that is not a pastebin
#asahi-dev · 2026-04-02 19:57
chaos_princessnot just the last few lines
#asahi-dev · 2026-04-02 19:57
chaos_princessthe whole thing
#asahi-dev · 2026-04-02 19:57
tryhard[m]pressed enter
#asahi-dev · 2026-04-02 19:57
tryhard[m]sent a code block: https://matrix.org/oftc/media/v1/media/download/ASzvNI8JYIqPKo1U2WVxG1RRHD0zR6zpM8zxQoZ6BitDAGEnjjRGORx7MF3YCxmQp1GwGuGII4wguM6RlbTjUMJCedl958VAAG1hdHJpeC5vcmcvU3NVaWZoU2dFU0dTaGFlUVpsTENQcmFj
#asahi-dev · 2026-04-02 19:56
chaos_princesspastebin the crash and tracer
#asahi-dev · 2026-04-02 19:56
tryhard[m]i copied it all but getting same crash.
#asahi-dev · 2026-04-02 19:49
chaos_princessit is getting PMPMessage from somewhere where it isn't supposed to
#asahi-dev · 2026-04-02 19:49
chaos_princessjust copy this entire block into your tracer https://github.com/AsahiLinux/m1n1/blob/main/proxyclient/m1n1/fw/pmp.py#L9-L66
#asahi-dev · 2026-04-02 19:47
chaos_princesswait.
#asahi-dev · 2026-04-02 19:46
tryhard[m]its just that 0x10 doesnt fix it
#asahi-dev · 2026-04-02 19:45
tryhard[m]just isnt 0x2 from `<0x2` mean the message id
#asahi-dev · 2026-04-02 19:45
tryhard[m]yeah i'm also not talking abotu the doorbell
#asahi-dev · 2026-04-02 19:44
chaos_princessjust change the message code (the first argument to the @msg decorator to 0x10) and it should work
#asahi-dev · 2026-04-02 19:43
chaos_princessi am talking about a message, not about the doorbell that writes 2
#asahi-dev · 2026-04-02 19:43
chaos_princessno? how did you get 2
#asahi-dev · 2026-04-02 19:42
tryhard[m]its not supposed to be 0x2?
#asahi-dev · 2026-04-02 19:40
chaos_princesshttps://github.com/AsahiLinux/m1n1/blob/main/proxyclient/hv/trace_pmgr.py#L57 - this line is wrong, as the message code is 0x10, not 1, see https://github.com/AsahiLinux/m1n1/blob/main/proxyclient/m1n1/fw/pmp.py#L16

plus ›