#asahi-re · 2022-04-07 18:57
svenas long as ignoring it works 🤷🏻♂️#asahi-re · 2022-04-07 18:57
sven*or t6000#asahi-re · 2022-04-07 18:56
svenyeah, there’s no need for any dart tunables on t8103 or the either#asahi-re · 2022-04-07 18:51
svensounds like they intend to keep that version for a while then#asahi-re · 2022-04-07 18:39
svenfun!#asahi-re · 2022-04-07 18:33
svenyeah#asahi-re · 2022-04-07 18:31
svenoh, you could also intercept the i2c reads from that tps6598x chip under the HV and pretend that you connected a thunderbolt cable#asahi-re · 2022-04-07 18:30
svenI wonder if there's something cheap, I just used my tb dock that I had anyway#asahi-re · 2022-04-07 18:30
sveni'd expect the thunderbolt ones to support at least 64#asahi-re · 2022-04-07 18:29
sveninteresting#asahi-re · 2022-04-07 18:28
sventhe t8103 limitation feels like legacy from the old iphones when they had 4kb DARTs#asahi-re · 2022-04-07 18:28
svenwould be interesting#asahi-re · 2022-04-07 18:27
svenokay, then it might still be limited to 32bit#asahi-re · 2022-04-07 18:26
svenon t8103 everything above 32bit got truncated even though technically the pagetables supported more#asahi-re · 2022-04-07 18:26
svenokay, nice#asahi-re · 2022-04-07 18:24
svenis t8110 still limited to 32bit iovas?#asahi-re · 2022-04-07 18:24
svenmaybe they just got rid of the bypass mode completely#asahi-re · 2022-04-07 18:22
svenif it's the latter you're probably right#asahi-re · 2022-04-07 18:22
svenmaybe jpeg has something similar or maybe it really only does 32bit addressing#asahi-re · 2022-04-07 18:22
svenwhat i meant was that to program a 64bit address into dwc3 you write the halves to two separate 32 bit registers#asahi-re · 2022-04-07 18:21
sventhe pcie ones e.g. don't#asahi-re · 2022-04-07 18:21
sventhe DART also needs to support bypass mode#asahi-re · 2022-04-07 18:21
svenunless there's a second register for the upper half of the address or something like that#asahi-re · 2022-04-07 18:20
svenyeah#asahi-re · 2022-04-07 18:20
svenif you e.g. enable bypass for dwc3 you can just pass the phys addrs that are above that limit to the HW#asahi-re · 2022-04-07 18:19
svenbut that limitation only applies in translated mode on t8103 at least#asahi-re · 2022-04-07 18:19
svenyes#asahi-re · 2022-04-07 18:18
svenI guess you can also give them an offset then? dunno#asahi-re · 2022-04-07 18:18
svenif you set that bypass enable bit in TCR it just passes through all DMA transactions#asahi-re · 2022-04-07 18:17
svennever looked at the KDK#asahi-re · 2022-04-07 18:16
svenhttp://f.svpe.de/70fb5357bea78c2e50f0017f563907ebe775cd731861d37751346a1eb8ad61c9_aes.py looks like I didn't find the ready bit in that aes engine :/#asahi-re · 2022-04-07 18:16
svenI figured out most of DART by poking registers and observing what happens, we didn't have the HV back then :D#asahi-re · 2022-04-07 18:16
sveni wasn't aware there are any error disable bits#asahi-re · 2022-04-07 18:14
svenit should be behind a t6000 dart at least#asahi-re · 2022-04-07 18:13
svenhrm, let me check if I ever pushed my code to drive that AES engine#asahi-re · 2022-04-07 18:12
svenif it bypasses the cache that should be slower#asahi-re · 2022-04-07 18:12
svendo you have some device for which you can easily trigger a read from a page and time it?#asahi-re · 2022-04-07 18:11
svenyeah#asahi-re · 2022-04-07 18:11
svenhrm, so write and read protection also moved around compared to t8103#asahi-re · 2022-04-07 08:15
svenamarioguy: finally found the slightly better sep trace i worked on a while ago. it's probably broken though https://f.svpe.de/d48b3719f56e413e94ca40a6e9cbc8636577695c66054ef44093270998999449_trace_sep.py#asahi-re · 2022-04-06 14:57
svenbut i'd assume they're very similar if not the same#asahi-re · 2022-04-06 14:57
svenno idea, i only have t8103 as well#asahi-re · 2022-04-06 14:55
sventhe first step would be to understand SEP and probably implement some features into sep.py#asahi-re · 2022-04-06 14:51
svenmost things will probably have to be done inside userland#asahi-re · 2022-04-06 14:41
svenlet me see if I can find that again#asahi-re · 2022-04-06 14:41
sveni also remember having worked out how the hashes for the actual SEP communication works but that doesn't seem to be in there as well#asahi-re · 2022-04-06 14:40
sven i don't remember if sbio requires xart but i assume so#asahi-re · 2022-04-06 14:40
svenor maybe those were two endpoints? my memory is rather fuzzy#asahi-re · 2022-04-06 14:40
svenand you need to handle it to bring up the sks endpoint which handles keys and passwords#asahi-re · 2022-04-06 14:39
svenyeah, it's just one of the SEPOS endpoints