#asahi · 2023-06-27 10:45
svenon the air no external display works #asahi · 2023-06-26 19:40
svenDocumentation/devicetree/bindings/interrupt-controller/apple,aic.yaml#asahi · 2023-06-26 19:39
sventhat’s also documented in the device tree bindings fwiw #asahi · 2023-06-26 19:38
svenyeah, it only does level triggered and edge triggered for pci MSI #asahi · 2023-06-26 19:37
svenlet me double check #asahi · 2023-06-26 19:37
svenor wait… now I’m confused :D#asahi · 2023-06-26 19:37
sven*level #asahi · 2023-06-26 19:37
svenerr…#asahi · 2023-06-26 19:37
svenfrom what we’ve seen AIC really only does edge triggered interrupts with the exception of pci MSI #asahi · 2023-06-26 19:32
svenand those can actually be configured #asahi · 2023-06-26 19:31
svenit‘s from the gpio controller #asahi · 2023-06-26 19:31
svenbut that one doesn’t come directly from AIC#asahi · 2023-06-26 19:31
sventhe tipd device on the i2c bus has a _LOW interrupt #asahi · 2023-06-26 19:30
svens/high edge/rising edge/ ofc#asahi · 2023-06-26 19:29
svenfor gpio interrupts you can actually configure which mode you want and have to make sure to select the right one #asahi · 2023-06-26 19:29
sventhe MSI interrupts are high edge triggered as per that specification iirc#asahi · 2023-06-26 19:28
svenfrom what we’ve seen anything AIC except for the pcie MSI interrupts are (high) level triggered#asahi · 2023-06-26 19:27
svenit all takes the same path either way so anything will work, it’s just a matter of describing the HW accurately in the fdt#asahi · 2023-06-26 19:27
svenwe can’t reconfigure the low/high/etc. mode from any AIC interrupt #asahi · 2023-06-25 08:12
svenso it’s only a part of the entire usb tree :D#asahi · 2023-06-25 08:11
svenbut the entire phy and dwc3 controller have to be fully reset #asahi · 2023-06-25 08:11
svenNot the device tree#asahi · 2023-06-22 20:22
svenhttps://web.archive.org/web/20210929092437/https://twitter.com/imbushuo/status/1334280312944123906#asahi · 2023-06-22 20:12
svenhmmm… I thought there was an actual picture somewhere but maybe I just imagined that #asahi · 2023-06-22 20:10
sventhere’s a picture floating around but I can’t find it right now #asahi · 2023-06-22 20:09
svenit’s a solenoid attached to the power button #asahi · 2023-06-21 15:20
svenrecovery os is just a stripped down macOS after all ;)#asahi · 2023-06-21 15:20
sventhat should be roughly the same kernel #asahi · 2023-06-21 15:18
svenI don’t think the m1 kernel supports that anymore though #asahi · 2023-06-21 15:18
svenand then there’s apple’s “target disk mode” which is also just tbt domain #asahi · 2023-06-21 15:18
sventhere’s the network mode which is actually specified somewhere #asahi · 2023-06-21 15:18
svenright, but tbt xdomain is different #asahi · 2023-06-21 15:17
svenjust putting a hub inbetween should make it consistent #asahi · 2023-06-21 15:17
svenbut then there’s still the decision which device becomes the host and which the device #asahi · 2023-06-21 15:17
svenyeah, that should also work #asahi · 2023-06-21 15:17
svendon’t remember, it was either serial or network I think #asahi · 2023-06-21 15:16
svenwhat worked for me was m1 -> usb3 hub -> m1 iirc #asahi · 2023-06-21 15:16
svenif both sides support thunderbolt it will always prefer that #asahi · 2023-06-21 15:15
svenit can just a bit tricky to enable it#asahi · 2023-06-21 15:15
svenmacOS has device mode as well#asahi · 2023-06-21 15:14
svenI think it even used to work at some point but then I broke it again #asahi · 2023-06-21 15:14
sventhe hardware supports superspeed in device mode #asahi · 2023-06-21 15:13
svenyes#asahi · 2023-06-21 15:12
svenI think it’ll fail to probe otherwise #asahi · 2023-06-21 15:12
svenI don’t think that’ll work because as soon as the phy is in the fdt dwc3 really wants it to be enabled #asahi · 2023-06-21 14:57
svendisabling it might be a bit tricky, not sure if just removing the device nodes from the fdt is enough #asahi · 2023-06-21 14:57
svensure, each dwc3 has its own phy #asahi · 2023-06-21 14:33
sven(but not in superspeed mode)#asahi · 2023-06-21 14:33
svenif you disable the phy device mode should work though #asahi · 2023-06-21 14:32
svenstill haven’t gotten around to fixing that