#asahi-re · 2022-03-25 08:10
rqou_yeah i have no idea what param1 does either#asahi-re · 2022-03-25 08:09
rqou_reset_block and set_default_regs are both 100% copypasted driver RE#asahi-re · 2022-03-25 08:08
rqou_yeah i have no idea why that happens. it's indeed ripped from the driver directly#asahi-re · 2022-03-20 11:10
rqou_sleep time#asahi-re · 2022-03-20 11:10
rqou_i found the register that controls the output alpha value (0x158) and the register that makes the output ARGB instead of BGRA (0x154)#asahi-re · 2022-03-20 10:36
rqou_idk, haven't looked at encoding whatsoever#asahi-re · 2022-03-20 10:36
rqou_iosurface is incredibly confusing#asahi-re · 2022-03-20 10:36
rqou_not sure if diving back into the driver re for a bit is useful or simply frustrating#asahi-re · 2022-03-20 10:34
rqou_i assume it isn't used for decoding, only encoding#asahi-re · 2022-03-20 10:34
rqou_yes#asahi-re · 2022-03-20 10:26
rqou_also probably do a sleep#asahi-re · 2022-03-20 10:25
rqou_ok, i'm going to see if i can figure out how to give it an image of different sizes#asahi-re · 2022-03-20 10:25
rqou_lmao#asahi-re · 2022-03-20 10:22
rqou_uh, i wonder what the last two entries do?#asahi-re · 2022-03-20 10:22
rqou_awesome, thanks#asahi-re · 2022-03-20 10:11
rqou_but the driver refers to it as a matrix multiplication... thingy#asahi-re · 2022-03-20 10:11
rqou_possibly not even a matrix#asahi-re · 2022-03-20 10:11
rqou_a matrix with 11 entries of 4 bytes each#asahi-re · 2022-03-20 10:08
rqou_this is a matrix for... something else#asahi-re · 2022-03-20 10:08
rqou_yeah, that's in a separate block of registers#asahi-re · 2022-03-20 10:03
rqou_btw if anybody is deeply familiar with jpeg and can tell me why there's a 11-entry matrix involved in the process, that would be appreciated#asahi-re · 2022-03-20 09:47
rqou_(this one https://gist.github.com/alyssarosenzweig/7d8099cdb227d2de0a9e83b7de34c7f8)#asahi-re · 2022-03-20 09:46
rqou_which is itself hardcoded to these parameters#asahi-re · 2022-03-20 09:46
rqou_i _barely_ understand how to drive this hardware and basically just duplicated exactly what happens when you run alyssa's poc#asahi-re · 2022-03-20 09:46
rqou_it currently gives back raw rgb, but there should be other options as well#asahi-re · 2022-03-20 09:45
rqou_aka exactly what alyssa's iosurface poc was hardcoded for#asahi-re · 2022-03-20 09:44
rqou_works only with a 4:2:0 jpeg that is 120x80 in size#asahi-re · 2022-03-20 09:41
rqou_success! (note contains reverse engineered macos driver code) https://gist.github.com/rqou/2dafd40cfe0362cc84c3ee26c68b2b36#asahi-re · 2022-03-20 09:07
rqou_i tried copying the function from audio_capture.py which... doesn't do that#asahi-re · 2022-03-20 09:06
rqou_oops no, that fixes it#asahi-re · 2022-03-20 09:00
rqou_hmm, the dart iomap function seems to be crashing m1n1 when i try to run it in the shell?#asahi-re · 2022-03-20 05:09
rqou_finally figured out how to use the mmio tracing framework. is there an example of how to use _reloadcls? i can't seem to figure out how that's intended to be used#asahi-re · 2022-03-20 04:14
rqou_ah, figured it out. need to turn on the dart with pmgr_adt_clocks_enable first#asahi-re · 2022-03-20 03:59
rqou_i guess i'm clearly struggling trying to figure out how the m1n1 tooling works, since addresses that i can trace the macos kernel accessing crash whenever i try to read32 them#asahi-re · 2022-03-20 03:57
rqou_tracing with trace_device works, but i'm trying to understand how to create a more complicated tracing tool#asahi-re · 2022-03-20 03:45
rqou_hmm, trying to create a DARTTracer for the jpeg dart crashes m1n1#asahi-re · 2022-03-19 21:25
rqou_oh yeah, maybe also figure out the typec efuse for m1 max while i'm at it? although i do not have any of the context on that#asahi-re · 2022-03-19 21:11
rqou_Eventually(TM) i would like to look into ANE#asahi-re · 2022-03-19 21:11
rqou_i'm still trying to get my feet wet and figure out all the tooling, so currently i'm looking at the JPEG block (which i assume should be simple and straightforward)#asahi-re · 2022-03-19 18:49
rqou_jannau: thanks, but i'll probably just stick to 12.1 for now because i don't want to have to reinstall macos *again*#asahi-re · 2022-03-19 10:27
rqou_i've finally gotten this to work (booting 12.1 via m1n1 hypervisor). going to sleep now, i will probably have more questions on how to get started with the tracing infrastructure in the morning#asahi-re · 2022-03-19 09:25
rqou_i have a m1 max machine with enough space, it's just that the installer is being dumb rn and failing#asahi-re · 2022-03-19 08:04
rqou_+1, thanks#asahi-re · 2022-03-19 08:01
rqou_ah well, what's the procedure for installing an older version to trace?#asahi-re · 2022-03-19 07:59
rqou_python command: python proxyclient/tools/run_guest.py blob/release-kernel.macho -- "debug=0x14e serial=3 apcie=0xfffffffe wdt=-1"#asahi-re · 2022-03-19 07:58
rqou_panic: https://gist.github.com/rqou/d20f22af61cd401169093b0a21903cdc#asahi-re · 2022-03-19 07:58
rqou_hi, trying to setup hypervisor tracing of macos 12.3 on a m1 max and getting a kernel panic with both release and development kernels. what am i doing wrong?