2022-03-25
00:03nicolas17 has quit [Quit: switching computers again]
00:08nicolas17 has joined #asahi-re
00:13amarioguy has quit [Ping timeout: 480 seconds]
00:27yuyichao_ has joined #asahi-re
00:38marcan has quit [Server closed connection]
00:38marcan has joined #asahi-re
00:51chadmed has joined #asahi-re
01:08amarioguy has joined #asahi-re
01:17sven has quit [Server closed connection]
01:17sven has joined #asahi-re
01:32amarioguy has quit [Ping timeout: 480 seconds]
01:33user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:36Retr0id has quit [Server closed connection]
01:36Retr0id has joined #asahi-re
02:13kit_ty_kate has quit [Server closed connection]
02:13kit_ty_kate has joined #asahi-re
02:30arisu has quit [Server closed connection]
02:30arisu has joined #asahi-re
02:51user982492 has joined #asahi-re
02:52riker77_ has joined #asahi-re
02:54riker77 has quit [Ping timeout: 480 seconds]
02:54riker77_ is now known as riker77
03:01sajattack[m] has quit [Server closed connection]
03:01sajattack[m] has joined #asahi-re
03:22PhilippvK has joined #asahi-re
03:25Deewiant has quit [Server closed connection]
03:25Deewiant has joined #asahi-re
03:26phiologe has quit [Ping timeout: 480 seconds]
04:00doggkruse has joined #asahi-re
04:12blazra[m] has quit [Server closed connection]
04:13blazra[m] has joined #asahi-re
04:23Amey has quit [Server closed connection]
04:23Amey has joined #asahi-re
05:43user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
05:46user982492 has joined #asahi-re
05:46user982492 has quit []
05:57nicolas17 has quit [Ping timeout: 480 seconds]
06:07doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
06:28user982492 has joined #asahi-re
07:12the_lanetly_052 has joined #asahi-re
07:19user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:49chadmed has quit [Quit: Konversation terminated!]
07:50chadmed has joined #asahi-re
08:08marcanrqou_: the only part that bugs me is why RST_INTERVAL is treated as some kind of reset bit/polled
08:10ChaosPrincess has joined #asahi-re
08:10marcanI'm pragmatic about this, if you lower RE'd code to a list of register pokes there's nothing copyrightable left, you could've done the same thing by just copying and pasting a trace (which I've done before too)
08:12marcanI've done that before too, looked at a bit of a driver to see what it does in what order and why and then just do the same thing, though I usually prefer to start from the trace and *then* fill in gaps that are hard to figure out from the driver, it's safer
08:12rqou_i know, but you would need to trace all the permutations of jpeg chroma subsampling mode and output surface chroma subsampling mode
08:12marcanactually the last time I had to really blindly do it with a driver was for WiFi on T2s... there's some nonsense for those chips and I don't have a HV setup for those
08:12rqou_the driver has a bunch of tables containing magic numbers to map from one format to another
08:13rqou_i started with an MMIO trace, dove into the driver to fill in a bunch of details, and then applied a bunch of manual poking and guesswork on top
08:14marcanif the table boils down to "these are the register values for this format" then simply document that and let someone else write the ~same table
08:15rqou_i could do that. there are formats that the hardware supports that the driver doesn't though, which i've figured out using guesswork
08:15rqou_e.g. the hardware can encode any permutation of RGBA values afaict, but the driver can only do RGBA or BGRA
08:18marcanthe 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
08:18marcanespecially 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
08:19marcanI'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
08:19Dementor[m] has joined #asahi-re
08:20rqou_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?
08:21marcanas 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
08:22marcanbut 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
08:24marcananother 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)
08:24marcanbut 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
08:25marcanyou've basically written hardware docs with this, it's practically cleanroom already this way the way it ended up
08:25marcan(which might just be because this driver is just extra dumb in how it sets up the hardware)
08:26rqou_the driver is pretty dumb, but i also deliberately wrote up the docs this way to be careful about accidentally copying over stuff
08:33marcanre 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
08:34marcanyou 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
08:35marcanbasically 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
09:03Glanzmann has joined #asahi-re
09:15chadmed has quit [Quit: Konversation terminated!]
09:18chadmed has joined #asahi-re
09:22chadmed has quit []
09:23chadmed has joined #asahi-re
09:50rowang077[m] has quit [Server closed connection]
09:50rowang077[m] has joined #asahi-re
10:07alicela1n has quit [Server closed connection]
10:08alicela1n has joined #asahi-re
10:25rqou_if you read starting from offset +0x10e0 to +0x10f4 you get ascii text 'SHIKINO KJN-7GI 0001'
10:25rqou_which has a product brief here (https://www.shikino.co.jp/eng/products/JPEG-IP_Leaflet_Ver1.14E_HP.pdf)
10:29kameks has joined #asahi-re
10:42the_lanetly_052 has quit [Remote host closed the connection]
10:49rqou_there's almost certainly apple customizations/additions to it though, since the driver mentions things like support for "AGX" compressed/tiled/something input formats
10:50rqou_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
10:51rqou_my wild guess is that the registers below 0x1000 are apple's and the registers above 0x1000 are the licensed ip core
11:05chadmedif it supports 10-bit ARGB as per your notes then it seems apple have extensively modified it which would fit your guess
11:06chadmedyou have to wonder why they bother continuing to integrate it at this point, it seems a rather inflexible little bit of silicon
11:06chadmedunless it really uses so much less power just decoding the MJPEG stream from the webcam that it makes sense?
11:14perigoso[m] has quit [Server closed connection]
11:14perigoso[m] has joined #asahi-re
11:26the_lanetly_052 has joined #asahi-re
11:44megalokafes_ has quit [Quit: Connection closed for inactivity]
11:57amarioguy has joined #asahi-re
12:14kameks has quit [Ping timeout: 480 seconds]
12:55amarioguy has quit [Ping timeout: 480 seconds]
12:55chadmed has quit [Remote host closed the connection]
12:56amarioguy has joined #asahi-re
13:29amarioguy has quit [Ping timeout: 480 seconds]
13:29amarioguy has joined #asahi-re
13:36doggkruse has joined #asahi-re
13:38yuyichao_ has quit [Ping timeout: 480 seconds]
13:55amarioguy has quit [Ping timeout: 480 seconds]
13:56yuyichao_ has joined #asahi-re
13:58amarioguy has joined #asahi-re
14:47doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:48doggkruse has joined #asahi-re
15:01amarioguy has quit [Ping timeout: 480 seconds]
15:02foxtrot has quit [Quit: Goodbye]
15:03foxtrot has joined #asahi-re
15:04foxtrot is now known as Guest325
15:26amarioguy has joined #asahi-re
15:44amarioguy has quit [Ping timeout: 480 seconds]
15:55amarioguy has joined #asahi-re
16:18amarioguy has quit [Ping timeout: 480 seconds]
16:58amarioguy has joined #asahi-re
17:07Dementor[m] has quit [Server closed connection]
17:07Dementor[m] has joined #asahi-re
17:22abilash1994[m] has quit [Server closed connection]
17:22abilash1994[m] has joined #asahi-re
17:22AdryzzOLEDEdition[m] has quit [Server closed connection]
17:22AdryzzOLEDEdition[m] has joined #asahi-re
17:23ah-[m] has quit [Server closed connection]
17:23ah-[m] has joined #asahi-re
17:23petermlyon[m] has quit [Server closed connection]
17:23petermlyon[m] has joined #asahi-re
17:24arnidg[m] has quit [Server closed connection]
17:24arnidg[m] has joined #asahi-re
17:25Augur[m] has quit [Server closed connection]
17:25Augur[m] has joined #asahi-re
17:25Bastian[m] has quit [Server closed connection]
17:25Bastian[m] has joined #asahi-re
17:26BenPetterborg[m] has quit [Server closed connection]
17:26BenPetterborg[m] has joined #asahi-re
17:27brentr123[m] has quit [Server closed connection]
17:27brentr123[m] has joined #asahi-re
17:29CristianMgheruan-Stanciu[m] has quit [Server closed connection]
17:29CristianMgheruan-Stanciu[m] has joined #asahi-re
17:29daftfrog[m] has quit [Server closed connection]
17:29daftfrog[m] has joined #asahi-re
17:32Liam[m] has quit [Server closed connection]
17:32Liam[m] has joined #asahi-re
17:32user982492 has joined #asahi-re
17:34DiscoPenguin[m] has quit [Server closed connection]
17:34DiscoPenguin[m] has joined #asahi-re
17:35h_ro[m] has quit [Server closed connection]
17:35h_ro[m] has joined #asahi-re
17:38joerosenberg[m] has quit [Server closed connection]
17:38joerosenberg[m] has joined #asahi-re
17:38katatafjsh[m] has quit [Server closed connection]
17:38katatafjsh[m] has joined #asahi-re
17:40mofux[m] has quit [Server closed connection]
17:40konr-72[m] has quit [Server closed connection]
17:40mofux[m] has joined #asahi-re
17:40konr-72[m] has joined #asahi-re
17:41NotHere[m] has quit [Server closed connection]
17:41long[m] has quit [Server closed connection]
17:41NotHere[m] has joined #asahi-re
17:42long[m] has joined #asahi-re
17:42lucifer178[m] has quit [Server closed connection]
17:42lucifer178[m] has joined #asahi-re
17:44NightsOnly[m] has quit [Server closed connection]
17:44NightsOnly[m] has joined #asahi-re
17:45nilsi[m] has quit [Server closed connection]
17:45nilsi[m] has joined #asahi-re
17:46HaoYanQi[m] has quit [Server closed connection]
17:46HaoYanQi[m] has joined #asahi-re
17:47BingDennis[m] has quit [Server closed connection]
17:48BingDennis[m] has joined #asahi-re
17:48retonlage[m] has quit [Server closed connection]
17:48retonlage[m] has joined #asahi-re
17:48rkjnsn has quit [Server closed connection]
17:48rkjnsn has joined #asahi-re
17:49rusty-nail[m] has quit [Server closed connection]
17:49ryanhrob[m] has quit [Server closed connection]
17:49rusty-nail[m] has joined #asahi-re
17:49ryanhrob[m] has joined #asahi-re
17:51nicolas17 has joined #asahi-re
17:52thebigbossch[m] has quit [Server closed connection]
17:52thebrinkoftomorrow[m] has quit [Server closed connection]
17:52thebigbossch[m] has joined #asahi-re
17:52thebrinkoftomorrow[m] has joined #asahi-re
18:02user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:03user982492 has joined #asahi-re
18:26user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:32the_lanetly_052 has quit [Ping timeout: 480 seconds]
18:36athul[m]1 has quit [Server closed connection]
18:36athul[m]1 has joined #asahi-re
18:54user982492 has joined #asahi-re
18:54amarioguy has quit [Ping timeout: 480 seconds]
19:06m6wiq has joined #asahi-re
19:23Denver has joined #asahi-re
19:27Denver has quit [Read error: Connection reset by peer]
19:33MatrixTravelerbot[m] has joined #asahi-re
20:12kode54I'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
20:37doggkruse has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:41user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:41Denver has joined #asahi-re
20:47user982492 has joined #asahi-re
20:49Denver has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
22:42m6wiq has quit []
22:54luxio_39[m] has joined #asahi-re
23:03user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:15yuyichao_ has quit [Ping timeout: 480 seconds]
23:20user982492 has joined #asahi-re