#asahi-dev · 2023-04-26 05:44
jannauaxboe: if you want to have wlan ready at boot instead of waiting for it a couple of minutes you need to disable CONFIG_FW_LOADER_USER_HELPER#asahi-dev · 2023-04-26 05:38
jannaususpend doesn't seem to work at all with axboe's config (+ samsung serial)#asahi-dev · 2023-04-26 05:27
jannauaxboe: you want to compress the u-boot payload. unrelated to the suspend issue but if you switch to the standard chainloading setup a compressed u-boot is required to allow reading appended variables#asahi-dev · 2023-04-26 05:19
jannauI don't see how userspace would make a difference unless it arms the watchdog#asahi-dev · 2023-04-26 05:18
jannaudifference is kernel config and m1n1 payload. I boot kernel and initrd directly instead of u-boot#asahi-dev · 2023-04-26 05:16
jannauovernight suspend/resume worked as well, not surprising if the issue is triggered by suspend#asahi-dev · 2023-04-26 02:29
axboethat's my payload#asahi-dev · 2023-04-26 02:29
axboecat git/m1n1/build/m1n1.bin git/asahi-linux/arch/arm64/boot/dts/apple/t6001-j316c.dtb git/u-boot/u-boot-nodtb.bin#asahi-dev · 2023-04-26 02:28
axboeall of /proc/device-tree/ in case there's anything useful in there#asahi-dev · 2023-04-26 02:28
axboehttps://kernel.dk/dt.tar.gz#asahi-dev · 2023-04-26 02:25
axboeosx shows my debian/asahi boot as 12.3 fwiw#asahi-dev · 2023-04-26 02:25
axboeas far as I know I'm fully current on m1n1/u-boot/mesa#asahi-dev · 2023-04-26 02:25
axboeeven updated mesa since I needed to do that anyway#asahi-dev · 2023-04-26 02:24
axboethis is on top of pmgr-stuff added to the mix#asahi-dev · 2023-04-26 02:23
axboeand still triggers#asahi-dev · 2023-04-26 02:23
axboehttps://pastebin.com/8f2zczkK#asahi-dev · 2023-04-26 02:23
axboealso enabled always-on for basically anything I saw in that trace I posted in here#asahi-dev · 2023-04-26 02:22
axboeso definitely suspend related, not resume - unless the previous resume messed something up...#asahi-dev · 2023-04-26 02:22
axboeused the mem > state way to suspend, and on the third suspend, screen went dark as usual, but then rebooted#asahi-dev · 2023-04-26 02:22
axboedidn't get anything out of osx#asahi-dev · 2023-04-26 02:22
axboemarcan: tried the "default boot into osx, boot linux and trigger it"#asahi-dev · 2023-04-26 02:02
axboejannau: tested without lid, same issue#asahi-dev · 2023-04-26 01:49
axboehadn't had time to further fiddle with this today :/#asahi-dev · 2023-04-26 01:48
axboekernel .config was posted in case there's something there, I can also try the asahi one just in case?#asahi-dev · 2023-04-26 01:47
axboejannau: yep using xfce4, but seems like that should not be related here. pretty normal setup I think, debian testing. using the lid to suspend/resume, yep#asahi-dev · 2023-04-25 19:41
jannaucan you think of anything out of the ordinary? you're using xfce4 if I remember correctly and I gather you suspend/resume by closing/opening the lid#asahi-dev · 2023-04-25 19:34
jannauaxboe: I haven't been able to reproduce yet :(#asahi-dev · 2023-04-25 18:01
axboesounds good!#asahi-dev · 2023-04-25 17:57
marcangood night :)#asahi-dev · 2023-04-25 17:56
marcanin that case I will continue poking at the sleep magic thing to see if it's related#asahi-dev · 2023-04-25 17:56
marcanaxboe: so basically if making everything always-on doesn't help, do the macos thing and whatever the result of that is, I think that's as much as you can do at this point#asahi-dev · 2023-04-25 17:55
marcanit's entirely possible there is some init we're missing#asahi-dev · 2023-04-25 17:55
marcanthis *may* be related to how I couldn't get the CPUs properly fully shut down (with loss of MMIO) but could when I let macOS do it#asahi-dev · 2023-04-25 17:52
marcanbasically my theory right now is that the CPUs going into deep idle is triggering some machinery that we otherwise haven't triggered yet, and it hates something we're doing, and something critical crashes and takes down the machine#asahi-dev · 2023-04-25 17:51
jannauI'll try to reproduce with serial on j314c (14" m1 max)#asahi-dev · 2023-04-25 17:51
marcanalso do try the macos default thing, that might point at something useful#asahi-dev · 2023-04-25 17:51
marcanif making everything on that list always-on doesn't fix it either, then we have some weirder problem where cpuidle is broken, but it somehow only triggers during sleep for unknown reasons (e.g. because it sleeps more then, or because other stuff in the system is going lower power anyway)#asahi-dev · 2023-04-25 17:50
axboeok#asahi-dev · 2023-04-25 17:50
axboeI'll poke at it tonight, I should also try and get some work done...#asahi-dev · 2023-04-25 17:50
marcanI also pushed a thing to the linux.git:pmgr-stuff branch that you might want to cherry pick and see if it helps#asahi-dev · 2023-04-25 17:50
axboesleep well!#asahi-dev · 2023-04-25 17:50
axboeok#asahi-dev · 2023-04-25 17:50
marcanI really need to get some sleep, but if you want to continue debugging on your own: make all of those always-on, and see if that fixes things. if it does, manually bisect (though really gpio is the only one there that I'd even slightly suspect)#asahi-dev · 2023-04-25 17:50
axboewthis is with pmgr_misc removed, and always-on for ps_uart0, ps_gfx, and ps_msg#asahi-dev · 2023-04-25 17:49
marcanok, so you have a fairly short list of power domains that shut down between `Suspending console(s)` and `Lid wakeup`#asahi-dev · 2023-04-25 17:47
axboethat's around the suspend + resume#asahi-dev · 2023-04-25 17:47
axboehttps://paste.debian.net/1278445/#asahi-dev · 2023-04-25 17:45
axboeshorter suspend worked, paste coming up#asahi-dev · 2023-04-25 17:44
axboelet's try again...#asahi-dev · 2023-04-25 17:44
axboerebooted again