#asahi-dev · 2023-05-08 08:26
marcanyeah#asahi-dev · 2023-05-08 08:26
svenah, right, same kernel for all t8103 models, etc.#asahi-dev · 2023-05-08 08:26
marcanthey haven't figured out how to stop using #ifdef everywhere :p#asahi-dev · 2023-05-08 08:25
marcanwell 5 with vmapple#asahi-dev · 2023-05-08 08:25
marcanwell it's 4 on ARM right now but yeah#asahi-dev · 2023-05-08 08:25
marcansven: yeah and I bet that's so the rtkit driver can use it for buffers#asahi-dev · 2023-05-08 08:25
svenit helps that they run xnu on like 20 different configuration and just compile it separately for those #asahi-dev · 2023-05-08 08:25
marcanthe amounts of hacks in there...#asahi-dev · 2023-05-08 08:25
marcaneven with linux's bad subsystems sometimes#asahi-dev · 2023-05-08 08:24
marcanI don't think people appreciate just how much clunkier and underdesigned xnu is compared to linux#asahi-dev · 2023-05-08 08:24
svenor how that gpu mmu is a separate adt node with essentially a stub kext that just calls back into the main kext iirc #asahi-dev · 2023-05-08 08:24
svenyeah :D#asahi-dev · 2023-05-08 08:23
marcanneed a hook from driver A to driver B? no problem, add a function!#asahi-dev · 2023-05-08 08:23
sventhat’s all automatically done for x86 but here we have to do it manually #asahi-dev · 2023-05-08 08:23
marcanI love how apple just gets to not design anything and just invented DT-specified function calls for this#asahi-dev · 2023-05-08 08:23
svento essentially notify pcie, dwc3 and dcpext when a tunnel state changes #asahi-dev · 2023-05-08 08:23
svenwe just need something like typec mux/switch for thunderbolt as well but that’s easy enough #asahi-dev · 2023-05-08 08:23
marcanALSA also has that layer (macaudio which ties everything together and makes it sane)#asahi-dev · 2023-05-08 08:22
marcanit's just going to be more and more of a mess and hard to abstract out more#asahi-dev · 2023-05-08 08:22
svennot more than what typec mux/switch already does, yeah#asahi-dev · 2023-05-08 08:22
marcansome day we're going to have to poke them for something I bet#asahi-dev · 2023-05-08 08:22
marcanyou know we have those retimers on i2c right?#asahi-dev · 2023-05-08 08:22
marcanand yeah I'm getting the feeling very few other platforms handle this and they're all too particular to unify sanely anyway#asahi-dev · 2023-05-08 08:21
marcansgtm#asahi-dev · 2023-05-08 08:21
svenand the typec maintainer even reviewed all of that so I don’t even see many issues getting it upstream #asahi-dev · 2023-05-08 08:20
marcanwfm#asahi-dev · 2023-05-08 08:20
sventhat will also work for us #asahi-dev · 2023-05-08 08:20
svenyeah, and chrome just skips all that and directly uses the typec mux/switch stuff #asahi-dev · 2023-05-08 08:20
marcandoesn't really work here#asahi-dev · 2023-05-08 08:20
marcanyeah#asahi-dev · 2023-05-08 08:20
marcanoh the other way around#asahi-dev · 2023-05-08 08:20
marcanis that the one that's mostly intended for x86 machines with firmware doing everything?#asahi-dev · 2023-05-08 08:20
svenbecause that subsystem assumes that the cpu does all the negotiation with these usb pd messages #asahi-dev · 2023-05-08 08:19
sventypec itself is fine, typec-altmode isn’t a great fit #asahi-dev · 2023-05-08 08:19
marcanI wonder if this is going to be another mailbox or it actually makes sense to unify it at some point#asahi-dev · 2023-05-08 08:19
marcanheh, lovely#asahi-dev · 2023-05-08 08:19
svenand google does something similar hidden away in platform for some chromebook(?) thing#asahi-dev · 2023-05-08 08:18
marcanmodulo us getting stuff wrong it actually looks pretty decent as kernel abstractions go#asahi-dev · 2023-05-08 08:18
sventhat entire thing is not a great fit for these SoCs #asahi-dev · 2023-05-08 08:18
marcanactually from what I saw of ASoC, it might be an interesting model to look at for how to design an abstraction that somehow works for a million disparate SoCs and codecs#asahi-dev · 2023-05-08 08:18
svenyeah, my plan is to just skip typec-altmode #asahi-dev · 2023-05-08 08:17
marcanI encourage you to use as many horrible hacks as you want to make it work, because at this point it's more valuable to 1) make everything work, then 2) figure out how to fix the Linux subsystem mess once we know exactly how it has to work#asahi-dev · 2023-05-08 08:16
marcanyeah that might explain some things#asahi-dev · 2023-05-08 08:16
marcanha!#asahi-dev · 2023-05-08 08:16
svenwhich probably also explains that commented out part in atcphy that’s waiting for some bit that never clears with my code #asahi-dev · 2023-05-08 08:16
marcan(I'm actually surprised that worked as often as it did)#asahi-dev · 2023-05-08 08:16
marcansounds like the codec shutdown vs clock shutdown was in the wrong order :D#asahi-dev · 2023-05-08 08:15
svenyeah, I think the atcphy vs dwc3 setup is in the wrong order in asahi-dev right now #asahi-dev · 2023-05-08 08:12
marcanit's starting to smell like the audio codec issues we had, i.e. something is fundamentally broken in a way that causes races or undefined behavior, and that randomly gets better or worse with different kernels and configs#asahi-dev · 2023-05-08 08:11
marcansven: unsupported kernel BS aside, someone on Reddit mentioned some 10gbps device not working (works via a 5gbps hub)