marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | "Does XXX work yet?": https://alx.sh/fs | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-alt #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
jacksonchen666 has joined #asahi
possiblemeatball has joined #asahi
jacksonchen666 has quit [Ping timeout: 480 seconds]
possiblemeatball has quit []
possiblemeatball has joined #asahi
italicsjenga has joined #asahi
leah2 has quit [Ping timeout: 480 seconds]
StupidYui has joined #asahi
StupidYui has left #asahi [#asahi]
StupidYui has joined #asahi
StupidYui has quit []
StupidYui has joined #asahi
StupidYui has quit []
amarioguy has joined #asahi
compassion17 has quit [Quit: lounge quit]
Brainium has quit [Quit: Konversation terminated!]
salimterryli has quit [Remote host closed the connection]
rootbeerdan has joined #asahi
uziam has joined #asahi
uziam has quit []
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi
Axenntio has joined #asahi
ptudor has quit [Ping timeout: 480 seconds]
Axenntio has quit [Ping timeout: 480 seconds]
roxfan has quit [Ping timeout: 480 seconds]
roxfan has joined #asahi
bisko has joined #asahi
cylm_ has quit [Ping timeout: 480 seconds]
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi
possiblemeatball has quit []
possiblemeatball has joined #asahi
hightower2 has joined #asahi
Agua has joined #asahi
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi
possiblemeatball has quit []
possiblemeatball has joined #asahi
possiblemeatball has quit [Quit: Quit]
nsklaus has joined #asahi
leitao has joined #asahi
dsrt^ has quit [Remote host closed the connection]
jacksonchen666 has joined #asahi
cylm_ has joined #asahi
Axenntio has joined #asahi
rootbeerdan1 has joined #asahi
rootbeerdan has quit [Ping timeout: 480 seconds]
rootbeerdan1 is now known as rootbeerdan
rootbeerdan has quit [Ping timeout: 480 seconds]
FLHerne has quit [Quit: There's a real world out here!]
ydalton has joined #asahi
<ydalton>
so guys, let me get this straight: each coprocessor within an Apple SoC runs its own custom OS based on RTKit that manages the heavy lifting themselves, and all macOS drivers do is communicate with these OSes. is my reasoning correct?
<j`ey>
yes
FLHerne has joined #asahi
<jn>
there may still be considerable complexity involved in that communication, though
<ydalton>
and the linux kernel modules for asahi linux do exactly that, communicate with the RTKits like macOS does
<ydalton>
right?
<jn>
yes
<ChaosPrincess>
most of them do, i think ANE's one bypasses rtkit and directly pokes the hw registers
<ydalton>
hm, explains why i wasn't able to find it
Moprius has joined #asahi
<chadmed>
ydalton: avd, ave and apr do not run rtkit just in case you werent aware
<ydalton>
interesting, but ave does have its own firmware
<chadmed>
specifically with avd the firmware is utterly deranged (it kinda looks like samsung if you squint) and i believe both R and Jamie came to the conclusion that it would be easier to just write our own firmware for the M3 and poke at random bits of hardware directly
<chadmed>
R got as far as getting the M3 to say hello to her with her own firmware iirc
<ydalton>
yeah i found out avd is basically a Cortex M3
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ydalton>
chadmed: that was using the python script right?
<chadmed>
i believe so, she had a firmware binary somewhere and uploaded it to the firmware zone in the SIP's mmio range and it did... something
<chadmed>
so that was a good start :P
<chadmed>
jamie figured out a bunch of the apple firmware interface that i got stuck on and i started writing a tracer for it but unfortunately i had to detonate my rootfs and it's lost to time
<chadmed>
it didnt really work anyway :P
<ydalton>
i'd like to get my hands on that firmware tho
<chadmed>
R's? or apple's?
<ydalton>
R's, the one referenced in the python script
<chadmed>
she might still have it if you ask her, i dont think she hangs around here anymore though
<ydalton>
then there was another binary file but idk what that is
<ydalton>
i've noticed tracing the MMIO to and from the avd it does send a lot of binary data, including during bootup. i presume that could be the firmware?
<chadmed>
oh she is here
<chadmed>
that will probably ping her
<chadmed>
yeah the assload of data on boot is the firmware getting uploaded and then read back
<chadmed>
at 0x2something-something iirc
<ydalton>
around 0x269080000
<chadmed>
thats it
<ydalton>
until 0x2690a0000 i think
<chadmed>
yup
<chadmed>
iirc it uploads all the fw
<chadmed>
and then kicks the mailbox
<ydalton>
hm, idk if the script will work, i've had trouble running anything dart related
<chadmed>
hop in #asahi-re for a sec
<ydalton>
chadmed: do you know what that assembler R wrote does?
<chadmed>
no clue on specifics :P
<chadmed>
it works with the experiment in their m1n1 branch
<ydalton>
i'm pretty new to arm assembly so
<chadmed>
looks like it just pokes interrupts
<chadmed>
i think it was just a proof of concept
<ydalton>
that looks like it could be custom firmware for the M3
<chadmed>
yeah thats exactly what it is
<chadmed>
thats what i was talking about earlier
<chadmed>
where we kinda figured that it would be easier to do that in the long run than reverse apple's
<chadmed>
given that no one's been game to publicly tackle it since that hunch was probably correct :P
<ydalton>
wait, do you know if mmio below 0x269000000 is actually being done?
<ydalton>
from what i can tell it's only above that
<chadmed>
the DART and PIODMA are both below the firmware
<chadmed>
probably worth joining #asahi-dev to discuss further btw
<ydalton>
okay, thanks
<ydalton>
this channel is just general things around the project
leitao has joined #asahi
<chadmed>
yeah this channel is more for user help/questions
Moprius has quit [Quit: bye]
ydalton has left #asahi [ERC 5.4 (IRC client for GNU Emacs 28.2)]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi
Cyrinux9 has quit []
Cyrinux9 has joined #asahi
jlco_ has joined #asahi
jlco_ has quit []
jlco_ has joined #asahi
mikelee_ has quit [Remote host closed the connection]
delsol has quit [Ping timeout: 480 seconds]
jlco has quit [Ping timeout: 480 seconds]
mikelee has joined #asahi
jlco_ has quit []
delsol has joined #asahi
roxfan has quit [Ping timeout: 480 seconds]
jlco has joined #asahi
jlco has quit []
jlco has joined #asahi
zumi has quit [Remote host closed the connection]
zumi has joined #asahi
___nick___ has joined #asahi
bisko has joined #asahi
bisko has quit []
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
___nick___ has quit []
artemist has quit [Quit: artemist]
___nick___ has joined #asahi
___nick___ has quit []
rvalue- has joined #asahi
___nick___ has joined #asahi
rvalue has quit [Remote host closed the connection]
artemist has joined #asahi
___nick___ has quit [Ping timeout: 480 seconds]
<dottedmag>
(can't check it on Asahi machine right now) Are there two /dev/dri/cardN devices on Asahi, or the one DRM driver talks to both display controller and GPU and exposes them as a single /dev/dri/cardN?
<waldi>
i see card0 as display controller and card1 as gpu
<dottedmag>
thanks
Brainium has joined #asahi
<dottedmag>
waldi: does card1 also have renderD<NN> device? And card0 doesn't have renderD<NN>, does it?
derzahl has joined #asahi
<waldi>
yes, the only render device is for the gpu