#
✕ nick:chaos_princess
#asahi-dev · 2026-04-14 14:42
chaos_princessgo into menuconfig and search for BTF, or UNWIND
#asahi-dev · 2026-04-14 14:41
chaos_princessi think its something related to unwinding
#asahi-dev · 2026-04-14 14:24
chaos_princessdon't we have a msr scanner? maybe diff all the things?
#asahi-dev · 2026-04-14 14:24
chaos_princessboot cpu is not supposed to be special, so that is probably a difference in some msr
#asahi-dev · 2026-04-14 14:20
chaos_princessso... remove every single wfi?
#asahi-dev · 2026-04-14 14:14
chaos_princessif it is truly loaded too late, find the normal cpuidle driver and replace it's WFI with a WFE, or a loop
#asahi-dev · 2026-04-14 11:58
chaos_princessand "wrong config name" is what is causing rustc to skip building everything inside that module
#asahi-dev · 2026-04-14 11:58
chaos_princessdrop it entirely, it is a wrong way to do what you are trying to do
#asahi-dev · 2026-04-14 11:56
chaos_princessi suspect line 10 is the culprit
#asahi-dev · 2026-04-14 11:55
chaos_princesskernel crate should be doing no_std for you
#asahi-dev · 2026-04-14 11:55
chaos_princessyou are fighting a symptom, not a cause
#asahi-dev · 2026-04-14 11:54
chaos_princessdrop lines 8 and 10
#asahi-dev · 2026-04-14 11:45
chaos_princesssomething is going very wrong there
#asahi-dev · 2026-04-14 11:45
chaos_princesscan you post the entire file
#asahi-dev · 2026-04-13 23:05
chaos_princesssuuuuuure.
#asahi-dev · 2026-04-13 23:01
chaos_princessso, i wanna hear where you are getting this info from
#asahi-dev · 2026-04-13 23:01
chaos_princessi see that you keep saying words that form valid syntax, but do not make actual sense with how this hardware works
#asahi-dev · 2026-04-13 23:00
chaos_princessis this something an llm told you?
#asahi-dev · 2026-04-13 22:57
chaos_princesswhat is your source on that one?
#asahi-dev · 2026-04-13 22:52
chaos_princessper my previous message, that prevents deep sleep
#asahi-dev · 2026-04-13 22:50
chaos_princessis this something an llm told you?
#asahi-dev · 2026-04-13 22:50
chaos_princess... please refer to lines 84-94 of the first script i posted
#asahi-dev · 2026-04-13 22:49
chaos_princesssuch as?
#asahi-dev · 2026-04-13 22:19
chaos_princesswell, that pile of writes to 0x292004008 and up is supposed to configure wake sources
#asahi-dev · 2026-04-13 22:19
chaos_princessunknown
#asahi-dev · 2026-04-13 22:17
chaos_princessjfyi, the register write sequence i use is the same as macos
#asahi-dev · 2026-04-13 22:17
chaos_princessthis does not put the core into the deep sleep.
#asahi-dev · 2026-04-13 22:15
chaos_princesscongratulations, you just put the core into shallow sleep and exited it, we already know how to do that
#asahi-dev · 2026-04-13 21:54
chaos_princessnope. please go somewhere else
#asahi-dev · 2026-04-13 21:53
chaos_princessis this llm-ed?
#asahi-dev · 2026-04-13 21:43
chaos_princessi have two scripts, one to set up the trampoline, other to put machine to sleep. should probably merge them
#asahi-dev · 2026-04-13 21:38
chaos_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
#asahi-dev · 2026-04-13 21:37
chaos_princessJamesCalligeros[m]: yes https://pastebin.com/KfmQLUqr
#asahi-dev · 2026-04-13 21:36
chaos_princessi also have a second file that puts a print to serial directly at RVBAR, that one does not work either
#asahi-dev · 2026-04-13 21:35
chaos_princesson resume from sleep, the cores jump to RVBAR, which will cause the m1n1 initialization code to be re-executed, and proceed to crash.
#asahi-dev · 2026-04-13 21:03
chaos_princessall hardcoded offsets are for m1 pro/max, if you want to run it on m1, you will have to change them
#asahi-dev · 2026-04-13 21:03
chaos_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.
#asahi-dev · 2026-04-13 20:55
chaos_princesswant to try it?
#asahi-dev · 2026-04-13 20:46
chaos_princess(i know how to put it into deep sleep, but not how to make it come out of it)
#asahi-dev · 2026-04-13 20:46
chaos_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.
#asahi-dev · 2026-04-13 20:27
chaos_princessjust talk to tryhard[m], they seem to close to done
#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 19:51
chaos_princessprobably something wrong with your rustc, but i don't understand what exactly
#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
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:41
chaos_princesswilfredor: we are actually actively working on power-related stuff. What specific machine do you have
#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:06
chaos_princesshttps://pastebin.com/mjaYjXqV - try putting this into your makefile
#asahi-dev · 2026-04-13 19:01
chaos_princessand your file is named pmp_v1.rs, right?
#asahi-dev · 2026-04-13 18:59
chaos_princesshave you added the Kconfig block too?

plus ›