#asahi-dev · 2022-01-16 06:54
marcanso you know how iBoot initializes a fake framebuffer at iPhone 5 resolution when there is no display, or now always on >12 on the Mini?#asahi-dev · 2022-01-16 04:26
marcannow I just need to swap...#asahi-dev · 2022-01-16 04:26
marcanok, modesetting works (I think)#asahi-dev · 2022-01-15 18:52
marcannight, hopefully I can wrap this up tomorrow (at least the prototype, but doing the proper m1n1 version shouldn't be that hard)#asahi-dev · 2022-01-15 18:52
marcanstill no video, probably need to work out the setvideomode thing#asahi-dev · 2022-01-15 18:52
marcanok, getting *somewhere* with the iBoot interface#asahi-dev · 2022-01-15 18:52
marcan> 02:0x50000000000000 (TYPE=0x5, INDEX=0x0)#asahi-dev · 2022-01-15 18:52
marcan[syslog] * [PIbootInterface.cpp:254]setPowerRequest#asahi-dev · 2022-01-15 18:52
marcan< 02:0x50000000000000#asahi-dev · 2022-01-15 04:36
marcanjannau: nah, iboot still talks to the other endpoints, and it needs to do that on the laptops anyway#asahi-dev · 2022-01-15 01:03
marcanso we're probably going to have to implement this EPIC thing in Linux too#asahi-dev · 2022-01-15 01:03
marcanI also found a lot of juicy low level commands in the other endpoints; this is, apparently, how you do things like configure audio modes, send InfoFrames, handle HDCP, DisplayPort training and configuration and link width, etc#asahi-dev · 2022-01-15 01:02
marcanand for the other endpoints there's like an extra ipcx header layer, but I *think* iBoot doesn't do that? need to look at that function again, I spent all my time figuring out what layer of the protocol stack it sat at#asahi-dev · 2022-01-15 01:01
marcan)#asahi-dev · 2022-01-15 01:01
marcan(mailbox -> ring buffers -> EPIC header -> sub header -> command header -> shared memory buffers containing commands#asahi-dev · 2022-01-15 01:00
marcanleave it to apple to require 5 protocol layers on top of a mailbox to *turn on the screen from the bootloader*...#asahi-dev · 2022-01-15 01:00
marcangoing to try writing a python client today#asahi-dev · 2022-01-15 01:00
marcaneither way last night I think I understood the IPC call stack for the iBoot/disp0 endpoint well enough#asahi-dev · 2022-01-15 00:59
marcanhence why it's a two-step process#asahi-dev · 2022-01-15 00:59
marcanjannau: you can't go to permissive mode in 12.x without being paired, but you can go into reduced mode#asahi-dev · 2022-01-15 00:33
marcanand yes, I did confirm that the API didn't change in 12.0 final#asahi-dev · 2022-01-15 00:32
marcanjust haven't gotten around to it yet#asahi-dev · 2022-01-15 00:32
marcanI'm going to add that to the installer since it's required to insulate us from the phone home requirement#asahi-dev · 2022-01-15 00:32
marcanand do a bunch of what startup disk does#asahi-dev · 2022-01-15 00:32
marcanbputil will *create* the boot policy for you#asahi-dev · 2022-01-15 00:32
marcan_jannau_: it should work with bputil -r (or whatever the reduced mode option was)#asahi-dev · 2022-01-11 05:12
marcansven: nice! yeah, I'll give it a spin soon, going to write a tracer for the EPIC endpoints first#asahi-dev · 2022-01-08 15:13
marcanbut this almost sounds like it could also crash on ACPI systems missing $whatever in the ACPI bits#asahi-dev · 2022-01-08 15:13
marcanthe !ACPI build just stubs out that entire function IIRC#asahi-dev · 2022-01-08 15:11
marcan(I'm actually not sure if my fix is correct, I have no idea what that ACPI typec stuff does... but hey, a null deref is a null deref)#asahi-dev · 2022-01-08 15:10
marcan:)#asahi-dev · 2022-01-08 15:09
marcanwhich I am now to compile test the ACPI broadcom stuff#asahi-dev · 2022-01-08 15:09
marcansven: also only happens if you actually build with ACPI#asahi-dev · 2022-01-08 15:09
marcanmaz: yeah, I ran into that just a bit ago#asahi-dev · 2022-01-08 13:57
marcanI'm not entirely sure, I think some are#asahi-dev · 2022-01-08 13:56
marcanalso don't ASC firmwares get to see the ADT anyway? I always had the feeling some props were for them#asahi-dev · 2022-01-08 13:56
marcansven: that makes sense#asahi-dev · 2022-01-08 13:56
marcanheh#asahi-dev · 2022-01-08 13:56
marcan~.#asahi-dev · 2022-01-08 13:48
marcanit wouldn't just be a byte blaster anyway, it has to listen to FIFO levels and such#asahi-dev · 2022-01-08 13:48
marcanthere's a bunch of strings like UART1 etc, I figure they go along with more info#asahi-dev · 2022-01-08 13:47
marcanyes#asahi-dev · 2022-01-08 13:47
marcanthe firmware has a ref to all the channels#asahi-dev · 2022-01-08 13:47
marcansven: nah, it's hardcoded#asahi-dev · 2022-01-08 13:47
marcanJamie[m]1: gpiola doesn't have the sample rate for normal traffic (and it's annoying to use compared to a proper tracer)#asahi-dev · 2022-01-08 13:36
marcanlgtm#asahi-dev · 2022-01-08 13:35
marcanwe'll still have the soc alt compatible as usual#asahi-dev · 2022-01-08 13:35
marcanyeah, the interface looks dumb enough to have never changed#asahi-dev · 2022-01-08 13:32
marcansounds good :)#asahi-dev · 2022-01-08 13:30
marcanmostly just because right now I expect to force push bits/ and asahi wholesale when I make changes, and also the DT stuff is separate anyway