#asahi-dev · 2023-03-09 07:47
jannaumarcan: did you already test dockchannel-hid on 13.2? testing dcp on the m2 mbp 13" and HID fails with "hid-generic 0019:0000:0000.0001: invalid report_size 16384"#asahi-dev · 2023-03-08 09:16
jannauthere is either something missing or it doesn't work with the iboot interface, see the "AP not ready yet" syslog message#asahi-dev · 2023-03-08 09:14
jannaudptx on m2's dcp works like on dcpext#asahi-dev · 2023-03-08 09:00
jannauyes, it has (only looked at M2) and that works. but that looks more like an output mux. each atc has its own crossbar for dp-altmode and the two thunderbolt dp tunnels#asahi-dev · 2023-03-08 08:39
jannauif you want to try I can push m1n1 with dptx and 13.2 tracing#asahi-dev · 2023-03-08 08:33
jannaumarcan: if you're looking with ghidra it would help to find out under which conditions dcp logs: "syslog: [nifiedPipeline.cpp:6906]VideoInterface::Plug callback: AP not ready yet, mark hot-plug pending"#asahi-dev · 2023-03-08 08:31
jannaunot entirely sure how the crossbar/switch works though. the dp2hdmi converter has no dpxbar so switching seems to be entirely controlled by dcp*#asahi-dev · 2023-03-08 08:25
jannausee 'dp-switch-ufp-endpoint' in dcp and dcpext in j473's adt#asahi-dev · 2023-03-07 19:38
jannaumkurz: I haven't heard anything recently on avd RE#asahi-dev · 2023-03-07 12:27
jannauplus some cosmetic/sorting changes#asahi-dev · 2023-03-07 12:27
jannaubased on the submitted t8112 devicetree. splits not yet supported dt nodes in separate commits, fixes a few errors in the t8112-j473 devicetree and sorts the the nodes in t8112.dtsi#asahi-dev · 2023-03-07 12:25
jannaumarcan: please replace bits/000-devicetree with https://github.com/jannau/linux/tree/bits/000-devicetree#asahi-dev · 2023-03-06 17:37
jannauiirc just an emulated PMUv3#asahi-dev · 2023-03-05 12:44
jannauChaosPrincess: a little surprising when the touchbar isn't even supported in recovery os#asahi-dev · 2023-03-05 12:41
jannaufor the touchbar display, no dcp for that#asahi-dev · 2023-03-04 17:55
jannauI haven't run that though#asahi-dev · 2023-03-04 17:55
jannauChaosPrincess: internet archive has a copy: https://archive.org/details/install-assistant-12.3.21-e-230#asahi-dev · 2023-03-04 15:23
jannauthere's Documentation/devicetree/bindings/display/bridge/snps,dw-mipi-dsi.yaml#asahi-dev · 2023-03-04 13:48
jannauneeds to finish m2 mac mini hdmi out so we can see how much of the external display out is to be blamed on tipd#asahi-dev · 2023-03-04 13:19
jannauadds only another level without having any benefit#asahi-dev · 2023-03-04 13:08
jannauare you planning to reimplement the gpu driver in C? if not I don't see much of a difference between one or two rust drm drivers#asahi-dev · 2023-03-04 13:04
jannaustill considering reimplemnting dcp in rust#asahi-dev · 2023-03-04 13:04
jannauafk/epic looks slighly different in 13.2, shouldn't be a problem to support both but it's annoying#asahi-dev · 2023-03-04 12:46
jannauspikerguy: hej#asahi-dev · 2023-03-04 12:45
jannauonly in u-boot, results in a SError#asahi-dev · 2023-03-04 12:31
jannauI still have found no way to reset pcie ports#asahi-dev · 2023-03-04 12:30
jannauthose function-pcie_port_control contain just two phandles, to the pcie controller and to the port (pcie-bridge)#asahi-dev · 2023-03-03 21:43
jannauthose has all asahi specific options and a ton of options one would expect from a distro kernel. for development you want to disable tons of options for faster builds and depending on your workflow switch to builtin drivers instead of modules#asahi-dev · 2023-03-03 21:40
jannaulouisadamian: best reference https://github.com/AsahiLinux/PKGBUILDs/blob/main/linux-asahi/config and config.edge for additional options#asahi-dev · 2023-03-03 19:46
jannaulooks like might be enough to do the same thing m1n1 does#asahi-dev · 2023-03-03 19:44
jannaulet's see if anything I tried previously works#asahi-dev · 2023-03-03 19:43
jannaukettenis: thanks, now it's at least clearly broken. #asahi-dev · 2023-03-03 17:36
jannaua 'BUG()' in there has no effect#asahi-dev · 2023-03-03 17:35
jannaumy testing in u-boot might have been a little flawed. I'm not convinced that apple_pcie_remove() is called at all#asahi-dev · 2023-03-03 14:53
jannauno, 'apple,always-on' is not checked in u-boot. the reset was in \u-boot's pcie_remove function#asahi-dev · 2023-03-03 14:50
jannauprobably just doesn't do anything if the power-controller has 'apple,always-on;'. I forgot to check that#asahi-dev · 2023-03-03 14:44
jannauI tried that with ps_apcie_gp_sys and ps_apcie_gp and it seemed to have no effect. existing pcie devices still worked and the usb controller didn't come back up#asahi-dev · 2023-03-03 14:13
jannauI suspect it might have nothing to do with the pcie controller though as the thunderbolt pcie controllers all have distinct numbers#asahi-dev · 2023-03-03 14:12
jannauhas anyone looked into what function-pcie_port_control does? it refers back to apcie and has for each port an u8 (non-aligned). #asahi-dev · 2023-03-03 12:49
jannausupposedly not, otherwise linux should see the device. the link status is just PORT_LINKSTS_UP and PORT_INT_LINK_UP irq#asahi-dev · 2023-03-03 12:35
jannauwhere/when? in u-boot or linux? PORT_LINKSTS_UP isn't set when linux sets the ports up#asahi-dev · 2023-03-03 11:45
jannauclearing PERST_OFF, APPCLK_EN and toggling pwren-gpios resets the link speed but doesn't bring asmedia usb hci back to life#asahi-dev · 2023-03-02 15:29
jannaustill no luck with resetting the ethernet pcie port if u-boot brings it up but skipping the setup in linux when the link is up works#asahi-dev · 2023-03-02 15:25
jannauusing PCIe 2.0 for the sdcard reader works#asahi-dev · 2023-03-02 15:18
jannauthere are uhs-2 cards with a claimed read speed of 300 MB/s which would exceed pcie 1.0#asahi-dev · 2023-03-02 14:44
jannauare there SD cards faster than PCIe1 x1? apple apparently expect the SD card reader to use PCIe2 x1. the ADT has maximum-link-speed, initial-link-speed, expected-link-speed and target-link-speed properties#asahi-dev · 2023-03-02 13:06
jannausigh, no. that doesn't work. I just broke pcie port init completely#asahi-dev · 2023-03-02 12:43
jannauseems to be enough to clear PORT_APPCLK_EN and PORT_PERST_OFF#asahi-dev · 2023-03-02 12:33
jannauminor annoyance with that is that we have to rely on a constant offset between rc and phy reg as the latter is not in the devicetree#asahi-dev · 2023-03-02 12:16
jannauand doing the same as m1n1 on pcie shutdown in u-boot fixes the ethernet controller