#asahi-dev · 2026-04-17 08:20
nickchanthe biggest one being E2H=0#asahi-dev · 2026-04-17 08:19
nickchanbut it's quite a bit different environment, I am not actually sure if NV is supported for internal ISA level in hypervisor.framework#asahi-dev · 2026-04-17 08:19
nickchannested virtualization so like vGL2#asahi-dev · 2026-04-17 08:19
yukawhat is NV?#asahi-dev · 2026-04-17 08:18
nickchanwhich even has NV on M4!#asahi-dev · 2026-04-17 08:18
yukaI guess I could start m1n1 as macho boot object and experiment in there?#asahi-dev · 2026-04-17 08:18
nickchananother place where those secret registers could be used is inside a internal/research ISA level VM#asahi-dev · 2026-04-17 08:17
nickchanso yeah a macho boot object or a macos kext can use the registers but there's GL2 only registers#asahi-dev · 2026-04-17 06:22
yukadear fruit overlord, please let me use the computer I bought from you#asahi-dev · 2026-04-17 06:22
JamesCalligeros[m]sees locked register is it for me 🥺👉👈#asahi-dev · 2026-04-17 06:21
yukaOr for 👉️👈️ at 🍏 for letting us use them#asahi-dev · 2026-04-17 06:20
yukaOh for example for detecting easily whether saving and restoring registers is necessary#asahi-dev · 2026-04-17 01:08
nickchani don't see how finding out meaning of impl regs that can't be nomially used could be useful#asahi-dev · 2026-04-16 19:09
sven*commits#asahi-dev · 2026-04-16 19:09
sveni think the rest would've taken the commit anyway if they objected#asahi-dev · 2026-04-16 19:09
svenoh, sure#asahi-dev · 2026-04-16 19:08
jannauack. I'm waiting for -rc1 as at least 2 commits were taken#asahi-dev · 2026-04-16 19:07
svenjannau: when you re-send the M3 device trees can you mention in the cover letter that we'd like to take everything through the soc tree unless anyone objects?#asahi-dev · 2026-04-16 18:53
svenhmm… possibly. some regs are going to be GL2-only though #asahi-dev · 2026-04-16 18:23
yuka*used#asahi-dev · 2026-04-16 18:23
yukaAnd if it could be uses to find out the meaning of the impl regs#asahi-dev · 2026-04-16 18:23
yukaI wonder if kexts loaded on mac os after csmutil disable have more access to impl regs on M4#asahi-dev · 2026-04-16 17:41
jannausven: I was just about to ask whether you want to take a look at the t8122 atc tumables pull request#asahi-dev · 2026-04-16 17:21
jannauI tagged and pushed asahi-6.19.12-1, plain rebase onto v6.19.12#asahi-dev · 2026-04-16 14:54
jannausmp uses IPI irqs. I think the exception handler deals with interrupts#asahi-dev · 2026-04-16 14:40
sveni think we have enough code in there that handles any irq by just acking it#asahi-dev · 2026-04-16 14:37
chaos_princessbtw, can we interact with aic while in non-hv m1n1? there seems to be no code to operate it, beyond a few bits in smp setup#asahi-dev · 2026-04-16 14:35
svensiguza mentioned that the reconfig engine is locked down by iboot#asahi-dev · 2026-04-16 14:35
svenyeah#asahi-dev · 2026-04-16 14:35
chaos_princessthey did get pwned once in x86 days where they forgot to lock efi flash on s3 resume, so i do not expect them to make the same mistake twice#asahi-dev · 2026-04-16 14:35
svenone problem is that our HV doesn't survive a sleep/wake cycle fwiw#asahi-dev · 2026-04-16 14:34
svenbut if you could overwrite the reconfig sequence and then trigger a sleep->wake you could skip CTRR, etc. and just have it directly jump to your own code#asahi-dev · 2026-04-16 14:34
svenwell, maybe not huge given the entire defense in depth they have#asahi-dev · 2026-04-16 14:33
sven*issue#asahi-dev · 2026-04-16 14:33
svenyeah, iboot setups up the reconfig engine and locks it because that would be a huge security issues otherwise#asahi-dev · 2026-04-16 14:25
wilfredorsee you#asahi-dev · 2026-04-16 14:25
wilfredorwhat I find, but first I need a break#asahi-dev · 2026-04-16 14:25
wilfredoroh ok ok so the register sequence is right.. and the reconfig engine is probably already set up by iboot, then I'll run the HV trace but focus on what PMGR writes happen during early boot (reconfig engine setup and lock), and what else macOS does around sleep beyond ACC_OVRD CYC_OVRD, if iBoot already handles the reconfig engine and the cpu-side sequence is correct, something in between is still missing. I'll report back with #asahi-dev · 2026-04-16 14:22
chaos_princesswe don't know. the register sequence i use is the same as xnu does.#asahi-dev · 2026-04-16 14:21
wilfredorchaos_princess: that changes things, if iBoot already programs the reconfig engine and locks it, then maybe the issue isn't the reconfig engine at all. mmm something else in my sleep entry is wrong or missing that prevents a proper wake, would it help to compare my ACC_OVRD CYC_OVRD setup against what xnu does in arm64_prepare_for_sleeep? or is there something else beyond those registers that i'm liikely missing?#asahi-dev · 2026-04-16 14:18
chaos_princesswon't be surprised if we don't need to do anything and iboot does it#asahi-dev · 2026-04-16 14:17
chaos_princessmore likely during early boot and then locked down#asahi-dev · 2026-04-16 14:17
wilfredorthanks again chaos_princess! , i'll run it and share what I find#asahi-dev · 2026-04-16 14:17
chaos_princessthough, i do not expect it to be programmed around sleep#asahi-dev · 2026-04-16 14:17
chaos_princessjust beware that there is a lot of them, since as i've said, pmgr driver does a lot of random stuff#asahi-dev · 2026-04-16 14:16
chaos_princessprobably trace pmgr mmios around sleep i guess#asahi-dev · 2026-04-16 14:16
chaos_princessthe "kitchen sink" driver is pmgr