#asahi-dev · 2023-04-26 19:30
marcanthey mushed together a pile of drivers into one and called it all dart#asahi-dev · 2023-04-26 19:29
marcanyou need to look at the instances stuff to figure out what the io areas are#asahi-dev · 2023-04-26 19:29
marcanDARTs are instanced#asahi-dev · 2023-04-26 19:21
marcanpretty sure this has been broken forever and it wouldn't be surprising if deep idle makes it actually matter for real#asahi-dev · 2023-04-26 19:20
marcanneed to sleep, will look at this angle tomorrow#asahi-dev · 2023-04-26 19:20
marcanalready getting AMCC errors on a simple boot on j314 without u-boot#asahi-dev · 2023-04-26 19:16
marcanbut it's entirely possible something about deep idle breaks it much more badly#asahi-dev · 2023-04-26 19:16
marcanwe've never bothered with that because it worked anyway#asahi-dev · 2023-04-26 19:16
marcanreal-time memory requests to stuff the CPU has cached are illegal (macOS panics if that happens)#asahi-dev · 2023-04-26 19:16
marcanlong shot: we should write an AMCC error handler driver#asahi-dev · 2023-04-26 19:14
marcanis this with PCIe enabled in u-boot?#asahi-dev · 2023-04-26 19:13
marcanit's not supposed to touch any HID stuff etc, is it? I wonder if it does anything interesting to any other sysregs...#asahi-dev · 2023-04-26 19:13
marcanjannau: now I wonder what u-boot does that somehow affects linux down the line, that's... bizarre#asahi-dev · 2023-04-26 18:15
marcankaazoo: FYI all the t802x bringup stuff is already merged into the regular m1n1/linux branches (except the GPU stuff lina is working on), so disregard the bringup ones#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
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
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
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: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:41
marcanif you got one good cycle it should be in the journal too#asahi-dev · 2023-04-25 17:41
marcandidn't you get one good cycle at least?#asahi-dev · 2023-04-25 17:40
marcan*didn't get everything#asahi-dev · 2023-04-25 17:40
marcanas long as I can see the whole suspend cycle (i.e. there should be one line of wakeup, otherwise you probably didn't get anything) we should be good#asahi-dev · 2023-04-25 17:40
marcanno, I mean some dmesg of pmgr changes through a suspend cycle#asahi-dev · 2023-04-25 17:38
marcanso, pmgr log?#asahi-dev · 2023-04-25 17:38
marcanthat's not a thing on arm :p#asahi-dev · 2023-04-25 17:34
marcanyou mean 29?#asahi-dev · 2023-04-25 17:23
marcan(if it finds something it will pop it up on startup)#asahi-dev · 2023-04-25 17:23
marcanthere's also one interesting thing we can try. set macOS as the default boot OS, do a one-time boot into Linux, repro, and see if macOS gives you any panic logs. I think it can catch certain system engine/management errors.#asahi-dev · 2023-04-25 17:21
marcanadd that and remove the cpuidle.off and see if it repros, if it does either catch enough of a log or disable cpuidle again and catch it that way#asahi-dev · 2023-04-25 17:20
marcanspi is going to spam (that's the keyboard/trackpad)#asahi-dev · 2023-04-25 17:20
marcanyeah I need the suspend cycle#asahi-dev · 2023-04-25 17:18
marcanthat sounds like a separate issue..#asahi-dev · 2023-04-25 17:17
marcanit should be the same regardless of what cpuidle is doing#asahi-dev · 2023-04-25 17:16
marcanI want to see the pmgr stuff first#asahi-dev · 2023-04-25 17:14
marcananother random guess: make ps_msg apple,always-on#asahi-dev · 2023-04-25 17:10
marcanmaybe you need to boot with `debug`?#asahi-dev · 2023-04-25 17:10
marcanI don't see the debugs?#asahi-dev · 2023-04-25 17:08
marcanor just paste the whole dmesg so I can see what when#asahi-dev · 2023-04-25 17:08
marcanfrom a suspend cycle, yeah#asahi-dev · 2023-04-25 17:07
marcanok#asahi-dev · 2023-04-25 17:07
marcangot a log of the pmgr stuff?#asahi-dev · 2023-04-25 17:06
marcanok#asahi-dev · 2023-04-25 17:06
marcanif it's recent you have it in /proc/device-tree/chosen/asahi,m1n1-stage2-version :p