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
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
jbowen has quit [Quit: leaving]
bgb has joined #asahi
apetresc has quit [Quit: ZNC 1.8.2 - https://znc.in]
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
apetresc has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
quarkyalice__ has joined #asahi
PhilippvK has joined #asahi
bgb has joined #asahi
phiologe has quit [Ping timeout: 480 seconds]
quarkyalice__ has quit [Ping timeout: 480 seconds]
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
quarkyalice__ has joined #asahi
quarkyalice__ has quit [Ping timeout: 480 seconds]
bloom has quit [Quit: leaving]
marvin24 has joined #asahi
marvin24_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bisko has joined #asahi
bisko has quit []
bgb has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
gladiac has quit [Quit: k thx bye]
gladiac has joined #asahi
aleasto has joined #asahi
richbridger has quit [Ping timeout: 480 seconds]
richbridger has joined #asahi
Mary has quit [Quit: Ping timeout (120 seconds)]
Mary has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
Gues__________________________ has joined #asahi
bgb_ has joined #asahi
aquijoule_ has joined #asahi
<sven> kettenis: did you ever figure out if it is possible to shutdown this ASN/nvme coprocessor again?
richbridger has quit [Remote host closed the connection]
<sven> just clearing this RUN bit seems to have to effect. i can even clear it before handling all those mailbox messages
<sven> essentially i was just wondering where we should start that processor. if we could reset it every stage could just do that, but if that's not possible we should probably agree that e.g. u-boot is responsible for starting it and everything afterwards can just ignore it
choozy has joined #asahi
Gues__________________________ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gues__________________________ has joined #asahi
Gues__________________________ has quit []
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
<kettenis> sven: not looked at that
<kettenis> must be possible as iBoot reads stuff from the NVMe disk but the coprocessor isn't running when u-boot takes over
<kettenis> for OpenBSD I'm not really interested in supporting a non-UEFI bootflow, so having it started in u-boot is just fine
<kettenis> linux could check whether the processor is running and skip initialization in this case
<sven> works for me as long as that coprocessor is fine with being completely ignored once linux or bsd is running ;)
bgb_ has joined #asahi
<kettenis> that is something that remeains to be seen
<kettenis> I'm investigating an nvme issue where the controller seems to stop completely
<kettenis> at least I don't get any further interrupts
<chadmed> does the coprocessor actually do anything essential or just offload nvme commands from the main cores?
<sven> so i've managed to make the mailbox overflow already while trying to make it reboot
<sven> from what i can tell it just spams syslog messages to that shared memory buffer occasionally
<chadmed> an essential service on any linux box if there ever was one
<kettenis> so I wonder if it stops because it wants more memory...
<sven> or it just can't write to that mailbox anymore
<chadmed> are you able to prod at it directly through the DART?
<sven> the nvme one is behind another "iommu" (which is really just an address filter) called SART
<sven> but we can't access its firmware and internal memory afaict
<chadmed> its like they knew we were coming
<kettenis> sven, I'm not touching the mailbox under OpenBSD
bgb_ has quit [Ping timeout: 480 seconds]
<sven> kettenis: yes, but the coprocessor will send a message for each syslog entry to that mailbox and i don't know what happens if those are ignored
<kettenis> right
<sven> afaict there's a fifo with N entries.
<sven> i don't know what it'll do once that thing is full with syslog requests
<kettenis> i would expect the syslog to be a ring buffer of some sort
<sven> the syslog, yes
<sven> but there might be N messages stuck in that mailbox fifo and the coprocessor might wait until that thing is empty and block before sending the next one
<kettenis> but maybe the rollover needs to be acked
<sven> or maybe that, yes
<kettenis> so I'll need to write a mailbox driver after all
<sven> can you easily just read the mailbox when the nvm controller gets stuck?
<sven> syslog messages should be type 5 and at least those don't need an ack
<kettenis> need to write a driver ;)
<sven> ah :/
<sven> so no easy way to just read from the mailbox mmio addr?
<kettenis> I can hack something up ;)
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
yuyichao_ has quit [Quit: Konversation terminated!]
bgb_ has joined #asahi
<sven> kettenis: huh, so it looks like macos actually acks the syslog messages eventually.
<sven> so maybe that's actually required
aleasto has quit [Ping timeout: 480 seconds]
Gues__________________________ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
Gues__________________________ has quit []
aquijoule_ has quit []
aquijoule_ has joined #asahi
aquijoule_ has quit [Remote host closed the connection]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
tsida has quit [Remote host closed the connection]
tsida has joined #asahi
bgb_ has joined #asahi
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
Andalu30 has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
Andalu30 has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
Andalu30 has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
opticron has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
opticron has joined #asahi
erincandescent has quit [Remote host closed the connection]
erincandescent has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
quarkyalice has quit [Quit: Leaving]
quarkyalice has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
Andalu30 has quit [Remote host closed the connection]
bgb has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
tsida has quit [Remote host closed the connection]
bgb has joined #asahi
tsida has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
<sven> aaalright. i can reset it. first send 0x60000000000010, wait for 0x70000000000010, reply with 0xb0000000000010, wait for 0xb0000000000010, then send 0x60000000000020 and everything will start all over
bgb has joined #asahi
<sven> same sequence should work for everything that runs RTKit
bgb_ has joined #asahi
bgb has quit [Ping timeout: 480 seconds]
<sven> hrm, and i think the 0xb.. dance is actually not required. so just send(0x60000000000010), recv() = 0x70000000000010 and then send(0x60000000000020) should work
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
quarkyalice__ has joined #asahi
quarkyalice__ has quit [Remote host closed the connection]
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
shenki has quit [Ping timeout: 480 seconds]
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi
bgb_ has quit [Ping timeout: 480 seconds]
bgb_ has joined #asahi