#
✕ nick:marcan
#asahi-dev · 2022-03-05 11:16
marcanI wouldn't be surprised if various things break, but the vuart is, well, virtual
#asahi-dev · 2022-03-05 11:15
marcanthat's weird
#asahi-dev · 2022-03-05 11:14
marcandoes the power button printk?
#asahi-dev · 2022-03-05 11:14
marcanmight just be deadlocked somewhere
#asahi-dev · 2022-03-05 11:14
marcancheck the backtrace
#asahi-dev · 2022-03-05 11:14
marcanprobably
#asahi-dev · 2022-03-05 11:13
marcans/breakpoint/break/
#asahi-dev · 2022-03-05 11:13
marcan(there's no nice way to automate that right now due to the cpu switch command being a console exit behind the scenes... I just paste a pile of cpu(0)\nbt\ncpu(1)\n... )
#asahi-dev · 2022-03-05 11:13
marcanbreakpoint it in the HV and see what it's doing? you might have to go through all CPUs
#asahi-dev · 2022-03-05 11:12
marcanj`ey: vuart definitely shouldn't break... unresponsive as in no console?
#asahi-dev · 2022-03-05 08:26
marcanOTOH, ideally we would just support hotplug and avoid having a timeout altogether
#asahi-dev · 2022-03-05 08:26
marcanfwiw, the power gpio stuff is using spec values, but yeah, I don't know about the link timeout
#asahi-dev · 2022-03-05 08:26
marcanjust immediately (hadn't been testing on that machine)
#asahi-dev · 2022-03-05 08:25
marcanrepro'd the wifi fail on j293 fwiw
#asahi-dev · 2022-03-04 17:27
marcanoff to sleep
#asahi-dev · 2022-03-04 17:27
marcancool :)
#asahi-dev · 2022-03-04 17:25
marcanthere's a lot of crap in my wd, but the main things are: the suspend/resume callbacks (obviously), including clearing that run bit, and also I had to always disable after shutdown, because otherwise the CC bit actually stays on and then on resume it tries to disable the controller again (prior to the RTKit boot) and fails
#asahi-dev · 2022-03-04 17:24
marcan19 is ENODEV apparently?
#asahi-dev · 2022-03-04 17:24
marcanit's probably something dumb
#asahi-dev · 2022-03-04 17:23
marcan[ 10.014460] nvme nvme0: Reset failure status: -5
#asahi-dev · 2022-03-04 17:23
marcan[ 10.014457] nvme nvme0: Identify Controller failed (-19)
#asahi-dev · 2022-03-04 17:23
marcan[ 10.014446] nvme-apple 393cc0000.nvme: Starting admin queue
#asahi-dev · 2022-03-04 17:23
marcan[ 10.012885] nvme-apple 393cc0000.nvme: RTKit: syslog message: cmd.c:6025: boot mode normal
#asahi-dev · 2022-03-04 17:23
marcanthen yeah, just don't load that driver :p
#asahi-dev · 2022-03-04 17:23
marcanoh
#asahi-dev · 2022-03-04 17:23
marcanwhich one, suspend?
#asahi-dev · 2022-03-04 17:22
marcanthen just hit the power button to resume
#asahi-dev · 2022-03-04 17:22
marcanthat's what I use to trigger suspend
#asahi-dev · 2022-03-04 17:22
marcanecho mem > /sys/power/state
#asahi-dev · 2022-03-04 17:22
marcanecho 0000:01:00.0 > /sys/bus/pci/drivers/brcmfmac/unbind
#asahi-dev · 2022-03-04 17:22
marcanbrcmfmac (and everything pcie) is borked in general, you need to at least unbind that one
#asahi-dev · 2022-03-04 17:22
marcansven: ok, I got it to boot to RTKit on resume but nvme identify fails; I dumped my worktree on nvme/suspend in case you're bored
#asahi-dev · 2022-03-04 17:01
marcaner, deassert
#asahi-dev · 2022-03-04 17:01
marcanI didn't know it happened on ungate
#asahi-dev · 2022-03-04 17:01
marcanwe knew it happened on reset assert
#asahi-dev · 2022-03-04 16:56
marcanand then rtkit goes on merrily initializing things in its worker, and kaboom
#asahi-dev · 2022-03-04 16:56
marcan... before we can re-enable the other critical power domains
#asahi-dev · 2022-03-04 16:55
marcanyeah, it turns out if we leave it set, ans2 will boot as soon as the power domain is re-enabled
#asahi-dev · 2022-03-04 16:55
marcansven: remember that cpu run bit?
#asahi-dev · 2022-03-04 16:55
marcanahahaha okay this was fun
#asahi-dev · 2022-03-04 16:16
marcanok, I see why ans2 explodes, it's the nested power domain thing
#asahi-dev · 2022-03-04 16:15
marcanyes
#asahi-dev · 2022-03-04 16:10
marcanthis driver thing is for resuming from suspend when you press it again
#asahi-dev · 2022-03-04 16:10
marcanyou mean for triggering suspend? that's up to userspace, works fine with kde/plasma
#asahi-dev · 2022-03-04 16:03
marcan... now I need to fix the carnage of devices getting powergated and having no idea how to restore
#asahi-dev · 2022-03-04 16:03
marcanat least I got nvme to do a clean shutdown, and macsmc-hid to do button wakeups, quite trivially
#asahi-dev · 2022-03-04 16:02
marcanhttps://mrcn.st/p/pRYg9jVh current state of s2idle :')
#asahi-dev · 2022-03-04 15:17
marcanand for distros to offer 16k general distro kernels because they should do that too
#asahi-dev · 2022-03-04 15:17
marcanthe goal is to have a general distro kernel be what everyone uses
#asahi-dev · 2022-03-04 15:11
marcanthe benefit is it doesn't eat memory on non-apple systems

plus ›