#
…

2026-04-16

01:00voidah has joined #asahi-dev
01:05vols has joined #asahi-dev
01:37lederstrumpf has joined #asahi-dev
01:56xal has quit [Read error: Connection reset by peer]
01:57xal has joined #asahi-dev
01:59marvin24 has joined #asahi-dev
02:08ipatch has quit [Read error: Connection reset by peer]
02:11pb17 has quit [Ping timeout: 480 seconds]
02:11pb17 has joined #asahi-dev
02:27hexdump0815 has joined #asahi-dev
02:29hexdump01 has quit [Ping timeout: 480 seconds]
02:38tobhe_ has joined #asahi-dev
02:44tobhe has quit [Ping timeout: 480 seconds]
03:18nora has joined #asahi-dev
03:20nora_ has quit [Ping timeout: 480 seconds]
04:10xal has quit [Read error: No route to host]
04:52voidah has quit [Ping timeout: 480 seconds]
05:00voidah has joined #asahi-dev
05:05pb17 has quit [Ping timeout: 480 seconds]
05:10voidah has quit [Ping timeout: 480 seconds]
05:15vols has quit []
05:17fumnanya has joined #asahi-dev
05:18voidah has joined #asahi-dev
05:26fumnanya has quit [Ping timeout: 480 seconds]
05:27voidah has quit [Ping timeout: 480 seconds]
05:31psych has joined #asahi-dev
05:34psychHey folks, I'm a software dev out of NY. I have a M3 Ultra Max Studio that I'm willing to fk with. I was wondering if I could help test or help in the development of any of the M3 work that y'all are doing for M3 Asahi.
05:55pb17 has joined #asahi-dev
06:11gargantua has quit [Ping timeout: 480 seconds]
06:26voidah has joined #asahi-dev
06:34voidah has quit [Ping timeout: 480 seconds]
06:41___nick___ has joined #asahi-dev
06:45voidah has joined #asahi-dev
06:54voidah has quit [Ping timeout: 480 seconds]
06:56psych has quit [Remote host closed the connection]
07:00ravikant_ has joined #asahi-dev
07:04voidah has joined #asahi-dev
07:08pb17 has quit [Ping timeout: 480 seconds]
07:13voidah has quit [Ping timeout: 480 seconds]
07:14pb17 has joined #asahi-dev
07:23voidah has joined #asahi-dev
07:32fl0_idhere was excited to have someone else test my m3 max DTs, but they left already..
07:33voidah has quit [Ping timeout: 480 seconds]
07:33freetolga has joined #asahi-dev
07:37jvoisin has joined #asahi-dev
07:41voidah has joined #asahi-dev
07:50voidah has quit [Ping timeout: 480 seconds]
08:01voidah has joined #asahi-dev
08:10voidah has quit [Ping timeout: 480 seconds]
08:17fumnanya has joined #asahi-dev
08:20voidah has joined #asahi-dev
08:29voidah has quit [Ping timeout: 480 seconds]
08:37voidah has joined #asahi-dev
08:39pb17 has quit [Ping timeout: 480 seconds]
08:46voidah has quit [Ping timeout: 480 seconds]
08:54voidah has joined #asahi-dev
08:58pb17 has joined #asahi-dev
09:01chadmedfl0_id: there are logs of course
09:02fl0_idchadmed yeah I know but not all ppl know about them
09:03voidah has quit [Ping timeout: 480 seconds]
09:03fl0_idpsych if you check logs, you could help test my work on m3 max device trees. basics worked, more advanced things are not working yet. mainly also b/c I haven't had much time to work on it recently
09:25voidah has joined #asahi-dev
09:34voidah has quit [Ping timeout: 480 seconds]
09:43voidah has joined #asahi-dev
09:52voidah has quit [Ping timeout: 480 seconds]
10:25fugi5 has quit [Quit: bye]
10:26fugi5 has joined #asahi-dev
10:34fumnanya has quit [Ping timeout: 480 seconds]
10:42fumnanya has joined #asahi-dev
10:48pb17 has quit [Ping timeout: 480 seconds]
10:51fumnanya has quit [Ping timeout: 480 seconds]
11:13pb17 has joined #asahi-dev
11:41ravikant_ has quit [Ping timeout: 480 seconds]
11:57r0ni has quit [Ping timeout: 480 seconds]
12:12___nick___ has quit []
12:14___nick___ has joined #asahi-dev
12:15___nick___ has quit []
12:17___nick___ has joined #asahi-dev
12:51voidah has joined #asahi-dev
13:01wilfredor has joined #asahi-dev
13:04fumnanya has joined #asahi-dev
13:23xal has joined #asahi-dev
13:51wilfredorchaos_princess: one concrete T8103 difference — those wake event mask registers you write at 0x292004008-0x29200401c on T600x don't exist on T8103. Scanned full PMGR range, found 70 events but all performance/thermal counters, none writable as wake masks. Wake source filtering on T8103 seems entirely internal to SMC. Working on HV-tracing macOS sleep to confirm
13:53wilfredortested deep sleep on T8103. Key finding, wake doesn't go through RVBAR. iBoot runs full cold boot reinit on power button wake, DRAM overwritten, all scratch cleared, PMGR state identical to cold boot. So trampoline approach can't work. Wake path has to go through iBoot, like macOS does with hibernate image. Planning to HV-trace macOS sleep to understand how iBoot detects wake vs cold boot internally
13:53chaos_princessso, that is not a sleep, you just reset the machine
13:54fumnanya has quit [Read error: No route to host]
13:54fumnanya has joined #asahi-dev
13:54wilfredorT8103 addresses ARE different from T600x (M1 Pro/Max)
13:55chaos_princessofc they are, the memory layout is completely different
13:56wilfredoryes you're right, it's effectively a reset, iBoot does full cold boot on wake, but DRAM does stay powered (framebuffer survived), so the hardware can preserve state, but without telling iBoot to resume instead of cold boot, it just reinits everything, that's why I want to HV-trace macOS sleep, to see how it signals iBoot to take the resume path instead of cold boot
13:56john-cabaj has joined #asahi-dev
13:56jannauI don't think anyone would call something which does not preserve DRAM as sleep. that's hibernate
13:58jannauis DRAM preserved or not? "DRAM overwritten" sound like not
13:58chaos_princessit is not signalling iboot
13:58wilfredorjannau: DRAM does stay powered in my tests (framebuffer survived across wake), so it is sleep, not hibernate, the issue is iBoot still runs full cold boot init on wake even though DRAM is preserved. macOS must signal iBoot somehow to take a resume path instead of reinit
13:59chaos_princessthat is x86 behavior, on arm, there is something called a "reconfig engine" that should dump you directly to rvbar
13:59dataviruset has joined #asahi-dev
14:04wilfredori didn't look into the reconfig engine at all. So what I observed was probably not a real wake, just a reset that I mistook for wake. Do you know where the reconfig engine is documented or where to find its registers on T8103? i need to understand what state it needs before sleep entry so cores actually resume at RVBAR, i spent severals hours tracing this assuming standard ARM wake behavior and Apple keeps #$@$# me, this
14:04wilfredorisn't a normal ARM
14:05wilfredorsorry i'm tired
14:05chaos_princessit is mentioned once or twice in the opensource xnu code.
14:06wilfredorany specific file or subsyystem i should start with, or just grep for "reconfig"?
14:11wilfredorI found it in cpu.c, you are absolutely right
14:12wilfredorM1 wakes directly to RVBAR via reconfig engine
14:12dataviruset has quit [Quit: dataviruset]
14:13fumnanya has quit [Ping timeout: 480 seconds]
14:14wilfredorreconfig engine needs to be programmed with register write sequences BEFORE sleep and that code is likely in AppleARMPlatform.kext (btw not open-source XNU)
14:16wilfredorchaos_princess: so the missing piece is programming the reconfig engine before sleep, i already have an HV trace script ready to capture macOS sleep sequence, that should show the MMIO writes that program it. Also have the kernelcache extracted. Should I focus on the HV trace first, or is there a faster way, do you know where the reconfig engine registers live on T8103?
14:16chaos_princessthe "kitchen sink" driver is pmgr
14:16chaos_princessprobably trace pmgr mmios around sleep i guess
14:17chaos_princessjust beware that there is a lot of them, since as i've said, pmgr driver does a lot of random stuff
14:17chaos_princessthough, i do not expect it to be programmed around sleep
14:17wilfredorthanks again chaos_princess! , i'll run it and share what I find
14:17chaos_princessmore likely during early boot and then locked down
14:18chaos_princesswon't be surprised if we don't need to do anything and iboot does it
14:21wilfredorchaos_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?
14:22chaos_princesswe don't know. the register sequence i use is the same as xnu does.
14:25wilfredoroh 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
14:25wilfredorwhat I find, but first I need a break
14:25pb17 has quit [Ping timeout: 480 seconds]
14:33svenyeah, iboot setups up the reconfig engine and locks it because that would be a huge security issues otherwise
14:33sven*issue
14:34svenwell, maybe not huge given the entire defense in depth they have
14:34svenbut 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
14:35svenone problem is that our HV doesn't survive a sleep/wake cycle fwiw
14:35chaos_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
14:35svensiguza mentioned that the reconfig engine is locked down by iboot
14:36r0ni has joined #asahi-dev
14:36fumnanya has joined #asahi-dev
14:37chaos_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
14:40sveni think we have enough code in there that handles any irq by just acking it
14:53KimTalmo has quit [Read error: Connection reset by peer]
14:54jannausmp uses IPI irqs. I think the exception handler deals with interrupts
14:59pb17 has joined #asahi-dev
15:23wilfredor has quit [Ping timeout: 480 seconds]
16:06fumnanya has quit [Ping timeout: 480 seconds]
16:06fumnanya has joined #asahi-dev
16:06abrender_ has joined #asahi-dev
16:07abrender has quit [Ping timeout: 480 seconds]
16:07___nick___ has quit [Remote host closed the connection]
16:10wilfredor has joined #asahi-dev
16:12wilfredor has quit []
16:13ipatch has joined #asahi-dev
16:15gargantua has joined #asahi-dev
16:22pb17 has quit [Ping timeout: 480 seconds]
16:24pb17 has joined #asahi-dev
16:24cy8aer has quit [Remote host closed the connection]
16:30cy8aer has joined #asahi-dev
16:30mateuszgruber has quit []
17:01lion328 has quit [Remote host closed the connection]
17:02lion328 has joined #asahi-dev
17:21jannauI tagged and pushed asahi-6.19.12-1, plain rebase onto v6.19.12
17:41jannausven: I was just about to ask whether you want to take a look at the t8122 atc tumables pull request
17:53john-cabaj has quit [Remote host closed the connection]
17:56john-cabaj has joined #asahi-dev
17:56john-cabaj has quit []
17:57john-cabaj has joined #asahi-dev
18:16voidah has quit [Ping timeout: 480 seconds]
18:23yukaI wonder if kexts loaded on mac os after csmutil disable have more access to impl regs on M4
18:23yukaAnd if it could be uses to find out the meaning of the impl regs
18:23voidah has joined #asahi-dev
18:33voidah has quit [Ping timeout: 480 seconds]
18:40voidah has joined #asahi-dev
18:43pb17 has quit [Ping timeout: 480 seconds]
18:44maettu1020 has joined #asahi-dev
18:46pb17 has joined #asahi-dev
18:49maettu102 has quit [Ping timeout: 480 seconds]
18:49maettu1020 is now known as maettu102
18:49voidah has quit [Ping timeout: 480 seconds]
18:53svenhmm… possibly. some regs are going to be GL2-only though
18:57voidah has joined #asahi-dev
19:01danielp has joined #asahi-dev
19:03danielp has left #asahi-dev [WeeChat 4.9.0]
19:06voidah has quit [Ping timeout: 480 seconds]
19:07svenjannau: 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?
19:08jannauack. I'm waiting for -rc1 as at least 2 commits were taken
19:09svenoh, sure
19:09sveni think the rest would've taken the commit anyway if they objected
19:09sven*commits
19:13voidah has joined #asahi-dev
19:22voidah has quit [Ping timeout: 480 seconds]
19:26DanielPerez[m] has joined #asahi-dev
19:30voidah has joined #asahi-dev
19:39voidah has quit [Ping timeout: 480 seconds]
19:41voidah has joined #asahi-dev
19:52voidah has quit [Ping timeout: 480 seconds]
19:59Leandro[mds] has quit []
20:00voidah has joined #asahi-dev
20:09voidah has quit [Ping timeout: 480 seconds]
20:15highvoltage[mds] has quit []
20:16voidah has joined #asahi-dev
20:26voidah has quit [Ping timeout: 480 seconds]
20:30gargantua has quit [Ping timeout: 480 seconds]
20:31gargantua has joined #asahi-dev
20:35voidah has joined #asahi-dev
20:44voidah has quit [Ping timeout: 480 seconds]
20:52voidah has joined #asahi-dev
20:55ddxtanx has joined #asahi-dev
21:01voidah has quit [Ping timeout: 480 seconds]
21:02gargantua has quit [Remote host closed the connection]
21:04voidah has joined #asahi-dev
21:13voidah has quit [Ping timeout: 480 seconds]
21:18gargantua has joined #asahi-dev
21:18voidah has joined #asahi-dev
21:36paddatrapper_ has quit [Quit: Client limit exceeded: 1500]
21:40[KongrooParadox] has joined #asahi-dev
21:40voidah has quit [Ping timeout: 480 seconds]
21:42KongrooParadox has quit [Ping timeout: 480 seconds]
21:49voidah has joined #asahi-dev
21:55john-cabaj has quit [Ping timeout: 480 seconds]
21:58voidah has quit [Ping timeout: 480 seconds]
22:06voidah has joined #asahi-dev
22:15fossdd has quit [Remote host closed the connection]
22:15voidah has quit [Ping timeout: 480 seconds]
22:16fossdd has joined #asahi-dev
22:25voidah has joined #asahi-dev
22:30Spencer[m]1 has joined #asahi-dev
22:34voidah has quit [Ping timeout: 480 seconds]
22:43voidah has joined #asahi-dev
22:51fumnanya has quit [Ping timeout: 480 seconds]
22:52voidah has quit [Ping timeout: 480 seconds]
22:59fumnanya has joined #asahi-dev
23:00voidah has joined #asahi-dev
23:08fumnanya has quit [Ping timeout: 480 seconds]
23:09voidah has quit [Ping timeout: 480 seconds]
23:15voidah has joined #asahi-dev
…