#asahi-dev · 2022-04-06 00:18
rqou_sven: is gadget mode supposed to work with your atcphy code? when i connect a cable in such a way, i see atcphy attempting to switch to USB3 mode, the UDC driver loads, the linux gadget framework also loads, but the other machine doesn't see anything#asahi-dev · 2022-04-05 23:45
rqou_nametable[m]: going to guess: are you using the correct "paired" recovery image? you have to make the install you're trying to configure with bputil the default boot option before it will work#asahi-dev · 2022-04-05 23:08
rqou_jannau: "it will currently not work if you boot via u-boot (to be fixed very soon, probably tonight CEST)" <-- is this fixed yet?#asahi-dev · 2022-04-03 05:11
rqou_but the lowest-level iokit interface is undocumented afaict?#asahi-dev · 2022-04-03 05:11
rqou_eventually i might want to figure out how to work the lowest-level macos interface though#asahi-dev · 2022-04-03 05:10
rqou_i got it to encode one frame at least one particular way, which is enough to get started on the RE effort#asahi-dev · 2022-04-03 05:10
rqou_¯\_(ツ)_/¯ it's probably a ffmpeg problem#asahi-dev · 2022-04-03 05:08
rqou_this is with ffmpeg git as of this morning-ish (US pacific time)#asahi-dev · 2022-04-03 05:08
rqou_not working: replace yuv420p with bgra#asahi-dev · 2022-04-03 05:08
rqou_chadmed: working: ffmpeg -loglevel debug -y -r 60 -f image2 -s 1920x1080 -i test.png -vcodec prores_videotoolbox -pix_fmt yuv420p test.mov#asahi-dev · 2022-04-02 21:18
rqou_ok, apparently -pix_fmt yuv420p solves it (-pix_fmt bgra doesn't work for reasons i don't understand)#asahi-dev · 2022-04-02 21:03
rqou_uhh, how do i export something from imovie?#asahi-dev · 2022-04-02 20:58
rqou_does anybody know how i can actually get the m1 max prores hardware to be used? attempting to use ffmpeg -vcodec prores_videotoolbox just gives a very unhelpful "Error while opening encoder for output stream #0:0"#asahi-dev · 2022-03-29 04:41
rqou_do we know anything about what DART tunables actually do?#asahi-dev · 2022-03-29 00:14
rqou_anyways, is this a correct/accurate diagram of how the DART works? https://imgur.com/a/XoGqXs6#asahi-dev · 2022-03-28 23:38
rqou_and what does REMAP do?#asahi-dev · 2022-03-28 23:38
rqou_what's DAPF?#asahi-dev · 2022-03-28 23:33
rqou_i thought that didn't work? otherwise why would there be issues with 4k kernels?#asahi-dev · 2022-03-28 23:31
rqou_how does it work?#asahi-dev · 2022-03-28 23:31
rqou_follow-up question: what does it do?#asahi-dev · 2022-03-28 23:24
rqou_what is the DART SP_START/SP_END?#asahi-dev · 2022-03-28 04:31
rqou_there's at least 3 major generations of the jpeg block#asahi-dev · 2022-03-28 04:31
rqou_also the jpeg block isn't "super" old even if it's old#asahi-dev · 2022-03-28 04:30
rqou_eh, it's not strictly needed, but i try to document how the hardware actually behaves rather than just looking at what macos can do via its drivers#asahi-dev · 2022-03-28 04:29
rqou_but i have no idea, and the codepath for it uses a pile of extra registers, and i was hoping that somebody who knew graphics better could take a poke at it at some point#asahi-dev · 2022-03-28 04:29
rqou_i would guess something more s3tc-like#asahi-dev · 2022-03-28 04:17
rqou_what is the internal format though? how is it compressed? why does it get its own special handling? not being a GPU/graphics/video person, i have no idea#asahi-dev · 2022-03-28 04:17
rqou_yeah, that's the only public reference i found#asahi-dev · 2022-03-28 04:13
rqou_i.e. not the registers that are used to encode normal 4:2:0 ycbcr (kCVPixelFormatType_420YpCbCr8BiPlanarFullRange)#asahi-dev · 2022-03-28 04:12
rqou_it even gets its own entire separate block of registers#asahi-dev · 2022-03-28 04:11
rqou_the only reference i can find to that is an offhand mention in webkit#asahi-dev · 2022-03-28 04:10
rqou_in any case, the jpeg driver has special handling for the '&8f0' fourcc (and several others) that causes something completely different to happen#asahi-dev · 2022-03-28 04:09
rqou_"PAL" in the webkit context probably just means platform abstraction layer#asahi-dev · 2022-03-28 04:08
rqou_it's definitely not just 8-bit ycbcr since it has its own entire separate codepath in the jpeg driver#asahi-dev · 2022-03-28 03:56
rqou_suddenly reminded of an unrelated question: alyssa do you have any idea what a kCVPixelFormatType_AGX_420YpCbCr8BiPlanarFullRange might be? it's a "compressed" image format that the JPEG encoder for some reason has special support for, but i don't know much about what it actually is#asahi-dev · 2022-03-28 03:54
rqou_yeah#asahi-dev · 2022-03-28 03:52
rqou_it's interesting how apple keeps upgrading these "legacy" hardware blocks#asahi-dev · 2022-03-28 03:51
rqou_doing DART+scaler might also make sense#asahi-dev · 2022-03-28 03:47
rqou_according to the m1n1 experiment the only difference between the t8020 and t6000 DART is the PTEs though, so the register dump might not be enough#asahi-dev · 2022-03-28 03:45
rqou_IOMMUs shouldn't be that complicated though#asahi-dev · 2022-03-28 03:45
rqou_yeah, i'm definitely not super familiar with acronym soup#asahi-dev · 2022-03-28 03:42
rqou_i wouldn't want to be the one who had to verify whether or not i guessed right though#asahi-dev · 2022-03-28 03:42
rqou_it Should(TM) be possible to figure out the DART just by guessing?#asahi-dev · 2022-03-28 03:40
rqou_oh, so it is definitely different#asahi-dev · 2022-03-28 03:07
rqou_alyssa: i'm aware. the m1 max adt has dart,t8110 for dart-apciec{0,1,2} which i assume are usb4/tb (and not e.g. wifi/sdxc)#asahi-dev · 2022-03-28 02:37
rqou_oh yeah, AVD on the M1 Max also seems to use dart,t8110 (but not AVE?)#asahi-dev · 2022-03-28 02:36
rqou_i've never really worked with macos at all#asahi-dev · 2022-03-28 02:36
rqou_i would first want to figure out how to even drive the prores block from macos userspace#asahi-dev · 2022-03-28 02:35
rqou_i haven't looked at the behavior / register interface to see if it's any different yet#asahi-dev · 2022-03-28 02:28
rqou_the prores, scaler, and usb4(?) all use the dart,t8110