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!]
gabuscus has quit []
compassion178 has joined #asahi
gabuscus has joined #asahi
jelly has quit []
Mary has quit [Quit: The Lounge - https://thelounge.chat]
Mary has joined #asahi
italicsjenga has quit [Quit: italicsjenga]
jelly has joined #asahi
pyropeter2 has joined #asahi
pyropeter1 has quit [Ping timeout: 480 seconds]
ptudor has quit [Ping timeout: 480 seconds]
ptudor has joined #asahi
marvin24_ has joined #asahi
pyropeter3 has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
pyropeter2 has quit [Ping timeout: 480 seconds]
systwi has quit [Ping timeout: 480 seconds]
systwi has joined #asahi
mikelee has joined #asahi
nst has quit [Ping timeout: 480 seconds]
nst has joined #asahi
mikelee_ has quit [Ping timeout: 480 seconds]
systwi_ has joined #asahi
systwi has quit [Ping timeout: 480 seconds]
systwi_ has quit []
systwi has joined #asahi
leah2 has joined #asahi
SalimTer- has joined #asahi
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> yeah i was reading the code eiln submitted and i thought it was weird there were no references to rtkit there
<ydalton> but ANE does have an rtkit right?
<ChaosPrincess> yes
<j`ey> I think some people were talking about ignoring rtkit for AVD too right?
<ChaosPrincess> avd doesnt have a rtkit but something even more cursed
<ydalton> wait, i read R's python script for avd but i wasn't about to find firmware that was referenced in that script
<ydalton> ave does have firmware tho
<ydalton> that i could find at least
<_jannau__> I think the avd firmware is embedded in the macos driver
<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)]
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
hightower2 has quit [Ping timeout: 480 seconds]
bisko has quit [Ping timeout: 480 seconds]
hightower2 has joined #asahi
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lena6 has joined #asahi
leitao has joined #asahi
delsol has joined #asahi
dylanchapell has quit [Read error: Connection reset by peer]
nsklaus has quit [Quit: WeeChat 3.8]
cylm_ has quit [Ping timeout: 480 seconds]
compassion1785 has joined #asahi
dylanchapell has joined #asahi
compassion178 has quit [Ping timeout: 480 seconds]
compassion1785 is now known as compassion178
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi
mikelee_ has joined #asahi
mikelee has quit [Ping timeout: 480 seconds]
compassion178 has quit [Quit: lounge quit]
nsklaus has joined #asahi
compassion1785 has joined #asahi
compassion1785 has quit [Ping timeout: 480 seconds]
hightower2 has quit [Ping timeout: 480 seconds]
roxfan has quit [Ping timeout: 480 seconds]
roxfan has joined #asahi
compassion1785 has joined #asahi
hightower2 has joined #asahi
pbsds has joined #asahi
yamchah2_ has joined #asahi
yamchah2 has quit [Read error: Connection reset by peer]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi
ptudor has joined #asahi
rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
Guest5071 has quit [Quit: Bridge terminating on SIGTERM]
Jamie has joined #asahi
rhysmdnz has joined #asahi
Jamie is now known as Guest5162
ydalton has joined #asahi
ydalton has left #asahi [#asahi]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi
denysonique has quit [Quit: Ping timeout (120 seconds)]
denysonique has joined #asahi
Agua has quit [Ping timeout: 480 seconds]
jcm_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi
jlco has quit [Quit: No Ping reply in 180 seconds.]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi
skoobasteeve has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
skoobasteeve has joined #asahi
jlco has joined #asahi
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
<dottedmag> thanks
mkurz has quit [Ping timeout: 480 seconds]
Agua has joined #asahi
lena6 has quit [Ping timeout: 480 seconds]
geerlingguy_ has quit []
Agua has quit [Remote host closed the connection]
cylm_ has joined #asahi
timefractal has quit [Quit: The Lounge - https://thelounge.chat]
timefractal has joined #asahi
timefractal has quit [Quit: The Lounge - https://thelounge.chat]
robank has joined #asahi
robankarthikeyan has joined #asahi
<robankarthikeyan> hey!
timefractal has joined #asahi
<robank> #asahi
robank has quit []
<robankarthikeyan> ooh
<robankarthikeyan> my bad
robankarthikeyan has left #asahi [#asahi]
roban has joined #asahi
delsol has quit [Remote host closed the connection]
roban has quit [Quit: roban]
roban has joined #asahi
possiblemeatball has joined #asahi
artemis has joined #asahi
artemis has quit []
roban has left #asahi [#asahi]
cylm_ has quit [Ping timeout: 480 seconds]
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi
possiblemeatball has quit []
possiblemeatball has joined #asahi
nsklaus has quit [Remote host closed the connection]
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi
possiblemeatball has quit [Quit: Quit]
abd has joined #asahi
possiblemeatball has joined #asahi
abd has quit []
possiblemeatball has quit [Quit: Quit]
possiblemeatball has joined #asahi
possiblemeatball has quit []
possiblemeatball has joined #asahi