#
✕ nick:sven
#asahi-re · 2021-09-13 07:48
sveni already have a reading list
#asahi-re · 2021-09-13 07:48
svenyeah, i know
#asahi-re · 2021-09-13 07:46
svenyup
#asahi-re · 2021-09-13 07:42
svenpossibly
#asahi-re · 2021-09-13 07:42
sventhis is not a hard problem, it just requires some reading :D
#asahi-re · 2021-09-13 07:41
svenyes, just need to read that all in detail
#asahi-re · 2021-09-13 07:36
svenyeah, that's how i found it
#asahi-re · 2021-09-13 07:35
svenjust requires to spend some time to read more code :)
#asahi-re · 2021-09-13 07:35
sventhere's also some typec_ api but at first glance that's mostly about notifying userspace i think (https://www.kernel.org/doc/html/v5.0/driver-api/usb/typec.html)
#asahi-re · 2021-09-13 07:34
svenyeah
#asahi-re · 2021-09-13 07:32
svendunno, just need to read more code and see what the right thing to use is
#asahi-re · 2021-09-13 07:30
sventhere's also this whole extcon thing that seems to be somehow related to usb which also seems to have some kind of notification system
#asahi-re · 2021-09-13 07:20
svenand then ofc see if there's a sane way to forward usb connected interrupts to the phy driver (possibly just a virtual irq chip) so that usb hotplug finally works
#asahi-re · 2021-09-13 07:16
svenand change the irq numbers to what apple uses. they don't seem to line up with the TI ones :/
#asahi-re · 2021-09-13 07:16
svenyeah. i'll have to fix the linux driver a bit anyway because right now it also treats IntMask1 and IntMask2 the same.
#asahi-re · 2021-09-13 05:55
sveni'm fairly sure at this point the secondary bus of those usb pd chips is connected to the smc directly
#asahi-re · 2021-09-13 05:54
svenand yeah, i guess it would make sense if they exposed the two busses that way
#asahi-re · 2021-09-13 05:44
svensure
#asahi-re · 2021-09-12 17:07
svenurgh.. and it looks like the interrupt bits are different from those defined in the TI manual i think :/
#asahi-re · 2021-09-12 15:19
svenuhh... wtf.. the interrupt mask on the USB PD chips seems to be 8 bytes but the interrupt event register 11 bytes of which macos only reads 9?!
#asahi-re · 2021-09-12 14:59
svenok
#asahi-re · 2021-09-12 14:58
svenso this is not a separate i2c bus we need to expose to other drivers
#asahi-re · 2021-09-12 14:58
svenoh
#asahi-re · 2021-09-12 14:45
svenhrm, so we may need that rtkit node after all?
#asahi-re · 2021-09-04 15:55
svenand that section seems to contain functions pointers i think
#asahi-re · 2021-09-04 15:55
sveni can write to it
#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: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-08-26 06:50
svenyup
#asahi-re · 2021-08-26 06:48
sveniirc the handling is even inconsistent for syslog. for crashlog you have to reply even if the IOP send you a buffer. for syslog you just don't reply
#asahi-re · 2021-08-26 06:46
svenyup
#asahi-re · 2021-08-26 06:46
svenmarcan: that confused me as well and I actually had to look it up in the kext. in RTBuddyCrashlogEndpoint::_messageHandler the logic for "use buffer from rtkit" vs. "allocate our own buffer" is really just "did the processor send us an address with the first message"
#asahi-re · 2021-08-23 22:35
svenAppleS5L8960XNCOFrequencyFunction
#asahi-re · 2021-08-23 22:33
svennon-comissioned officer? :P
#asahi-re · 2021-08-23 22:33
sveni just know that the AES DART wasn't able to even read the pagetable
#asahi-re · 2021-08-23 22:33
svenno idea what that is
#asahi-re · 2021-08-23 22:33
sventhere's a DAPF behind that DART that needs to be configured
#asahi-re · 2021-08-23 22:32
svenor, well, i could only get it work in bypass mode
#asahi-re · 2021-08-23 22:31
sveni was hoping to use it to understand DART better but couldn't get it to work and gave up after 30 minutes
#asahi-re · 2021-08-23 22:31
svenaes is simple enough, i reversed that one back in match or so
#asahi-re · 2021-08-23 22:21
svenit should handle syslog and the rtkit bootstrap stuff though
#asahi-re · 2021-08-23 22:18
svenand if you trace the DART mappings as well you should be able to see what data it exhanges
#asahi-re · 2021-08-23 22:17
svenit's rtkit, so you could try to use the asctracer (i think it's called like that) and see what messages are exchanged
#asahi-re · 2021-08-23 22:08
svenbut anyway, if they use DMA for SPI for some reason and if that co-processor is involved you will have to reverse engineer its protocol
#asahi-re · 2021-08-23 22:06
svenmaybe for the nor flash, but even that one is quite small and probably not read/written often
#asahi-re · 2021-08-23 22:06
svendma doesn't make much sense for a keyboard though
#asahi-re · 2021-08-23 21:50
svensee #asahi. it at least maps the aes engine
#asahi-re · 2021-08-23 21:49
svenuh
#asahi-re · 2021-08-23 06:13
sventhere's still 2 unknown bytes so it could be three i guess

plus ›