#
…

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:24rqou_is there an easy way in m1n1 to see whether or not there are IRQs pending (for the AP)?
13:25rqou_i think i have most of the AVD Cortex-M3 mailbox-and-related stuff figured out
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:28rqou_and then the firmware adds a magic offset to make it work out
13:29rqou_also, i confirmed that you can run arbitrary code on the m3, no signing etc.
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:42j`eyah nice
13:42doggkruse has quit [Ping timeout: 480 seconds]
13:50rqou_i assume that works on aic2 as well?
13:52dottedmagrqou_: Let's add this M3 core to the list of cores Linux schedules tasks on
13:53dottedmagbig.LITTLE.puny
13:54rqou_it's not even the same ISA
13:54rqou_also iirc doesn't have mpu, etc.
13:55svenno idea, i have no machine with aic2 and i've only used it on aic1
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:08Jamie[m]ah crap giving you the notes totally slipped my mind rqou_
15:08Jamie[m]and yeah i agree with that assessment of the mailbox
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:25Jamie[m]rqou_: shared my notes with you on github
15:26Jamie[m]github's renderer doesn't include single newlines so you might wanna view it as plain text
15:26Jamie[m]they start out comprehensible and devolve into random ravings and big lists of numbers
15:27Jamie[m]also i just git hard reset over my m1n1 experiments
15:27_jannau_git reflog if those where at least committed
15:30Jamie[m]nah staged
15:30Jamie[m]so they exist as dangling files i can access in gc
15:30Jamie[m]but should be easier to recover the whole directory from my backups
15:30Jamie[m]s/in gc/in fsck/
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:44Jamie[m]alright m1n1 shared as well
15:45Jamie[m]and now i know my backups work :)
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:48Jamie[m]and iirc confirmed that it was successfully producing a picture in memory
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:51Jamie[m]dart stream 1, which has big 0xbc000-size descriptors for each frame
15:51Jamie[m]to figure out the pointers to the different blocks of data in dart stream 0
15:52Jamie[m](which is where the actual video data is read and written)
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
15:58Jamie[m]oh my code is on the prores branch in my m1n1 repo btw
15:58Jamie[m](it was a fork of your m1n1 which added t8110 dart support for prores)
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
19:59rqou_the kext has symbol names that contain "ADS" near symbol names referencing FairPlay
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]
…