#
…

2021-07-12

00:04bgb has joined #asahi
00:32bgb has quit [Ping timeout: 480 seconds]
00:41bgb has joined #asahi
00:49bgb has quit [Ping timeout: 480 seconds]
01:14jbowen has quit [Quit: leaving]
01:16bgb has joined #asahi
01:22apetresc has quit [Quit: ZNC 1.8.2 - https://znc.in]
01:37bgb has quit [Ping timeout: 480 seconds]
01:46bgb has joined #asahi
01:54bgb has quit [Ping timeout: 480 seconds]
02:03bgb has joined #asahi
02:05apetresc has joined #asahi
02:11bgb has quit [Ping timeout: 480 seconds]
02:11quarkyalice__ has joined #asahi
02:18PhilippvK has joined #asahi
02:18bgb has joined #asahi
02:21phiologe has quit [Ping timeout: 480 seconds]
02:37quarkyalice__ has quit [Ping timeout: 480 seconds]
02:41bgb has quit [Ping timeout: 480 seconds]
02:58bgb has joined #asahi
03:21quarkyalice__ has joined #asahi
03:33quarkyalice__ has quit [Ping timeout: 480 seconds]
03:45bloom has quit [Quit: leaving]
03:49marvin24 has joined #asahi
03:52marvin24_ has quit [Ping timeout: 480 seconds]
03:56bgb_ has joined #asahi
04:00bgb has quit [Ping timeout: 480 seconds]
05:26bisko has joined #asahi
05:26bisko has quit []
06:32bgb has joined #asahi
06:35bgb_ has quit [Ping timeout: 480 seconds]
06:45bgb_ has joined #asahi
06:50bgb has quit [Ping timeout: 480 seconds]
08:12gladiac has quit [Quit: k thx bye]
08:14gladiac has joined #asahi
09:13aleasto has joined #asahi
09:37richbridger has quit [Ping timeout: 480 seconds]
09:37richbridger has joined #asahi
09:54Mary has quit [Quit: Ping timeout (120 seconds)]
09:55Mary has joined #asahi
10:03bgb_ has quit [Ping timeout: 480 seconds]
10:12Gues__________________________ has joined #asahi
10:27bgb_ has joined #asahi
10:42aquijoule_ has joined #asahi
10:42svenkettenis: did you ever figure out if it is possible to shutdown this ASN/nvme coprocessor again?
10:42richbridger has quit [Remote host closed the connection]
10:45svenjust clearing this RUN bit seems to have to effect. i can even clear it before handling all those mailbox messages
10:47svenessentially 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
11:18choozy has joined #asahi
11:31Gues__________________________ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
11:38Gues__________________________ has joined #asahi
11:38Gues__________________________ has quit []
11:42bgb_ has quit [Ping timeout: 480 seconds]
11:52bgb_ has joined #asahi
12:17bgb_ has quit [Ping timeout: 480 seconds]
12:25bgb_ has joined #asahi
12:48bgb_ has quit [Ping timeout: 480 seconds]
12:51kettenissven: not looked at that
12:53kettenismust be possible as iBoot reads stuff from the NVMe disk but the coprocessor isn't running when u-boot takes over
13:01kettenisfor OpenBSD I'm not really interested in supporting a non-UEFI bootflow, so having it started in u-boot is just fine
13:02kettenislinux could check whether the processor is running and skip initialization in this case
13:12svenworks for me as long as that coprocessor is fine with being completely ignored once linux or bsd is running ;)
13:14bgb_ has joined #asahi
13:18kettenisthat is something that remeains to be seen
13:18kettenisI'm investigating an nvme issue where the controller seems to stop completely
13:18kettenisat least I don't get any further interrupts
13:18chadmeddoes the coprocessor actually do anything essential or just offload nvme commands from the main cores?
13:19svenso i've managed to make the mailbox overflow already while trying to make it reboot
13:19svenfrom what i can tell it just spams syslog messages to that shared memory buffer occasionally
13:20chadmed an essential service on any linux box if there ever was one
13:20kettenisso I wonder if it stops because it wants more memory...
13:20svenor it just can't write to that mailbox anymore
13:21chadmedare you able to prod at it directly through the DART?
13:21sventhe nvme one is behind another "iommu" (which is really just an address filter) called SART
13:21svenbut we can't access its firmware and internal memory afaict
13:21chadmedits like they knew we were coming
13:21kettenissven, I'm not touching the mailbox under OpenBSD
13:22bgb_ has quit [Ping timeout: 480 seconds]
13:22svenkettenis: 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
13:22svenafaict there's a fifo with N entries.
13:22sveni don't know what it'll do once that thing is full with syslog requests
13:23kettenisi would expect the syslog to be a ring buffer of some sort
13:23sventhe syslog, yes
13:23svenbut 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
13:23kettenisbut maybe the rollover needs to be acked
13:24svenor maybe that, yes
13:25kettenisso I'll need to write a mailbox driver after all
13:27svencan you easily just read the mailbox when the nvm controller gets stuck?
13:28svensyslog messages should be type 5 and at least those don't need an ack
13:28kettenisneed to write a driver ;)
13:28svenso no easy way to just read from the mailbox mmio addr?
13:29kettenisI can hack something up ;)
13:30bgb_ has joined #asahi
13:38bgb_ has quit [Ping timeout: 480 seconds]
13:40yuyichao_ has quit [Quit: Konversation terminated!]
13:47bgb_ has joined #asahi
14:01svenkettenis: huh, so it looks like macos actually acks the syslog messages eventually.
14:01svenso maybe that's actually required
14:03aleasto has quit [Ping timeout: 480 seconds]
14:08Gues__________________________ has joined #asahi
14:09bgb_ has quit [Ping timeout: 480 seconds]
14:12Gues__________________________ has quit []
14:32aquijoule_ has quit []
14:32aquijoule_ has joined #asahi
14:32aquijoule_ has quit [Remote host closed the connection]
14:53bgb_ has joined #asahi
15:13bgb_ has quit [Ping timeout: 480 seconds]
15:13tsida has quit [Remote host closed the connection]
15:13tsida has joined #asahi
15:37bgb_ has joined #asahi
15:55choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
15:59bgb_ has quit [Ping timeout: 480 seconds]
16:07bgb_ has joined #asahi
16:15bgb_ has quit [Ping timeout: 480 seconds]
16:24bgb_ has joined #asahi
16:32bgb_ has quit [Ping timeout: 480 seconds]
16:42bgb_ has joined #asahi
16:44Andalu30 has joined #asahi
17:04bgb_ has quit [Ping timeout: 480 seconds]
17:12bgb_ has joined #asahi
17:20bgb_ has quit [Ping timeout: 480 seconds]
17:24Andalu30 has quit [Ping timeout: 480 seconds]
17:30bgb_ has joined #asahi
17:38bgb_ has quit [Ping timeout: 480 seconds]
17:47bgb_ has joined #asahi
17:51Andalu30 has joined #asahi
18:09bgb_ has quit [Ping timeout: 480 seconds]
18:19bgb_ has joined #asahi
18:27bgb_ has quit [Ping timeout: 480 seconds]
18:37bgb_ has joined #asahi
18:37opticron has quit [Ping timeout: 480 seconds]
18:43bgb has joined #asahi
18:47bgb_ has quit [Ping timeout: 480 seconds]
19:00bgb has quit [Ping timeout: 480 seconds]
19:08bgb has joined #asahi
19:16bgb has quit [Ping timeout: 480 seconds]
19:26bgb has joined #asahi
19:29opticron has joined #asahi
19:31erincandescent has quit [Remote host closed the connection]
19:32erincandescent has joined #asahi
19:34bgb has quit [Ping timeout: 480 seconds]
19:42bgb has joined #asahi
19:46quarkyalice has quit [Quit: Leaving]
19:46quarkyalice has joined #asahi
20:04bgb has quit [Ping timeout: 480 seconds]
20:12bgb has joined #asahi
20:20bgb has quit [Ping timeout: 480 seconds]
20:30bgb has joined #asahi
20:38bgb has quit [Ping timeout: 480 seconds]
20:45Andalu30 has quit [Remote host closed the connection]
20:47bgb has joined #asahi
21:10bgb has quit [Ping timeout: 480 seconds]
21:17tsida has quit [Remote host closed the connection]
21:19bgb has joined #asahi
21:21tsida has joined #asahi
21:27bgb has quit [Ping timeout: 480 seconds]
21:30svenaaalright. 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
21:36bgb has joined #asahi
21:40svensame sequence should work for everything that runs RTKit
21:44bgb_ has joined #asahi
21:47bgb has quit [Ping timeout: 480 seconds]
21:51svenhrm, and i think the 0xb.. dance is actually not required. so just send(0x60000000000010), recv() = 0x70000000000010 and then send(0x60000000000020) should work
21:59bgb_ has quit [Ping timeout: 480 seconds]
22:09bgb_ has joined #asahi
22:31bgb_ has quit [Ping timeout: 480 seconds]
22:37bgb_ has joined #asahi
22:48quarkyalice__ has joined #asahi
22:49quarkyalice__ has quit [Remote host closed the connection]
22:59bgb_ has quit [Ping timeout: 480 seconds]
23:09bgb_ has joined #asahi
23:10shenki has quit [Ping timeout: 480 seconds]
23:17bgb_ has quit [Ping timeout: 480 seconds]
23:25bgb_ has joined #asahi
23:33bgb_ has quit [Ping timeout: 480 seconds]
23:42bgb_ has joined #asahi
…