#
#asahi-dev · 2026-04-13 20:27
wilfredorgot 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?
#asahi-dev · 2026-04-13 20:22
chaos_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.
#asahi-dev · 2026-04-13 20:10
wilfredori 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
#asahi-dev · 2026-04-13 20:09
wilfredorwould it help to focus on testing or supporting that work, or is there anything else in the power stack that still needs attention?
#asahi-dev · 2026-04-13 20:08
wilfredorwill PMP be exposed as a cpuidle backend, or as a separate PM layer coordinating cpuidle, pmdomain, and suspend?
#asahi-dev · 2026-04-13 20:06
wilfredorhow is that expected to integrate with the existing cpuidle-apple driver?
#asahi-dev · 2026-04-13 20:05
wilfredorso PMP is the missing piece ?
#asahi-dev · 2026-04-13 20:05
wilfredorthat makes sense
#asahi-dev · 2026-04-13 19:54
tryhard[m]like softfloat
#asahi-dev · 2026-04-13 19:54
tryhard[m]maybe because it targets the wrong one?
#asahi-dev · 2026-04-13 19:51
chaos_princessprobably something wrong with your rustc, but i don't understand what exactly
#asahi-dev · 2026-04-13 19:50
tryhard[m]something is odd
#asahi-dev · 2026-04-13 19:50
tryhard[m]didn't fix it aswell
#asahi-dev · 2026-04-13 19:47
chaos_princesstryhard[m]: try renaming to pmpv1.rs or whatever, just drop all dashes and underscores in file name
#asahi-dev · 2026-04-13 19:46
tryhard[m]chaos_princess: didn't fix the issue
#asahi-dev · 2026-04-13 19:46
chaos_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.
#asahi-dev · 2026-04-13 19:44
wilfredorhi 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?
#asahi-dev · 2026-04-13 19:42
svenack, will prepare and send it tomorrow
#asahi-dev · 2026-04-13 19:41
arndsven: send it as fixes now, so we can still decide whether to apply it before or after rc1
#asahi-dev · 2026-04-13 19:41
chaos_princesswilfredor: we are actually actively working on power-related stuff. What specific machine do you have
#asahi-dev · 2026-04-13 19:39
svenarnd: 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?
#asahi-dev · 2026-04-13 19:39
wilfredorhi, 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
#asahi-dev · 2026-04-13 19:19
tryhard[m]i switched to nightly and then it didn't compile it so lets see again lol
#asahi-dev · 2026-04-13 19:17
tryhard[m]uh wait
#asahi-dev · 2026-04-13 19:16
tryhard[m]no build errors
#asahi-dev · 2026-04-13 19:16
tryhard[m]yeah i guess thats it because it finished
#asahi-dev · 2026-04-13 19:14
chaos_princessi remember having some issue with aop_audio relating either to dashes or underscores in module name
#asahi-dev · 2026-04-13 19:13
tryhard[m]ok its building right now but i dont think it got to pmp_v1 so we will see
#asahi-dev · 2026-04-13 19:09
tryhard[m]trying
#asahi-dev · 2026-04-13 19:06
chaos_princesshttps://pastebin.com/mjaYjXqV - try putting this into your makefile
#asahi-dev · 2026-04-13 19:03
tryhard[m]i'm using docker btw
#asahi-dev · 2026-04-13 19:01
tryhard[m]yep
#asahi-dev · 2026-04-13 19:01
chaos_princessand your file is named pmp_v1.rs, right?
#asahi-dev · 2026-04-13 19:00
tryhard[m]sent a code block: https://matrix.org/oftc/media/v1/media/download/AUCykKoXoWaDWzv56dWLf5XVzs5mi9hFL2Y0YeAfODunhg9k9mxzTjXtX49AH52jMn1Y4U-JgtId6MYptKLqY3hCed0FA5xwAG1hdHJpeC5vcmcvbElFUGdXblBRQXFTa2h5WE52WlRPZW5T
#asahi-dev · 2026-04-13 18:59
tryhard[m]yes
#asahi-dev · 2026-04-13 18:59
chaos_princesshave you added the Kconfig block too?
#asahi-dev · 2026-04-13 18:59
tryhard[m]thats what i added to the already existing makefile
#asahi-dev · 2026-04-13 18:59
tryhard[m]obj-$(CONFIG_APPLE_PMP_V1) += pmp_v1.o
#asahi-dev · 2026-04-13 18:58
chaos_princessto your Makefile
#asahi-dev · 2026-04-13 18:58
tryhard[m]is it something in relation to my .config?
#asahi-dev · 2026-04-13 18:56
chaos_princessrustc is being called wrong by something
#asahi-dev · 2026-04-13 18:56
tryhard[m]idk rustc doesnt complain
#asahi-dev · 2026-04-13 18:55
chaos_princessyou should not be adding no_std, something went very wrong when compiling your thing
#asahi-dev · 2026-04-13 18:54
tryhard[m]other non blocking issue:... (full message at <https://matrix.org/oftc/media/v1/media/download/AQYHqgcO43-LjJhFLFF4k4vln-eENnFb8UdoXx_W8ACDMpOXsf7D6wJtGl--wEgDaTc9rwUQU7Fwxa9w7M_cg-ZCed0EsCPAAG1hdHJpeC5vcmcvbmFIR2lDSE9TeHdpTmRxdkJHS0R1SU5E>)
#asahi-dev · 2026-04-13 18:39
tryhard[m]ok let me see
#asahi-dev · 2026-04-13 18:38
chaos_princessyou are having two modules under the same one
#asahi-dev · 2026-04-13 18:38
chaos_princessget your own config symbol
#asahi-dev · 2026-04-13 18:38
tryhard[m]i need to change it to PMP_REPORT but nevermind right now
#asahi-dev · 2026-04-13 18:37
tryhard[m]sent a code block: https://matrix.org/oftc/media/v1/media/download/AeYCzH8ZEYJyHVM9g-4fOX5yxB1cYMPStfuEYUY98M97sKgtEblvLVYbD2xlQ2jggFCx5eqsUD9Owvpj2dxomlhCed0Dt-XgAG1hdHJpeC5vcmcvWmNxQ1JScFFLUlBNaVVLRFJ4a2JrTXpp
#asahi-dev · 2026-04-13 18:37
chaos_princesscan you also show the Makefile segment for it?

plus ›