#
#asahi-dev · 2026-01-11 14:17
jannauas downstream hack that's better. platform_hibernation_ops gets called quite late
#asahi-dev · 2026-01-11 14:15
svenof_machine_is_compatible is even better
#asahi-dev · 2026-01-11 14:14
svenof_machine_compatible_match against apple,arm-platform should work i guess
#asahi-dev · 2026-01-11 14:11
svenat least downstream we could just add a hack to hibernation_available that makes it always return false on apple silicon
#asahi-dev · 2026-01-11 14:09
sventhat would at least prevent all devices from being put to sleep but i'm not sure if that would stop the entry->exit loop
#asahi-dev · 2026-01-11 14:06
jannauthere doesn't seem to be straight forward way to disable hibernation. We could register platform_hibernation_ops that always fail
#asahi-dev · 2026-01-11 13:53
svenpower management was set to hybrid sleep which is what triggered hibernation i think
#asahi-dev · 2026-01-11 13:52
svenhttps://f.svpe.de/eaaca1067e33b62e3e069ab146cb2a2a7d66b4b0d5158a05762863ff0f0e9c29_asahi-diagnose-20260111-093152.txt
#asahi-dev · 2026-01-11 13:50
svenand then there's a bug in some driver that only rarely happens and gets hit when we try to constantly hibernate
#asahi-dev · 2026-01-11 13:49
svenmaybe userland doesn't notice about that failure and then immediately tries again?
#asahi-dev · 2026-01-11 13:48
jannauno, it fails due missing CPU offline support: "Error taking CPU7 down: -95", "Non-boot CPUs are not disabled"
#asahi-dev · 2026-01-11 13:47
svenand then immediately tries again
#asahi-dev · 2026-01-11 13:47
svenand then it brings everything back up
#asahi-dev · 2026-01-11 13:47
svenJan 11 01:34:49 sven-macbookair kernel: Error taking CPU7 down: -95 <-- i think that's what stops it in the end
#asahi-dev · 2026-01-11 13:47
svenit's been trying to hibernate for ~2 hours last night before it finally died somewhere i think
#asahi-dev · 2026-01-11 13:45
jannauI thought hibernation would be blocked by pinned GPU memory without evictions. hibernate didn't do anything when I tried, could of course have other reasons
#asahi-dev · 2026-01-11 09:22
svenyes, that's obvious. what i want to figure out is how the kernel determines if hibernation is supported without a boot arg
#asahi-dev · 2026-01-11 09:22
Glanzmannsven: When I try to echo disk > /sys/power/state on m1 air, it tries to hibernate, but fails, if I boot with the kernel parameter hibernate=no than it says 'operation not permitted' https://pbot.rmdir.de/Dqk3h_oiBPaOoeZ10oVXSg
#asahi-dev · 2026-01-11 09:03
integralpiloti think so, though don't remember exactly
#asahi-dev · 2026-01-11 09:02
integralpilotbut i don't think it's actually going through
#asahi-dev · 2026-01-11 09:02
svenbut the issue still happens even with writing to it only?
#asahi-dev · 2026-01-11 09:01
svenhuh
#asahi-dev · 2026-01-11 09:01
integralpilotwait, i think it's actually the reading of the register (so we apply the bitmask) that fails, but for some reason the write succeeds
#asahi-dev · 2026-01-11 08:59
integralpilot*write
#asahi-dev · 2026-01-11 08:59
integralpilotbut the exact issue the chicken fixed will occur if we skip that right
#asahi-dev · 2026-01-11 08:59
integralpilotwriting to a chicken register fails
#asahi-dev · 2026-01-11 08:54
svendoes it just not come up?
#asahi-dev · 2026-01-11 08:54
svendo you know why nvme doesn't work on m3?
#asahi-dev · 2026-01-11 08:50
integralpilotthanks!
#asahi-dev · 2026-01-11 08:50
svenok, will try to grab one later
#asahi-dev · 2026-01-11 08:50
integralpilotthat would be helpful if you can get around to it, but not urgent
#asahi-dev · 2026-01-11 08:50
svenoh right, do you still need that nvme trace?
#asahi-dev · 2026-01-11 08:50
integralpilotsadly no NVMe yet so cant see the dmesgs from when that happened, forever lost in RAM...
#asahi-dev · 2026-01-11 08:49
sveni just wonder what makes the system think it can do that
#asahi-dev · 2026-01-11 08:49
svenyeah, not sure either. but dmesg looks like it tried to hibernate
#asahi-dev · 2026-01-11 08:49
integralpiloti didnt think alpine was smart enough to try and hibernate but not sure
#asahi-dev · 2026-01-11 08:49
svenwhich we just don't support on these machines
#asahi-dev · 2026-01-11 08:48
sventhat sounds like my issue, i suspect that happens when it tries to enter hibernate for some reason
#asahi-dev · 2026-01-11 08:48
integralpilotmight be unrelated or could also be a similar failed hibernation thing
#asahi-dev · 2026-01-11 08:48
integralpilotive had the same thing, on M3 if i leave alpine running and shut the lid and forget about it, when i open it again its just black and unresposive and wont turn on. had to hold power button for a while and it fixed itself up
#asahi-dev · 2026-01-11 08:47
svenyes, it's definitely unrelated
#asahi-dev · 2026-01-11 08:46
GlanzmannBut it is probably unrelated to the problem you're seeing.
#asahi-dev · 2026-01-11 08:45
Glanzmannsven: It works for me, I debugged it by myself by reading the atc code. However I was just answering you questions if someone had problems turning on the m1. And that was that.
#asahi-dev · 2026-01-11 08:45
svendo i need to mention again that that branch is meant for developers who can debug issues?
#asahi-dev · 2026-01-11 08:45
sven*sigh*
#asahi-dev · 2026-01-11 08:44
Glanzmannsven: I had recently two crashes while trying dp altmode usb/c with the wrong m1n1 version where I had press the powerbutton for a long time to turn off the m1 mini and than it would not start immediatly, but after lets say 30 seconds I could start it again.
#asahi-dev · 2026-01-11 08:37
svenwe shouldn't ever try to enter that tbh
#asahi-dev · 2026-01-11 08:35
nickchanokay so not any attempt at hybrid sleep
#asahi-dev · 2026-01-11 08:35
svenso 100%
#asahi-dev · 2026-01-11 08:35
svenit's connected to power

plus ›