#
✕ nick:marcan
#asahi-dev · 2021-10-27 08:14
marcanwe have a bit of a nested OS problem; in principle, you could have multiple m1n1 installs each wrapping one OS, which would mean a separate EFI partition. This might become particularly important once we start using the SEP, to provide strong isolation between different OSes (otherwise they would at the very least end up sharing user databases and such)
#asahi-dev · 2021-10-27 08:12
marcanI've also been wondering about how we should handle EFI partitions
#asahi-dev · 2021-10-27 08:11
marcanthanks :)
#asahi-dev · 2021-10-27 08:11
marcankettenis: do you have a one-line TL;DR on what u-boot repo/build I should be looking at? it's about time I start looking into bundling that in the installer...
#asahi-dev · 2021-10-27 08:08
marcan(AFAICT the only use for those is doing VM installs, and maaybe some bare metal platforms, but definitely not the M1)
#asahi-dev · 2021-10-27 08:07
marcanno wonder some people are confused
#asahi-dev · 2021-10-27 08:07
marcanhttps://www.kali.org/get-kali/#kali-bare-metal
#asahi-dev · 2021-10-27 08:07
marcanmeanwhile, lol Kali Linux are apparently listing their AArch64 ISO images as "Apple M1" ?!
#asahi-dev · 2021-10-27 08:07
marcanand it exposes the keyboard over that; internally I'm sure it's the same exact SPI thing behind the T2
#asahi-dev · 2021-10-27 08:07
marcanthe T2 has a virtual USB Host controller thing going (which is its own snafu to support)
#asahi-dev · 2021-10-27 08:06
marcankettenis: s/microcontroller/T2/
#asahi-dev · 2021-10-27 07:21
marcan(wonder how that interacts with caches... my guess is not well...)
#asahi-dev · 2021-10-27 07:21
marcanyou can technically do wonky things with DAPF; you could have a range go 1:1 to physmem for reads and to DART for writes, which means you could have memory that points somewhere different for reads and writes...
#asahi-dev · 2021-10-27 07:16
marcanand then, if USE_DART=1 (or it's the implicit allow), then resolution continues through the DART if enabled, otherwise it falls through to passthrough if allowed, otherwise it gets dropped
#asahi-dev · 2021-10-27 07:15
marcanso basically the DAPF always behaves like it has an implicit allow of the bottom 4GiB at the end (but this can be overridden with a USE_DART=0 entry, and since the bottom 4G on these SoCs always faults AIUI, that means you can disable that entire range)
#asahi-dev · 2021-10-27 07:11
marcanhttps://mrcn.st/p/aAl2q6jA this seems to be the actual translation logic
#asahi-dev · 2021-10-27 06:48
marcanI also found the DAPF lockbit
#asahi-dev · 2021-10-27 06:47
marcanit's pretty dumb, the only thing I don't really understand is that mode field
#asahi-dev · 2021-10-27 06:43
marcansven: I looked a bit at DAPF: https://mrcn.st/p/sxJQcz7k
#asahi-dev · 2021-10-27 01:40
marcan(those were HID-without-the-descriptor)
#asahi-dev · 2021-10-27 01:40
marcanthis is bringing back memories of the Xbox (original) gamepads...
#asahi-dev · 2021-10-26 15:47
marcan*hid
#asahi-dev · 2021-10-26 15:47
marcanmaybe applespi should be hooking into the hod core and hid-apple instead
#asahi-dev · 2021-10-26 15:47
marcanI assume that's for the external keyboards?
#asahi-dev · 2021-10-26 15:47
marcansounds like a rework might be in order then
#asahi-dev · 2021-10-26 15:25
marcanthat sounds useful for linux too (I assume the linux driver doesn't do that yet?)
#asahi-dev · 2021-10-26 15:25
marcankettenis: ooh, nice
#asahi-dev · 2021-10-21 16:11
marcanthough in the end you'd probably end up with some CPU-looking things either way
#asahi-dev · 2021-10-21 16:11
marcanthough I *guess* you could state machine everything in principle
#asahi-dev · 2021-10-21 16:11
marcanI know most xHCI controllers are complex enough to need firmware
#asahi-dev · 2021-10-21 16:10
marcanI wonder though, if Apple had any visibility into this they would've probably insisted it be SRAM and part of their secureboot
#asahi-dev · 2021-10-21 16:09
marcan"this bluetooth dongle with half a megabyte of proprietary stack in ROM Respects Your Freedom!"
#asahi-dev · 2021-10-21 16:09
marcan"it's hardware!"
#asahi-dev · 2021-10-21 16:09
marcanbut hey, RMS doesn't count that either
#asahi-dev · 2021-10-21 16:09
marcanyeah, could be
#asahi-dev · 2021-10-21 16:08
marcanI don't think I've seen any indication of dynamically loaded firmware for those
#asahi-dev · 2021-10-21 16:06
marcandwc3 uses ARC?
#asahi-dev · 2021-10-21 16:06
marcanare those a thing?
#asahi-dev · 2021-10-21 16:06
marcanso we're up to 20 copros on the Max, at *least*
#asahi-dev · 2021-10-21 16:06
marcanthat adds another 5 v7-Ms :p
#asahi-dev · 2021-10-21 16:06
marcanthough that's not counting the DCP m3s
#asahi-dev · 2021-10-21 16:05
marcanthere's some cortex-m3s (ARMv7-M) and some chinooks (ARMv8-A).
#asahi-dev · 2021-10-21 16:05
marcanarnd: 2
#asahi-dev · 2021-10-21 12:20
marcankettenis: yeah, the SD is just pcie
#asahi-dev · 2021-10-21 09:48
marcanfor those keeping count, that's at least 15 coprocessors per chip now
#asahi-dev · 2021-10-21 09:47
marcantold you it was just going to be copied and pasted
#asahi-dev · 2021-10-21 09:47
marcanalyssa: dcpext[0-3]
#asahi-dev · 2021-10-20 10:54
marcannot sure if that's the AP interface but it sounds like it could be
#asahi-dev · 2021-10-20 10:54
marcanhttps://mrcn.st/p/QQy5O82I this kind of stuff
#asahi-dev · 2021-10-20 10:53
marcanseems to have a fairly high level interface with program submission, queues, prioritization

plus ›