#asahi · 2021-05-14 12:48
svenboth writable until the lock bit is set in SPRR_CONFIG#asahi · 2021-05-14 12:47
svenmarcan: (3,6,15,3,0) can unlock bits in PERM_EL0 and (3,6,15,3,1) can unlock bits in PERM_EL1#asahi · 2021-05-14 12:42
svendart handles that#asahi · 2021-05-14 12:39
sveni'm fighting against the AES engine to see if i can make it work there#asahi · 2021-05-14 12:39
svenit's weird#asahi · 2021-05-14 12:38
sveni'm pretty sure PPL also handles DART paging#asahi · 2021-05-14 12:35
sveni'd guess s#asahi · 2021-05-14 12:35
svenmarcan: i suspect that there will be another one for the EL1 perms though#asahi · 2021-05-14 11:49
sventhere's a DAPF that's not inside the device tree just after the sio dart#asahi · 2021-05-14 11:49
svenmaybe i can finally abuse the AES engine to look into the device address space now#asahi · 2021-05-14 11:47
svenyeah#asahi · 2021-05-14 11:46
sventhe end of the range looks strange though#asahi · 2021-05-14 11:42
sventhat's from the ADT. first one should be RAM, second one should be MMIO#asahi · 2021-05-14 11:42
svenconfig: 0x10100, sid: 01, from 0800c80000 to 0800d23fff#asahi · 2021-05-14 11:42
svenconfig: 0x10300, sid: 01, from 022b45c000 to 022b45c003#asahi · 2021-05-14 11:42
svenand maybe, just maybe, DAPF allows to set memory attributes#asahi · 2021-05-14 11:41
sveni'm starting to think that one of the pass-through bits i found in the DART space is actually "DAPF bypass mode"#asahi · 2021-05-14 11:38
svenoh.. good point.#asahi · 2021-05-14 11:35
sveni still have to figure out the exact bits inside the config register though, maybe they are doing something special to the memory range#asahi · 2021-05-14 11:34
svenno idea why that exists since they can already do all that filtering inside the DART itself#asahi · 2021-05-14 11:34
svenit has 16 filters which each have a 0x40 byte long config space. first u32 seems to be configuration, second u32 seems to select the SID and then there are two u64s which are probably start and end pointers#asahi · 2021-05-14 11:33
svenalright, so apparently this DAPF block sometimes sits behind the DART (i.e. device -> DART -> DAPF -> memory) and it's just a very simple address filter#asahi · 2021-05-14 11:14
svenmarcan: soo... how do we call the SPRR register that unlocks bits in SPRR_PERM_EL0 after it has been locked down but which can only be written from EL1? :D (SPRR_UNK2_EL1)#asahi · 2021-05-13 13:22
svenso essentially i have today and tomorrow :D#asahi · 2021-05-13 13:21
sven:D#asahi · 2021-05-13 13:19
sven i really need to stop shaving random yaks and finally submit clocks, address the dart driver comments and then finish usb stuff#asahi · 2021-05-13 13:13
svenasahi linux to replace bridgeos when? :-P#asahi · 2021-05-13 13:01
sventhere's also the GPU left which will require a lot of work. but bloom et al. have been making quite some amazing progress there already#asahi · 2021-05-13 13:01
svenShiz: (svenpeter uses matrix and the irc bridge. sven uses an irc bouncer)#asahi · 2021-05-13 13:00
svenShiz: svenpeter is just my alter ego :P#asahi · 2021-05-13 12:58
svenvery likely i'd say#asahi · 2021-05-13 12:58
svennice work!#asahi · 2021-05-13 12:58
sven\o/#asahi · 2021-05-09 08:58
svenmarcan: just be glad it's not a crc :-P#asahi · 2021-05-09 08:52
svenphew, no usb3 phy then :)#asahi · 2021-05-09 08:50
svenonce marcan can do everything that gdb requires from python all that's left is a few 100 lines of glue code to make gdbserver.py#asahi · 2021-05-09 08:49
sventhe limitation is the hv currently#asahi · 2021-05-09 08:49
sventhe protocol itself is simple#asahi · 2021-05-08 14:48
sveni received them fwiw#asahi · 2021-05-08 09:10
sven:>#asahi · 2021-05-08 09:08
svenyou know you want to! :P#asahi · 2021-05-08 09:07
sven:D#asahi · 2021-05-08 09:06
svenmarcan: sooo.... you could just replace genter/gexit in the kernel text with hvc instructions while loading it :D#asahi · 2021-05-08 09:02
svenso you might be able to trap them after enabling GXF but ugh#asahi · 2021-05-08 08:58
sveni think i checked and they don't. but please double check :)#asahi · 2021-05-08 08:57
sventhey're just undefined then#asahi · 2021-05-08 08:57
svenfwiw, i don't think at least genter/gexit will trap as long as GXF is disabled.#asahi · 2021-05-07 17:37
svenjeffmiw: ^-- :)#asahi · 2021-05-07 17:30
svenjeffmiw: i don't actually know. all i know is that iboot gives us control in EL2. not sure if there's any bit somewhere that tells you if there's el3 as well#asahi · 2021-05-07 17:27
svenyeah, pretty sure i meant TGE. let me fix that