#
#asahi-re · 2022-07-20 13:54
rqou_lmao
#asahi-re · 2022-07-20 13:53
dottedmagbig.LITTLE.puny
#asahi-re · 2022-07-20 13:52
dottedmagvery-NUMA
#asahi-re · 2022-07-20 13:52
dottedmagrqou_: Let's add this M3 core to the list of cores Linux schedules tasks on
#asahi-re · 2022-07-20 13:50
rqou_i assume that works on aic2 as well?
#asahi-re · 2022-07-20 13:42
j`eyah nice
#asahi-re · 2022-07-20 13:40
svenhttps://github.com/AsahiLinux/m1n1/blob/main/proxyclient/experiments/aic_test.py#L162
#asahi-re · 2022-07-20 13:33
j`eyI don't see anything obvious in linux for AIC either for checking if an interrupt is pending
#asahi-re · 2022-07-20 13:30
rqou_(needed this to work out some IRQ stuff on the m3 side, also i'm cheekily naming this terrible hack "m1cro")
#asahi-re · 2022-07-20 13:29
rqou_also, i confirmed that you can run arbitrary code on the m3, no signing etc.
#asahi-re · 2022-07-20 13:28
rqou_and then the firmware adds a magic offset to make it work out
#asahi-re · 2022-07-20 13:28
rqou_but not the address from the m3's perspective, the address relative to the beginning of the hardware ip's range of addresses
#asahi-re · 2022-07-20 13:27
rqou_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
#asahi-re · 2022-07-20 13:26
rqou_also, unless i'm reading it wrong, apple once again managed to Think Different on this firmware
#asahi-re · 2022-07-20 13:25
rqou_i think i have most of the AVD Cortex-M3 mailbox-and-related stuff figured out
#asahi-re · 2022-07-20 13:24
rqou_is there an easy way in m1n1 to see whether or not there are IRQs pending (for the AP)?
#asahi-re · 2022-07-17 20:03
marcanyeah, I think it's mostly handled on the wifi side
#asahi-re · 2022-07-17 18:12
svenbut sounds like btcoex is mostly a WiFi thing
#asahi-re · 2022-07-17 18:12
svenafaict most of the fancy stuff happens inside BlueTool anyway (like firmware selection or sending the right calibration data)
#asahi-re · 2022-07-17 17:14
marcanso either something about nvram loading is broken or something isresetting it
#asahi-re · 2022-07-17 17:13
marcanit seems the btc_mode is 0 when the nvram says it should be set to 1
#asahi-re · 2022-07-17 16:42
rqou_i'm guessing probably the latter
#asahi-re · 2022-07-17 16:41
rqou_on a different topic, i didn't see anything whatsoever touch btcoex in the "converged ipc" kexts, so if that's the issue it's either a command sent from macos userspace or a problem on the wifi side
#asahi-re · 2022-07-17 16:37
svenand yet macOS applies them all again and again (and my driver too because if I have to apply some tunables I might as well apply them all)
#asahi-re · 2022-07-17 16:36
sven*some
#asahi-re · 2022-07-17 16:36
svenfwiw, sone atc tunables stick around even through a atc reset, but others have to be reapplied again and again
#asahi-re · 2022-07-17 16:36
rqou_at least this one doesn't involve a hacky layering violation
#asahi-re · 2022-07-17 16:36
rqou_maybe
#asahi-re · 2022-07-17 16:35
marcanmaybe it's something like "don't cache AVD streams"?
#asahi-re · 2022-07-17 16:35
rqou_i mean, the adt outright says so: "function-mcc_dataset = 125:M$DS()"
#asahi-re · 2022-07-17 16:35
marcanlet's ignore all that for now
#asahi-re · 2022-07-17 16:35
marcanthat's so goofy
#asahi-re · 2022-07-17 16:34
marcanno, also seriously?
#asahi-re · 2022-07-17 16:34
rqou_the AVD kext definitely also makes calls into the AMCC driver to tune some caching behavior (do we understand any of that yet?)
#asahi-re · 2022-07-17 16:32
rqou_it's possible it's only important for performance tuning
#asahi-re · 2022-07-17 16:32
rqou_haven't tried at all yet, will need to investigate
#asahi-re · 2022-07-17 16:31
marcancan you tell if it really loses the data?
#asahi-re · 2022-07-17 16:31
rqou_or maybe none of this is actually needed, i haven't tried actually poking the hardware yet
#asahi-re · 2022-07-17 16:31
marcanah
#asahi-re · 2022-07-17 16:31
rqou_in the hv trace i see it getting poked multiple times, not just at boot
#asahi-re · 2022-07-17 16:31
marcanso I wouldn't be surprised if this does
#asahi-re · 2022-07-17 16:31
marcanespecially apple stuff
#asahi-re · 2022-07-17 16:31
marcanlots of things seem to stick across power/clock gates though
#asahi-re · 2022-07-17 16:31
rqou_yeah
#asahi-re · 2022-07-17 16:30
marcanthat's something to work out
#asahi-re · 2022-07-17 16:30
rqou_not sure if this can be handled in m1n1, the tunables might get lost when the device is power/clock gated?
#asahi-re · 2022-07-17 16:29
rqou_oh yeah, could do that
#asahi-re · 2022-07-17 16:29
marcanyou could fake the read data as 000 and fff to get the masks, but tbh it probably doesn't matter much
#asahi-re · 2022-07-17 16:28
rqou_that doesn't give me the masks
#asahi-re · 2022-07-17 16:28
marcanwe should put that nonsense in m1n1 anyway

plus ›