#asahi-dev · 2022-06-28 10:50
marcansince dockchannel doesn't care if the ASC is up, the HID interface on top does#asahi-dev · 2022-06-28 10:50
marcanactually the link would be to the dockchannel consumer#asahi-dev · 2022-06-28 10:50
marcanwith a link to the helper rtkit device, just to make sure it's up first#asahi-dev · 2022-06-28 10:50
marcan(possibly multiple if we have multiple dockchannels or need to group them for some reason)#asahi-dev · 2022-06-28 10:50
marcanthen the dockchannel... that should probably be something like i2c/spi, with a parent dockchannel device and a child node that represents the consumer?#asahi-dev · 2022-06-28 10:49
marcan(cc robher)#asahi-dev · 2022-06-28 10:49
marcanjust binding to apple,asc4-helper for now, the -mtp versions are in case it turns out we need some MTP-specific RTKit level nonsense after all in the future, and the t8112 variants the usual SoC specific compatibles#asahi-dev · 2022-06-28 10:48
marcan(maybe)#asahi-dev · 2022-06-28 10:48
marcan"apple,t8112-mtp", "apple,t8112-asc4-helper", "apple,asc4-mtp", "apple,asc4-helper"#asahi-dev · 2022-06-28 10:48
marcanwe'd end up with a compatible like this:#asahi-dev · 2022-06-28 10:48
marcansven: what do you think about creating a "simple rtkit" device that is really just a no-op, that other devices can depend on via producer/consumer type stuff?#asahi-dev · 2022-06-28 10:36
marcan(no idea if BT is different, hope not...)#asahi-dev · 2022-06-28 10:36
marcanon ACPI it's in ROM, we don't need to load it#asahi-dev · 2022-06-28 10:34
marcanright...#asahi-dev · 2022-06-28 10:33
marcanbut in this case I get the feeling the dockchannel driver should not be kicking the ASC itself#asahi-dev · 2022-06-28 10:33
marcanfor NVMe we made everything one node (unlike apple), which may or may not have been the right decision given NVMe does not really talk to the ASC, but at least AIUI there are some debug commands that go via the DART address space so that's some argument for how we did it there#asahi-dev · 2022-06-28 10:32
marcanbut other than that... different nodes?#asahi-dev · 2022-06-28 10:32
marcanthe ASC needs to be at least some kind of device link to everything else so they know when the other side is up#asahi-dev · 2022-06-28 10:32
marcanbut yeah, what I'm wondering is how to structure this in the DT. dockchannels exist without an associated ASC (e.g. the debug one), hypothetically we could have multiple dockchannels handled by one ASC...#asahi-dev · 2022-06-28 10:31
marcan:p#asahi-dev · 2022-06-28 10:31
marcanbasically "character device but in the kernel"#asahi-dev · 2022-06-28 10:31
marcandoes Linux have any subsystem abstraction that fits dockchannel? it's... like a serial port but even dumber#asahi-dev · 2022-06-28 10:31
marcanin principle, there are three independent pieces of code here: the RTKit/ASC stuff, the dockchannel driver, and the consumer which just exposes HID over dockchannel#asahi-dev · 2022-06-28 10:30
marcanit's a copro now#asahi-dev · 2022-06-28 10:30
marcanlike inside#asahi-dev · 2022-06-28 10:30
marcanmain question is how do we organize this in our devicetree/drivers#asahi-dev · 2022-06-28 10:29
marcanand some IRQs I guess#asahi-dev · 2022-06-28 10:29
marcanI already looked at dockchannel way back. it's a very, very simple interface, just two FIFOs you read and write bytes from#asahi-dev · 2022-06-28 10:29
marcanlooks like the usual standard ASC, probably with a very simple interface, like NVMe, and then they moved the actual SPI stuff to a dockchannel#asahi-dev · 2022-06-28 10:28
marcan(moving from #asahi) re MTP on the t8112, looks like they moved one of two firmwares wholesale from the trackpad to the M2 indeed#asahi-dev · 2022-06-25 18:57
marcanI think the graphics core has its own naming scheme. apple loves to have random inconsistent naming schemes.#asahi-dev · 2022-06-24 04:04
marcanAdryzzOLEDEdition[m]1: yes#asahi-dev · 2022-06-21 14:57
marcanbecause we do know they change structs, calls, etc to some extent every time#asahi-dev · 2022-06-21 14:57
marcanI don't expect DCP to be painful to figure out changes for, the main thing is how painful is it going to be to support multiple ABIs together at all#asahi-dev · 2022-06-21 11:54
marcanyay :)#asahi-dev · 2022-06-21 11:38
marcansince I botched the version number...#asahi-dev · 2022-06-21 11:38
marcanmight have to manually downgrade though#asahi-dev · 2022-06-21 11:38
marcanjannau: fixed and pushed#asahi-dev · 2022-06-21 11:37
marcanalso I messed up the version number :-)#asahi-dev · 2022-06-21 11:32
marcanlet me merge that#asahi-dev · 2022-06-21 11:32
marcanah, that wasn't in asahi yet, right#asahi-dev · 2022-06-21 11:19
marcanif they look good I'll build an installer and test it on the Studio#asahi-dev · 2022-06-21 11:19
marcanplease test :)#asahi-dev · 2022-06-21 11:19
marcanjannau: updated linux/u-boot/m1n1 packages pushed to asahi-dev#asahi-dev · 2022-06-21 11:15
marcanalso I do subscribe to the LKML, but it goes into archive folders of course. I assume the author means nobody *reads* LKML :-)#asahi-dev · 2022-06-21 11:14
marcanb4.sh I do know about, I use that all the time#asahi-dev · 2022-06-21 11:12
marcanI haven't, got a pointer?#asahi-dev · 2022-06-21 10:57
marcanI use the 'a' key but... yeah#asahi-dev · 2022-06-21 10:56
marcanI still haven't figured it out#asahi-dev · 2022-06-21 10:56
marcansomeone should give a class on handling email as a kernel maintainer