#
✕ nick:sven
#asahi-dev · 2021-05-30 19:02
svenofc this is all not documented anywhere :D
#asahi-dev · 2021-05-30 19:02
svenmight be the undocumented CTRR mitigation"
#asahi-dev · 2021-05-30 19:02
sven"Thus, the regions that are locked down are all __TEXT segments of coprocessor firmwares; this strongly suggests that Apple has added a new mitigation to make coprocessor __TEXT segments read-only in physical memory, similar to KTRR on the AMCC (probably Apple's memory controller) but for coprocessor firmwares instead of just the AP kernel. This
#asahi-dev · 2021-05-30 19:02
svenhttps://googleprojectzero.blogspot.com/2020/07/one-byte-to-rule-them-all.html
#asahi-dev · 2021-05-30 19:02
svenhm.... so CTRR seems to also make coprocessor firmware readonly. maybe.
#asahi-dev · 2021-05-30 18:57
svenit loads the kernel, it knows which region is supposed to be executable in kernel mode
#asahi-dev · 2021-05-30 18:56
svenbut who knows
#asahi-dev · 2021-05-30 18:56
svenhm, i thought iboot had some fancy way to relock KTRR after deep sleep
#asahi-dev · 2021-05-30 18:53
sventhen there's a second set of registers in the memory controller that disallow writes to that region
#asahi-dev · 2021-05-30 18:53
svenessentially you setup a memory region and from the on only code from that region is allowed to run in kernel mode
#asahi-dev · 2021-05-30 18:52
svenso KTRR is kernel text readonly region
#asahi-dev · 2021-05-30 18:52
svenoh, maybe i confused it with KTRR
#asahi-dev · 2021-05-30 18:47
sventhat's only meant for secondary cores afaik
#asahi-dev · 2021-05-30 12:36
svenstill need to confirm this. let's see if i can get the hv up and running
#asahi-dev · 2021-05-30 12:36
svenhttps://f.svpe.de/d30e6d91527db3ab66dcd9ae394f650d3888900d6967bb8e891cb3cbe03610f6_pmgr_clocks.txt
#asahi-dev · 2021-05-30 12:35
sveni think so
#asahi-dev · 2021-05-30 12:34
svenugh. i think some clock gates actually have *two* parents
#asahi-dev · 2021-05-30 09:51
svenyup, also works fine again with a screen here
#asahi-dev · 2021-05-30 09:50
svenlet me try if this works if i connect my screen
#asahi-dev · 2021-05-30 09:50
sveni think m1n1 passes FDT: framebuffer@9e0df0000 base 0x9e0df0000 size 0x2c6000 in that case
#asahi-dev · 2021-05-30 09:44
svenit probably doesn't like that for some reason
#asahi-dev · 2021-05-30 09:44
svenfb init: 640x1136 (32) [s=640] @0x9e0df0000
#asahi-dev · 2021-05-30 09:44
svenoh.. maybe it's confused because i have nothing connected to hdmi
#asahi-dev · 2021-05-30 09:43
svenit crashes in video_clear shortly afterwards. didn't have time to debug what's going on and just disabled the framebuffer for now :D
#asahi-dev · 2021-05-30 09:21
svenno
#asahi-dev · 2021-05-30 09:20
svenhuh. somehow something broke the framebuffer
#asahi-dev · 2021-05-30 08:48
svenhuh. i get "DRAM: alloc space exhausted" with the latest u-boot now
#asahi-dev · 2021-05-29 18:56
sventhat setup looks about as clean/messy as mine does :D
#asahi-dev · 2021-05-29 18:52
svenlittle apples :D
#asahi-dev · 2021-05-29 18:44
svenpfrt, i can't do everything for you! :-P
#asahi-dev · 2021-05-29 18:41
sven:>
#asahi-dev · 2021-05-29 18:25
svenyou asked for usb and i delivered. now it's your turn! :P
#asahi-dev · 2021-05-29 18:23
svenyes please!
#asahi-dev · 2021-05-29 18:22
svenbut i don't think these are used by xnu
#asahi-dev · 2021-05-29 18:22
sventhere are also some nodes missing in the ADT. there's e.g. a DAPF (some address filter iommu thingy) directly after the sio dart
#asahi-dev · 2021-05-29 18:21
svenit wouldn't surprise me if xnu just ignores the size of regions, etc. though
#asahi-dev · 2021-05-29 18:17
svenxnu is using the ADT for sure
#asahi-dev · 2021-05-29 14:49
sven:>
#asahi-dev · 2021-05-29 14:27
sveninteresting
#asahi-dev · 2021-05-29 14:19
svenif i reconnect my yubikey (only usb c thing i have with me right now) it isn't recognized again
#asahi-dev · 2021-05-29 14:19
svenbut that reconfiguring the hub itself works is unexpected
#asahi-dev · 2021-05-29 14:18
sventhe single devices from the hub is no surprise
#asahi-dev · 2021-05-29 14:18
svenweird
#asahi-dev · 2021-05-29 14:16
svenso you disconnect the usb hub, then connect it again and it works after that?
#asahi-dev · 2021-05-29 14:13
svenweird. it doesn't for me
#asahi-dev · 2021-05-29 14:13
svenhuh, really?
#asahi-dev · 2021-05-29 14:09
sven[ 28.536076] usb 3-1: USB disconnect, device number 2 <-- looks like i get disconnect events in host mode though
#asahi-dev · 2021-05-29 14:08
svenit's either the i2c chip or the phy itself i guess
#asahi-dev · 2021-05-29 14:07
sveni still have to figure out how to detect that
#asahi-dev · 2021-05-29 14:07
svenor, well, reusing any usb port twice

plus ›