ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
rohin2 has joined #asahi-dev
rohin2 has quit [Ping timeout: 480 seconds]
rohin2 has joined #asahi-dev
rohin2 has quit [Ping timeout: 480 seconds]
rohin2 has joined #asahi-dev
rohin2 has quit [Remote host closed the connection]
rohin2 has joined #asahi-dev
kov has quit [Quit: Coyote finally caught me]
kov has joined #asahi-dev
rohin2 has quit [Ping timeout: 480 seconds]
PhilippvK has joined #asahi-dev
phiologe has quit [Ping timeout: 480 seconds]
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
user982492 has joined #asahi-dev
xiaomingcc[m] has joined #asahi-dev
gladiac has quit [Quit: k thx bye]
gladiac has joined #asahi-dev
Bey0ndB1nary has joined #asahi-dev
rkt is now known as Guest4690
rkt has joined #asahi-dev
Guest4690 has quit [Ping timeout: 480 seconds]
jeffmiw has quit [Ping timeout: 480 seconds]
Bey0ndB1nary has quit []
Bey0ndB1nary has joined #asahi-dev
user982492 has quit [Remote host closed the connection]
Bey0ndB1nary_ has joined #asahi-dev
Bey0ndB1nary has quit [Ping timeout: 480 seconds]
Bey0ndB1nary_ has quit []
robinp[m] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robinp[m] has joined #asahi-dev
Bey0ndB1nary has joined #asahi-dev
Bey0ndB1nary has quit []
<maz> marcan: now have a skeletal PMU driver. has anyone documented the PMU events, apart from the two fixed counters? I've sort of worked out that event 2 is most likely cycles too, but that's about it.
<marcan> maz: I don't think anyone has
<marcan> currently fighting AICv2
<maz> huh...
ponkey364[m] has joined #asahi-dev
timokrgr has joined #asahi-dev
yuyichao has joined #asahi-dev
yuyichao has quit [Read error: Connection reset by peer]
yuyichao has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-dev
<maz> as it turns out, SYS_APL_PMSR_EL1 cannot be written to (it UNDEFs).
<maz> I guess clearing the overflow is done by clearing the interrupt...
jbowen has joined #asahi-dev
aleasto has joined #asahi-dev
rkt has quit [Ping timeout: 480 seconds]
rkt has joined #asahi-dev
<marcan> maz: so it looks like AIC IPIs are gone in aic2, do you have any particular preference for implementing fast (sysreg/fiq) IPIs?
<marcan> (I also can't for the life of me figure out IRQ affinity... it seems it just tries cores in order with a delay, with a global bit to select whether to start with pcores or ecores...)
<marcan> (there is a 4-bit per-irq config field that could be a routing config, but only 0 works for me)
<maz> marcan: eh, if we need them, we implement them!
<maz> are they still presented as FIQ on the receiving end?
<marcan> maz: yes, they work the same way as on M1, that hasn't changed
<marcan> AIC just lost its legacy IPIs
<marcan> maz: any preference as to how to organize it? stick it in the AIC driver, or try to split it into a separate irqchip?
aleasto has quit [Remote host closed the connection]
<maz> marcan: if we can keep a single driver, I'm all for it. if you feel that the programming model has diverged too much, we write a new one. no big deal.
<marcan> the vIPI stuff can be shared
<marcan> AIC itself is similar enough; I just need to indirect register offsets since they all moved, and have some conditionals in init paths
<maz> I though as much. I guess the affinity management would be different, but we can also probably migrate M1 over to sysreg-based IPIs, right?
xaiki has joined #asahi-dev
<marcan> yeah, I'd do that (and just trigger on the t8103 compatible, so the legacy IPIs can stay for retro chips)
<maz> sounds like a plan. do people actually work on enabling Linux on pre-M1?
<sven> iirc there were a few people who were interested but i haven't seen any code yet
<marcan> I'm not going to spend much time on it, but I also won't gratuitously break code that might work there
<marcan> maz: so this looks like it supports multi-chip systems (at least it has two interrupt blocks and I can figure out how the second one works even though it's idle)
<marcan> however, now we have another dimension for the phandle args
<marcan> for M1 we used <0 nr flags> for IRQs and <1 nr flags> for FIQs
<marcan> we could encode the die||irq into nr, or we could start accepting a 4-cell form
<marcan> thoughts?
<marcan> (cc robher)
<maz> marcan: that's odd. it means that an interrupt is strictly routed to a particular die? I would have expected SW to be able to route the interrupt to any CPUs...
<maz> or is that still possible, and the die is just an extra routing hop?
<marcan> the irq *source*
<marcan> presumably they have some kind of arrangement where AIC on one die forwards to AIC on the other or so
<marcan> so that you can handle all the IRQs from one AIC, but you get one sub-block per die in it
<marcan> so IRQs are now identified as die, hwidx
<maz> OK, so that's not that different from the multi-chip GIC implementations, except that it is transparent to SW.
<maz> (transparent on the GIC, not on AIC)
* robher has little opinion on how you interpret the cells. It's irq provider specific.
<maz> marcan: my experience with GICv1/2 where we shoved the PPI affinity in one of the cells makes me want to use an extra cell.
<marcan> sgtm, I'll try that
aleasto has joined #asahi-dev
aleasto has quit [Remote host closed the connection]
aleasto has joined #asahi-dev
aleasto has quit []
aleasto has joined #asahi-dev
aleasto has quit [Read error: Connection reset by peer]
aleasto has joined #asahi-dev
jbowen has quit [Read error: Connection reset by peer]
jbowen has joined #asahi-dev
<sven> j_ey: https://github.com/AsahiLinux/linux/commits/dart/t6000 still untested but it has commit messages now :P
<maz> sven: do you have a dump of the max/pro id registers somewhere?
<sven> i don't have a max/pro
<maz> ah!
<sven> i was close to ordering one but somehow managed to stop myself and wait for the rumored mini with a dual chip M!
<sven> *M1
<maz> yeah, I don't really uses laptops for anything other than a glorified remote desktop. so +1 for a boosted mini or something that can live in the rack...
grange_c1 has joined #asahi-dev
grange_c has quit [Quit: Ping timeout (120 seconds)]
grange_c1 is now known as grange_c
aleasto has quit [Quit: Konversation terminated!]
aleasto has joined #asahi-dev
aleasto has quit [Remote host closed the connection]
aleasto has joined #asahi-dev
aleasto has quit [Remote host closed the connection]
aleasto has joined #asahi-dev
nirusu[m] has joined #asahi-dev
bps2 has quit [Ping timeout: 480 seconds]
bps2 has joined #asahi-dev
m6wiq has joined #asahi-dev
nskl has joined #asahi-dev
nsklaus_ has quit [Ping timeout: 480 seconds]
aleasto has quit [Remote host closed the connection]
___nick___ has joined #asahi-dev
___nick___ has quit []
___nick___ has joined #asahi-dev
yuyichao_ has joined #asahi-dev
yuyichao has quit [Ping timeout: 480 seconds]
rohin2 has joined #asahi-dev
bps2 has quit [Ping timeout: 480 seconds]
bps2 has joined #asahi-dev
m6wiq has quit [Ping timeout: 480 seconds]
bps2 has quit [Ping timeout: 480 seconds]
___nick___ has quit [Ping timeout: 480 seconds]
rohin2 has quit [Ping timeout: 480 seconds]
m6wiq has joined #asahi-dev
jbowen has quit [Quit: leaving]
aleasto has joined #asahi-dev
m6wiq has quit [Quit: Leaving]
aleasto has quit [Quit: Konversation terminated!]
rohin2 has joined #asahi-dev
X-Scale` has joined #asahi-dev