#asahi-re · 2026-08-22 20:25
svenwe already have a sidmask per dart in some struct in there, the hack i had in mind was to just setup the first SID and enable remap to that one for all the others#asahi-re · 2026-08-22 20:02
svenyeah, that would be bad#asahi-re · 2026-08-22 20:00
svenand if we wanted to use remap for this because the invalidation is faster we should be able to set that up entirely in apple-dart.c I think#asahi-re · 2026-08-22 19:59
svenif you trace it you should see the same pagetable in all TTBRs#asahi-re · 2026-08-22 19:58
svenone of those :D#asahi-re · 2026-08-22 19:58
svenor was it iommu group?#asahi-re · 2026-08-22 19:58
svenit stuffs all those 25 dart instances into a single iommu domain and each iommu domain has a pagetable#asahi-re · 2026-08-22 19:57
svenone table programmed 25 times#asahi-re · 2026-08-22 19:57
sventhe dt will just look a bit ugly, but oh well#asahi-re · 2026-08-22 19:56
sveni don't think we need remap for this, only difference to macos will be that it will invalidate all 24 streams at once instead of just setting a single stream id#asahi-re · 2026-08-22 19:56
svenah, it's 3 dart instances but there's no limit on the streams within each dart#asahi-re · 2026-08-22 19:55
svenit's gonna program all of them to the same pagetable then#asahi-re · 2026-08-22 19:55
svenguess that fixed at some point then#asahi-re · 2026-08-22 19:54
svenor did we fix that at some point?#asahi-re · 2026-08-22 19:54
svendoes that even work with the current dart driver? doesn't it support at most 3(?) darts?#asahi-re · 2026-08-22 19:53
svenso there are 12 tx rings and 12 rx rings and 24 dart stream ids. maybe one per id now?#asahi-re · 2026-08-22 19:52
svenlol, wtf#asahi-re · 2026-08-22 18:53
sventhat address also looks like t600x style#asahi-re · 2026-08-22 18:53
svensounds like the t600x style if that was port 2#asahi-re · 2026-08-22 15:35
svenyeah, exactly #asahi-re · 2026-08-22 15:35
svenbut i didn't manage to track that down#asahi-re · 2026-08-22 15:35
sveni think they somehow initialize that table with the adt entries first and then add a few more 'special' ones#asahi-re · 2026-08-22 15:34
svenyeah#asahi-re · 2026-08-22 15:34
svenand once i had the right addr it didn't line up with the delta they add to anything in the ADT#asahi-re · 2026-08-22 15:34
svenin the M2 kext the range for the address was some offset that doesn't exist in the adt#asahi-re · 2026-08-22 15:33
sveni couldn't figure out where that weird reg range comes from because ugh... c++ vtables#asahi-re · 2026-08-22 15:33
svenyeah, that one also made me get the M2 one wrong at first :(#asahi-re · 2026-08-22 15:33
sveni guess it also isn't hardcoded in the kext anymore but goes through some virtual(?) reg range that doesn't exist in the ADT now?#asahi-re · 2026-08-19 06:38
sveni think sep.rs does that eventually #asahi-re · 2026-08-19 06:38
svenno#asahi-re · 2026-08-19 06:37
svenit uses the rng the rom exposes to pass a random seed to Linux #asahi-re · 2026-08-19 06:37
svenon the 15.x we use it still runs in the rom when m1n1 gets control #asahi-re · 2026-08-19 06:36
svenmust’ve been changed then #asahi-re · 2026-08-19 06:35
svenwhich macOS version is this?#asahi-re · 2026-08-19 06:35
svenhuh, that’s odd#asahi-re · 2026-08-14 15:19
sventhis is not a general reverse engineering channel. please take tiktok.com links and asking about malware dev somewhere else#asahi-re · 2026-08-14 15:18
svenyeah, then you're wrong here#asahi-re · 2026-08-14 15:16
svenhttps://github.com/AsahiLinux/linux/blob/43162108128848c954cd58d31b56b2c12fd22136/drivers/thunderbolt/switch.c#L2705 <-- that's the code that generates the fff... uuid from that uid#asahi-re · 2026-08-14 15:11
svenbut at least it should be stable and unique for each device now#asahi-re · 2026-08-14 15:07
svenyeah, that's expected i think. we're computing the UID correctly now, I'm still not sure where the xdomain uuid comes from#asahi-re · 2026-08-14 14:39
svenhttps://github.com/dell/thunderbolt-dkms/blob/d23fce1fbf167dd82daa9c05034bf52d78c966c3/thunderbolt/eeprom.c#L158#asahi-re · 2026-08-14 14:30
svenNice, we’ll have to patch it into the first bytes of the drom with the correct crc8#asahi-re · 2026-08-14 10:31
sventhat one already works#asahi-re · 2026-08-14 10:22
svenunique-chip-id sounds like ecid#asahi-re · 2026-08-14 10:17
sventrue #asahi-re · 2026-08-14 10:16
sven:>#asahi-re · 2026-08-14 10:16
svenor maybe it’s just ECID with more stuff appended #asahi-re · 2026-08-14 10:16
sventhat thing might also come from fuses like that ECID#asahi-re · 2026-08-14 10:15
sventhey don’t have a hardware sha-1 engine we could abuse for style points, do they :D