#
✕ nick:marcan
#asahi-dev · 2022-02-07 03:03
marcanah, it's up to v5 now: https://lore.kernel.org/linux-m68k/20211212210309.9851-2-digetx@gmail.com/T/
#asahi-dev · 2022-02-07 02:56
marcanv2: https://patchwork.kernel.org/project/linux-pm/cover/20211027211715.12671-1-digetx@gmail.com/
#asahi-dev · 2022-02-07 02:55
marcanthat would allow us to have the SMC and PMU drivers play together without an explicit dep
#asahi-dev · 2022-02-07 02:54
marcansounds like I should probably try pulling that in and poking Dmitry about it
#asahi-dev · 2022-02-07 02:54
marcanheh, apparently there have been a couple attempts at introducing a shutdown callback chain with priorities for linux, most recently https://patchwork.ozlabs.org/project/linux-tegra/cover/20211007060253.17049-1-digetx@gmail.com/
#asahi-dev · 2022-02-07 01:35
marcanjeffmiw: do you mind if I take it over a bit this week? (of course whatever way we end up submitting it you'd be credited)
#asahi-dev · 2022-02-06 17:04
marcanj`ey: yeah, I'm going to work off of that
#asahi-dev · 2022-02-06 17:01
marcanyeah
#asahi-dev · 2022-02-06 17:00
marcanit goes that, then gpio, then SPMI stuff, then smc
#asahi-dev · 2022-02-06 17:00
marcannah, it's something else
#asahi-dev · 2022-02-06 17:00
marcannot sure if we'll end up doing the same or what
#asahi-dev · 2022-02-06 17:00
marcanwith a ton of DT stuff
#asahi-dev · 2022-02-06 17:00
marcanapple seems to parameterize all SPMI PMUs as one driver
#asahi-dev · 2022-02-06 16:59
marcanand yeah
#asahi-dev · 2022-02-06 16:59
marcanthough possibly the first smc write is not necessary
#asahi-dev · 2022-02-06 16:59
marcanthe sequence seems to be smc/spmi/smc so I imagine that needs some kind of sync to happen in the right order?
#asahi-dev · 2022-02-06 16:57
marcanand then u-boot :)
#asahi-dev · 2022-02-06 16:57
marcanI think next week is going to be wrapping up SMC/SPMI PM for me
#asahi-dev · 2022-02-06 16:57
marcanok, I should get some sleep
#asahi-dev · 2022-02-06 16:57
marcanI imagine a boot will reset things anyway, but yeah
#asahi-dev · 2022-02-06 16:56
marcannot sure if that's strictly required or it would happen anyway
#asahi-dev · 2022-02-06 16:55
marcananother thing macos does is shut down the wifi gpio
#asahi-dev · 2022-02-06 16:55
marcanlooks like the pmu driver will need a reference to SMC then
#asahi-dev · 2022-02-06 16:55
marcanyeah
#asahi-dev · 2022-02-06 16:55
marcancute
#asahi-dev · 2022-02-06 16:54
marcanas in wdt works too?
#asahi-dev · 2022-02-06 16:54
marcana reset, any reset?
#asahi-dev · 2022-02-06 16:54
marcanyay for my hypervisor log that dumps out runnable python :p
#asahi-dev · 2022-02-06 16:54
marcanjust tried a dumb replay of everything macos did on spmi and it worked, heh
#asahi-dev · 2022-02-06 16:52
marcanI think I remember that :)
#asahi-dev · 2022-02-06 16:51
marcanah, bsd had this already?
#asahi-dev · 2022-02-06 16:49
marcandoing just the SMC bits causes a reboot, not a shutdown
#asahi-dev · 2022-02-06 16:49
marcanSMC gets one write, a bunch of SPMI/PMU stuff happens, SMC gets another write
#asahi-dev · 2022-02-06 16:49
marcanI was just taking a look now, looks like it involves both PMU and SMC
#asahi-dev · 2022-02-06 16:49
marcanhas anyone looked at shutdown btw?
#asahi-dev · 2022-02-06 16:02
marcanmerged
#asahi-dev · 2022-02-06 15:59
marcanreminder that SART changed
#asahi-dev · 2022-02-06 14:02
marcanI'd hope the fb base is page-aligned in all cases, but yeah, can't hurt to round it just in case
#asahi-dev · 2022-02-06 13:55
marcanit should be safe to align mappings to the page size
#asahi-dev · 2022-02-06 13:53
marcanso u-boot should probably just handle it
#asahi-dev · 2022-02-06 13:53
marcanI don't think there's any expectation that reg properties be page-aligned
#asahi-dev · 2022-02-06 13:49
marcanjannau: nice :D
#asahi-dev · 2022-02-06 13:39
marcanbasically once I get the boot/firmware/installer/arch linux stuff in shape we can pretty much do a release at this point
#asahi-dev · 2022-02-06 13:39
marcanI want to push those through asap, and maybe throw a couple patches over the fence to keep things moving, then start poking around u-boot a bit since it's time to polish the "official" boot chain :)
#asahi-dev · 2022-02-06 13:38
marcankettenis: so, remind me of what DT bindings we need to settle for BSD on your side?
#asahi-dev · 2022-02-06 13:33
marcanalyssa: ^^
#asahi-dev · 2022-02-06 13:33
marcankettenis: I can't make it soft-fail because the error is EPROBE_DEFER, which is normal
#asahi-dev · 2022-02-06 13:07
marcanwhich is why I plan to submit the pcie change only after SMC is in, so I don't break people doing the manual enable for now
#asahi-dev · 2022-02-06 13:07
marcankettenis: fwiw linux has the same problem
#asahi-dev · 2022-02-06 12:55
marcanI made it a subnode because smc will have a whole bunch of subdrivers eventually, and they are subdevices in the mfd model, and I figure it makes sense to have the hierarchy expressed in the DT too

plus ›