#asahi-dev · 2026-05-17 13:21
tryhard[m]it resets all the TTBRs and TCRs#asahi-dev · 2026-05-17 13:20
tryhard[m]i think that linux resets everything which causes problems#asahi-dev · 2026-05-17 13:18
chaos_princessyes#asahi-dev · 2026-05-17 13:16
tryhard[m]so dev are the streams right?#asahi-dev · 2026-05-17 13:14
chaos_princesssomething like that#asahi-dev · 2026-05-17 13:13
tryhard[m]chaos_princess: dump_all()?#asahi-dev · 2026-05-17 13:08
jannauthe latter with macos as partner, the former with tbt devices#asahi-dev · 2026-05-17 13:07
jannausven: what was your last broken tbt state? I get either up to "lane_init.c:343: Entering Phase 2" or "lane_init.c:396: Entering Phase 3" with "lane_init.c:936: Timeout reading AT register"#asahi-dev · 2026-05-17 13:06
chaos_princessboot into macos, wait for it to reach steady state, and then do a dump of relevant dart for stream 4#asahi-dev · 2026-05-17 13:05
tryhard[m]`[DARTTracer@/arm-io/dart-pmp] MMIO: R.4 ERROR = 0x4000000 (FLAG=0, STREAM=0x4, CODE=0x0, NO_DAPF_MATCH=0, WRITE=0, SUBPAGE_PROT=0, PTE_READ_FAULT=0, READ_FAULT=0, WRITE_FAULT=0, NO_PTE=0, NO_PMD=0, NO_TTBR=0)`?#asahi-dev · 2026-05-17 13:05
tryhard[m]what is this error mean:#asahi-dev · 2026-05-17 10:11
svenbut I can take a look once im home #asahi-dev · 2026-05-17 10:11
svenI don’t think I have a dump for the m3 pro, I just know that getting the address from that 0x10000 blob didn’t work #asahi-dev · 2026-05-17 09:58
yukaI guess I can check the dumps you sent me as an additional sample (what device was that?)#asahi-dev · 2026-05-17 09:58
yukaFor now I can only write something which works for the 3 devices I have (M1 Pro, M4, A18 Pro)#asahi-dev · 2026-05-17 09:57
yukasven: I have a hypothesis where to get the address, but I'd need more sample data to confirm it#asahi-dev · 2026-05-17 09:21
chaos_princessyou are using it wrong somehow#asahi-dev · 2026-05-17 09:20
tryhard[m]chaos_princess: well if the rtkit driver is supposed to set it...#asahi-dev · 2026-05-17 08:41
chaos_princessthe fact that you don't see a write to outbox_ctrl?#asahi-dev · 2026-05-17 08:39
tryhard[m]because otherwise i don't see any other reason that rtkit wont wake#asahi-dev · 2026-05-17 08:39
tryhard[m]maybe there is some init beforehand#asahi-dev · 2026-05-17 08:34
chaos_princessyou are failing during rtkit start, it shouldn't matter yet#asahi-dev · 2026-05-17 08:33
tryhard[m]my driver: https://paste.sh/vm76GJ1y#kNUDJGtxRWwJ6abCxcCubtyR macos: https://paste.sh/_mK98JPo#Mi2v1gfz889G3YAQR9soCqxt#asahi-dev · 2026-05-17 08:33
tryhard[m]lemme paste#asahi-dev · 2026-05-17 08:33
tryhard[m]though it differs#asahi-dev · 2026-05-17 08:32
chaos_princessprobably fine then#asahi-dev · 2026-05-17 08:32
tryhard[m]chaos_princess: tracer logs#asahi-dev · 2026-05-17 08:30
chaos_princessthen you are doing something wrong with mbox driver. also, what logs are we talking about, dmesg logs or tracer logs?#asahi-dev · 2026-05-17 08:29
svenyeah, the config one is enable_portal and you enable RPM and PPM there#asahi-dev · 2026-05-17 08:29
tryhard[m]dart logs also on macos#asahi-dev · 2026-05-17 08:28
tryhard[m]chaos_princess: but on macos it's being set, not on asahi#asahi-dev · 2026-05-17 08:28
svenand for writing i definitely needed the correct address#asahi-dev · 2026-05-17 08:27
svenyou can also read/poll with a PAR if you know the correct address#asahi-dev · 2026-05-17 08:27
chaos_princesstryhard[m]: the rtkit driver sets outbox_ctrl, not your driver. and if dart logs, it usually means something is misconfigured#asahi-dev · 2026-05-17 08:27
sventhe PPM one enables reading I think#asahi-dev · 2026-05-17 08:26
sventhe config one is probably the PCW that does enable_portal#asahi-dev · 2026-05-17 08:26
svenKISPortal = Enum(Int8ul, Config=0x01, RSM=0x10, PAM=0x11, PPM=0x13)#asahi-dev · 2026-05-17 08:26
tryhard[m]chaos_princess: dart-pmp on asahi outputs more logs than macos, seems like it's doing resets for some addrs. dart-pmp on macos also has some logs that don't appear on asahi. should i hang on those? also, pmp on macos sets OUTBOX_CTRL#asahi-dev · 2026-05-17 08:26
yukathe other is ep 3, portal 0x13#asahi-dev · 2026-05-17 08:25
yukaone is on ep 1, portal 0x01#asahi-dev · 2026-05-17 08:25
yukaprobably#asahi-dev · 2026-05-17 08:25
sven*enable_portal#asahi-dev · 2026-05-17 08:25
sveni guess one of those is enable_port#asahi-dev · 2026-05-17 08:24
yukaso very possible I will get to the same conclusion as you#asahi-dev · 2026-05-17 08:24
yukafor writing to the serial, I'm still testing that on different devices#asahi-dev · 2026-05-17 08:24
yukathose successfully enable the serial. I took the hex from the wireshark dumps.#asahi-dev · 2026-05-17 08:23
svenwhat commands are those?#asahi-dev · 2026-05-17 08:23
sveni can't read that hex by heart :D#asahi-dev · 2026-05-17 08:23
svenhow do you write to the serial? i had to give it an address there#asahi-dev · 2026-05-17 08:23
yukahttps://cyberchaos.dev/yuka/kisd/-/blob/main/src/main.rs?ref_type=heads#L92