#
✕ nick:marcan
#asahi · 2021-07-29 00:14
marcanso it's literally an IOKit driver split down the middle, one side in firmware
#asahi · 2021-07-29 00:13
marcanin fact, uh, I've been ranting about this recently but the way they did their display controller firmware is to just take their driver and move *half* of the classes to firmware, then build an RPC mechanism that lets them call back methods on the other side, in both directions, with multiple execution threads even
#asahi · 2021-07-29 00:13
marcanhalf the firmwares are part of the OS boot bundle, so yes, they don't care about stability
#asahi · 2021-07-29 00:12
marcanbasically Apple designed the thing for dual-boot at *their* level and we have to use it if we want to keep things sane :)
#asahi · 2021-07-29 00:11
marcananyway, the dual boot thing will start mattering soon, among other things because I'm going to be requiring people to use specific macOS versions as a base (for firmware ABI reasons; it's unstable) and because the SEP will be very unhappy if two OSes try to use the security stuff in one context
#asahi · 2021-07-29 00:11
marcaneventually there will be some curl|sh thing that does everything for you :)
#asahi · 2021-07-29 00:10
marcanright *now* it doesn't matter much and you can do what pipcet[m] says and just stuff m1n1 on top of a single macOS install
#asahi · 2021-07-29 00:10
marcanand the reason for that is that dual-booting is a low level feature on these machines; you need multiple "native" macOS installs (from the POV of the machine) to do it sanely
#asahi · 2021-07-29 00:09
marcanthe dev guide gives you a dual boot environment
#asahi · 2021-07-29 00:08
marcanthe main purpose of the dev guide is to get people to install a second macos partition to replace with linux; our installer will eventually do that without the macos step, but for now this is how it goes
#asahi · 2021-07-29 00:08
marcanMTecknology: but yeah, right now the recommended thing to do is follow the dev guide to get things installed
#asahi · 2021-07-29 00:07
marcanI just woke up
#asahi · 2021-07-29 00:06
marcanMTecknology: you probably want to leave macos on there for updates, we're going to recommend dual-boot for a long while until we figure out a way to do firmware updates from linux
#asahi · 2021-07-28 17:47
marcan:<
#asahi · 2021-07-28 17:45
marcanhope I can stream tomorrow
#asahi · 2021-07-28 17:45
marcan(I'll let alyssa vouch :p)
#asahi · 2021-07-28 17:45
marcanyesterday and today have been, uh, days of unexpected things :(
#asahi · 2021-07-28 17:45
marcananyway, /me -> sleep
#asahi · 2021-07-28 17:44
marcanif so at least you shouldn't be able to damage it too badly.... hopefully
#asahi · 2021-07-28 17:44
marcanOTOH the flash on the other end is still PCIe, and possibly NVMe?
#asahi · 2021-07-28 17:43
marcanANS... I'd be more scared of
#asahi · 2021-07-28 17:43
marcanthen again the m1n1 boot cycle is ~7 seconds which isn't *that* bad
#asahi · 2021-07-28 17:43
marcanI do hope I can reset DCP, because I sure expect to crash and confuse it often
#asahi · 2021-07-28 17:42
marcanbut that's not how it's done on M1
#asahi · 2021-07-28 17:42
marcanthere's also a whole display driver that *doesn't* use DCP
#asahi · 2021-07-28 17:42
marcanobviously they *used* to load firmwares in drivers
#asahi · 2021-07-28 17:42
marcanthere's lots of such dead code
#asahi · 2021-07-28 17:42
marcanyeah that
#asahi · 2021-07-28 17:41
marcan(unless by "load" you mean "launch")
#asahi · 2021-07-28 17:41
marcanit's on the preload list
#asahi · 2021-07-28 17:41
marcanwhere do you see that?
#asahi · 2021-07-28 17:41
marcanalyssa: XNU does not load AGX firmware as far as I know
#asahi · 2021-07-28 17:41
marcanbut I can't claim to have tried
#asahi · 2021-07-28 17:41
marcanI think the intent is that iBoot locks them in RAM, so we're not supposed to be able to modify them
#asahi · 2021-07-28 17:41
marcanbut we can't change them on disk
#asahi · 2021-07-28 17:40
marcanthey are not verified by the copros themselves
#asahi · 2021-07-28 17:40
marcanalyssa: the firmwares are signed at the package level
#asahi · 2021-07-28 17:34
marcanone is that, one is uart, and I think it can sometimes go to SPI too?
#asahi · 2021-07-28 17:34
marcansyslog goes to like three places
#asahi · 2021-07-28 17:34
marcanthere's also the whole error reporting thing, right?
#asahi · 2021-07-28 17:33
marcanI think I saw some of that
#asahi · 2021-07-28 17:33
marcanso that thing must have a way of at least doing glitchess firmware reloads for iBoot framebuffer states
#asahi · 2021-07-28 17:33
marcanthey have to
#asahi · 2021-07-28 17:33
marcanone thing I'm curious about is how they do DCP handover from iBoot1
#asahi · 2021-07-28 17:32
marcanave: whoops :)
#asahi · 2021-07-28 17:32
marcanso it doesn't have to match macOS versions, so not part of iBoot2 blobs
#asahi · 2021-07-28 17:32
marcansven: ANS is missing because it would be loaded from the iBoot1 blob and, unlike most everything else, actually has a stable ABI
#asahi · 2021-07-28 17:31
marcan(there's two DCPs, one for internal panel, one for DP/TB attached)
#asahi · 2021-07-28 17:31
marcanand yes the firmware is a copy
#asahi · 2021-07-28 17:31
marcanDCP2 is dcpext

plus ›