#asahi-dev · 2022-01-18 12:55
marcanyou can use optional for that#asahi-dev · 2022-01-18 12:55
marcanright#asahi-dev · 2022-01-18 12:54
marcanwhich is after the sub header#asahi-dev · 2022-01-18 12:54
marcancookies are in the command header#asahi-dev · 2022-01-18 12:54
marcanmight be best to ignore it#asahi-dev · 2022-01-18 12:54
marcanI made that up, I didn't see the code that checks it if there isone#asahi-dev · 2022-01-18 12:54
marcanI think that TYPE_ stuff might be BS#asahi-dev · 2022-01-18 12:54
marcantxcookie/rxcookie not existing is expected, that is what I saw from REing the firmware#asahi-dev · 2022-01-18 12:53
marcansven: version=3 on 12.x just works like version=4#asahi-dev · 2022-01-18 11:23
marcansven: can you trace it?#asahi-dev · 2022-01-18 05:32
marcanDCP supports v3-v4#asahi-dev · 2022-01-18 05:32
marcanI think v4 just added cookie support, but the iboot protocol doesn't use that, so there's actually a good chance iBoot itself uses v3 even while macOS uses v4#asahi-dev · 2022-01-18 02:43
marcaner sorry, that's from the cmd structure, so maybe actually it just works in <12 with that?#asahi-dev · 2022-01-18 02:42
marcanwould be nice to know if it works on <12 with that#asahi-dev · 2022-01-18 02:42
marcanfrom the sub structure#asahi-dev · 2022-01-18 02:42
marcan u8 txcookie;#asahi-dev · 2022-01-18 02:42
marcan u8 rxcookie;#asahi-dev · 2022-01-18 02:42
marcanif it doesn't, try removing:#asahi-dev · 2022-01-18 02:42
marcansven: fwiw just setting msg.sub.version = 3; works on the new firmware, but I'm not sure if that's just because their backwards compat is broken#asahi-dev · 2022-01-18 02:39
marcanjevinskie[m]: because the hypervisor stuff does not attempt to save/restore FP regs on every context switch, and in general we don't want to have to deal with ABI issues around them in experiments#asahi-dev · 2022-01-17 13:20
marcanthe OS one can randomly change its ABI entirely with macOS releases#asahi-dev · 2022-01-17 13:20
marcankettenis: at least the iBoot interface is stable-ish, I think. at least it looks that way.#asahi-dev · 2022-01-17 13:07
marcanand it's more complex marshalling including nested json-like structures in two different binary serializations#asahi-dev · 2022-01-17 13:06
marcankettenis: the DCP OS interface uses nested callback chains and requires a lot more back and forth to do the same thing#asahi-dev · 2022-01-17 02:06
marcanwhich would explain it failing on a bunch of screens#asahi-dev · 2022-01-17 02:06
marcanfrom those reports I'm kind of getting the feeling the iBoot mode selection is "pick from a list of hardcoded modes or bail"#asahi-dev · 2022-01-16 20:08
marcaneh, could be, but is the DCP upscaling going to be that much better than the display's for a bootloader?#asahi-dev · 2022-01-16 20:04
marcanconsidering m1n1 is memcpying the framebuffer around for every log, we probably don't#asahi-dev · 2022-01-16 20:03
marcanfeel free to test 4K, but whatever you do needs to not do that on my card :p#asahi-dev · 2022-01-16 20:02
marcanat least on my crappy capture card it brings up virtual 4K modes and there is no indication that they're virtual in this interface#asahi-dev · 2022-01-16 20:02
marcanbecause I can't test larger :p#asahi-dev · 2022-01-16 20:01
marcanor rather demoting#asahi-dev · 2022-01-16 20:01
marcanit's excluding >60Hz and >1080p#asahi-dev · 2022-01-16 20:01
marcanit's not#asahi-dev · 2022-01-16 14:00
marcan(different hardware)#asahi-dev · 2022-01-16 13:59
marcanactual audio streaming is some other story#asahi-dev · 2022-01-16 13:59
marcanthe infoframe stuff is EPIC#asahi-dev · 2022-01-16 13:59
marcannot sure what backs the audio though#asahi-dev · 2022-01-16 13:59
marcanI'm streaming a m1n1 EPIC implementation right now...#asahi-dev · 2022-01-16 13:59
marcanalyssa: EPIC isn't that hard, but it's just completely different from the existing DCP stuff#asahi-dev · 2022-01-16 13:52
marcanbut has gaps, like the mode structure sucks and is missing lots of details#asahi-dev · 2022-01-16 13:52
marcanit's... surprisingly complete#asahi-dev · 2022-01-16 13:52
marcanalyssa: it also supports getting and setting properties, brightness, color matrix#asahi-dev · 2022-01-16 13:51
marcanalyssa: *shrug*#asahi-dev · 2022-01-16 13:45
marcanwhat I don't know is why it's larger than the actual dimensions in the bootargs *shrug*#asahi-dev · 2022-01-16 13:44
marcanalyssa: dummy fb#asahi-dev · 2022-01-16 07:01
marcanI think it's oversized enough to handle 1080p#asahi-dev · 2022-01-16 07:01
marcanI think I can reuse the existing framebuffer allocation/IOMMU mapping, if I can find the IOVA... I'll probably have to walk the DART page tables for that#asahi-dev · 2022-01-16 06:55
marcan(yes, I got it to work)#asahi-dev · 2022-01-16 06:54
marcanhttps://marcan.st/transf/m1n1_iphone.png this is apparently what ends up on the screen when that happens :-)