#
#asahi-dev · 2023-03-11 14:06
robherAnd if it was on already at boot.
#asahi-dev · 2023-03-11 14:06
marcanI don't particularly care about clocks for this platform so someone else can worry about that :-)
#asahi-dev · 2023-03-11 14:05
marcanso I'm thinking the genpd core should refuse to power off PDs if there are any unprobed/unfulfilled fwlinks
#asahi-dev · 2023-03-11 14:05
marcanyeah
#asahi-dev · 2023-03-11 14:05
robherA shared clock (or parent) would have the same issue.
#asahi-dev · 2023-03-11 14:05
marcan(because hardware is already on at the bootloader and you can't just yank power from it, or because it's outright a dependent PD)
#asahi-dev · 2023-03-11 14:04
marcanthis is a particular problem for PDs because hardware has interesting rules for that, like you can't just turn off some power domains that are on at boot without first hooking up their dependencies
#asahi-dev · 2023-03-11 14:03
robherThat's probably broken for any provider. Or if you defer for provider A, and then provider B is disabled.
#asahi-dev · 2023-03-11 14:02
robherah
#asahi-dev · 2023-03-11 14:02
marcanso then another dependency comes along that expected that not to happen and it breaks
#asahi-dev · 2023-03-11 14:02
marcanrobher: PDs turn off when their *first* dependency probes and idles itself
#asahi-dev · 2023-03-11 14:01
robhermarcan: only parent-child dependencies. The device that defers should have a dependency on the PD provider and not attempt to probe. But how is the PD turned off if its driver hasn't probed yet?
#asahi-dev · 2023-03-11 14:01
jannaumarcan: did you already test on mini, imac or studio? I expect ethernet and usb xhci (on imac, studio)
#asahi-dev · 2023-03-11 14:00
jannauI disn't realize that until now that we use u-boot with PCIe support
#asahi-dev · 2023-03-11 13:58
jannauI blame that on u-boot's pcie code. I don't see those warnings when booted directly through m1n1
#asahi-dev · 2023-03-11 13:52
jannauno need, I see it with asahi-6.2-6 as well
#asahi-dev · 2023-03-11 13:51
chadmedill pull down the new tag and test tomorrow anyway
#asahi-dev · 2023-03-11 13:50
chadmedjannau: yeah they made it into asahi-6.2-5
#asahi-dev · 2023-03-11 13:50
jannaume too, I'll look into it
#asahi-dev · 2023-03-11 13:49
marcanuhh
#asahi-dev · 2023-03-11 13:49
marcanI do get the warnings though
#asahi-dev · 2023-03-11 13:49
marcanoh wait I had that in 130 already
#asahi-dev · 2023-03-11 13:48
jannauchadmed: do you have d57163d701f2 and aad9b063352e?
#asahi-dev · 2023-03-11 13:48
kettenisthat version number isn't printed quite right
#asahi-dev · 2023-03-11 13:48
kettenishah: [ 0.000000] efi: EFI v2.100 by Das U-Boot
#asahi-dev · 2023-03-11 13:48
marcanjannau: added your fix to bits/030-misc
#asahi-dev · 2023-03-11 13:47
marcanI think I saw the patch for that
#asahi-dev · 2023-03-11 13:46
jannauthat warning shouldn't be there
#asahi-dev · 2023-03-11 13:45
chadmedcouple of other pcie niggles seem to have cropped up too https://tpaste.us/RBEv
#asahi-dev · 2023-03-11 13:44
marcan:D
#asahi-dev · 2023-03-11 13:44
svenhas been busy with $work that actually pays my bills as well :D
#asahi-dev · 2023-03-11 13:44
marcanthe "proper" fix might have to wait until later though, since I have way too much stuff on my plate first
#asahi-dev · 2023-03-11 13:42
marcannew kernels should be up too
#asahi-dev · 2023-03-11 13:42
marcanbut if people don't like that then hack it is
#asahi-dev · 2023-03-11 13:42
marcanI'll try doing it "properly" with some fwlink based thing in the PM core
#asahi-dev · 2023-03-11 13:41
marcanwe can also do the same thing DCP does for now and unmark that flag in the nvme driver
#asahi-dev · 2023-03-11 13:40
svenlovely :(
#asahi-dev · 2023-03-11 13:39
marcanit would depend on probe order, yes
#asahi-dev · 2023-03-11 13:39
chadmedodd that it didnt affect your machine, is that code path racey?
#asahi-dev · 2023-03-11 13:38
chadmedyeah :/
#asahi-dev · 2023-03-11 13:38
Cyrinux9the workaround works, thanks marcan
#asahi-dev · 2023-03-11 13:38
marcanwe don't really want that since it makes nvme PM worse, but for now it will do
#asahi-dev · 2023-03-11 13:38
chadmedaaand we're back, apple,always-on in ps_ans2 sorted it
#asahi-dev · 2023-03-11 13:37
marcanI know OF already has some stuff to pre-populate fwnode links based on power-domains properties, maybe what we should do is make the PM core refuse to power off a domain if there are any links that haven't probed yet?
#asahi-dev · 2023-03-11 13:35
marcanso basically we need some way for the pmgr driver to synchronously ensure the entire hierarchy it is responsible for is probed, not just a single pass with stuff ending up deferred
#asahi-dev · 2023-03-11 13:35
jannaumarcan: booted with updated u-boot from asahi-dev
#asahi-dev · 2023-03-11 13:34
marcanhowever, PD dependencies not being honored are a much bigger problem
#asahi-dev · 2023-03-11 13:34
marcan(we hack around that one by marking it always-on and then the DCP driver unmarks it)
#asahi-dev · 2023-03-11 13:34
marcanthis is a deeper problem we also have with e.g. DCP (where its PD is illegal to turn off until the DCP driver probes), but that's a bit of a special case
#asahi-dev · 2023-03-11 13:34
marcanrobher: is OF probe order across buses/sub-buses defined at all? we have a problem with pmgr nodes, where some nodes probe before their power-domain parents, so they get deferred. then some other device probes, and as the first consumer goes into suspend and the parent gets powered off. then the deferred child probes, and bails when it finds itself on but the parent off, which is illegal.

plus ›