#asahi-dev · 2026-07-06 07:45
StanfordAppliedCyber[m]nickchan: just always returning a noncachable page#asahi-dev · 2026-07-06 07:43
svensomeone got macOS running on m2 under sptm by virtualizating everything #asahi-dev · 2026-07-06 07:43
nickchanso how to fix tlb flush#asahi-dev · 2026-07-06 07:42
StanfordAppliedCyber[m]I believe that makes me the first person to run macos under m1n1 on any SPTM enabled device?#asahi-dev · 2026-07-06 07:41
nickchan🎉#asahi-dev · 2026-07-06 07:40
StanfordAppliedCyber[m]GG, it works#asahi-dev · 2026-07-06 07:40
StanfordAppliedCyber[m]https://pastebin.com/5P70xEqM#asahi-dev · 2026-07-06 07:40
chadmedcould it be the mclk multiplier? could it be TX/RX direction clock config setting? who knows :P #asahi-dev · 2026-07-06 07:39
chadmedcase in point, how the driver manipulates the MCA per-cluster SYNCGEN_MCLK_SEL register makes little sense. The driver set it to 0b111 when the cluster is a clock consumer, but simply setting BIT(1) also works for that case. Setting BIT(1) also works when it is a clock provider, and also setting BIT(0)#asahi-dev · 2026-07-06 07:32
nickchanand not have that 4 MiB worth of pagetable blob#asahi-dev · 2026-07-06 07:32
nickchan...I would actually have to do 4k paging properly#asahi-dev · 2026-07-06 07:32
nickchannow if i ever had to turn on EL3 mmu that's even more fun in the pagetables because m1n1's 4K paging works by allocating like 4 MiB worth of static pagetables#asahi-dev · 2026-07-06 07:31
chadmedactually i can check this right now #asahi-dev · 2026-07-06 07:30
nickchanchadmed: m1n1 is already installed in EL3 on A7-A9, it just does not do anything at all now#asahi-dev · 2026-07-06 07:29
chadmedpovik did most of this stuff though and the documentation appears largely lost to time which makes things difficult #asahi-dev · 2026-07-06 07:28
chadmedim not sure if it matters which MCA cluster is used for which set of codecs. as i understand the MCA driver, the cluster index is referential to the CPU side of the DAI and can take in any group of CODECs. the macaudio driver just ensures for the speaker DAI that there are an even number of CODECs per CPU#asahi-dev · 2026-07-06 07:23
jannauchadmed: did you see https://github.com/AsahiLinux/m1n1/pull/612 ? I managed to confuse myself with the audio nodes / routing. I haven't looked in detail yet what mca / macaudio do so maybe that will clear up my confusion#asahi-dev · 2026-07-06 07:21
chadmedyeah neither. i'll have a play with it#asahi-dev · 2026-07-06 07:20
jannauchadmed: I vaguely remember discussing this automated reset controller for shared reset-gpios before but I don't remember the outcome#asahi-dev · 2026-07-06 07:17
chadmedif A7-A9 have EL3 can you not just put m1n1 in it and use the usual svc/hvc on those?#asahi-dev · 2026-07-06 07:15
svenas usual I’m gonna make it work for M1+ and not care about anything before and you get to have that fun then once it’s upstream :)#asahi-dev · 2026-07-06 07:13
nickchannot many platforms get you EL3 access#asahi-dev · 2026-07-06 07:12
nickchaneven more so for A7-A9 where i could play with having a real EL3#asahi-dev · 2026-07-06 07:12
nickchanthis is going to be fun for pre-M1#asahi-dev · 2026-07-06 07:11
svenFirst goal is to just get an ack on the psci-via-efi approach#asahi-dev · 2026-07-06 07:10
chadmedjannau: thanks, i vaguely remember seeing that. i will see if it suits our use case when i have time and then maybe we can drop the fake regulator altogether#asahi-dev · 2026-07-06 07:10
svenofc #asahi-dev · 2026-07-06 07:01
nickchanthough... is the resident/entry/exit latency all made-up?#asahi-dev · 2026-07-06 07:00
nickchanlooking forward to the psci conduit and the m1n1 side code#asahi-dev · 2026-07-06 00:23
enverbalalici just do img4tool to get the bin, and then run m1n1.adt on them#asahi-dev · 2026-07-06 00:22
nicolas17https://github.com/blacktop/ipsw can probably extract them#asahi-dev · 2026-07-06 00:22
nicolas17also the files in the ipsw are img4 with lzfse compressed data inside :P#asahi-dev · 2026-07-06 00:18
JamesCalligeros[m]yeah, we should have a repo of blobs pulled by m1n1.adt #asahi-dev · 2026-07-06 00:18
nicolas17the ipsw has devicetrees, but several parts are filled in by iBoot before passing them to the OS#asahi-dev · 2026-07-06 00:18
enverbalalicyeah it's gonna miss the stuff iboot prefills, but hopefully what i'm doing doesn't need that#asahi-dev · 2026-07-06 00:18
nicolas17enverbalalic: not completely#asahi-dev · 2026-07-06 00:17
enverbalalicoh...my...god, i completely forgot bin adts are in the macos installation package...#asahi-dev · 2026-07-06 00:15
JamesCalligeros[m]we should probably just keep adt bin dumps somewhere#asahi-dev · 2026-07-06 00:12
nicolas17yeah, it was ioreg, and outdated https://github.com/robre/ioreg-archive#asahi-dev · 2026-07-06 00:09
nicolas17I saw a repo with devicetrees, but I think it was "ioreg -p IODeviceTree", not the raw ADT#asahi-dev · 2026-07-05 23:38
enverbalalicthere's probably a licensing thing about distributing adts i guess#asahi-dev · 2026-07-05 23:37
enverbalalicor if the linux dts just decided that sorting them by order is prettier and just write the driver to expect them that way#asahi-dev · 2026-07-05 23:37
enverbalalicthe linux dts has only 1 reg, it would be nice to be able to open the t8122 adt, look for which reg number that maps on the adt, and then map the same reg num on t6040 adt. also same thing with interrupts, mtp interrupt ordering is different between dts and adt, dts is ascending order, adt is mixed. idk if the adt on t8122 also has them in the same order as linux#asahi-dev · 2026-07-05 23:36
enverbalaliccould we have a git repo with raw dumps of adt's from all the various chips ? what's currently being a pain for me is figuring out which regs on the dts for a certain chip correspond to regs on the adt side. for example i'm looking at the t8122 dts from integralpilot and trying to use the same dc-hid stuff for t6040. looking at dart-mtp on the adt has 3 regs#asahi-dev · 2026-07-05 18:29
svenor someone could figure out what xnu magic we are missing to be able to wake from that deep sleep state again :/#asahi-dev · 2026-07-05 18:28
svenyeah i guess#asahi-dev · 2026-07-05 18:28
chaos_princessi guess we can turn off all p-clusters, and put the ecluster into just deep wfi#asahi-dev · 2026-07-05 18:28
svenjust catch all cores inside m1n1 first and once we have all of one cluster put them to sleep#asahi-dev · 2026-07-05 18:27
sventhat's gonna be a bit hacky but it's possible to implement that i think#asahi-dev · 2026-07-05 18:27
chaos_princessm1n1 does wfe