#asahi-dev · 2021-01-31 10:51
marcanI have no reason to rush things, this isn't a race#asahi-dev · 2021-01-31 10:50
marcanI am getting the core platform support clean first#asahi-dev · 2021-01-31 10:50
marcanGlanzmann: I am not merging corellium drivers right now#asahi-dev · 2021-01-31 10:50
marcanBluerise: leave firmware updates to macos :)#asahi-dev · 2021-01-31 10:18
marcanthat should be done today#asahi-dev · 2021-01-31 10:18
marcanright now serial is required#asahi-dev · 2021-01-31 10:18
marcananyway, m1n1 will be usable for normal kernel boot soon, as soon as I get SMP up I'll write in appended payload support#asahi-dev · 2021-01-31 10:17
marcanthat is a recipe for a bad codepath/script gone rogue bricking machines#asahi-dev · 2021-01-31 10:17
marcan... I have no idea why corellium actually declare the SPI flash in their device tree, unless they have to read anything from it (which I doubt, iBoot should put everything necessary in the device tree) we are definitely *not* doing that#asahi-dev · 2021-01-31 10:16
marcanI was going to say there is no way to brick these machines as long as you don't write to NOR flash#asahi-dev · 2021-01-31 10:15
marcanoh, they left#asahi-dev · 2021-01-31 05:40
marcanbut there will be circuit design streams soonish#asahi-dev · 2021-01-31 05:40
marcandavidrysk[m]: I don't really plan them, depends on what I'm doing :)#asahi-dev · 2021-01-31 05:27
marcanand I think those can be used for IRQ injection maybe?#asahi-dev · 2021-01-31 05:27
marcanI think that register got introduced with cyclone and then the name stuck#asahi-dev · 2021-01-31 05:27
marcanso a lot of this stuff is not completely obvious#asahi-dev · 2021-01-31 05:27
marcanI had set/clear switched :)#asahi-dev · 2021-01-31 05:27
marcanI only noticed after applying it after the C code ram and noticing it was undoing everything#asahi-dev · 2021-01-31 05:26
marcanand it still mostly worked :)#asahi-dev · 2021-01-31 05:26
marcanalso of note, chickens.py used to set all the chicken bits backwards#asahi-dev · 2021-01-31 05:26
marcanin some cases, probably#asahi-dev · 2021-01-31 05:26
marcaner, Apple#asahi-dev · 2021-01-31 05:25
marcanprobably, anyway#asahi-dev · 2021-01-31 05:25
marcanI'd say ARM have done a much better job of making those chicken bits ahead of time instead of hideous workarounds the kernel needs to apply#asahi-dev · 2021-01-31 05:25
marcanwell, judging by the pile of "work around cortex-whatever" errata fixes in the linux kernel...#asahi-dev · 2021-01-31 05:25
marcan+y#asahi-dev · 2021-01-31 05:24
marcanso we get to see deep CPU design knobs that we usuall don't#asahi-dev · 2021-01-31 05:24
marcanthe fun thing here is Apple delegates fixing all this stuff to the OS kernel *and* documents the bit descriptions#asahi-dev · 2021-01-31 05:24
marcaneveryone puts a zillion chicken bits in their cores#asahi-dev · 2021-01-31 05:24
marcanIntel and AMD just hide it behind microcode blobs (that contain startup sequences that just poke chicken bits, among other things) and proprietary bringup blobs (AGESA etc)#asahi-dev · 2021-01-31 05:24
marcanthe thing is all CPUs are like this#asahi-dev · 2021-01-31 05:23
marcanfor Linux using standard stuff we do need to know the specific requirements though#asahi-dev · 2021-01-31 05:22
marcanthis is low level enough that I don't really mind the shotgun approach to barriers, figuring out the details with all of these system and even undocumented MSRs is not worth it#asahi-dev · 2021-01-31 05:22
marcanthe wonders of speculation#asahi-dev · 2021-01-31 05:22
marcanmodwizcode: I want to make sure that speculation doesn't mess up ordering of the L2 error status registers; before I added the one after that sometimes it was already SErroring before it *really* returned from the page fault#asahi-dev · 2021-01-31 05:10
marcanthey just *call* the most significant bit, on the left, bit 0#asahi-dev · 2021-01-31 05:10
marcanthey order bits from least significant bit on the right#asahi-dev · 2021-01-31 05:09
marcankrbtgt: no they don't#asahi-dev · 2021-01-31 05:09
marcan:p#asahi-dev · 2021-01-31 05:09
marcanbut everything *else* is sane#asahi-dev · 2021-01-31 05:09
marcanoh yeah, big endian land#asahi-dev · 2021-01-31 05:08
marcanthe incomprehensible stuff is things like ARM's hypervisor and MMU control registers#asahi-dev · 2021-01-31 05:08
marcanbut it's just a pile of enables/disables/knobs for that stuff#asahi-dev · 2021-01-31 05:08
marcanI mean the chicken bits are deep CPU feature stuff, so of course nobody knows what those really do#asahi-dev · 2021-01-31 05:08
marcanApple's stuff is actually much simpler to understand#asahi-dev · 2021-01-31 05:08
marcanyeah, we're talking about the ARM stuff#asahi-dev · 2021-01-31 05:06
marcanbut stuff like the cache ops etc get pretty ridiculous#asahi-dev · 2021-01-31 05:06
marcanthe core stuff I mean#asahi-dev · 2021-01-31 05:06
marcan32 and 64#asahi-dev · 2021-01-31 05:06
marcanI'm fine with arm asm