#asahi · 2021-09-20 09:15
marcantons of signed proprietary firmware that works, does its job, is behind IOMMUs so cannot backdoor the main system, and takes a ton of work off of Linux? I have no problem with that#asahi · 2021-09-20 09:11
marcanbut the M1 is arguably even better, especially relative to all the stuff it does#asahi · 2021-09-20 09:10
marcanI think to this day the most no-nonsense system I'd seen was the Wii, but that still has some memory init (that we never had to worry about because it was done by the stage 1 bootloader) and some PLL (?) and related nonsense (that we did, since we replaced the stage 2 bootloader)#asahi · 2021-09-20 09:09
marcantophevich[m]: I'm happy that people enjoy them :)#asahi · 2021-09-20 09:08
marcanalso, seriously, no other SoC vendor does this remotely this well#asahi · 2021-09-20 09:08
marcanmeans they can't afford to let osx do anything nasty :D#asahi · 2021-09-20 09:08
marcanthank you apple security design#asahi · 2021-09-20 09:08
marcanthe PLLs are *locked*, we can't get ourselves into that mess even if we wanted to!#asahi · 2021-09-20 09:07
marcanthough so far most of that has been "finding out all the things I don't need to care about"#asahi · 2021-09-20 09:07
marcansure :p#asahi · 2021-09-20 09:04
marcanalso I think I spent more time adding runtime PM to the serial driver (because sequencing and enable/disable mismatches and...) :p#asahi · 2021-09-20 09:03
marcanthankfully it's pretty simple :)#asahi · 2021-09-20 09:03
marcanyeah, the work was mostly figuring out how the genpd stuff works!#asahi · 2021-09-20 08:59
marcan*thought#asahi · 2021-09-20 08:59
marcantophevich[m]: I normally stream whatever I do as long as I'm in the mood; I was actually originally planning to stream last night's thing but I ended up too tired, though I'd sleep, then couldn't sleep, then decided to hack on that driver anyway... not quite up for a stream at that point :p#asahi · 2021-09-20 08:57
marcanmaybe m1n1 should do this init... though we don't really know what it does yet#asahi · 2021-09-20 08:57
marcanbut at least with that there's no more "lists of magic pokes" left that we can't explain#asahi · 2021-09-20 08:57
marcannot entirely sure what those registers represent, seeing as they are homogeneous for devices/clocks/pds/events#asahi · 2021-09-20 08:57
marcanthat now explains the massive init sequence that the pmgr driver does, it's scanning through all the tables that dump_pmgr.py prints and poking those registers (which are in a big array, somehow)#asahi · 2021-09-20 08:56
marcanj_ey: low because I got distracted with pmgr stuff *again*... finally worked out what the clocks/events/power domains fields are (mostly)#asahi · 2021-09-20 07:37
marcan(like right now; I just poked around the PMGR pstate bits some more...)#asahi · 2021-09-20 07:36
marcantophevich[m]: kernel is what's next, I just keep distracting myself with hardware reverse engineering in preparation of :p#asahi · 2021-09-20 05:35
marcanso hopefully by next week I'll be in GPU mode#asahi · 2021-09-20 05:35
marcan... and then, finally, it's time to tackle the GPU#asahi · 2021-09-20 05:35
marcanand I guess at that point, with sven sending off i2c etc, all I really have to do urgently is put together an asahi/devel testing branch or such, finally...#asahi · 2021-09-20 05:34
marcantoday let's see if I can debug that weirdo USB thing with an oscilloscope; then after that cpufreq which will be simple since it's using the same framework, just with frequency switching enabled#asahi · 2021-09-20 05:33
marcanI'm very happy with how it worked out#asahi · 2021-09-20 05:33
marcanso now this unblocks upstreaming all the other drivers, and also thanks to the way this all works (much more nicely than the old clock framework), isn't really a hard dependency in any direction#asahi · 2021-09-20 05:32
marcan(branch pmgr/dev on our repo)#asahi · 2021-09-20 05:32
marcanI think this has a good chance of being the good one#asahi · 2021-09-20 05:32
marcanlast night I wrote the 3rd attempt at a clocks driver (now a genpd driver)#asahi · 2021-09-20 05:32
marcanwhich is why we're shaving all the yaks#asahi · 2021-09-20 05:32
marcanthat's exactly what I *don't* want to happen with Asahi#asahi · 2021-09-20 05:31
marcanbut yeah, it's still a patchfest to get everything working properly#asahi · 2021-09-20 05:31
marcanthese days you can use upstream kernels, especially with the pi 4 and such IIRC#asahi · 2021-09-20 05:31
marcanlet's just say it's, uh, been a long road to pis getting onboard the upstreaming/proper drivers train#asahi · 2021-09-20 05:30
marcantalking about distro support here; hardware is a whole different story#asahi · 2021-09-20 05:29
marcanconversely, Apple did a really good job with Rosetta to work around that#asahi · 2021-09-20 05:29
marcanbecause it's been supported for a long time now#asahi · 2021-09-20 05:29
marcanlinux has much better arm64 support out of the box than macos, and likely will for at least a couple more years#asahi · 2021-09-20 05:26
marcan... need to get a corner of my room clean first though#asahi · 2021-09-20 05:26
marcanso... sounds like I have a Mac Mini teardown + scope probing stream to do today...#asahi · 2021-09-20 05:25
marcanassuming it works well enough, that's something that would be preinstalled/configured in our arch images once we have them#asahi · 2021-09-20 05:25
marcanyeah, FEX is probably the future#asahi · 2021-09-19 03:59
marcanonline soon, #asahi-stream as usual#asahi · 2021-09-19 03:48
marcanI think I'm starting to understand genpd and the opp stuff#asahi · 2021-09-19 03:48
marcangoing to stream in a bit, let's see if I can get the "proper" cpufreq and power management drivers done today#asahi · 2021-09-19 02:10
marcanbtw, it seems the Mac Mini shipped this morning, so I'm guessing it'll arrive in the evening. might have to do the teardown/USB investigation tomorrow if it gets late.#asahi · 2021-09-19 01:59
marcanthen again Isis is a pretty name too#asahi · 2021-09-19 01:58
marcan(name of a domestic terror group)