#asahi-dev · 2026-06-19 10:05
yukaif something is slightly slower on the hv the init functions which run into this might not run on the secondaries#asahi-dev · 2026-06-19 10:05
yukaor just timing#asahi-dev · 2026-06-19 10:00
svenwonder if this is another missing barrier somewhere that we accidentally introduce or work around with the hv then :/ #asahi-dev · 2026-06-19 09:00
yukamaybe flokli should try booting linux in the hv on m4 pro to see if he can reproduce them#asahi-dev · 2026-06-19 08:59
yukahmm interesting I can't reproduce the later smp crashs (after out patching the wfi) in the hv#asahi-dev · 2026-06-19 07:41
svenbut we'll need something like that for proper deep sleep anyway#asahi-dev · 2026-06-19 07:41
svenwe just never cared to implement it because the downstream cpuidle driver was good enough#asahi-dev · 2026-06-19 07:40
sveni'm working on psci via efi runtime services right now for the proper solution and it's not that much of a hack tbh#asahi-dev · 2026-06-19 07:40
svenr.e. the wfi stuff: for now just patch wfi to nop, yuka has a patch on LKML for that#asahi-dev · 2026-06-19 05:40
StanfordAppliedCyber[m]oh and the debugusb issue that is still unresolved, but i've found ways to workaround that one#asahi-dev · 2026-06-19 05:39
StanfordAppliedCyber[m]but it's as good as you can ask for for a new macos version#asahi-dev · 2026-06-19 05:39
StanfordAppliedCyber[m]it's not just plug and play#asahi-dev · 2026-06-19 05:39
StanfordAppliedCyber[m]26.6 did change some stuff both sptm and nonsptm related#asahi-dev · 2026-06-19 05:38
StanfordAppliedCyber[m]i'm somewhere in late iokit init right now#asahi-dev · 2026-06-19 05:38
StanfordAppliedCyber[m]nah fixing kernel regressions#asahi-dev · 2026-06-19 05:38
nickchanloginwindow today?#asahi-dev · 2026-06-19 05:34
StanfordAppliedCyber[m]sep was annoying but i got lucky in that it was self inflicted#asahi-dev · 2026-06-19 05:34
StanfordAppliedCyber[m]which thankfully appears to be a me problem that no one else working on the neo has hit#asahi-dev · 2026-06-19 05:34
StanfordAppliedCyber[m]the only real bad unfixable problem i hit was the smp thing#asahi-dev · 2026-06-19 05:33
StanfordAppliedCyber[m]i just like to complain a lot :)#asahi-dev · 2026-06-19 05:32
JamesCalligeros[m]but 50 lines is fine lol, the "oh boy" sold this as more consequential :P #asahi-dev · 2026-06-19 05:32
JamesCalligeros[m]well the dcp iboot interface hasnt really changed so#asahi-dev · 2026-06-19 05:27
nickchani don't think it's a big deal#asahi-dev · 2026-06-19 05:27
nickchancurrent m1n1 hypervisor already assume dcp will behave in a certain way I believe#asahi-dev · 2026-06-19 05:27
StanfordAppliedCyber[m]also "nontrivial" likely means ~50 total lines of code across the entire emlator code base in this case, the fix i just made was literally 2 lines of code in the dart emulator#asahi-dev · 2026-06-19 05:26
StanfordAppliedCyber[m]but we just pin a fw version that we want to support, get that sptm emulation to work, and then we can ignroe the drift, just as we have been#asahi-dev · 2026-06-19 05:26
StanfordAppliedCyber[m]i agree it's instability is a virtual guarantee#asahi-dev · 2026-06-19 05:25
StanfordAppliedCyber[m]well, it's just another firmware ABI#asahi-dev · 2026-06-19 05:23
JamesCalligeros[m]lol, yes like i said i dont think emulating it is really a sustainable approach. all apple abis should be considered about as stable as russia's political situation #asahi-dev · 2026-06-19 05:08
StanfordAppliedCyber[m]oh boy, apparently 26.6 did change sptm nontrivially#asahi-dev · 2026-06-19 04:54
StanfordAppliedCyber[m]XNU exclusively uses the 24mhz timer internally, only userspace as far as i can tell consumes the 1ghz timer, which conveniently can be turned off via the commpage#asahi-dev · 2026-06-19 04:29
StanfordAppliedCyber[m]and this would be implemented in m1n1 running in el2 presumably? would this work with kvm? this whole thing feels rather cursed but I suppose that's why we didn't do psci to start with#asahi-dev · 2026-06-19 01:47
JamesCalligeros[m]well ersatz psci but yes#asahi-dev · 2026-06-19 01:44
StanfordAppliedCyber[m]what will be the path forward if we can't prevent the wfi loses register state thing? real psci?#asahi-dev · 2026-06-19 00:19
StanfordAppliedCyber[m]no sysreg regressions like in the 26.4.1 --> 26.5 either, ie, 26.5 locked a bunch of sysregs that were writable in 26.4.1 (notably, all the pac registers)#asahi-dev · 2026-06-19 00:16
StanfordAppliedCyber[m]knock wood this hypervisor works by end of this week, sptm doesn't have many changes from a quick look#asahi-dev · 2026-06-19 00:14
StanfordAppliedCyber[m]okay, lesson learned, under no circumstances touch this 1tr object ever again#asahi-dev · 2026-06-19 00:14
StanfordAppliedCyber[m]SMP WORKS AGAIN ON 26.6 BETA 2 :)#asahi-dev · 2026-06-18 23:44
StanfordAppliedCyber[m]whoever made smp so cursed on my machine needs a stern talking to#asahi-dev · 2026-06-18 23:41
StanfordAppliedCyber[m]given we can write to that sysreg now this seems like a more appealing target anyways#asahi-dev · 2026-06-18 23:41
StanfordAppliedCyber[m]well, time to port my hv to 26.6 beta 2 and hope that fixes smp magically#asahi-dev · 2026-06-18 23:38
JamesCalligeros[m]yeah pmuch, unless the 13.5 ipsw goes away at some point#asahi-dev · 2026-06-18 23:33
StanfordAppliedCyber[m]i mean for m1 there's no reason to update to 26.5 fw because the hardware is the same regardless, it's just a new firmware abi that we have to RE for no real benefit#asahi-dev · 2026-06-18 23:33
JamesCalligeros[m]thats why m1 and m2 series machines all install the macos 13.5 fw bundle#asahi-dev · 2026-06-18 23:32
JamesCalligeros[m]what do you mean? we need to target specific versions because the ABI is unstable#asahi-dev · 2026-06-18 23:16
StanfordAppliedCyber[m]do we care what firmware we use for these devices as long as it supports the registers we need? i'm pretty sure the answer is no, just confirming that#asahi-dev · 2026-06-18 21:14
yuka(the 4004 being the DATA_TX8, so really 0x[1-7]0000)#asahi-dev · 2026-06-18 21:06
yukaso let's use them#asahi-dev · 2026-06-18 21:06
yukaseems like the other dockchannel uarts are at /arm-io/dockchannel-uart[0] + 0x[1-7]4004#asahi-dev · 2026-06-18 21:04
yukafor hv on the macbook neo