#asahi-dev · 2025-12-09 12:21
integralpilotthanks! :)#asahi-dev · 2025-12-09 12:18
integralpilotit's almost ready to start loading the rootfs, there's just a small panic in _pmap_create_commpages i'm fixing now#asahi-dev · 2025-12-09 12:12
integralpilotmacOS is booting really far now under m1n1 on M3#asahi-dev · 2025-12-09 12:12
integralpilotthe progress bar just appeared!!#asahi-dev · 2025-12-09 12:12
integralpilotOMGGGG IM SO HAPPY#asahi-dev · 2025-12-09 07:54
integralpilot*it#asahi-dev · 2025-12-09 07:54
integralpilotwait, actually, in some cases in maps properly. this is confusing. i'll figure it out a bit more#asahi-dev · 2025-12-09 07:40
integralpilotsorry, to be clearer, whenever XNU tries to do a stage 1 PTE update using PPL, m1n1 isn't doing the corresponding stage 2 PTE update#asahi-dev · 2025-12-09 07:37
integralpilotthen we get crashes from it trying to write to unmapped memory#asahi-dev · 2025-12-09 07:37
integralpilotoh interesting. on M3 whenever XNU tries to do a stage 2 PTE update it never actually happens#asahi-dev · 2025-12-09 06:50
integralpilotdoes m1n1 have support for GXF/PPL? having some issues with GFX & PPL instructions that XNU tries to do to map pages tables. might need to fix some things up#asahi-dev · 2025-12-09 04:07
integralpilotwe get another panic, i'm debugging it now :)#asahi-dev · 2025-12-09 04:07
integralpilotyay just fixed the issue! IOKit init now finishes when running XNU under m1n1 on M3 :)#asahi-dev · 2025-12-08 09:00
integralpilotwow that's super cool, good luck with that! :)#asahi-dev · 2025-12-08 08:48
integralpilotdidn't know #asahi-re existed, thanks for pointing it out, i'll use that next time for anything involving looking at what xnu does#asahi-dev · 2025-12-08 08:48
integralpilotooh, a11's cool - do you do iPhone RE (that must be really challenging/fun since you can't just run a fuOS)?#asahi-dev · 2025-12-08 08:37
integralpilotthank you so much for finding out all this info, it's super helpful#asahi-dev · 2025-12-08 08:32
integralpilotthat's been my current "solution#asahi-dev · 2025-12-08 08:31
integralpilot*away#asahi-dev · 2025-12-08 08:31
integralpilotdoesn't look trapped, causes an exception straight way in EL1 when xnu tries to read it#asahi-dev · 2025-12-08 08:27
integralpiloti'll run it now, thanks#asahi-dev · 2025-12-08 08:26
integralpilotit's _configure_misc_apple_regs#asahi-dev · 2025-12-08 08:23
integralpilotnickchan: xnu tries to read, apply bitmask, and then write to it in a function that's called by _arm64_init, i'll check the exact name now#asahi-dev · 2025-12-08 07:30
integralpilothopefully soon m1n1 hypervisor for XNU on t6030 will be able to boot the whole way#asahi-dev · 2025-12-08 07:30
integralpilotso i'm going to debug that next, but like starting IOKit is massive progress i'm so happy!!#asahi-dev · 2025-12-08 07:29
integralpilotit's successfully finishing _arm64_init now, and gets in the process of spinning up IOKit when it panics, then panics in panic handeller, then infinite loops as fallback#asahi-dev · 2025-12-08 07:28
integralpilotooooh... did some fixing up for that register, and also S3_4_C15_C12_1 needed some fixing up and now we're making a lot more progress with XNU boot#asahi-dev · 2025-12-08 05:38
integralpiloti need to set HACR_EL2 right, but is there anyway to figure out what i need to set it to in order to trap S3_4_C15_C14_6?#asahi-dev · 2025-12-08 05:38
integralpilotokay did some more digging and it turns out we're not trapping S3_4_C15_C14_6 at all, and it can't be accessed by EL1 if EL2 doesn't have a trap configured#asahi-dev · 2025-12-08 05:07
integralpilotnoticed t6030 is missing the chickens for these timer registers that are causing issues, i'll see if added the t6031 setup logic for these registers fixes that#asahi-dev · 2025-12-08 05:07
integralpilotthanks everyone, i think i'll get it working on t6030 first then try t8122#asahi-dev · 2025-12-07 12:30
integralpiloti'll try and work on getting these registers working, i NOP-ed out the first accesses but then they just get used again a bit later so i think i proper solution is needed since the look like they are a bit in very early XNU boot#asahi-dev · 2025-12-07 12:29
integralpilotoh, that makes a lot more sense than it just being an m3 pro thing, sorry i misunderstood & thanks for explaining#asahi-dev · 2025-12-07 12:26
integralpiloti'll try and get them sorted out though, seems like the best way forward#asahi-dev · 2025-12-07 12:23
integralpiloti don't remember the exact plain m3 number#asahi-dev · 2025-12-07 12:23
integralpilotin the chickens they only look like they are set on t6030, not t80-whatever on plain m3#asahi-dev · 2025-12-07 12:22
integralpiloti can try and do some work on that if you'd like, or i can switch my host & target so that my target is M3 plain (which doesn't have these I believe) and i can get the hypervisor working on that. which would be most useful?#asahi-dev · 2025-12-07 12:18
integralpilotoh didn't notice those numbers matched with the ones nickchan told me before, thanks for pointing it out sorry!#asahi-dev · 2025-12-07 12:09
integralpilotand both of these are the only 2 custom registers in the M3 pro only chickens#asahi-dev · 2025-12-07 12:06
integralpilotfor both of these i added a printf to the start of hv_handle_msr_unlocked and it's never even being called, just straight away causing an exception that it's too early for XNU to handle without ever going through the hypervisor#asahi-dev · 2025-12-07 12:06
integralpilotS3_1_C15_C1_5 is also caushing a bit of trouble#asahi-dev · 2025-12-07 12:02
integralpilothmmm adding it as SYSREG_PASS in hv_handle_msr_unlocked isn't helping#asahi-dev · 2025-12-07 12:02
integralpilotoh interesting, thank you#asahi-dev · 2025-12-07 11:47
integralpilotis there a way to find out what these mystery registers do?#asahi-dev · 2025-12-07 11:47
integralpilotcommit message that added it says "Everest settings introduce some changes to unknown registers" so ig we still don't know what it does#asahi-dev · 2025-12-07 11:46
integralpilotit's mentioned ONCE in the m3 pro only section of the everest chickens: https://github.com/AsahiLinux/m1n1/blob/64762a702b66062e545a92bf8aca04372ab2dc89/src/chickens_everest.c#L85#asahi-dev · 2025-12-07 11:45
integralpilotwait no actually it doesn't exist#asahi-dev · 2025-12-07 11:45
integralpilotwait sorry i missed it, it's late#asahi-dev · 2025-12-07 11:44
integralpilot*has#asahi-dev · 2025-12-07 11:44
integralpilotwhat is this register, i guess i'm the first person who as encountered it so i'll have to find out