#asahi-re · 2021-09-04 12:17
alyssa :)#asahi-re · 2021-09-04 11:05
svenseriously though, i just wanted to understand what exactly is mapped there#asahi-re · 2021-09-04 11:05
svenuh... i think my lawyer would suggest to say it's for driver purposes only!#asahi-re · 2021-09-04 10:55
alyssasven: Are you saying this for driver purposes or exploitation purposes? :-p#asahi-re · 2021-09-04 10:54
alyssalovely#asahi-re · 2021-09-04 10:16
svenso it looks like the IOVA range 0...4208000 (phys addr 9e62f0000...9e62ec000) pre-mapped in the dcp DART is part of the DCP firmware data section #asahi-re · 2021-09-02 18:45
alyssadebating matching that in my code so the syslog makes more sense#asahi-re · 2021-09-02 18:44
alyssamarcan: btw, I think the DCP calls channels "streams"#asahi-re · 2021-08-31 01:09
alyssaso.... reg1 = scratch and reg2:bit = doorbell#asahi-re · 2021-08-31 01:08
alyssamarcan: Hmmmm that looks very familiar :')#asahi-re · 2021-08-31 01:07
alyssa[syslog] * [UPPipeDCP_H13P.cpp:9025]IOMFB Int RTBandwidth: using legacy. Doorbell 23bc3c000, bit 2#asahi-re · 2021-08-31 01:07
alyssa[syslog] * [UPPipeDCP_H13P.cpp:9005]IOMFB Int RTBandwidth: program_M3_rt_config: Using Legacy, scratch 23b738014#asahi-re · 2021-08-30 03:33
alyssabbl sleep :p#asahi-re · 2021-08-30 03:33
alyssa\o#asahi-re · 2021-08-30 03:31
marcanbbl, lunch :p#asahi-re · 2021-08-30 03:30
alyssa....I feel better about my own code now#asahi-re · 2021-08-30 03:29
marcanapple seriously doesn't care, they have drivers poking other devices' registers *everywhere*#asahi-re · 2021-08-30 03:29
marcansee what I said about the regs being a mess?#asahi-re · 2021-08-30 03:29
marcanI did some snooping on the reg ranges#asahi-re · 2021-08-30 03:29
marcansee the big comment at the top of dcp.py#asahi-re · 2021-08-30 03:29
marcan0x230000000..... is disp0#asahi-re · 2021-08-30 03:29
marcan0x231800000.... is DCP#asahi-re · 2021-08-30 03:28
alyssa size = 0x0000000000800000, Container: #asahi-re · 2021-08-30 03:28
alyssa addr = 0x0000000031800000#asahi-re · 2021-08-30 03:28
alyssaoh er that was dispext0 i'm tired#asahi-re · 2021-08-30 03:28
marcanI don't see that in disp0?#asahi-re · 2021-08-30 03:27
alyssa size = 0x0000000000800000, Container: #asahi-re · 2021-08-30 03:27
alyssa addr = 0x0000000071800000#asahi-re · 2021-08-30 03:27
alyssaof the disp0 regs only suspicious one is#asahi-re · 2021-08-30 03:27
marcanyes#asahi-re · 2021-08-30 03:27
marcancould just be an offset from disp0 base or some disp0 subrange or whatever#asahi-re · 2021-08-30 03:27
marcanyeah, however we choose to represent it#asahi-re · 2021-08-30 03:27
alyssa(so the regs are still in the DT, not hardcoded)#asahi-re · 2021-08-30 03:27
alyssa<reference> being a reference to a DT name/index/handle/whatever?#asahi-re · 2021-08-30 03:26
marcanlike {4, <reference to what we call that range>} and then the map call can just check that what is being mapped is something in that table (resolved)#asahi-re · 2021-08-30 03:26
marcaneventually I'd probably want a mapping table#asahi-re · 2021-08-30 03:26
marcanbut for now you can just use the same ranges, sure#asahi-re · 2021-08-30 03:26
marcanalso we *might* end up doing hacks on disp0 regs eventually#asahi-re · 2021-08-30 03:26
alyssaGrumble#asahi-re · 2021-08-30 03:25
marcanlike mapping pmgr stuff in every goddamn device#asahi-re · 2021-08-30 03:25
marcanapple do some insane stuff with reg ranges#asahi-re · 2021-08-30 03:25
alyssasince AFAIK we have no reason to touch those registers ourselves ever#asahi-re · 2021-08-30 03:25
marcandepends on what they do and what sense they make#asahi-re · 2021-08-30 03:25
alyssaI see no reason not to just include the regs in Apple order in the DT#asahi-re · 2021-08-30 03:25
marcangood :)#asahi-re · 2021-08-30 03:25
alyssathat's what I assumed but am trying to check my assumptions off you since you complained I don't ask enough questions 😋#asahi-re · 2021-08-30 03:25
marcanin this case it's disp0 index 4, though for us that might be a different index, in which case we'd want a mapping table anyway#asahi-re · 2021-08-30 03:24
alyssa👍#asahi-re · 2021-08-30 03:24
marcanpossibly a subset#asahi-re · 2021-08-30 03:24
marcanso we should just check that it's one of the disp0 ranges I guess