#asahi-dev · 2026-08-18 19:30
sveni dunno if the iova code respects that#asahi-dev · 2026-08-18 19:30
svenyou might be able to hack this with dma-ranges in the parent node as well :D#asahi-dev · 2026-08-18 19:30
svenit probably faults once the first entry is added to that ring#asahi-dev · 2026-08-18 19:30
svenring_iowrite64desc(ring, ring->descriptors_dma, 0); is probably the iova#asahi-dev · 2026-08-18 19:29
svenyou can add prints to tb_ring_start#asahi-dev · 2026-08-18 19:22
svenbut that should still be in that range, shouldn't it?#asahi-dev · 2026-08-18 19:22
svenhm, true, it at least used to allocate top-down#asahi-dev · 2026-08-18 19:20
sveni suspected that the tbt code was never tested with iovas >32bit#asahi-dev · 2026-08-18 19:17
svenwhat's the iova that fails?#asahi-dev · 2026-08-18 18:54
svendoes the iova it faults on look like something linux would've allocated?#asahi-dev · 2026-08-18 18:52
svenugh, some t602x thing then#asahi-dev · 2026-08-18 18:45
svenhmmmm#asahi-dev · 2026-08-18 18:44
svendoes that already have tbt5?#asahi-dev · 2026-08-18 18:44
svencould also be a t602x thing, sure#asahi-dev · 2026-08-18 18:43
sventhat sounds like the control ring doesn't work though because it get an unmapped iova somehow#asahi-dev · 2026-08-18 18:42
svenhrm... how did i break that now.#asahi-dev · 2026-08-18 18:14
svenreg = <0x7 0x01108000 0x0 0x4000>#asahi-dev · 2026-08-18 18:14
svener, wait, the mailbox didn't even move below the parent node. #asahi-dev · 2026-08-18 18:11
sveni did move them below the parent with ranges but that worked on m1, maybe something went wrong there#asahi-dev · 2026-08-18 18:11
svendid i get the mailbox addr wrong then?#asahi-dev · 2026-08-18 18:11
svenhuh#asahi-dev · 2026-08-18 18:10
svenhrm, and rtkit still fails to boot? that's odd#asahi-dev · 2026-08-18 18:01
svenah :D#asahi-dev · 2026-08-18 17:56
sveni'm very confused now. https://github.com/AsahiLinux/m1n1/blob/53f8ee9b54ba52b7f87e607e8206a8c827f06b04/src/kboot.c#L1264 #asahi-dev · 2026-08-18 17:52
sveni don't think m1n1 would even look for usb4_N_acio. it still has that old ..._{rc,nhi} I think#asahi-dev · 2026-08-18 17:51
svengimme a moment, let me find the kext again #asahi-dev · 2026-08-18 17:51
svenare you sure that alias patch is required? because I don't think they should be neccessary unless I'm confused#asahi-dev · 2026-08-18 17:43
svenit's unfortunately no longer hardcoded in that kext since m2#asahi-dev · 2026-08-18 17:42
svencan you trace pmgr on macos? i tried to statically reverse engineer that reset-controller address but somehow got it wrong then#asahi-dev · 2026-08-18 17:41
svenapple_rtkit_poweroff+0x2c/0xb0 <-- probably not the best idea to try to send a message when rtkit never came up :D#asahi-dev · 2026-08-18 17:40
svenwell, the "not exactly duplicate set"#asahi-dev · 2026-08-18 17:40
sventhat's why i have the duplicate set of aliases so that the current and the to-be-fixed one works#asahi-dev · 2026-08-18 17:40
svenyes#asahi-dev · 2026-08-18 17:40
svenyes, that works#asahi-dev · 2026-08-18 17:39
svenhrm, now it loaded but "Your requested paste entry '59485152' could not be found "#asahi-dev · 2026-08-18 17:39
svenright, eventually i only need the "-" ones because the dts check complains otherwise. it doesn't like the _#asahi-dev · 2026-08-18 17:37
svenpaste.debian.net doesn't seem to load here#asahi-dev · 2026-08-18 17:36
svenprobably lost the missing aliases during the last rebase :(#asahi-dev · 2026-08-18 17:34
svenhmmm… then I have the address for the reset controller wrong probably #asahi-dev · 2026-08-18 16:06
sven*if#asahi-dev · 2026-08-18 16:06
svencompletely untested, happy to take patches of it breaks ;)#asahi-dev · 2026-08-18 16:05
svenliv[m]: as promised, the ping once the m2 dt changes are ready #asahi-dev · 2026-08-18 15:55
svenhope i didn't regress anything there but that should match what xnu does#asahi-dev · 2026-08-18 15:53
svenfl0_id: https://github.com/AsahiLinux/linux/blob/53a142828b08cbcacde04538d49e4166901ff254/drivers/thunderbolt/apple.c#L710 that the cable VSE nonsense#asahi-dev · 2026-08-18 15:52
svenhttps://github.com/AsahiLinux/linux/commits/tbt-reset-wip/ new version, now with all M2 dts changes as well. only lightly tested on base M1#asahi-dev · 2026-08-18 15:05
svenit's dumb type-c VDO -> apple bits mapping#asahi-dev · 2026-08-18 15:04
svenit'll just be in the code i push later