#asahi-dev · 2026-07-10 06:57
yukaand then a proper guest could use channel 0 with irqs#asahi-dev · 2026-07-10 06:56
yukamaybe m1n1 should always use channel 1 instead of 0, since it does polling anyways#asahi-dev · 2026-07-10 06:54
yukaWhich makes them kinda pointless to expose as ttys#asahi-dev · 2026-07-10 06:52
yukaSo at this point it seems to me like the other channels don't have IRQs#asahi-dev · 2026-07-10 06:52
yukadata appears in data1#asahi-dev · 2026-07-10 06:51
yukanone of the IRQ regs change#asahi-dev · 2026-07-10 06:51
yukaWrote stuff to channel 1#asahi-dev · 2026-07-10 06:51
yuka(and the data appears in data0)#asahi-dev · 2026-07-10 06:51
yukaWrote stuff to channel 0 -> IRQ regs (1)+IRQ_FLAG gets set#asahi-dev · 2026-07-10 06:51
yuka(checked the other IRQ regs + IRQ_MASK are all 0 as well)#asahi-dev · 2026-07-10 06:50
yukaenabled irqs (by writing 0 to IRQ regs (1)+IRQ_MASK)#asahi-dev · 2026-07-10 06:50
yukaI added a RegMonitor on all the areas described in proxyclient/m1n1/hw/dockchannel.py#asahi-dev · 2026-07-10 06:49
yukawe haven't seen them used in macOS, so...#asahi-dev · 2026-07-10 06:49
yukamaybe they're actually half broken#asahi-dev · 2026-07-10 06:48
yukaand how they work with the different fifos#asahi-dev · 2026-07-10 06:48
yukaI'm so confused about dockchannel irqs#asahi-dev · 2026-07-10 06:17
StanfordAppliedCyber[m]great, just checking my current understanding#asahi-dev · 2026-07-10 06:16
sven(and on m2/m3 with SPTM XNU is ofc entered with MMU and all tha t already on)#asahi-dev · 2026-07-10 06:15
sven*already#asahi-dev · 2026-07-10 06:14
svenin EL1 xnu enables the mmu, yes. in EL2 the mmu is ofc laready on before the guest is entered#asahi-dev · 2026-07-10 06:11
StanfordAppliedCyber[m]for the hv m1-m3 boots with mmu disabled, and then xnu enables the mmu as part of its startup right?#asahi-dev · 2026-07-10 04:09
nickchanno#asahi-dev · 2026-07-09 23:55
StanfordAppliedCyber[m]does m3 have sme?#asahi-dev · 2026-07-09 23:49
StanfordAppliedCyber[m]i'm surprised how reliable this is, unlike m3 i don't get any nondeterminism at all in the upstreamable branch. the old version had some problems (mostly timing related) but i haven't hit a single flake in the branch i'm upstreaming#asahi-dev · 2026-07-09 23:22
StanfordAppliedCyber[m]we'll need to figure out the right shape for this#asahi-dev · 2026-07-09 23:22
StanfordAppliedCyber[m]initial PR is going to have hardcoded addresses for the commpage fixes#asahi-dev · 2026-07-09 22:17
StanfordAppliedCyber[m]yeah i got regular trapping to work#asahi-dev · 2026-07-09 21:13
chaos_princessi am reading the arm arm and there are very obvious reasons listed out why this one might trap#asahi-dev · 2026-07-09 21:13
StanfordAppliedCyber[m]i cant physically touch the mac rn (rdp session) but i can figure that out if it'd be helpful#asahi-dev · 2026-07-09 21:12
StanfordAppliedCyber[m]great question#asahi-dev · 2026-07-09 21:12
StanfordAppliedCyber[m]so you have to fake those register values, which is annoying because macos accesses them a LOT, so you have to move sysreg handling to C#asahi-dev · 2026-07-09 21:12
chaos_princesswhats it writing to CPACR_EL1#asahi-dev · 2026-07-09 21:12
StanfordAppliedCyber[m]the issue with just disabling sme though is you have to add a lot of other code, because xnu reads arm architectural registers#asahi-dev · 2026-07-09 21:11
StanfordAppliedCyber[m]SMPRIMAP_EL2 is the register that first caused the problem to manifest#asahi-dev · 2026-07-09 21:11
StanfordAppliedCyber[m]the initial configuration definitely needs el2#asahi-dev · 2026-07-09 21:11
StanfordAppliedCyber[m]looking at these actually i think the context switch ones may work in el1#asahi-dev · 2026-07-09 21:11
StanfordAppliedCyber[m]example reg is CAPCR_EL1#asahi-dev · 2026-07-09 21:11
StanfordAppliedCyber[m]yeah that's what i do#asahi-dev · 2026-07-09 21:10
chaos_princesstbh, just turn sme off, i don't think we care#asahi-dev · 2026-07-09 21:10
chaos_princesscan you give an example of a reg#asahi-dev · 2026-07-09 21:09
StanfordAppliedCyber[m]it's just an el1 vs el2 issue#asahi-dev · 2026-07-09 21:09
StanfordAppliedCyber[m]everything is fully supported#asahi-dev · 2026-07-09 21:09
StanfordAppliedCyber[m]no#asahi-dev · 2026-07-09 21:09
StanfordAppliedCyber[m]right now i'm literally just disabling sme by tossing bits in the arm architectural registers#asahi-dev · 2026-07-09 21:09
chaos_princessis it trying to touch amx#asahi-dev · 2026-07-09 21:09
StanfordAppliedCyber[m]msr#asahi-dev · 2026-07-09 21:09
StanfordAppliedCyber[m]so the obvious example i thought was to just replay the access in el2, but because it hits xnu's own exception handler we don't have visibility into what's going on#asahi-dev · 2026-07-09 21:09
chaos_princessgprs or msr#asahi-dev · 2026-07-09 21:08
StanfordAppliedCyber[m]access from el2 works fine#asahi-dev · 2026-07-09 21:08
StanfordAppliedCyber[m]by default, accessing the registers causes SIGILL and a trap to xnu's own sigill handler