#asahi-re · 2022-06-18 18:24
svenalright, so these myster config space writes (https://github.com/rqou/m1-bluetooth-prototype/blob/f2873340b28fed052550ca51554e85af5cd24b0e/test.py#L184) actually just configure the memory/MMIO/whatever windows that can be accessed in the BAR#asahi-re · 2022-06-18 18:13
sveniirc SEP and the thunderbolt ones don’t #asahi-re · 2022-06-18 18:13
sventhat was on purpose because not all mailboxes have that reg#asahi-re · 2022-06-18 16:59
sventrue#asahi-re · 2022-06-18 16:58
svenand I missed the PMGR reset anyway#asahi-re · 2022-06-18 16:58
svenand even finding that was annoying#asahi-re · 2022-06-18 16:58
svenyeah, i looked for the ANS shutdown sequence I think#asahi-re · 2022-06-18 16:57
sventhe one iboot i briefly looked at contained almost no strings and wasn't much fun to reverse engineer fwiw#asahi-re · 2022-06-18 16:56
svenhuh, cute#asahi-re · 2022-06-18 14:26
sveni've started to look into bluetooth with R's notes a bit. looks like apple calls the transport used for communication with the actual chip "apple converged IPC" and maybe also "apple converged PCI"#asahi-re · 2022-06-17 10:31
sventhanks, let me take a look if i can convince that thing to just resolve some .kext vtables for me#asahi-re · 2022-06-17 09:37
svenmarcan: didn't you have some ghidra script somewhere to deal with all those annoying vtable calls? can you point me to that one again?#asahi-re · 2022-06-17 06:14
sventhere was also one xnu release that contained more debug crap than usual (like that llvm bitcode for some kernel stuff)#asahi-re · 2022-06-15 14:49
sven(https://gitlab.arm.com/linux-arm/linux-rm/-/tree/iommu/bus)#asahi-re · 2022-06-15 14:49
svenfwiw, i'll pick that 4k iommu back up once robin has finished his iommu api refactoring series. some of the changes become more sane once we already know the iommu instance by the time domain_alloc is called#asahi-re · 2022-06-04 18:04
svenshouldn’t be too hard to add support to the Linux driver #asahi-re · 2022-06-04 18:04
svenhttps://googleprojectzero.blogspot.com/2017/10/over-air-vol-2-pt-3-exploiting-wi-fi.html?m=1#asahi-re · 2022-06-04 18:02
sven*google project zero blog post#asahi-re · 2022-06-04 18:02
svengah#asahi-re · 2022-06-04 18:02
sven*google#asahi-re · 2022-06-04 18:02
sveniirc it’s mentioned in some google#asahi-re · 2022-06-04 11:18
svenand i think it uses 4K pages as well#asahi-re · 2022-06-04 11:17
svensame pagetable format but different register format iirc#asahi-re · 2022-06-04 11:17
svenfwiw, there is a different dart variant used in at least the older iPhones sometime before t8020#asahi-re · 2022-04-17 11:13
svenlast time i used it was a year ago or so so it might also need some changes#asahi-re · 2022-04-17 11:13
sven:>#asahi-re · 2022-04-17 11:12
svenit's mostly about that sks endpoint but you should at least get the data buffers for sbio as well#asahi-re · 2022-04-17 11:12
svenhttp://f.svpe.de/d48b3719f56e413e94ca40a6e9cbc8636577695c66054ef44093270998999449_trace_sep.py or maybe use that to start trace the SEP side as well ;)#asahi-re · 2022-04-17 11:06
sven*shim#asahi-re · 2022-04-17 11:06
svenif I were to design this the xnu driver would just be a dumb shin that forwards messages between SEP and the sensor #asahi-re · 2022-04-17 11:05
sventhe command buffer probably directly comes from SEP#asahi-re · 2022-04-17 11:02
svenyeah, that’s what I’d expect#asahi-re · 2022-04-16 22:51
sveniirc tonga is just the codename for the m1#asahi-re · 2022-04-16 22:50
svenhard to make sense of that without a proper MMIO trace :/#asahi-re · 2022-04-16 22:47
svenIs isp one of these co-processors?#asahi-re · 2022-04-16 22:45
svenyeah, I’d be surprised if it wasn’t dma #asahi-re · 2022-04-16 22:44
svenso i2c is probably much to slow for a video signal, but maybe they send configuration messages over it?#asahi-re · 2022-04-16 13:27
svenpretty sure everyone just uses the hypervisor to do that#asahi-re · 2022-04-13 06:25
svenproxyclient is deliberately full of hacks but at least merging the dart variants into a single file should be doable :D#asahi-re · 2022-04-13 06:24
svenmight make sense to integrate it into dart.py#asahi-re · 2022-04-11 11:53
svennice!#asahi-re · 2022-04-10 17:36
sventhe only time I was sent into recovery was when I let that weird other watchdog thing expire#asahi-re · 2022-04-10 17:36
svenme neither, and i've rebooted this thing a lot and very quickly#asahi-re · 2022-04-10 09:14
sventrace the writes to that rid2sid register and then find the stream from there#asahi-re · 2022-04-10 09:13
svenit’s configurable #asahi-re · 2022-04-10 09:13
svenlooks for rid2sid in the Linux pcie driver to get the pcie device/dart stream mapping #asahi-re · 2022-04-08 06:54
svenjust gotta figure out where the BAR is mapped#asahi-re · 2022-04-08 06:54
svenyou should be able to use trace_range to get started#asahi-re · 2022-04-08 06:48
svenmaybe that bluetooth function just exposes a simple UART over pcie :D#asahi-re · 2022-04-08 06:46
svenbluetooth will essentially just be a MMIO region inside the pcie one