ChanServ changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
riker77_ has joined #asahi
riker77 has quit [Ping timeout: 480 seconds]
riker77_ is now known as riker77
PhilippvK has quit [Ping timeout: 480 seconds]
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #asahi
Fanfwe42 is now known as Fanfwe
aleasto has joined #asahi
robinp_ has joined #asahi
robinp has quit [Ping timeout: 480 seconds]
<j_ey> marcan: that looks like someting good for a stream ^_^
<j_ey> (also your hexdump has colours now, fancy)
<j_ey> or is that a diff.. cool
<marcan> j_ey: it's been in proxyutils since the dark ages, pretty sure it dates back to the wii or at least wii u
<marcan> RegMonitor :)
<marcan> though I'm using it on shared memory here, made a few changes to have it read memory through the DART translation
<marcan> also added ASCII (didn't need that for registers)
<j_ey> cool, in fact i think I vaugely remember seeing it from some of the earliest streams now
<j_ey> but anyway, doesnt make it less cool >:D
<marcan> yeah, I used it with AIC
<marcan> I'll do a stream shortly
jn has quit [Remote host closed the connection]
<marcan> I mostly solved all the mysteries of the IOP commands; it really is all in shared memory, there are just separate blocks and the pages aren't physically contiguous
<marcan> diffing big chunks in IOVA address space instead of dumping just the head page made everything show up
<marcan> there are at least two if more more command/buffer protocols involved here :p
<marcan> so now time to implement that
<marcan> the whole thing is uber slow now because I dump *all* of the endpoing buffers in their entirety on *every* command :D
jn has joined #asahi
<j_ey> well it's not like you need to interact with macOS much, I hope!
<marcan> not for the startup stuff, and once I have the actual command protocol interpreted it'll be much lighter of course
<marcan> right now it's just dump the world every time to see what's moving
aleasto has quit [Quit: Konversation terminated!]
aleasto has joined #asahi
choozy has joined #asahi
tmbinc1 has joined #asahi
manawyrm has quit [Ping timeout: 480 seconds]
manawyrm has joined #asahi
tmbinc has quit [Ping timeout: 480 seconds]
Stary_ has joined #asahi
Stary has quit [Ping timeout: 480 seconds]
edwinistrator has joined #asahi
<bloom> marcan: woot woot
choozy has quit [Remote host closed the connection]
<bloom> marcan: The IOKit parsing thing scares the living bajeebus out of me.
<bloom> Though maybe with luck we only need to ingest a small, fixed subset to avoid an entire parser (in favour of just some magic offsets etc)? I don't know, I really don't want to see a string-indexed hash table in the middle of the display driver.
Darksecond has joined #asahi
choozy has joined #asahi
<marcan> bloom: hardcoding offsets is a no-go, that's going to break badly with firmware changes
<marcan> we might be able to get away with a reduced parser that only follows the expected parts of the structure and ignores the rest though
choozy has quit [Remote host closed the connection]
choozy has joined #asahi
edwinistrator has quit [Ping timeout: 480 seconds]
choozy has quit [Ping timeout: 480 seconds]
edwinistrator has joined #asahi
edwinistrator has quit []
<j_ey> marcan: did you get anywhere in the last 1-2hours of the stream?
<marcan> j_ey: I think I got the general idea for messages right, though some things are still a bit strange
<marcan> all pushed
<marcan> https://hub.marcan.st/t/dcplog.txt if anyone wants to stare at it
<j_ey> mfw text makes your browser stutter a little
<j_ey> marcan: is the goal of this more about the IOP / mailbox stuff, than dcp?
<j_ey> Im not sure exactly what settings / commands you'd need from DCP
<marcan> both
<marcan> we still need to implement DCP
* marcan off to sleep
<j_ey> cya
Andalu30 has joined #asahi
Andalu30 has quit [Quit: Konversation terminated!]
Andalu30 has joined #asahi
<bloom> marcan: Do we err have to deal with DCP fw updates? I guess so but that really sucks.
<bloom> I worry in general about linux drivers being a moving target if we can't pin a specific version .. and if the fw is non-redistributable i guess we can't ...
<bloom> marcan: I'm still not sure your shared mem stuff is right
<bloom> 00000000 44 69 73 70 6c 61 79 50 69 70 65 53 74 72 69 64 |DisplayPipeStrid|
<bloom> 00000010 65 52 65 71 75 69 72 65 6d 65 6e 74 73 00 72 61 |eRequirements.ra|
<bloom> 00000030 52 54 4b 53 54 41 43 4b 52 54 4b 53 54 41 43 4b |RTKSTACKRTKSTACK|
<bloom> 00000020 6d 65 74 65 72 73 00 4b 52 54 4b 53 54 41 43 4b |meters.KRTKSTACK|
<bloom> RTKSTACK is very clearly not part of the message ...
<bloom> Unless the whole message is /just/ the string "DisplayPipeStrideRequirements" and nothing else.
<marcan> bloom: seems to be just that string
<marcan> don't ask me why
<bloom> fair enough
<marcan> I think it might be a registry notification
<marcan> "this property changed"
<bloom> so just missing a size field somewhere?
<marcan> it's 00 terminated
<marcan> probably a fixed sized uninitialized buffer they strcpied a string into or whatever
<bloom> awful ;p
<j_ey> RTK STACK?
<j_ey> RT Kit Stack?
<marcan> that seems to be what they fill the stack with
<bloom> j_ey: RTKit stack, that's their version 0xDEADBEEF
<marcan> yes
<bloom> "ADP is generic pipe"
<bloom> What's ADP?
<bloom> "Generic pipe"
<bloom> not helpful
<j_ey> ceci n'est pas une generic pipe
<marcan> bloom: we can pin the version btw
<marcan> AIUI Apple tends to leave their OSes up forever, and M1s don't have hard call home requirements, you can run OSes in permissive mode
<marcan> so all we need to do is have our installer slurp the blobs from their site if it comes to that
<bloom> j_ey: lolololol
<bloom> marcan: ack
<marcan> (but I kind of hope this is backwards compatible to some extent)
choozy has joined #asahi
aleasto has quit [Remote host closed the connection]
Andalu30 has quit [Quit: Konversation terminated!]
Andalu30 has joined #asahi
Andalu30 has quit [Remote host closed the connection]
choozy has quit [Remote host closed the connection]