#asahi-dev · 2026-01-11 23:01
chaos_princessmust use specifically installassistant from macos for that trick to work#asahi-dev · 2026-01-11 23:01
chaos_princessnoopwafel: install 14.latest via recovery, then use the installassistant to make a separate install of 14.desired#asahi-dev · 2026-01-11 23:00
noopwafelwe wasted some time trying to downgrade macos and now we are back to staring at the broken remains of macos boots#asahi-dev · 2026-01-11 22:58
svenwe used to boot linux and even macos in the hv without mcc.c iirc, it just makes things faster#asahi-dev · 2026-01-11 22:52
JamesCalligeros[m]Cant remember where#asahi-dev · 2026-01-11 22:52
JamesCalligeros[m]I saw Memory Cache Controller somewhere#asahi-dev · 2026-01-11 22:51
chaos_princessi've spent like 15 seconds trying to work in the last c :P#asahi-dev · 2026-01-11 22:47
noopwafelthat last 'c' is not just 'curses'?#asahi-dev · 2026-01-11 22:47
Shizseems maybe important#asahi-dev · 2026-01-11 22:46
chaos_princessmemory, cache, other magic#asahi-dev · 2026-01-11 22:46
Shizjust cache?#asahi-dev · 2026-01-11 22:44
Shizso, dumb question: what's the mcc specifically? it seems to be a memory controller of some kind, but its exact function is a bit unclear to me#asahi-dev · 2026-01-11 21:56
kettenischaos_princess: maybe they're trying to say that deep sleep won't be reached unless it is enabled on all cores?#asahi-dev · 2026-01-11 21:47
chaos_princessi am a bit confused about what oss xnu is trying to do, as it claims that deep sleep registers are global, but configures it on every cpu before doing a wfi#asahi-dev · 2026-01-11 21:40
sventhe linux driver definitely doesn't implement any of that though#asahi-dev · 2026-01-11 21:39
svenso maybe we know how it works#asahi-dev · 2026-01-11 21:39
svenhuh.. actually, looks like it's implemented for the secondary cores at least#asahi-dev · 2026-01-11 21:38
sventhat maybe enters the deep sleep state, but i haven't seen it exit from that one and show up at RVBAR again#asahi-dev · 2026-01-11 21:34
chaos_princessso, what is this part supposed to do then? https://github.com/AsahiLinux/m1n1/blob/6870704535d0f1a01bdc3d2c837d3f2b9f37acb6/src/utils.c#L250#asahi-dev · 2026-01-11 21:23
svenpeter[m]but i don't think we ever managed to enter the deepest sleep state and then wake up from it at RVBAR again#asahi-dev · 2026-01-11 21:22
svenpeter[m]i think that uses the msr that controls at least part of it#asahi-dev · 2026-01-11 21:22
svenpeter[m]i don't think so#asahi-dev · 2026-01-11 21:20
chaos_princesssvenpeter[m]: isn't the thing you are describing already implemented in m1n1 as deep_sleep/SLEEP_GLOBAL?#asahi-dev · 2026-01-11 21:11
Shizdoing dfu restore now#asahi-dev · 2026-01-11 21:11
Shizthe 14.3.1 installer automatically updated to 14.8.3 while installing :')#asahi-dev · 2026-01-11 21:04
chaos_princessdepends on what you are going for#asahi-dev · 2026-01-11 21:03
abrenderokay, thanks @svenpeters and @chaos_princess. So it sounds like if I were to dig further into all of the above I wouldn't be stepping on anyones toes? You're not aware of anyone that would come back to me saying "oh, we already have it working and are just productionizing it, you've just wasted your time", right? :)#asahi-dev · 2026-01-11 20:55
cyberheadjannau: i was looking around in the wiki#asahi-dev · 2026-01-11 20:54
jannaucyberhead: that's accurate but known since apple published the devicetree for the M4 ipad pro#asahi-dev · 2026-01-11 20:53
cyberheadmy config is a 2025 MacBook Air, using the built-in monitor and two external monitors, one over usb-c and another over official Apple HDMI adapter#asahi-dev · 2026-01-11 20:53
jannauthe cpuidle driver only uses the deeper wfi state which only retains program counter and stack pointer#asahi-dev · 2026-01-11 20:52
cyberheadi wanted to chime in and to give information that I strongly suspect that the base M4 has 1 dcp and 2 dcpext#asahi-dev · 2026-01-11 20:40
svenpeter[m]oh, and you can't observe it from the hypervisor because systemwide sleep breaks that one and results in a reboot#asahi-dev · 2026-01-11 20:37
svenpeter[m]maybe nickchan knows more from the iphone world#asahi-dev · 2026-01-11 20:36
svenpeter[m]but i'm not sure if that's enough to properly enter that state with a wfi#asahi-dev · 2026-01-11 20:36
svenpeter[m]then there's that wfi control register we mess with and iirc it has a lower state you can configure#asahi-dev · 2026-01-11 20:35
svenpeter[m]there's some information in open source xnu at its entry point#asahi-dev · 2026-01-11 20:34
chaos_princessdo we have a m1n1 thing for that, or somewhere where it is written? might look into that too#asahi-dev · 2026-01-11 20:33
svenpeter[m]i know the core is supposed to come up at RVBAR again but i never saw that happen iirc#asahi-dev · 2026-01-11 20:33
svenpeter[m]we roughly know how to enter it, but i don't think we ever looked into recovering from that deep sleep#asahi-dev · 2026-01-11 20:32
chaos_princesshuh, i thought we knew that one, i was more looking into how to disable entire clusters, or lower fabric states#asahi-dev · 2026-01-11 20:32
svenpeter[m]it's that deep sleep state where you can turn off the entire cluster and once it comes back up it lost every state and jumps back to RVBAR (i.e. wherever m1n1 was during boot)#asahi-dev · 2026-01-11 20:31
svenpeter[m]yeah, but not into the lowest state#asahi-dev · 2026-01-11 20:31
chaos_princessi thought we did#asahi-dev · 2026-01-11 20:31
chaos_princesswait, don't we have the cpuidle driver that does it?#asahi-dev · 2026-01-11 20:30
svenpeter[m]one thing that i'm aware of that's missing is putting the cpu in their lowest power state, we only very roughly know how that works and there's also quite some effort into getting that upstreamable#asahi-dev · 2026-01-11 20:29
chaos_princesssomething like that, yes#asahi-dev · 2026-01-11 20:29
svenpeter[m]i think chaos_princess has looked into power management in general#asahi-dev · 2026-01-11 20:11
abrenderHi Folks - I am considering spending time working to improve the power management during sleep on my M2 Macbook Air. Before I start down that rabbit hole, I was wondering if there is anyone who has already started to tackle that, so that i don't step on their toes? Thanks in advance!