#asahi-dev · 2026-01-16 22:43
sventhe moment I shut that co-processor down via rtkit I can't access the IOMMU's MMIO range anymore#asahi-dev · 2026-01-16 22:43
svenat this point i'm also sure that the iommu as a child of acio makes sense: I think the IOMMU is actually part of that co-processor and we only get a view into its MMIO range#asahi-dev · 2026-01-16 22:30
sven*for#asahi-dev · 2026-01-16 22:30
svenand iirc that's all you need to cross-domain USB4#asahi-dev · 2026-01-16 22:30
sveni never traced a connection like that, but the TX and RX rings of the NHI should be up#asahi-dev · 2026-01-16 22:29
svenfair enough, no promises it'll work though#asahi-dev · 2026-01-16 22:29
svenunless there's some vendor specific apple stuff missing it should work#asahi-dev · 2026-01-16 22:29
svenmaybe, haven't tested that#asahi-dev · 2026-01-16 22:28
svenstill need to fix that assert_id=1333 crash on the second cable that's plugged in though#asahi-dev · 2026-01-16 22:25
sven-tpp#asahi-dev · 2026-01-16 22:25
sven(before people get too excited: RFC, and the NHI only. so no pcie tunneling, etc. at best you get too your device in boltctl and it will still be useless)#asahi-dev · 2026-01-16 22:24
svenok. if all goes well i'll just send whatever i have on sunday or so and cc then people from that submission#asahi-dev · 2026-01-16 22:08
svenhttps://lore.kernel.org/linux-arm-msm/20250916-topic-qcom_usb4_bindings-v1-1-943ecb2c0fa7@oss.qualcomm.com/ is that the only thunderbolt / usb4 patch from qualcomm or did I miss any follow up?#asahi-dev · 2026-01-16 21:01
svenunderstandable :D#asahi-dev · 2026-01-16 20:58
svenalso, lol, i guess you still need to pad boot arguments? :D#asahi-dev · 2026-01-16 20:40
svenyup, i'm very relieved you got there#asahi-dev · 2026-01-16 20:37
svenlol#asahi-dev · 2026-01-16 20:37
svenstill amazed how quick you went from "weird memory corruption" to "it boots to userspace"#asahi-dev · 2026-01-16 20:34
svenstill, progress \o/#asahi-dev · 2026-01-16 20:34
sventhat may explain that#asahi-dev · 2026-01-16 20:34
svenlol#asahi-dev · 2026-01-16 20:33
svenslow? huh#asahi-dev · 2026-01-16 20:33
svenvery nice work#asahi-dev · 2026-01-16 20:33
sventhat was quicker than expected!!#asahi-dev · 2026-01-16 20:33
svenawesome!#asahi-dev · 2026-01-16 20:33
sven\o/#asahi-dev · 2026-01-16 20:05
svens/as/and/#asahi-dev · 2026-01-16 20:04
svenI suspect the entire thunderbolt team had to sign some extra-scary NDAs as was completely segregated from the rest. there's so many weird special things in that block#asahi-dev · 2026-01-16 20:04
svenpretty much the only string inside its firmware is assert_id=%d :D#asahi-dev · 2026-01-16 19:56
svenand then crashes. very helpful.#asahi-dev · 2026-01-16 19:56
sventhis cursed thunderbolt co-processor right now tells me "RTKit: Message (id=1): assert_id=1333"#asahi-dev · 2026-01-16 19:56
svenat least it tells you what's going on!#asahi-dev · 2026-01-16 18:47
svencould be that optical cables also just work transparently and show up as regular cables at that level#asahi-dev · 2026-01-16 18:47
svenhttps://f.svpe.de/e2df3424ccb7fd9fae7ff76107758d59e5588a32d284b74e79df554750f3eea0_apple_vse.txt those are the ones i found from plugging all the cables I have and looking at xnu's serial output#asahi-dev · 2026-01-16 18:46
sveni just don't know which one#asahi-dev · 2026-01-16 18:46
svenit probably just needs one additional bit to be set somewhere in the host router#asahi-dev · 2026-01-16 18:46
svenoh, fair enough#asahi-dev · 2026-01-16 18:44
svenhm?#asahi-dev · 2026-01-16 18:41
sven*realized#asahi-dev · 2026-01-16 18:41
svenjannau: ah, didn't even realize. i only saw TBT_CABLE_OPTICAL in the cable mode vdo and realize I don't know the right bit to set for that one in the host router#asahi-dev · 2026-01-16 18:35
sventhat's not too bad, still gonna keep the dev_err unless someone shows up with such a cable and traces what macos does#asahi-dev · 2026-01-16 18:20
sven*had#asahi-dev · 2026-01-16 18:20
sveni'd be surprised if any of our users have such a cable so i'll just add a dev_err for now ;)#asahi-dev · 2026-01-16 18:20
svensurprisingly no :D#asahi-dev · 2026-01-16 18:13
svendoes anyone in here have an optical tbt cable and a macos tracing setup btw.? :D#asahi-dev · 2026-01-16 18:10
svenonly just found it by accident#asahi-dev · 2026-01-16 17:56
svenit has a PD_FLAG_NO_DEV_LINK flag#asahi-dev · 2026-01-16 17:56
svenah, nice, I can even prevent it from creating the device links#asahi-dev · 2026-01-16 17:55
svenacio is gonna need it as well, just without creating the device links because I need better control when they are powered on unless we want random SoC resets#asahi-dev · 2026-01-16 17:45
svensource/sound/soc/apple/mca.c has it as well