#
✕ nick:sven
#asahi-dev · 2023-01-17 14:56
sven[ 3.460700] thunderbolt-apple-cio 501f00000.nhi: Port 6: 5ac:2000 (Revision: 0, TB Version: 1, Type: DP/HDMI (0xe0101))
#asahi-dev · 2023-01-17 14:43
svenlet me know if you finish that pcb. i'd be interested in a real serial adapter as well
#asahi-dev · 2023-01-17 14:43
sven:D
#asahi-dev · 2023-01-17 14:25
svenso, uh, do they have another display crossbar on the m2?
#asahi-dev · 2023-01-17 14:25
svenalso a pity though
#asahi-dev · 2023-01-17 14:24
svenohh.. fancy
#asahi-dev · 2023-01-17 14:23
svenor is there a pro/max in that mini as well?
#asahi-dev · 2023-01-17 14:23
svenso maybe the also used that tiled display support to support two displays? :D
#asahi-dev · 2023-01-17 14:23
svenhuh
#asahi-dev · 2023-01-17 14:14
sventries to resists the temptation
#asahi-dev · 2023-01-17 14:05
svenand ofc this is all triggered by that lovely PD controller
#asahi-dev · 2023-01-17 14:04
svenit gets even better. the DART MMIO range only starts to work once PERST is disabled
#asahi-dev · 2023-01-17 13:59
svenit's a bit more ugly. I need to wait for the Thunderbolt NHI to activate the PCIe link and only then clear some "tunnel reset" bit and then trigger the link-training and only then the "port up" interrupt appears
#asahi-dev · 2023-01-17 13:48
svenand I need to read code to understand how the kernel handles hotplug management because right now this is only works with even more ugly hacks
#asahi-dev · 2023-01-17 13:48
svenDMA is obviously broken since there's no IOMMU
#asahi-dev · 2023-01-17 13:48
sven\o/
#asahi-dev · 2023-01-17 13:48
sven0001:03:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM57762 Gigabit Ethernet PCIe
#asahi-dev · 2023-01-17 13:48
sven0001:02:00.0 PCI bridge: Intel Corporation DSL2210 Thunderbolt Controller [Port Ridge 1C 2011]
#asahi-dev · 2023-01-17 13:48
sven0001:01:00.0 PCI bridge: Intel Corporation DSL2210 Thunderbolt Controller [Port Ridge 1C 2011]
#asahi-dev · 2023-01-17 13:48
sven0001:00:00.0 PCI bridge: Apple Inc. Apple Silicon USB4/Thunderbolt PCI Express Root Port
#asahi-dev · 2023-01-17 13:15
svenhttps://paste.debian.net/hidden/2c372cad/ looks like i might've messed up something when describing the bus in the dt, let me double check that
#asahi-dev · 2023-01-17 12:53
svenwait.. or maybe that's the 3->2 adapter showing up
#asahi-dev · 2023-01-17 12:41
svenoh... wait... pcie has tunables as well, doesn't it?
#asahi-dev · 2023-01-17 12:41
svenpretty sure the second thing is a lie :D
#asahi-dev · 2023-01-17 12:41
sven0001:01:00.0 PCI bridge: Intel Corporation DSL2210 Thunderbolt Controller [Port Ridge 1C 2011]
#asahi-dev · 2023-01-17 12:41
sven0001:00:00.0 PCI bridge: Apple Inc. Apple Silicon USB4/Thunderbolt PCI Express Root Port
#asahi-dev · 2023-01-17 12:40
svenpcie is still kinda broken though
#asahi-dev · 2023-01-17 12:40
svenlol, so thunderbolt hotplug seems to work pretty well. it just doesn't detect the adapter the first time for some reason
#asahi-dev · 2023-01-17 12:05
sveni feel like almost everything is somehow hooked up as GPIO as well :D
#asahi-dev · 2023-01-16 16:48
sven*some
#asahi-dev · 2023-01-16 16:48
svenokay, with sone ugly hacks it also shows up on the pcie bus now. now I’ll just have to see how to work around the „dart MMIO only comes up after the pcie port is up“ and add support for that tbt dart MMIO layout
#asahi-dev · 2023-01-16 15:56
svenheh, fair
#asahi-dev · 2023-01-16 15:56
svenkettenis: the apple one is pretty cheap these days (50 eur or so) fwiw
#asahi-dev · 2023-01-16 15:55
sventhis smells like some "enable pcie tunnel" poke is missing somewhere
#asahi-dev · 2023-01-16 15:55
svennope. I've also never seen a port up event for the tbt root port so far
#asahi-dev · 2023-01-16 15:53
svenyes
#asahi-dev · 2023-01-16 15:52
svenprobably another magic bit that needs to be set somewhere
#asahi-dev · 2023-01-16 15:52
svenyeah, i have code for the hotplug that "works" for the bt/wifi thing but doesn't for thunderbolt for some reason
#asahi-dev · 2023-01-16 15:51
svenprobably, it does have a UUID in boltctl as well that had to come from *somewhere*
#asahi-dev · 2023-01-16 15:50
svenyeah
#asahi-dev · 2023-01-16 15:50
svenI think there might be a separate enumeration at tbt level though
#asahi-dev · 2023-01-16 15:50
svenlet me test again, maybe i just confused myself and it did show up
#asahi-dev · 2023-01-16 15:49
svenhuh.. good question
#asahi-dev · 2023-01-16 15:49
svenstill doesn't show up in pcie though
#asahi-dev · 2023-01-16 15:48
sven ? Apple Thunderbolt to Gigabit Ethernet Adapter
#asahi-dev · 2023-01-16 15:48
sven$ boltctl list
#asahi-dev · 2023-01-16 15:17
svenhrm, or maybe the BT chip stays somewhat alive in normal idle for wake-on-bluetooth anyway and does everything itself?
#asahi-dev · 2023-01-16 13:29
svenChaosPrincess: sounds like AOP maybe takes care of waking up BT then
#asahi-dev · 2023-01-16 11:59
svenlike, the sane way to do this is to have the AP pre-program the find my beacons in the BT chip and then put the BT chip to sleep. and then either BT has a timer to wake itself up or AOP wakes it up periodically to send those beacons
#asahi-dev · 2023-01-16 11:57
svenI could maybe see AOP doing some power Management but I’d be very surprised if it did more than that for bt

plus ›