#
#asahi-re · 2022-03-28 09:28
rqou_actually getting it to work would require me to get around to understanding both prores a lot better as well as the different DART
#asahi-re · 2022-03-28 09:27
rqou_there's some kind of ringbuffer that descriptors are added to, and then stuff happens
#asahi-re · 2022-03-28 09:27
rqou_took a quick look at prores and it seems pretty simple in terms of interfacing
#asahi-re · 2022-03-28 06:16
rqou_yeah this pile of "random misc" IP is _very_ complicated
#asahi-re · 2022-03-28 05:09
Jamie[m]1update: who knew scaling could be so complicated lmao
#asahi-re · 2022-03-28 02:45
nicolas17but we do have A14 iBoot, would that give any hardware clues? https://www.theiphonewiki.com/wiki/SkySeed_19A5325f_(iPhone13,2)
#asahi-re · 2022-03-28 02:45
nicolas17so iBoot is encrypted, keys to decrypt it are not available for M1, and the unencrypted vmapple iBoot isn't useful because it doesn't deal with hardware stuff
#asahi-re · 2022-03-25 20:12
kode54I'm stuck with apps either deciding to use the low frame rate high resolution raw video, or apps like Skype deciding to use the highest raw that will do 30fps
#asahi-re · 2022-03-25 20:12
kode5412.3 seems to have broken webcams that use MJPEG for high resolution / frame rate video
#asahi-re · 2022-03-25 20:12
kode54which reminds me
#asahi-re · 2022-03-25 11:06
chadmedunless it really uses so much less power just decoding the MJPEG stream from the webcam that it makes sense?
#asahi-re · 2022-03-25 11:06
chadmedyou have to wonder why they bother continuing to integrate it at this point, it seems a rather inflexible little bit of silicon
#asahi-re · 2022-03-25 11:05
chadmedif it supports 10-bit ARGB as per your notes then it seems apple have extensively modified it which would fit your guess
#asahi-re · 2022-03-25 10:51
rqou_my wild guess is that the registers below 0x1000 are apple's and the registers above 0x1000 are the licensed ip core
#asahi-re · 2022-03-25 10:50
rqou_if i were to make a wild guess, i would actually guess that all of the pixel format / subsampling / colorspace / etc. stuff is apple's and only the DCT/huffman/etc. bits are licensed
#asahi-re · 2022-03-25 10:49
rqou_there's almost certainly apple customizations/additions to it though, since the driver mentions things like support for "AGX" compressed/tiled/something input formats
#asahi-re · 2022-03-25 10:32
Jamie[m]1haha
#asahi-re · 2022-03-25 10:25
rqou_no register map though
#asahi-re · 2022-03-25 10:25
rqou_which has a product brief here (https://www.shikino.co.jp/eng/products/JPEG-IP_Leaflet_Ver1.14E_HP.pdf)
#asahi-re · 2022-03-25 10:25
rqou_if you read starting from offset +0x10e0 to +0x10f4 you get ascii text 'SHIKINO KJN-7GI 0001'
#asahi-re · 2022-03-25 10:24
rqou_oh lmao i just figured out where the JPEG IP comes from
#asahi-re · 2022-03-25 08:35
marcanbasically drop code that is not necessary to make the hardware work, unless there is good reason to suspect it might be necessary in some cases
#asahi-re · 2022-03-25 08:34
marcanyou could try using an asm snippet to race the write/read as fast as possible, if you can't get it to ever fail the loop condition on the first readback, just drop the whole loop
#asahi-re · 2022-03-25 08:33
marcanmight even be a workaround for broken older hardware
#asahi-re · 2022-03-25 08:33
marcanre the RST_INTERVAL thing, if the HV trace shows that condition being immediately met, it could just be something we can ignore without the poll
#asahi-re · 2022-03-25 08:26
marcansame thing I do when I end up looking at code
#asahi-re · 2022-03-25 08:26
marcanyeah, looks like you did a good job then :)
#asahi-re · 2022-03-25 08:26
rqou_the driver is pretty dumb, but i also deliberately wrote up the docs this way to be careful about accidentally copying over stuff
#asahi-re · 2022-03-25 08:25
marcan(which might just be because this driver is just extra dumb in how it sets up the hardware)
#asahi-re · 2022-03-25 08:25
marcanyou've basically written hardware docs with this, it's practically cleanroom already this way the way it ended up
#asahi-re · 2022-03-25 08:24
marcanbut the whole point of these m1n1 scripts is to serve as a cleanroom-ish firewall, and given the state this one's in, I'm perfectly happy with someone else taking it and writing the Linux version
#asahi-re · 2022-03-25 08:24
marcananother story is writing the Linux driver, since that would depend on trusting you not to "accidentally" carry over more than what is actually written down in that script per se; that I cannot guarantee yet (though you do seem to know what you're doing)
#asahi-re · 2022-03-25 08:22
marcanbut if you're telling me it's RE'd and I look at it and it's so dumbed down there's nothing copyrightable left... then we're good
#asahi-re · 2022-03-25 08:21
marcanas I said in the policy, the rule is "cleanroom if I don't know you" by default, especially because I *absolutely* don't want anyone sneaking in RE'd code without declaring it as such, that would get us in a ton of trouble
#asahi-re · 2022-03-25 08:20
rqou_kk
#asahi-re · 2022-03-25 08:20
marcanI'd say so
#asahi-re · 2022-03-25 08:20
rqou_hmm, so i can just clean up the script to be less of a mess, flesh out the docs a bit, and then submit a m1n1 PR with an experiment?
#asahi-re · 2022-03-25 08:19
marcanwhat becomes a problem is when you have nontrivial algorithms
#asahi-re · 2022-03-25 08:19
marcanI've heard a lawyer's opinion that register names are not copyrightable either, though I prefer to change them anyway because usually the "official" names are terrible, but basically I'm not worried about looking at and rewriting register names
#asahi-re · 2022-03-25 08:18
marcanespecially if you're going through python (which is one very good reason why I prototype in m1n1) since that wipes out any copyritability of language-specific details
#asahi-re · 2022-03-25 08:18
marcanthe unwritten rules are that MMIO traces are fair game, and facts about how the hardware works are not copyrightable, nor are trivial mathematical expressions that are the one obvious way to implement a particular function (like those you have in there) or stuff like a for loop to clear an array
#asahi-re · 2022-03-25 08:16
rqou_yeah, i'm very cognizant of intellectual property laws and try to be careful
#asahi-re · 2022-03-25 08:16
marcanbasically though, I'm very much not worried about what you have in that dump
#asahi-re · 2022-03-25 08:16
marcanbut not strictly required
#asahi-re · 2022-03-25 08:15
marcanright, and working those things out is much preferred
#asahi-re · 2022-03-25 08:15
rqou_e.g. the hardware can encode any permutation of RGBA values afaict, but the driver can only do RGBA or BGRA
#asahi-re · 2022-03-25 08:15
marcanit's what I do too
#asahi-re · 2022-03-25 08:15
marcanyeah, that's a very good thing
#asahi-re · 2022-03-25 08:15
rqou_i could do that. there are formats that the hardware supports that the driver doesn't though, which i've figured out using guesswork
#asahi-re · 2022-03-25 08:14
marcani.e. just document for each register what values / fields get set for specific formats

plus ›