#asahi-dev · 2026-06-28 08:04
yuka"&&" makes little sense to me unless there is some device which has notify_pmp && id == 0#asahi-dev · 2026-06-28 08:04
yukaboth as in "notify_pmp || id1 != 0"?#asahi-dev · 2026-06-28 08:02
yukashould I also add the dev.flags.notify_pmp -> dev.id1 != 0 which you mentioned the other time?#asahi-dev · 2026-06-28 07:52
yukais there any problem with making PMPRegTracer async? If not I would submit that as a PR#asahi-dev · 2026-06-28 07:50
yukaoffsets seem to be the same as t602x#asahi-dev · 2026-06-28 07:45
yukaDEV_STATUS_TGT_RD / DEV_STATUS_TGT_UNK / DEV_STATUS_TGT_WR / PMP_STATUS / PMP_STATUS_UNK / DEV_STATUS_ACT / DEV_STATUS_ACT_UNK#asahi-dev · 2026-06-28 07:44
yukaI see both named and unnamed reads/writes in the PMPRegTracer#asahi-dev · 2026-06-28 07:42
yukaI see things#asahi-dev · 2026-06-28 07:40
yukathat boots#asahi-dev · 2026-06-28 07:40
yukachanged the tracer to async mode#asahi-dev · 2026-06-28 07:38
yukaI assume it's just too slow with the tracing, but I don't know for sure?#asahi-dev · 2026-06-28 07:36
yukaup to that point#asahi-dev · 2026-06-28 07:36
yukaI do get lots of spam from PMPRegTracer#asahi-dev · 2026-06-28 07:36
yukaHmm, I added the PMS_PTS_PTD reg to PMPRegTracer, and now it crashes "PMP Failed to Come Online within 30 seconds"#asahi-dev · 2026-06-28 07:11
yukahttps://x0.at/IogC.txt#asahi-dev · 2026-06-28 07:09
yukathere is none with PMP#asahi-dev · 2026-06-28 07:09
yukaWhich name am I looking for in the Register Map?#asahi-dev · 2026-06-28 07:04
yukaOk yeah, it didn't boot fully with that but I probably got the output I need#asahi-dev · 2026-06-28 07:00
yukathx#asahi-dev · 2026-06-28 07:00
yukado you usually apply it on your kernelcache before uploading it, or is there some function to let m1n1 patch it?#asahi-dev · 2026-06-28 06:59
yuka* from what I understand#asahi-dev · 2026-06-28 06:59
yukachaos_princess: from what i_can_has_debugger is a patch to the kernel?#asahi-dev · 2026-06-28 06:48
yukathis whole "kernel write to read-only memory" feels like some mechanism for locking down address space has been left enabled#asahi-dev · 2026-06-28 06:48
yukait wouldn't make sense anyways if it was amcc it would affect all cores equally#asahi-dev · 2026-06-28 06:44
yukaSo, uh#asahi-dev · 2026-06-28 06:41
yukaso it's 32 bit#asahi-dev · 2026-06-28 06:41
yukano, the upper address reg is lower address reg + 4#asahi-dev · 2026-06-28 06:40
yukaI guess the addresess should be 64 bit and are spread over multiple 32-bit mmio reads?#asahi-dev · 2026-06-28 06:39
yuka(the ranges I end up from plain read32() on amcc {lower,upper}-limit-reg are 0x1-0xa6 and 0x0-0x35d, which seems quite odd to me)#asahi-dev · 2026-06-28 06:38
yukanickchan: ah fair, was just an idea but then probably not the cause#asahi-dev · 2026-06-28 06:37
yukaiirc I already had one trace containing those writes#asahi-dev · 2026-06-28 06:37
yukaI mean I can also trace all pmgr and then see where the pmp shaped writes end up#asahi-dev · 2026-06-28 06:36
yukaAhh makes sense#asahi-dev · 2026-06-28 06:35
yuka(and not locked)#asahi-dev · 2026-06-28 06:35
yukanickchan: yes but c and d are not enabled#asahi-dev · 2026-06-28 06:34
yukachaos_princess: so the PMPTracer traces the iokit part only, and if I want to see the power state communication I add another trace_device()?#asahi-dev · 2026-06-28 06:33
yukaI can't quite parse the lower-limit and upper-limit yet#asahi-dev · 2026-06-28 06:33
yukaamcc-ctrr-a and amcc-ctrr-b seem to be enabled, write-disabled, and locked#asahi-dev · 2026-06-28 06:32
yukaAn idea regarding the M4 "kernel write to read-only memory":#asahi-dev · 2026-06-28 06:11
yukabut it's all been during boot#asahi-dev · 2026-06-28 06:11
yukaHuh, I would've expected some PMPTracer output during operation when I turn off/on the wifi / display / ...#asahi-dev · 2026-06-26 19:20
yukahaven't had time to look into it more closely yet#asahi-dev · 2026-06-26 19:20
yukabut it didn't work for me when I tried it on t8132 earlier#asahi-dev · 2026-06-26 19:20
yukahttps://github.com/IntegralPilot/linux2/commits/dc-serial-test/#asahi-dev · 2026-06-26 14:00
yuka(nixos does these things a bit differently)#asahi-dev · 2026-06-26 13:59
yukabut it's okay I can operate my computer ;)#asahi-dev · 2026-06-26 13:59
yuka"/lib/firmware/apple": No such file or directory (os error 2)#asahi-dev · 2026-06-26 13:59
yukathe compiled fw is loaded like other firmware?#asahi-dev · 2026-06-26 13:58
yukaI found your branch