2026-04-13
01:08marvin24 has quit [Ping timeout: 480 seconds]
02:15hwpplayer1 has joined #asahi-dev
02:16hwpplayer1 is now known as Guest7154
02:16Guest7154 is now known as hwpplayer1
02:22pb17 has quit [Ping timeout: 480 seconds]
02:24hwpplayer1 has quit [Quit: hwpplayer1]
02:31hexdump0815 has joined #asahi-dev
02:33hexdump01 has quit [Ping timeout: 480 seconds]
02:34pb17 has joined #asahi-dev
02:52tobhe has joined #asahi-dev
02:58dataviruset has joined #asahi-dev
02:59tobhe_ has quit [Ping timeout: 480 seconds]
03:18melnary has quit [Read error: No route to host]
03:18melnary has joined #asahi-dev
03:21nora_ has joined #asahi-dev
03:23nora has quit [Ping timeout: 480 seconds]
03:38abrender_ has joined #asahi-dev
03:40abrender has quit [Ping timeout: 480 seconds]
03:44voidah has quit [Ping timeout: 480 seconds]
03:45abrender has joined #asahi-dev
03:47abrender_ has quit [Ping timeout: 480 seconds]
03:53marvin24 has joined #asahi-dev
03:53voidah has joined #asahi-dev
03:56pb17 has quit [Ping timeout: 480 seconds]
03:56pb17 has joined #asahi-dev
04:03voidah has quit [Ping timeout: 480 seconds]
04:11voidah has joined #asahi-dev
04:29Advert[m] has quit [autokilled: Spambot. Mail support@oftc.net if you think this is in error. (2026-04-13 04:29:24)]
04:41dataviruset has quit [Remote host closed the connection]
04:41dataviruset has joined #asahi-dev
04:44dataviruset has quit [Remote host closed the connection]
05:22voidah has quit [Ping timeout: 480 seconds]
05:30voidah has joined #asahi-dev
05:46voidah has quit [Ping timeout: 480 seconds]
05:48voidah has joined #asahi-dev
05:53hjjerrychen[m] has joined #asahi-dev
05:57voidah has quit [Ping timeout: 480 seconds]
05:59pb17 has quit [Ping timeout: 480 seconds]
06:06voidah has joined #asahi-dev
06:08dataviruset has joined #asahi-dev
06:11pb17 has joined #asahi-dev
06:15voidah has quit [Ping timeout: 480 seconds]
06:18gargantua has quit []
06:20gargantua has joined #asahi-dev
06:23voidah has joined #asahi-dev
06:38voidah has quit [Remote host closed the connection]
06:38voidah has joined #asahi-dev
06:47voidah has quit [Ping timeout: 480 seconds]
06:55voidah has joined #asahi-dev
07:05voidah has quit [Ping timeout: 480 seconds]
07:05ravikant_ has joined #asahi-dev
07:14voidah has joined #asahi-dev
07:17dataviruset has quit [Quit: dataviruset]
07:17dataviruset has joined #asahi-dev
07:23voidah has quit [Ping timeout: 480 seconds]
07:30___nick___ has joined #asahi-dev
07:33voidah has joined #asahi-dev
07:48gargantua has quit [Ping timeout: 480 seconds]
07:48voidah has quit [Ping timeout: 480 seconds]
07:50marv7000 has quit [Quit: The Lounge - https://thelounge.chat]
07:57voidah has joined #asahi-dev
07:57pb17 has quit [Ping timeout: 480 seconds]
08:01dataviruset has quit [Quit: dataviruset]
08:06voidah has quit [Ping timeout: 480 seconds]
08:13voidah has joined #asahi-dev
08:23voidah has quit [Ping timeout: 480 seconds]
08:30voidah has joined #asahi-dev
08:30dataviruset has joined #asahi-dev
08:36jvoisin has quit [Ping timeout: 480 seconds]
08:40voidah has quit [Ping timeout: 480 seconds]
08:40voidah has joined #asahi-dev
08:41pb17 has joined #asahi-dev
08:49voidah has quit [Ping timeout: 480 seconds]
08:58voidah has joined #asahi-dev
09:07voidah has quit [Ping timeout: 480 seconds]
09:15voidah has joined #asahi-dev
09:24voidah has quit [Ping timeout: 480 seconds]
09:32voidah has joined #asahi-dev
09:49gargantua has joined #asahi-dev
09:50voidah has quit [Ping timeout: 480 seconds]
10:00voidah has joined #asahi-dev
10:02ddxtanx_ has joined #asahi-dev
10:07ddxtanx has quit [Ping timeout: 480 seconds]
10:09voidah has quit [Ping timeout: 480 seconds]
10:11bennofs has quit [Quit: The Lounge - https://thelounge.chat]
10:11bennofs has joined #asahi-dev
10:17voidah has joined #asahi-dev
10:18dataviruset has quit [Remote host closed the connection]
10:18dataviruset has joined #asahi-dev
10:26voidah has quit [Ping timeout: 480 seconds]
10:34voidah has joined #asahi-dev
10:51voidah has quit [Ping timeout: 480 seconds]
10:59voidah has joined #asahi-dev
11:09voidah has quit [Ping timeout: 480 seconds]
11:17voidah has joined #asahi-dev
11:26voidah has quit [Ping timeout: 480 seconds]
11:35voidah has joined #asahi-dev
12:10gargantua has quit [Ping timeout: 480 seconds]
12:23voidah has quit [Ping timeout: 480 seconds]
12:31voidah has joined #asahi-dev
12:40yuka has quit [Remote host closed the connection]
12:41voidah has quit [Ping timeout: 480 seconds]
12:43yuka has joined #asahi-dev
12:48voidah has joined #asahi-dev
13:01voidah has quit [Ping timeout: 480 seconds]
13:04Yushi has quit [Remote host closed the connection]
13:05Yushi has joined #asahi-dev
13:09voidah has joined #asahi-dev
13:13john-cabaj has joined #asahi-dev
13:18voidah has quit [Ping timeout: 480 seconds]
13:26voidah has joined #asahi-dev
13:35voidah has quit [Ping timeout: 480 seconds]
13:43dataviruset has quit [Ping timeout: 480 seconds]
13:43voidah has joined #asahi-dev
13:53voidah has quit [Ping timeout: 480 seconds]
13:54marvin24 has quit [Ping timeout: 480 seconds]
14:00voidah has joined #asahi-dev
14:10voidah has quit [Ping timeout: 480 seconds]
14:15voidah has joined #asahi-dev
14:16ddxtanx_ has quit [Quit: Konversation terminated!]
14:17ddxtanx_ has joined #asahi-dev
14:24voidah has quit [Ping timeout: 480 seconds]
14:31voidah has joined #asahi-dev
14:39pb17 has quit [Ping timeout: 480 seconds]
14:41voidah has quit [Ping timeout: 480 seconds]
14:43gargantua has joined #asahi-dev
14:49voidah has joined #asahi-dev
14:55pb17 has joined #asahi-dev
14:58voidah has quit [Ping timeout: 480 seconds]
15:07voidah has joined #asahi-dev
15:12donaldh- has joined #asahi-dev
15:41voidah has quit [Ping timeout: 480 seconds]
16:02yukino has joined #asahi-dev
16:05ivanpollak[m] has joined #asahi-dev
16:07john-cabaj has quit [Remote host closed the connection]
16:11john-cabaj has joined #asahi-dev
16:12ravikant_ has quit []
16:14gargantua has quit [Ping timeout: 480 seconds]
16:17yukino has left #asahi-dev [#asahi-dev]
16:19voidah has joined #asahi-dev
16:27yukino has joined #asahi-dev
16:41yukino has quit [Quit: yukino]
16:44gargantua has joined #asahi-dev
16:53pb17 has quit [Ping timeout: 480 seconds]
16:54pb17 has joined #asahi-dev
17:17john-cabaj has quit [Remote host closed the connection]
17:24voidah has quit [Ping timeout: 480 seconds]
17:27john-cabaj has joined #asahi-dev
17:28voidah has joined #asahi-dev
17:32yukino has joined #asahi-dev
17:35voidah has quit [Remote host closed the connection]
17:35voidah has joined #asahi-dev
17:39robp[m] has joined #asahi-dev
17:47bennofs has quit [Quit: The Lounge - https://thelounge.chat]
17:47bennofs has joined #asahi-dev
17:59yukino has quit [Quit: yukino]
18:17bennofs has quit [Quit: The Lounge - https://thelounge.chat]
18:21bennofs has joined #asahi-dev
18:24pb17 has quit [Ping timeout: 480 seconds]
18:27pb17 has joined #asahi-dev
18:32tryhard[m]umm anybody has any idea for this error: ERROR: modpost: missing MODULE_LICENSE() in drivers/pmdomain/apple/pmp_v1_report.o?
18:33tryhard[m]module_platform_driver! {... (full message at <https://matrix.org/oftc/media/v1/media/download/Ad_sTli1KDff3Chfii4SLLk1FxbjJeQwCuGNWoFKYIZ5ysfFz3HffkKvSQkX_cp2hNvOPemyo8VCukhuIDSkDmdCed0DeGNAAG1hdHJpeC5vcmcvbEdHU1ZvRlNLY0tBZVN3a210c2Z0YVRC>)
18:33chaos_princesswhat is your file name
18:34tryhard[m]pmp_v1_report.rs
18:37chaos_princesscan you also show the Makefile segment for it?
18:37* tryhard[m]sent a code block: https://matrix.org/oftc/media/v1/media/download/AeYCzH8ZEYJyHVM9g-4fOX5yxB1cYMPStfuEYUY98M97sKgtEblvLVYbD2xlQ2jggFCx5eqsUD9Owvpj2dxomlhCed0Dt-XgAG1hdHJpeC5vcmcvWmNxQ1JScFFLUlBNaVVLRFJ4a2JrTXpp
18:38tryhard[m]i need to change it to PMP_REPORT but nevermind right now
18:38chaos_princessget your own config symbol
18:38chaos_princessyou are having two modules under the same one
18:39tryhard[m]ok let me see
18:52septicity[m] has joined #asahi-dev
18:54tryhard[m]other non blocking issue:... (full message at <https://matrix.org/oftc/media/v1/media/download/AQYHqgcO43-LjJhFLFF4k4vln-eENnFb8UdoXx_W8ACDMpOXsf7D6wJtGl--wEgDaTc9rwUQU7Fwxa9w7M_cg-ZCed0EsCPAAG1hdHJpeC5vcmcvbmFIR2lDSE9TeHdpTmRxdkJHS0R1SU5E>)
18:55chaos_princessyou should not be adding no_std, something went very wrong when compiling your thing
18:55chadmed has quit [Read error: Connection reset by peer]
18:56chadmed has joined #asahi-dev
18:56tryhard[m]idk rustc doesnt complain
18:56chaos_princessrustc is being called wrong by something
18:58tryhard[m]is it something in relation to my .config?
18:58chaos_princessto your Makefile
18:59tryhard[m]obj-$(CONFIG_APPLE_PMP_V1) += pmp_v1.o
18:59tryhard[m]thats what i added to the already existing makefile
18:59chaos_princesshave you added the Kconfig block too?
19:00* tryhard[m]sent a code block: https://matrix.org/oftc/media/v1/media/download/AUCykKoXoWaDWzv56dWLf5XVzs5mi9hFL2Y0YeAfODunhg9k9mxzTjXtX49AH52jMn1Y4U-JgtId6MYptKLqY3hCed0FA5xwAG1hdHJpeC5vcmcvbElFUGdXblBRQXFTa2h5WE52WlRPZW5T
19:01chaos_princessand your file is named pmp_v1.rs, right?
19:03tryhard[m]i'm using docker btw
19:09tryhard[m]trying
19:13tryhard[m]ok its building right now but i dont think it got to pmp_v1 so we will see
19:14chaos_princessi remember having some issue with aop_audio relating either to dashes or underscores in module name
19:16tryhard[m]yeah i guess thats it because it finished
19:16tryhard[m]no build errors
19:17tryhard[m]uh wait
19:19tryhard[m]i switched to nightly and then it didn't compile it so lets see again lol
19:25___nick___ has quit []
19:27___nick___ has joined #asahi-dev
19:27___nick___ has quit []
19:29___nick___ has joined #asahi-dev
19:34voidah has quit [Ping timeout: 480 seconds]
19:37wilfredor has joined #asahi-dev
19:38MadhavKorimerlaKrishy2007[m] is now known as Krishy2007[m]
19:39wilfredorhi, I'm new to Asahi and interested in helping with power and battery issues on M1. I'm currently looking into cpuidle and power domains, any pointers on where help is most needed would be appreciated
19:39svenarnd: 20260411-mailmap-v1-0-5a519f7b00b5@chaosmail.tech (https://lore.kernel.org/asahi/20260411-mailmap-v1-0-5a519f7b00b5@chaosmail.tech/) updates email addresses but the merge window is already open. can i still pick that up and send a PR to soc@ or should we just wait until -rc1 and send it as fixes then?
19:41chaos_princesswilfredor: we are actually actively working on power-related stuff. What specific machine do you have
19:43voidah has joined #asahi-dev
19:43pb17 has quit [Ping timeout: 480 seconds]
19:44wilfredorhi chaos_princess, i have a MacBook Air M1 (t8103). I'm looking into cpuidle (cpuidle-apple.c) and PMGR power domains (pmgr-pwrstate and t8103-pmgr.dtsi), focusing on idle and s2idle power usage, is there a specific area there that needs work?
19:46chaos_princesspmgr already works well. what is missing is "pmp", a power management coprocessor that as of right now, we do not even turn on. vanilla m1 has pmp v1, and if you read the logs above, tryhard[m] is writing a driver for it.
19:46tryhard[m]chaos_princess: didn't fix the issue
19:47chaos_princesstryhard[m]: try renaming to pmpv1.rs or whatever, just drop all dashes and underscores in file name
19:49wilfredor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:50tryhard[m]didn't fix it aswell
19:50tryhard[m]something is odd
19:51chaos_princessprobably something wrong with your rustc, but i don't understand what exactly
19:51abrender_ has joined #asahi-dev
19:53abrender has quit [Ping timeout: 480 seconds]
19:54pb17 has joined #asahi-dev
19:54tryhard[m]maybe because it targets the wrong one?
19:54tryhard[m]like softfloat
20:04wilfredor has joined #asahi-dev
20:05___nick___ has quit [Remote host closed the connection]
20:08wilfredorwill PMP be exposed as a cpuidle backend, or as a separate PM layer coordinating cpuidle, pmdomain, and suspend?
20:09wilfredorwould it help to focus on testing or supporting that work, or is there anything else in the power stack that still needs attention?
20:10wilfredori mainly work with C and C++ (I hate a bit C++) and Rust, and I'm comfortable with low-level or kernel code if that helps
20:22chaos_princessin short, it does not integrate with cpuidle at all. if you go to the repo, it already has a driver for pmp v2 (m1 pro/max/ultra, and all m2), and that just needs to be turned on, fed a bunch of data, and then told when you are about to switch on/off the gpu, display outputs, and a few other things.
20:27wilfredorgot it, thanks chaos, then the right starting point is studying the existing PMP v2 driver and identifying what is missing for PMP v1. Which files should I read first, and is the main missing piece the data tables, the hooks, or the v1-specific register interface?
20:27chaos_princessjust talk to tryhard[m], they seem to close to done
20:34voidah has quit [Ping timeout: 480 seconds]
20:34abrender has joined #asahi-dev
20:36abrender_ has quit [Ping timeout: 480 seconds]
20:38wilfredor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
20:38wilfredor has joined #asahi-dev
20:45fl0_idchaos_princess could turning off and on cores be useful thing? (though not easy probably...)
20:46chaos_princessit is useful, and we already kinda do it. What would be useful is someone figuring out how to bring a core cluster out of deep sleep.
20:46chaos_princess(i know how to put it into deep sleep, but not how to make it come out of it)
20:55chaos_princesswant to try it?
20:58fl0_idchaos_princess I meant for wilfredor. I currently don't even have time to finish / test my m3 max device tree, and probably also don't have the skills to restore state from deep sleep...
21:01wilfredoryeah, that sounds interesting, where is the cluster deep sleep entry handled right now? and on the wake-up side, is the main gap state restore, or are we missing some hardware or firmware sequence to bring the cluster back up?
21:03chaos_princesshttps://pastebin.com/R0Uk4RHD - this puts the cores into deep sleep. At which point it freezes and no longer responds to keyboard, power button, or usb serial.
21:03chaos_princessall hardcoded offsets are for m1 pro/max, if you want to run it on m1, you will have to change them
21:06wilfredor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:26wilfredor has joined #asahi-dev
21:28voidah has joined #asahi-dev
21:34wilfredorthe code freezes because there's no wake-up path once it enters deep sleep, there's no way out
21:35chaos_princesson resume from sleep, the cores jump to RVBAR, which will cause the m1n1 initialization code to be re-executed, and proceed to crash.
21:36chaos_princessi also have a second file that puts a print to serial directly at RVBAR, that one does not work either
21:36JamesCalligeros[m]Did we try going all out and setting up a trampoline at m1n1’s entry point etc
21:37wilfredorthe offsets differ between T600x and T8103, offsets adapted for T8103, but the core issue is missing wake-up logic, not just MMIO addresse
21:38chaos_princesswilfredor: and what kind of wake up logic do you expect to be there? there is code to set NTAP to 1, that should cause the smc to send an interrupt when the power button is pressed among other things
21:42wilfredor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:42JamesCalligeros[m]Oh i didn’t notice you put that at rvbar last time i looked at this
21:43chaos_princessi have two scripts, one to set up the trampoline, other to put machine to sleep. should probably merge them
21:49wilfredor has joined #asahi-dev
21:52wilfredorchaos_princess, please run this and report which test fails, that pinpoints exactly what's broken in the wake path https://pastebin.com/raw/R2yxyv91
21:53chaos_princessis this llm-ed?
21:54wilfredoryes the test is generated it based on the analysis of your original code and the wake-up logic issues we identified
21:54chaos_princessnope. please go somewhere else
21:54voidah has quit [Ping timeout: 480 seconds]
21:59john-cabaj has quit [Ping timeout: 480 seconds]
21:59voidah has joined #asahi-dev
22:09gargantua has quit []
22:12AnyAnimalMorphIHaveAutismAndI4 has joined #asahi-dev
22:14wilfredorDISABLE_WFI_RET bit is the blocker, remove it and add a wake handler to restore registers
22:15chaos_princesscongratulations, you just put the core into shallow sleep and exited it, we already know how to do that
22:17wilfredorIMHO the flow should be CPU enters WFI → Interrupt arrives → CPU EXITS WFI → Executes wake_handler → wake_handler restores ACC_OVRD registers to normal state → CPU works again
22:17chaos_princessthis does not put the core into the deep sleep.
22:17chaos_princessjfyi, the register write sequence i use is the same as macos
22:18wilfredorIs there a different wake mechanism (not interrupt-based) that works with DISABLE_WFI_RET?
22:18ipatch has quit [Ping timeout: 480 seconds]
22:19chaos_princessunknown
22:19chaos_princesswell, that pile of writes to 0x292004008 and up is supposed to configure wake sources
22:34nicolas17 has joined #asahi-dev
22:47wilfredoryour register sequence matches macos, but you're missing the power-gate override register setup and AIC interrupt masking configuration, full power-down (DISABLE_WFI_RET) won't wake interrupt-style, you need retention mode and interrupt routing
22:49chaos_princesssuch as?
22:49wilfredorinstead of interrupt-based, use the actual macOS mechanism (SMC RTKit Mailbox Protocol )
22:50chaos_princess... please refer to lines 84-94 of the first script i posted
22:50chaos_princessis this something an llm told you?
22:52chaos_princessper my previous message, that prevents deep sleep
22:57wilfredor0x29200401c is the wake-source control, writing 0xffffffff blocks all wake paths, please ry leaving ONE bit open (0xfffffffe, 0xfffffffb, 0xfffffff7, etc.) to allow SMC wake while keeping deep sleep
22:57chaos_princesswhat is your source on that one?
22:59wilfredorRTKit driver shows apple_rtkit_wake() requires active RTKit firmware, the wake path is mailbox-based, not interrupt-based
23:00chaos_princessis this something an llm told you?
23:01chaos_princessi see that you keep saying words that form valid syntax, but do not make actual sense with how this hardware works
23:01chaos_princessso, i wanna hear where you are getting this info from
23:04wilfredorI used research tools for investigation and logical deduction, but the analysis is mine, saves a lot of time on tests
23:05chaos_princesssuuuuuure.
23:09wilfredorm1n1/src/smp.c - deep_wfi() loop with SYS_IMP_APL_IPI_SR_EL1 handling, and aic.c MASK_SET/MASK_CLR interrupt configuration. The register at 0x292004018 controls interrupt masking
23:14elvishjerricco has quit [Quit: The Lounge - https://thelounge.chat]
23:47elvishjerricco has joined #asahi-dev
23:50ipatch has joined #asahi-dev