2022-07-20
00:01yuyichao has quit [Ping timeout: 480 seconds]
02:04doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:05doggkruse has joined #asahi-re
02:52PhilippvK has joined #asahi-re
02:55phiologe has quit [Ping timeout: 480 seconds]
02:55doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
02:57doggkruse has joined #asahi-re
03:03the_lanetly_052__ has joined #asahi-re
05:46doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:14nicolas17 has quit [Ping timeout: 480 seconds]
06:48X-Scale` has joined #asahi-re
06:53X-Scale has quit [Ping timeout: 480 seconds]
06:53X-Scale` is now known as X-Scale
07:41Catyre has joined #asahi-re
07:45MajorBiscuit has joined #asahi-re
07:50Catyre has quit [Ping timeout: 480 seconds]
08:54Catyre has joined #asahi-re
09:02Catyre has quit [Ping timeout: 480 seconds]
10:47the_lanetly_052__ has quit [Remote host closed the connection]
10:49doggkruse has joined #asahi-re
10:57doggkruse has quit [Ping timeout: 480 seconds]
11:08doggkruse has joined #asahi-re
11:16doggkruse has quit [Ping timeout: 480 seconds]
12:35kloenk_ has joined #asahi-re
12:36kloenk has quit [Ping timeout: 480 seconds]
12:40kloenk_ is now known as kloenk
13:17amarioguy has quit [Quit: Leaving]
13:23rqou_ has joined #asahi-re
13:26rqou_also, unless i'm reading it wrong, apple once again managed to Think Different on this firmware
13:27rqou_afaict you queue commands by poking them into the MMIO registers (on the AP) that correspond to the cortex-m data space (at 0x10000000) and then writing the address to a mailbox
13:28rqou_but not the address from the m3's perspective, the address relative to the beginning of the hardware ip's range of addresses
13:30rqou_(needed this to work out some IRQ stuff on the m3 side, also i'm cheekily naming this terrible hack "m1cro")
13:30nicolas17 has joined #asahi-re
13:33j`eyI don't see anything obvious in linux for AIC either for checking if an interrupt is pending
13:34doggkruse has joined #asahi-re
13:42doggkruse has quit [Ping timeout: 480 seconds]
13:56rqou_ has quit [Quit: Leaving]
14:04nsklaus has quit [Quit: Textual IRC Client: www.textualapp.com]
14:11nsklaus has joined #asahi-re
14:14Catyre has joined #asahi-re
14:18Catyre has quit [Remote host closed the connection]
14:19Catyre has joined #asahi-re
14:27Catyre has quit [Ping timeout: 480 seconds]
14:54doggkruse has joined #asahi-re
14:57Catyre has joined #asahi-re
15:02doggkruse has quit [Ping timeout: 480 seconds]
15:10Jamie[m]it's a pretty messy interface, macos hardcodes the offset of the memory region in the m3 which it knows is free for writing those mailbox messages to
15:10Jamie[m]it's not even aligned to anything more than word size, just a random blob in the middle of its memory
15:26Jamie[m]github's renderer doesn't include single newlines so you might wanna view it as plain text
15:31Jamie[m]i gotta untrain myself from using hard-reset when i wanna change what commit a branch is pointing to lol
15:35Catyre has quit [Remote host closed the connection]
15:37Jamie[m]rqou_: if you were looking at the kext to grab the firmware, I assume you also noticed the tunables structures which include register names?
15:45MajorBiscuit has quit [Ping timeout: 480 seconds]
15:46Jamie[m]in trace_avd_new.py i'm dumping out the entire DART-mapped ranges before and after each frame
15:47Jamie[m]then in proxyclient/experiments/avd.py I'm replaying register interactions and overwriting the memory contents with those dumps
15:50Jamie[m]my plan was then to start messing around with offsets in what i think my notes refer to as "the cool zone"
15:54Catyre has joined #asahi-re
15:55Jamie[m]once I understood those, I was gonna go back a level and mess around with offsets from the 0x60-byte mailbox messages into the cool zone descriptors, to figure out the relationships between those pointers as well
15:55bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:55bisko has joined #asahi-re
16:00Catyre has quit [Remote host closed the connection]
16:09bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:10bisko has joined #asahi-re
16:18Catyre has joined #asahi-re
16:24Catyre has quit [Remote host closed the connection]
16:27Catyre has joined #asahi-re
16:55bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:56bisko has joined #asahi-re
16:58roxfan2 has joined #asahi-re
17:03bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:04bisko has joined #asahi-re
17:06roxfan has quit [Ping timeout: 480 seconds]
17:19Catyre has quit [Remote host closed the connection]
18:32bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:41bisko has joined #asahi-re
18:41bisko has quit []
18:45quarkyalice_ has joined #asahi-re
18:45bisko has joined #asahi-re
19:00bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:36rqou_ has joined #asahi-re
19:36rqou_Jamie[m]: thanks. what you have so far looks consistent with what i've got, but rn i'm focusing down a bit on the M3<->AP interface to make sure the fine details are understood
19:39rqou_e.g. there's actually four mailboxes, but you'd never know that by just tracing and copying macos
19:40rqou_btw, if you have any idea how to clear the overflow error flag on the mailbox, i'd be interested (no matter what i poke it doesn't seem to go away)
19:44quarkyalice_ has quit [Ping timeout: 480 seconds]
19:59rqou_also i'm definitely just randomly guessing about this, but i think dart stream 2 is for DRM
20:03Catyre has joined #asahi-re
20:13bisko has joined #asahi-re
20:31Catyre has quit [Remote host closed the connection]
20:32Catyre has joined #asahi-re
20:34yamii has quit [Quit: WeeChat 3.5]
20:35doggkruse has joined #asahi-re
20:37yamii has joined #asahi-re
20:43doggkruse has quit [Ping timeout: 480 seconds]
20:47Catyre has quit [Ping timeout: 480 seconds]
22:04Catyre has joined #asahi-re
22:13Catyre has quit [Ping timeout: 480 seconds]
22:14Catyre has joined #asahi-re
22:18doggkruse has joined #asahi-re
22:22Catyre has quit [Ping timeout: 480 seconds]
22:26doggkruse has quit [Ping timeout: 480 seconds]
22:29Catyre has joined #asahi-re
22:36X-Scale` has joined #asahi-re
22:40X-Scale has quit [Ping timeout: 480 seconds]
22:40X-Scale` is now known as X-Scale
22:45Catyre has quit [Remote host closed the connection]
22:45Catyre has joined #asahi-re
22:54Catyre has quit [Ping timeout: 480 seconds]
22:54Catyre has joined #asahi-re
23:20Catyre has quit [Remote host closed the connection]
23:20Catyre has joined #asahi-re
23:26Catyre has quit [Remote host closed the connection]
23:26Catyre has joined #asahi-re
23:51Catyre has quit [Remote host closed the connection]
23:51Catyre has joined #asahi-re
23:59Catyre has quit [Ping timeout: 480 seconds]