#asahi-dev · 2026-10-25 18:56
svencontext should show it's stuck inside a 1: wfe b 1b loop#asahi-dev · 2026-10-25 18:56
svenif it fails even before that you'll have to debug with the hv#asahi-dev · 2026-10-25 18:56
svenwhen you see the progress bar SPTM has handed control to XNU and it prints something like "Darwin Kernel 26.x.x..." very very early#asahi-dev · 2026-10-25 18:55
sven^-- that too :D#asahi-dev · 2026-10-25 18:54
chaos_princessjust to clarify, you have both m1n1 and xnu logs open, right?#asahi-dev · 2026-10-25 18:54
svenyou want at least debug=0x14e serial=3 wdt=-1#asahi-dev · 2026-10-25 18:54
svenwhat bootargs do you pass?#asahi-dev · 2026-10-25 18:54
svenit should start outputting debug logs at that point#asahi-dev · 2026-10-25 18:53
snooze6214[m]no debug logs tho... i think it panicked because the loading bar is stuck :/#asahi-dev · 2026-10-25 18:52
svenif it panics that's very helpful#asahi-dev · 2026-10-25 18:52
svenyou should also see xnu's debug output at that point#asahi-dev · 2026-10-25 18:52
sven\o/#asahi-dev · 2026-10-25 18:52
snooze6214[m]yoo i see a loading bar :)#asahi-dev · 2026-10-25 18:48
snooze6214[m]alright 👍️#asahi-dev · 2026-10-25 18:47
svenjust make hv_amcc_init return true at the very beginning#asahi-dev · 2026-10-25 18:47
sventhat's probably related to the ADT differences yuka mentioned#asahi-dev · 2026-10-25 18:46
svenyou can just disable that function, it only matters once it's inside XNU#asahi-dev · 2026-10-25 18:46
snooze6214[m]and then just quits the hv#asahi-dev · 2026-10-25 18:46
snooze6214[m]now it stoped at: TTY> HV: AMCC interrupt hook failed; can't start the hypervisor#asahi-dev · 2026-10-25 18:45
svenlong before it even reaches its exclave bootstrap code I think. but that's probably gonna be fine, the real test will be what happens once XNU is up and tries to talk to something it expects to run inside those exclaves#asahi-dev · 2026-10-25 18:44
sveni dunno how far boot will get since SPTM still fails with some MTE crap on m5#asahi-dev · 2026-10-25 18:44
svenlooks like the a18 pro has exclaves, so that's gonna be fun :P#asahi-dev · 2026-10-25 18:44
snooze6214[m]i realized when i couldnt find the amcc.py file... im sorry lol#asahi-dev · 2026-10-25 18:43
svenheh#asahi-dev · 2026-10-25 18:42
snooze6214[m]okay i feel dumb... i dont have the latest copy of m1n1 🤦♂️#asahi-dev · 2026-10-25 18:42
snooze6214[m]25G83#asahi-dev · 2026-10-25 18:40
sven25G82?#asahi-dev · 2026-10-25 18:40
snooze6214[m]26.6.2#asahi-dev · 2026-10-25 18:39
svenwhich macos version is this?#asahi-dev · 2026-10-25 18:38
svenAMCC [0x00000100060a0000-0x00000100060abfff] and ACC [0x000001001de14000-0x000001001df77fff] <-- first is what it reads from MMIO and second is what it wrote itself iirc#asahi-dev · 2026-10-25 18:38
svenso i fake the values inside AMCC (https://github.com/AsahiLinux/m1n1/blob/51b747dced07a58eacf5dabc31ed6f00bcfa20fd/proxyclient/m1n1/hv/__init__.py#L2074) but if a18 pro's SPTM writes something different to the CTRR sysregs it'll panic #asahi-dev · 2026-10-25 18:37
sventhe sysreg CTRR regions are written by SPTM but the regions inside AMCC are set up by iboot#asahi-dev · 2026-10-25 18:36
svenor maybe it really wants a different memory map#asahi-dev · 2026-10-25 18:36
svenmaybe https://github.com/AsahiLinux/m1n1/blob/51b747dced07a58eacf5dabc31ed6f00bcfa20fd/proxyclient/m1n1/hv/amcc.py works different on A18 pro#asahi-dev · 2026-10-25 18:36
svenit's complaining that the region in AMCC doesn't match the region in the CTRR sysreg I think#asahi-dev · 2026-10-25 18:35
snooze6214[m]ill raise a PR for this fix tho :)#asahi-dev · 2026-10-25 18:35
snooze6214[m]but yeah now the hv is stuck at this CTRR-C regions don't match thingy#asahi-dev · 2026-10-25 18:34
svenoh, the carve out regions#asahi-dev · 2026-10-25 18:33
snooze6214[m]and that stopped the serrors#asahi-dev · 2026-10-25 18:32
snooze6214[m]in m1n1's logs, i saw... (full message at <https://matrix.org/oftc/media/v1/media/download/AZ_MmSZfhl70fgJREB_BrBM_6c_GLv00I6avACI4pJGejAFZI47SYat2VWfxQaMQKIRH5_QJ5NrgIgw6LxH1lFlCehvG9EfwAG1hdHJpeC5vcmcvand0ekhqaHFMTUlCeUVpTXROVmVIa21p>)#asahi-dev · 2026-10-25 18:31
svenand why do you get serrors? i'm curious#asahi-dev · 2026-10-25 18:30
svendoes a18 pro already have exclaves?#asahi-dev · 2026-10-25 18:30
svenhttps://github.com/AsahiLinux/m1n1/blob/51b747dced07a58eacf5dabc31ed6f00bcfa20fd/proxyclient/m1n1/hv/__init__.py#L2074 that's how region C is computed on m4 pro#asahi-dev · 2026-10-25 18:29
svenit might just be that a18 pro wants a slightly different memory map#asahi-dev · 2026-10-25 18:28
snooze6214[m]yeahh, also i think i figured out why i am getting serrors#asahi-dev · 2026-10-25 18:28
sventhat's an error string generated somewhere early in SPTM's boot code#asahi-dev · 2026-10-25 18:28
svensnooze6214[m]: ah, now i finally saw that string: "000001001de14000-0x000001001df77fff] CTRR-C regions don't match"#asahi-dev · 2026-10-25 18:18
svenso it's either back to patching SPTM's check that panics if I steal too much memory at the beginning of RAM or I have to find another way to steal memory from SPTM#asahi-dev · 2026-10-25 18:17
sveni have the fun problem that the MTE tags are stored at the end of RAM and I can't change that because the register is locked where I also want to store my SPRR shadow tables now#asahi-dev · 2026-10-25 18:06
svenyeah well.. m5 hv is gonna be quite cursed as well i think :(