#asahi-dev · 2023-03-01 21:47
svengruetzkopf: yeah, pci hotplug seems to not have gotten a lot of attention. Especially since thunderbolt exists #asahi-dev · 2023-03-01 21:35
kettenisjannau: there is no thunderbolt logo on the port and I don't think there is a PCIe root complex available for them#asahi-dev · 2023-03-01 21:18
jannaulooking for examples how to model display ports for dcp in the devicetree#asahi-dev · 2023-03-01 21:17
jannaukettenis: do you know if qualcomm's 8cx gen3 has usb4 ports? I see in bindings/clock/qcom,gcc-sc8280xp.yaml USB4 DP/PCIe phy clocks but thinkpad x13s, ms window dev kit and surface pro 9 list only usb 3.2 with dp-altmode#asahi-dev · 2023-03-01 20:33
gruetzkopfoh, that patchset would have been extremely useful a few years ago when dangling a thunderbolt chain off of a expresscard slot.. i can provoke a few absurdly pathological cases for that with hw i have here#asahi-dev · 2023-03-01 20:11
svenhates all of this #asahi-dev · 2023-03-01 20:11
svenbah. If a pcie bridge is busy rescanning due to a hotplug event while nhi tries to bring up a DP tunnel there’s apparently a small chance that acio crashes#asahi-dev · 2023-03-01 11:28
sveni haven’t even looked at it in detail yet, just found it when looking for pcie hotplug issues #asahi-dev · 2023-03-01 11:27
svenmakes sense#asahi-dev · 2023-03-01 11:19
kettenisthat is a super-scary patcheset though#asahi-dev · 2023-03-01 11:13
kettenisif they didn't, you wouldn't be able to boot from a drive connected to thunderbolt#asahi-dev · 2023-03-01 11:13
kettenissven: most BIOS implementations do that indeed#asahi-dev · 2023-03-01 10:45
dottedmaghaha, "yadro" literally means "kernel" in Russian.#asahi-dev · 2023-03-01 10:32
svenhttps://github.com/YADRO-KNS/linux/commits/yadro/pcie_hotplug/movable_bars_v10.1 and that looks like a much more recent version of that patchset#asahi-dev · 2023-03-01 10:27
jannauprobably both. it's not common so no out of the box fix but it's easy to find the relevant kernel parameters offered as fix/workaround #asahi-dev · 2023-03-01 10:26
svenI think on most amd/intel machines the BIOS or firmware or whatever runs before linux already sets up everything that's connected at boot time#asahi-dev · 2023-03-01 10:25
svenunfortunately we have no BIOS or anything like that here so *everything* is hotplug here#asahi-dev · 2023-03-01 10:24
svenor they just boot with kernel parameters to create extra space when pci distributes resources#asahi-dev · 2023-03-01 10:24
svenit seems that not many people actually use thunderbolt + long daisy chains + hotplug in linux#asahi-dev · 2023-03-01 10:23
jannaudecember 2020, good luck#asahi-dev · 2023-03-01 10:17
svenhttps://lore.kernel.org/linux-pci/20201218174011.340514-1-s.miroshnichenko@yadro.com/ ohh.. fancy. i'll have to rebase that and check if that allows me to hotplug rather long thunderbolt daisy chains#asahi-dev · 2023-02-28 23:54
kesslerdare you asking anyone or just people who know the drivers in detail?#asahi-dev · 2023-02-28 23:53
kesslerdwdym?#asahi-dev · 2023-02-28 22:17
jannauwould anyone object making external display's and possible dcp-audio 13.2 only features?#asahi-dev · 2023-02-28 22:15
jannauannoying that the dptx service names in 13.2 are now "dispext%u:dcpdptx-port-epic:%u"#asahi-dev · 2023-02-28 22:14
jannauis still amused by 'dispext4294967295:dcpdptx-port-' for disp0 compared to 'dispext0:dcpdptx-port-epic:0' for dispext0#asahi-dev · 2023-02-28 12:21
ncopaawesome! thanks#asahi-dev · 2023-02-28 12:19
Tramtrist👆#asahi-dev · 2023-02-28 12:18
j`ey_markan was talking about it a day or two ago, so yes I think there will be one soonish#asahi-dev · 2023-02-28 12:17
ncopaany plans to tag new asahi kernel?#asahi-dev · 2023-02-27 16:51
sventhat’s a first for any of these co-processors I think #asahi-dev · 2023-02-27 16:51
svenoh, wow, I can apparently completely recover from any acio crashes #asahi-dev · 2023-02-27 16:16
svenhrm, either I do something wrong when setting up the root port or Linux pci hotplug code hasn’t really been tested with daisy chained thunderbolt devices #asahi-dev · 2023-02-27 09:45
svenbooting with pcie_port_pm=off makes it reliable#asahi-dev · 2023-02-27 09:45
svenlol, turns out the hotplug error is just some pcie power management hardware bug#asahi-dev · 2023-02-27 08:34
svenrowanG337: nice, thanks!#asahi-dev · 2023-02-27 00:16
Tramtristm2231puppy may need some help#asahi-dev · 2023-02-26 23:31
rowanG337Sven: I have updated the gist with two logs. One boot with hub connected and one without. This is with a kernel with all TB logging enabled. The hub itself has no peripherals connected: https://gist.github.com/rowanG077/e90235f45065296ece0ce9c76d9698af#asahi-dev · 2023-02-26 16:04
marcanhttps://gitlab.freedesktop.org/asahi/ has been a thing for a while :)#asahi-dev · 2023-02-26 15:52
eilnis there an asahi gitlab profile yet?#asahi-dev · 2023-02-26 15:47
marcanI'll say when we officially switch to gitlab (probably once we have useful CI to make it worthwhile)#asahi-dev · 2023-02-26 15:47
marcanjannau: nah, still on github for now#asahi-dev · 2023-02-26 15:20
jannaumarcan: we also have https://github.com/AsahiLinux/linux/pull/106 still open. shall I recreate that in gitlab?#asahi-dev · 2023-02-26 15:18
svenmaybe also order of dwc3 vs. atcphy operations #asahi-dev · 2023-02-26 15:18
jannaumarcan: yes, it appears so. 200-dcp should be good up to 125aeecbc011d but it saw little testing#asahi-dev · 2023-02-26 15:17
svenyeah, probably #asahi-dev · 2023-02-26 15:16
jannausven: order of operations in atcphy? macos and linux traces looked different#asahi-dev · 2023-02-26 15:14
marcanjannau: FWIW I think we have a kernel release in the horizon (with all of the stuff Lina/Alyssa have been working on) so if DCP runtime-pm is still wonky I say we disable it for now.#asahi-dev · 2023-02-26 15:12
svenI remember seeing the dwc3 reset at each mode change in an older xnu version so they must’ve changed or fixed something I guess #asahi-dev · 2023-02-26 15:10
svenif this worked we’d only need to reset dwc3 on actual unplug events which would made everything so much easier