marcan 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-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
<alyssa> dcp->swap.swap.swap_id = resp->swap_id;
<alyssa> Yo, I heard you like swaps.
___nick___ has quit []
___nick___ has joined #asahi
quarkyalice has quit [Remote host closed the connection]
quarkyalice has joined #asahi
<marcan> alyssa: I use "debug=0x14e serial=3 apcie=0xffffffef -enable-kprintf-spam wdt=-1"
<marcan> that SError seems to be in SEP, which suggests it was shut down when it shouldn't have been?
<marcan> do you get it during boot?
<marcan> I haven't done much with macos post-SMP, but at least login screen and basic desktop stuff worked fine
<marcan> also have you updated to 12.0 yet? :p
quarkyalice_ has joined #asahi
quarkyalice__ has joined #asahi
phiologe has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
quarkyalice_ has quit [Ping timeout: 480 seconds]
quarkyalice__ has quit [Remote host closed the connection]
quarkyalice__ has joined #asahi
marvin24_ has joined #asahi
marvin24 has quit [Ping timeout: 480 seconds]
quarkyalice__ has quit [Ping timeout: 480 seconds]
quarkyalice_ has joined #asahi
quarkyalice_ has quit [Ping timeout: 480 seconds]
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi
maor26 has joined #asahi
malvo has quit [Read error: Connection reset by peer]
malvo has joined #asahi
maor26 has quit [Quit: Leaving]
<marcan> just pushed a bunch of HV changes, though none that have anything to do with alyssa's SError afaict
<marcan> alyssa: can you build from main and then addr2line the "rel" address in PC: 0x803b7c448 (rel: 0x10448) ?
<marcan> (after reproducing again after the build of course)
<marcan> I'm quite confused as to how you got an SError in a SEP address from m1n1 code; would help to know where it happened
<marcan> the bad guest exception after that is "expected"; an SError while in m1n1 will corrupt exception state since I don't save it properly before re-enabling SErrors
aleasto has joined #asahi
<marcan> ah, I think I know how it happens
<marcan> I think the guest can end up triggering multiple SErrors, and then the second one can get delivered in the middle of the HV
<marcan> ah no, it happens with a single one, I didn't realize it's level-triggered
<maz> marcan: odd. SError is actually specified as edge.
<j_ey> marcan: did you see that povik got some audio working yesterday? ^^
awal3 has quit [Ping timeout: 480 seconds]
<marcan> maz: nah, only *external aborts* delivered as SErrors are specified as edge
<marcan> impdef SErrors can be either
<marcan> these are impdefs
<marcan> j_ey: I did not!
<chadmed> thats awesome
<chadmed> the same amp chips are in the mbps too so with some adapting stereo sound should be possible on the laptops
<chadmed> which is something amd64 macbooks still dont have
<maz> marcan: huh... that's... creative.
frode_0xa has joined #asahi
hablerentand[m] has quit [Quit: Bridge terminating on SIGTERM]
TellowKrinkle[m] has quit [Quit: Bridge terminating on SIGTERM]
RowanGoemans[m] has quit [Quit: Bridge terminating on SIGTERM]
_alice has quit []
ovf[m] has quit [Quit: Bridge terminating on SIGTERM]
nemanjan00[m] has quit [Quit: Bridge terminating on SIGTERM]
izzyisles[m] has quit [Quit: Bridge terminating on SIGTERM]
Izumoo[m] has quit [Quit: Bridge terminating on SIGTERM]
haterade[m] has quit [Quit: Bridge terminating on SIGTERM]
ll3macorn[m] has quit [Quit: Bridge terminating on SIGTERM]
parabola[m] has quit [Quit: Bridge terminating on SIGTERM]
dpatterbee[m] has quit [Quit: Bridge terminating on SIGTERM]
fedx[m] has quit [Quit: Bridge terminating on SIGTERM]
fridtjof[m] has quit [Quit: Bridge terminating on SIGTERM]
jammie[m] has quit [Quit: Bridge terminating on SIGTERM]
stttcccccccccccc[m] has quit [Quit: Bridge terminating on SIGTERM]
i509vcb[m] has quit [Quit: Bridge terminating on SIGTERM]
arnidg[m] has quit [Quit: Bridge terminating on SIGTERM]
rowang077[m] has quit [Quit: Bridge terminating on SIGTERM]
MingcongBai[m] has quit [Quit: Bridge terminating on SIGTERM]
bastilian[m] has quit [Quit: Bridge terminating on SIGTERM]
rkjnsn[m] has quit [Quit: Bridge terminating on SIGTERM]
mulderje has quit [Quit: Bridge terminating on SIGTERM]
davay[m] has quit [Quit: Bridge terminating on SIGTERM]
user1tt[m] has quit [Quit: Bridge terminating on SIGTERM]
perigoso[m] has quit [Quit: Bridge terminating on SIGTERM]
ganpa[m] has quit [Quit: Bridge terminating on SIGTERM]
pitust[m] has quit [Quit: Bridge terminating on SIGTERM]
avx3[m] has quit [Quit: Bridge terminating on SIGTERM]
alexanderwillner[m] has quit [Quit: Bridge terminating on SIGTERM]
Bastian[m] has quit [Quit: Bridge terminating on SIGTERM]
Aaron[m]1 has quit [Quit: Bridge terminating on SIGTERM]
jevinskie[m] has quit []
emilazy has quit [Quit: Bridge terminating on SIGTERM]
h_ro[m] has quit [Quit: Bridge terminating on SIGTERM]
AONeiLL[m] has quit [Quit: Bridge terminating on SIGTERM]
M31j[m] has quit [Quit: Bridge terminating on SIGTERM]
ah-[m] has quit [Quit: Bridge terminating on SIGTERM]
jryans has quit []
Scott[m] has quit [Quit: Bridge terminating on SIGTERM]
TypoKign[m] has quit [Quit: Bridge terminating on SIGTERM]
AndrewLee[m] has quit [Quit: Bridge terminating on SIGTERM]
foxlet has quit [Quit: Bridge terminating on SIGTERM]
uur[m] has quit [Quit: Bridge terminating on SIGTERM]
simjnd[m] has quit [Quit: Bridge terminating on SIGTERM]
PieroDel[m] has quit [Quit: Bridge terminating on SIGTERM]
xerpi[m] has quit []
PthariensFlame[m] has quit [Quit: Bridge terminating on SIGTERM]
ytg has quit [Quit: Bridge terminating on SIGTERM]
Guest4408 has quit []
samfromspace[m] has quit [Quit: Bridge terminating on SIGTERM]
julianp[m] has quit [Quit: Bridge terminating on SIGTERM]
CristianMgheruan-Stanciu[m] has quit [Quit: Bridge terminating on SIGTERM]
psydroid has quit [Quit: Bridge terminating on SIGTERM]
ilovetrains[m] has quit [Quit: Bridge terminating on SIGTERM]
Caedus[m] has quit [Quit: Bridge terminating on SIGTERM]
Amey has quit [Quit: Bridge terminating on SIGTERM]
fluffypup[m] has quit [Quit: Bridge terminating on SIGTERM]
vivithecanine[m] has quit [Quit: Bridge terminating on SIGTERM]
AlessandroFerrari[m] has quit [Quit: Bridge terminating on SIGTERM]
alessandrorzz[m] has quit [Quit: Bridge terminating on SIGTERM]
Ferluci[m] has quit [Quit: Bridge terminating on SIGTERM]
facez[m] has quit [Quit: Bridge terminating on SIGTERM]
M32thSystem[m] has quit [Quit: Bridge terminating on SIGTERM]
marcan[m] has quit [Quit: Bridge terminating on SIGTERM]
ninja[m] has quit [Quit: Bridge terminating on SIGTERM]
alicela1n has quit [Quit: Bridge terminating on SIGTERM]
bfredl[m] has quit [Quit: Bridge terminating on SIGTERM]
AkihikoOdaki[m] has quit [Quit: Bridge terminating on SIGTERM]
rob-3[m] has quit [Quit: Bridge terminating on SIGTERM]
The_DarkFire_[m] has quit [Quit: Bridge terminating on SIGTERM]
Davis[m] has quit [Quit: Bridge terminating on SIGTERM]
DanielHuisman[m] has quit [Quit: Bridge terminating on SIGTERM]
PixelyIon[m] has quit [Quit: Bridge terminating on SIGTERM]
YichaoYu[m] has quit [Quit: Bridge terminating on SIGTERM]
c1truz[m] has quit [Quit: Bridge terminating on SIGTERM]
PeterHilgenfeld[m] has quit [Quit: Bridge terminating on SIGTERM]
SocioProphet[m] has quit [Quit: Bridge terminating on SIGTERM]
booffo[m] has quit [Quit: Bridge terminating on SIGTERM]
mofux[m] has quit [Quit: Bridge terminating on SIGTERM]
anfernee[m] has quit [Quit: Bridge terminating on SIGTERM]
mmlb[m] has quit [Quit: Bridge terminating on SIGTERM]
ryanhrob[m] has quit [Quit: Bridge terminating on SIGTERM]
ted[m]1 has quit [Quit: Bridge terminating on SIGTERM]
vasilymilovidov[m] has quit [Quit: Bridge terminating on SIGTERM]
s-urabe[m] has quit [Quit: Bridge terminating on SIGTERM]
noc0lour[m] has quit [Quit: Bridge terminating on SIGTERM]
dgc[m] has quit [Quit: Bridge terminating on SIGTERM]
happy-dude[m] has quit [Quit: Bridge terminating on SIGTERM]
Spectrejan[m] has quit [Quit: Bridge terminating on SIGTERM]
quentincestino[m] has quit [Quit: Bridge terminating on SIGTERM]
MagMell[m] has quit [Quit: Bridge terminating on SIGTERM]
spot[m] has quit [Quit: Bridge terminating on SIGTERM]
NikolaCicmil[m] has quit [Quit: Bridge terminating on SIGTERM]
bngs[m] has quit [Quit: Bridge terminating on SIGTERM]
Emantor[m] has quit [Quit: Bridge terminating on SIGTERM]
ruach[m] has quit [Quit: Bridge terminating on SIGTERM]
isitaboat[m] has quit [Quit: Bridge terminating on SIGTERM]
Dementor[m] has quit [Quit: Bridge terminating on SIGTERM]
Serentty[m] has quit [Quit: Bridge terminating on SIGTERM]
LeviLynch[m] has quit [Quit: Bridge terminating on SIGTERM]
andi-[m] has quit [Quit: Bridge terminating on SIGTERM]
maxim[m] has quit [Quit: Bridge terminating on SIGTERM]
sephamorr[m] has quit [Quit: Bridge terminating on SIGTERM]
cavoirom[m] has quit [Quit: Bridge terminating on SIGTERM]
davidrysk[m] has quit [Quit: Bridge terminating on SIGTERM]
blazra[m] has quit [Quit: Bridge terminating on SIGTERM]
angustrau[m] has quit [Quit: Bridge terminating on SIGTERM]
VitorCardoso[m] has quit [Quit: Bridge terminating on SIGTERM]
lockna has quit [Quit: Bridge terminating on SIGTERM]
camr0[m] has quit [Quit: Bridge terminating on SIGTERM]
svenpeter[m] has quit [Quit: Bridge terminating on SIGTERM]
floxf5[m] has quit [Quit: Bridge terminating on SIGTERM]
tophevich[m] has quit [Quit: Bridge terminating on SIGTERM]
pipcet[m] has quit [Quit: Bridge terminating on SIGTERM]
brentr123[m] has quit [Quit: Bridge terminating on SIGTERM]
joerosenberg[m] has quit [Quit: Bridge terminating on SIGTERM]
OrganicPumpkin[m] has quit [Quit: Bridge terminating on SIGTERM]
coin3x[m] has quit [Quit: Bridge terminating on SIGTERM]
landscape15[m] has quit [Quit: Bridge terminating on SIGTERM]
HaoYanQi[m] has quit [Quit: Bridge terminating on SIGTERM]
daftfrog[m] has quit [Quit: Bridge terminating on SIGTERM]
cgv[m] has quit [Quit: Bridge terminating on SIGTERM]
tasild[m] has quit [Quit: Bridge terminating on SIGTERM]
pho[m] has quit [Quit: Bridge terminating on SIGTERM]
citizen1[m] has quit [Quit: Bridge terminating on SIGTERM]
izica has quit [Quit: Bridge terminating on SIGTERM]
elosant[m] has quit [Quit: Bridge terminating on SIGTERM]
besmirich[m] has quit [Quit: Bridge terminating on SIGTERM]
smvg[m] has quit [Quit: Bridge terminating on SIGTERM]
nilsi[m] has quit [Quit: Bridge terminating on SIGTERM]
etsukata[m] has quit [Quit: Bridge terminating on SIGTERM]
digitalfx[m] has quit [Quit: Bridge terminating on SIGTERM]
ChrisHembree[m] has quit [Quit: Bridge terminating on SIGTERM]
kjm99[m] has quit [Quit: Bridge terminating on SIGTERM]
Krumble[m] has quit [Quit: Bridge terminating on SIGTERM]
ograff has quit [Quit: Bridge terminating on SIGTERM]
rat-hippo[m] has quit [Quit: Bridge terminating on SIGTERM]
PedroArajo[m] has quit [Quit: Bridge terminating on SIGTERM]
shaman_br[m] has quit [Quit: Bridge terminating on SIGTERM]
rethematrix[m] has quit [Quit: Bridge terminating on SIGTERM]
stelleg[m] has quit [Quit: Bridge terminating on SIGTERM]
Xichao[m] has quit [Quit: Bridge terminating on SIGTERM]
ghantaz[m] has quit [Quit: Bridge terminating on SIGTERM]
peerp[m] has quit [Quit: Bridge terminating on SIGTERM]
jthom[m] has quit [Quit: Bridge terminating on SIGTERM]
AnushervonTabarov[m] has quit [Quit: Bridge terminating on SIGTERM]
muscularduckling[m] has quit [Quit: Bridge terminating on SIGTERM]
Rakshit[m] has quit [Quit: Bridge terminating on SIGTERM]
dnjmis[m] has quit [Quit: Bridge terminating on SIGTERM]
sandornagy[m] has quit [Quit: Bridge terminating on SIGTERM]
obflv[m] has quit [Quit: Bridge terminating on SIGTERM]
Santiago[m]1 has quit [Quit: Bridge terminating on SIGTERM]
GenieLotion[m] has quit [Quit: Bridge terminating on SIGTERM]
twoscomplement0b[m] has quit [Quit: Bridge terminating on SIGTERM]
jeh[m] has quit [Quit: Bridge terminating on SIGTERM]
ar88kk[m] has quit [Quit: Bridge terminating on SIGTERM]
PeterB[m] has quit [Quit: Bridge terminating on SIGTERM]
abilash1994[m] has quit [Quit: Bridge terminating on SIGTERM]
ella-0[m] has quit []
EdwardAnd[m] has quit [Quit: Bridge terminating on SIGTERM]
gamble[m] has quit [Quit: Bridge terminating on SIGTERM]
lemonsus[m] has quit [Quit: Bridge terminating on SIGTERM]
idf00[m] has quit [Quit: Bridge terminating on SIGTERM]
yoodee[m] has quit [Quit: Bridge terminating on SIGTERM]
mindw0rk[m] has quit [Quit: Bridge terminating on SIGTERM]
M31j[m] has joined #asahi
nrl^ has joined #asahi
Andalu30 has joined #asahi
<maz> sven: yup, that fixes it. do you want me to put that in a patch with your name on it?
awal3 has joined #asahi
<kettenis> maz: haven't seen a reply from you on the msi-controller DT binding conversion that is part of the PCIe DT binding series
<kettenis> was planning to send a v5 tonight
<maz> kettenis: huh, I may have missed tons of emails (just came back from holiday...).
Andalu30 has quit [Quit: Konversation terminated!]
<kettenis> and the followup one that adds msi-range:
<maz> thanks. let me get on that.
<kettenis> anyway, I'll send a v5 that addresses the issues robh pointed out soon
<kettenis> I'm not entirely happy with the text in the msi-controller binding
awal4 has joined #asahi
<kettenis> I retained the text from the .txt file, but maybe it needs a bit of a rewrite
awal3 has quit [Ping timeout: 480 seconds]
crucifix has joined #asahi
<maz> Honestly, it looks good to me. so if you fix RobH's comments as well as the RC range I pointed out last week, we should be good. I'll ack that on the list.
<kettenis> cool
<kettenis> have some $DAYJOB stuff to do this afternoon, but I'll send it out tonight
<kettenis> want to make sure this doesn't end up blocking your Linux driver
<maz> yeah, same here. I'll push out the PCIe driver v4 as well.
<maz> I think the PCIe driver may be blocker by the pinctrl driver anyway (no idea what the status of that is).
<maz> s/blocker/blocked/
<j_ey> maz: im hoping to send out a first version this week
<maz> j_ey: ah, cool. if you have a branch hanging somewhere, I could rebase the PCIe driver on top.
<j_ey> maz: there's been nothing major recently. when I push it out I will make a squashed branch (because it's like 40 commits currently)
<kettenis> maz: does that mean I should add that Acked-by: line to all the commit messages in the series before resending?
M32thSystem[m] has joined #asahi
Caedus[m] has joined #asahi
EdwardAnd[m] has joined #asahi
Aaron[m]1 has joined #asahi
abilash1994[m] has joined #asahi
ah-[m] has joined #asahi
alessandrorzz[m] has joined #asahi
alexanderwillner[m] has joined #asahi
_alice has joined #asahi
alicela1n has joined #asahi
Amey has joined #asahi
andi-[m] has joined #asahi
AONeiLL[m] has joined #asahi
anfernee[m] has joined #asahi
<maz> kettenis: yup, that's the idea.
angustrau[m] has joined #asahi
AkihikoOdaki[m] has joined #asahi
ar88kk[m] has joined #asahi
arnidg[m] has joined #asahi
avx3[m] has joined #asahi
davay[m] has joined #asahi
Bastian[m] has joined #asahi
bastilian[m] has joined #asahi
besmirich[m] has joined #asahi
bfredl[m] has joined #asahi
blazra[m] has joined #asahi
bngs[m] has joined #asahi
booffo[m] has joined #asahi
brentr123[m] has joined #asahi
c1truz[m] has joined #asahi
camr0[m] has joined #asahi
AndrewLee[m] has joined #asahi
AnushervonTabarov[m] has joined #asahi
cavoirom[m] has joined #asahi
cgv[m] has joined #asahi
ChrisHembree[m] has joined #asahi
NikolaCicmil[m] has joined #asahi
citizen1[m] has joined #asahi
coin3x[m] has joined #asahi
<maz> (matrix invasion)
CristianMgheruan-Stanciu[m] has joined #asahi
PeterB[m] has joined #asahi
daftfrog[m] has joined #asahi
DanielHuisman[m] has joined #asahi
davidrysk[m] has joined #asahi
TypoKign[m] has joined #asahi
dgc[m] has joined #asahi
digitalfx[m] has joined #asahi
dnjmis[m] has joined #asahi
dpatterbee[m] has joined #asahi
parabola[m] has joined #asahi
ella-0[m] has joined #asahi
elosant[m] has joined #asahi
Emantor[m] has joined #asahi
emilazy has joined #asahi
etsukata[m] has joined #asahi
facez[m] has joined #asahi
fedx[m] has joined #asahi
LeviLynch[m] has joined #asahi
Ferluci[m] has joined #asahi
AlessandroFerrari[m] has joined #asahi
floxf5[m] has joined #asahi
fluffypup[m] has joined #asahi
foxlet has joined #asahi
fridtjof[m] has joined #asahi
gamble[m] has joined #asahi
ganpa[m] has joined #asahi
GenieLotion[m] has joined #asahi
ghantaz[m] has joined #asahi
go4godvin has joined #asahi
h_ro[m] has joined #asahi
hablerentand[m] has joined #asahi
happy-dude[m] has joined #asahi
haterade[m] has joined #asahi
i509vcb[m] has joined #asahi
idf00[m] has joined #asahi
ilovetrains[m] has joined #asahi
isitaboat[m] has joined #asahi
izica has joined #asahi
Izumoo[m] has joined #asahi
izzyisles[m] has joined #asahi
jammie[m] has joined #asahi
jeh[m] has joined #asahi
jevinskie[m] has joined #asahi
joerosenberg[m] has joined #asahi
jryans has joined #asahi
jthom[m] has joined #asahi
julianp[m] has joined #asahi
kjm99[m] has joined #asahi
mofux[m] has joined #asahi
Krumble[m] has joined #asahi
lockna has joined #asahi
landscape15[m] has joined #asahi
lemonsus[m] has joined #asahi
ll3macorn[m] has joined #asahi
marcan[m] has joined #asahi
maxim[m] has joined #asahi
mindw0rk[m] has joined #asahi
MingcongBai[m] has joined #asahi
mmlb[m] has joined #asahi
mulderje has joined #asahi
muscularduckling[m] has joined #asahi
Santiago[m]1 has joined #asahi
nemanjan00[m] has joined #asahi
nilsi[m] has joined #asahi
ninja[m] has joined #asahi
noc0lour[m] has joined #asahi
obflv[m] has joined #asahi
ograff has joined #asahi
HaoYanQi[m] has joined #asahi
ovf[m] has joined #asahi
OrganicPumpkin[m] has joined #asahi
PedroArajo[m] has joined #asahi
peerp[m] has joined #asahi
perigoso[m] has joined #asahi
PeterHilgenfeld[m] has joined #asahi
pho[m] has joined #asahi
pipcet[m] has joined #asahi
pitust[m] has joined #asahi
PixelyIon[m] has joined #asahi
psydroid[m]1 has joined #asahi
PthariensFlame[m] has joined #asahi
<maz> j_ey: OK. if you Cc me on your series, I'll try and pull all the strings together.
quentincestino[m] has joined #asahi
rat-hippo[m] has joined #asahi
rethematrix[m] has joined #asahi
rkjnsn[m] has joined #asahi
rob-3[m] has joined #asahi
RowanGoemans[m] has joined #asahi
rowang077[m] has joined #asahi
ruach[m] has joined #asahi
ryanhrob[m] has joined #asahi
s-urabe[m] has joined #asahi
MagMell[m] has joined #asahi
samfromspace[m] has joined #asahi
smvg[m] has joined #asahi
sandornagy[m] has joined #asahi
Scott[m]1 has joined #asahi
sephamorr[m] has joined #asahi
Serentty[m] has joined #asahi
shaman_br[m] has joined #asahi
simjnd[m] has joined #asahi
Davis[m] has joined #asahi
SocioProphet[m] has joined #asahi
<j_ey> maz: will do, I'll CC all the usual suspects
Spectrejan[m] has joined #asahi
spot[m] has joined #asahi
stelleg[m] has joined #asahi
stttcccccccccccc[m] has joined #asahi
svenpeter has joined #asahi
tasild[m] has joined #asahi
ted[m]1 has joined #asahi
TellowKrinkle[m] has joined #asahi
Dementor[m] has joined #asahi
The_DarkFire_[m] has joined #asahi
Rakshit[m] has joined #asahi
tophevich[m] has joined #asahi
twoscomplement0b[m] has joined #asahi
user1tt[m] has joined #asahi
uur[m] has joined #asahi
vasilymilovidov[m] has joined #asahi
VitorCardoso[m] has joined #asahi
vivithecanine[m] has joined #asahi
xerpi[m] has joined #asahi
Xichao[m] has joined #asahi
yoodee[m] has joined #asahi
ytg has joined #asahi
YichaoYu[m] has joined #asahi
PieroDel[m] has joined #asahi
svenpeter is now known as Guest512
<kettenis> maz: cool (just to be clear I'll retain the msi-parent, I think it is best to be explicit even though I may have to change the OpenBSD code in the future to handle an implicit MSI parent node)
<maz> kettenis: works for me.
awal4 has quit [Ping timeout: 480 seconds]
<marcan> alyssa: well now you have me making major changes to the entire exception handling in m1n1 :p
awal4 has joined #asahi
awal has joined #asahi
awal4 has quit [Ping timeout: 480 seconds]
<alyssa> marcan: ...oops?
povik has joined #asahi
<sven> maz: i think the correct fix is to just drop the iommu_flush_ops completely. this may also have to go into one of the next rcs because it might be possible to hit this even without pci support
awal1 has joined #asahi
awal has quit [Ping timeout: 480 seconds]
awal1 has quit [Ping timeout: 480 seconds]
handlerug has quit [Remote host closed the connection]
handlerug has joined #asahi
<marcan> alyssa: still no idea *why* you got that SError, but at least now it should be handled properly
<marcan> (pushed)
<marcan> how are you getting it?
<marcan> povik: nice job on the audio :)
<marcan> alyssa: also you can try hv.trace_range(irange(0x24246b000, 0x24246b004)) before start if you're still getting the same fault; that should at least make it precise (i.e. you actually get the faulting instruction in the guest)
<marcan> (without something like that, SErrors are asynchronous)
awal1 has joined #asahi
<povik> marcan: enabled by no small part by your tools
<marcan> :)
awal1 has quit [Quit: WeeChat 3.2]
<maz> sven: don't we need this invalidation anyway? it would feel odd to keep TLBs around when we've dropped the PTs. agreed on the need for something to go upstream as a fix.
<sven> the invalidation already happens with apple_dart_iotlb_sync and apple_dart_iotlb_sync_map which is called by iommu_map/unmap.
<sven> right now it would happen twice if those two functions weren't completely broken due to the wrong cookie that gets passed
<maz> sven: ah, gotcha.
<sven> yeah.. it's essentially a left-over from v1 when i didn't yet understand the entire iommu api :(
<maz> well, I think there are about 4 of you now.
<j_ey> it certainly seems that way sometimes
<j_ey> when i plug my laptop in, with the lid closed it makes a bong, I guess that's the smc?
jbowen has joined #asahi
<marcan> j_ey: AOP maybe
<marcan> or just the main OS waking up
<j_ey> marcan: I get a 'Guest exception: EXCEPTION_LOWER/SYNC' on asahi/pmgr/dev
<j_ey> I think it's from a WARN/BUG
<marcan> is it a brk?
<marcan> if so it's a panic I think
<j_ey> yeah it's the brk 0x800
<j_ey> (I've never gotten `bt` to work in m1n1..)
<marcan> it has to do with kernel configs
<marcan> no messages before that?
<j_ey> # CONFIG_RANDOMIZE_BASE is not set, not sure if I need anything else unset
<j_ey> no messages
<marcan> CONFIG_ARM64_PTR_AUTH=n if you don't want to set the pac_base by hand. I should really automate that...
<marcan> *pac_mask
<marcan> though actually I have that set and it works fine
<marcan> j_ey: did you load_system_map()?
<j_ey> rebuilding with ptr auth off, I dont need it
<j_ey> yeah
<marcan> what does bt look like?
<j_ey> - 0xffffffc01043b48c (_end+0x3fbfff78b48c)
<j_ey> - 0xffffffc0105efab8 (_end+0x3fbfff93fab8)
<j_ey> etc
<marcan> ah yeah, did you have CONFIG_ARM64_PTR_AUTH_KERNEL on?
<j_ey> yes PTR_AUTH and PTR_AUTH_KERNEL=y
<marcan> hm
<j_ey> I think it was just the default
<j_ey> (but I disabled them both now)
<marcan> yeah but it works for me with both of those set
<marcan> j_ey: ah, is this a 4K or 16K kernel?
<j_ey> 16K
<j_ey> with 47-bit VA
<marcan> that's why, I was on 4K
<marcan> anyway, let me fix this
<j_ey> Im using 16K because it doesn't get as much testing!
<j_ey> marcan: you might fix this before recompiling the kernel finishes zzZZzz
<j_ey> nope, turning off PTR_AUTH didnt help :(
<marcan> j_ey: done
<marcan> try now
<j_ey> marcan: great!
<j_ey> the bt has apple_pmgr_ps_probe in it
<marcan> what's above it?
<j_ey> refcount_warn_saturate.. I thought it might be a WARN
<j_ey> I dont know why those lead to brks for me
quarkyalice_ has joined #asahi
<marcan> huh, why is that going into printk back into of...
<marcan> j_ey: anyway, let me see if I can fix that brk business
<j_ey> Im trying to understand why I hit that, a WARN shouldnt cause it.. (I've seen this with other WARNS)
quarkyalice__ has joined #asahi
quarkyalice_ has quit [Ping timeout: 480 seconds]
quarkyalice_ has joined #asahi
<j_ey> stuff like this makes WARN behaviour confusing: https://github.com/torvalds/linux/blob/master/drivers/pinctrl/core.c#L1711
quarkyalice__ has quit [Ping timeout: 480 seconds]
<maz> sven: yup, that fixes it.
<maz> sven: in a similar vein, adding the removed device back fails as well: https://paste.debian.net/1212703/
<maz> (though more gracefully)
<sven> hm.. weird. let me try to figure out what's going on there
<marcan> j_ey: BUG() does that
<marcan> I just added a lower() command to the hv
<marcan> that will let you pass the brk through to the guest, so you see the prints
<marcan> use keep_bootcon for pmgr stuff, otherwise you probably won't get any output during that critical period
<marcan> CONFIG_OF_DYNAMIC is what causes it :)
<marcan> (and it's a bug in my pmgr code)
<j_ey> WARN also causes the brk though, I do have CONFIG_OF_DYNAMIC, I will try lower()!
<marcan> fixed it
<marcan> j_ey: pushed to pmgr/dev
<j_ey> marcan: so do you have CONFIG_OF_DYNAMIC? wondering why you didnt see it
<marcan> I did not
<marcan> which is why I didn't
<marcan> seems CONFIG_OF_OVERLAY is probably how you ended up with that
<j_ey> not something I intentionally selected
<marcan> j_ey: also just force-pushed with a better fix :)
<marcan> I turned it on anyway, seems useful to catch OF refcounting bugs
<j_ey> I just rebased, lol, guess I'll fetch and do it again
<marcan> (sorry :p)
quarkyalice_ has quit [Ping timeout: 480 seconds]
nrl^ has quit [Remote host closed the connection]
<sven> ah. i think i know what's going on. let's see.
<sven> i think the old group reference is still stuck in sid2group
<j_ey> marcan: boots now. I have to figure out a clock for spi though
<marcan> see dump_pmgr.py
<marcan> I should write a script that just spits it all out in DT format :)
<j_ey> going to try with refclk first, just to see if that works :p
<j_ey> (it doesnt)
<marcan> oh sorry, clock, not pstate
<marcan> #121: 200000000 2 0xa0/0x23b0400f8: regval: 0x85100000
<marcan> User: /device-tree/arm-io/spi1.clk[0]
<marcan> says 200MHz
<marcan> (that might explain why refclk didn't work, if the target device didn't like a ~10x too fast clock)
<kettenis> the i2c blocks do use refclk though isn't it?
<marcan> yes, IIRC
quarkyalice_ has joined #asahi
<kettenis> stripping most of the clock stuff out of u-boot now that I have power-domains implemented
quarkyalice_ has quit [Remote host closed the connection]
quarkyalice_ has joined #asahi
<marcan> just added a thing to dump_pmgr to also dump the fixed/hardcoded clocks
<marcan> === Fixed clocks ===
<marcan> #4
<marcan> User: /device-tree/arm-io/i2c1.clk[0]
<marcan> User: /device-tree/arm-io/uart2.clk[1]
<marcan> User: /device-tree/arm-io/i2c2.clk[0]
<marcan> User: /device-tree/arm-io/wdt.clk[0]
<marcan> User: /device-tree/arm-io/uart0.clk[1]
<marcan> User: /device-tree/arm-io/i2c0.clk[0]
<marcan> that's the only one in use (and it's refclk)
<j_ey> so spi isnt in there
<marcan> j_ey: spi is 200MHz as I said
quarkyalice_ has quit [Max SendQ exceeded]
<marcan> that's a dynamic clock
<j_ey> im confused what I should put in the dt for that then
quarkyalice_ has joined #asahi
<marcan> 200MHz
<marcan> just make another fixed clock, call it spiclk or something
<sven> yeah, i2c uses the 24 mhz refclock
<j_ey> marcan: well is it dyanmic or fixed? :P
<marcan> it's dynamic but macos never touches it and we don't even know what the clock mux inputs are for that
quarkyalice_ has quit [Max SendQ exceeded]
<marcan> so we're treating all the dynamic clocks as static
<j_ey> (I made another clock, I just realised my issue might be that I messed up the power domains, so double checking)
quarkyalice_ has joined #asahi
<marcan> if you are chaining all the way up, note that linux will probably try to power down things it shouldn't
<marcan> you can try adding always-on; props
<j_ey> ok getting closer, no SError now, but all the SPI packets are corrupted
quarkyalice_ has quit [Remote host closed the connection]
<marcan> heh
quarkyalice_ has joined #asahi
quarkyalice_ has quit [Remote host closed the connection]
<marcan> j_ey: is this the keyboard with the corellium driver?
<j_ey> yes
<kettenis> you need something to test gpio interrupts ;)
<j_ey> marcan: first attempt at converting to pstate driver https://paste.gg/p/anonymous/f864f096973f4f298ca0919d160e050a
<j_ey> kettenis: the irqs are working, i can hit keys and see 'corrupted spi packet'!
<marcan> j_ey: getting the feeling it's refclk after all
<marcan> try that
<marcan> apple only lists the 200MHz clock for spi, but that might be a device clock or something, and then the IO clock is still refclk...
<j_ey> ok, I didnt retry that after fixing the power issues
<j_ey> at least in the old way, I think refclk was the topmost level of the chain of clocks, so it makes snese maybe
<marcan> yeah, the old way had refclk trickle down to everything
<marcan> and I just checked and the driver does use the clock
<marcan> so it would've ended up with refclk
<j_ey> yup, that works!
<kettenis> correlium defenitely assumes spi is using a 24
<kettenis> MHz clock
* j_ey removes always-on
<marcan> it's probably correct
<marcan> we've well established by now that the ADT is a giant mess and doesn't describe the hardware even remotely consistently
<j_ey> always-on isn't needed either
<j_ey> marcan: thanks for all the quick fixes today!
<marcan> j_ey: btw, I bet the spi has a selectable clock like the uart does
<marcan> (where it's either the fixed 24M clock or the configurable one, except for the UART that one is configured to 24M anyway)
<marcan> you could try poking bits in the control register to see if you can find a clock select where it suddenly works at 200MHz instead :p
<j_ey> marcan: can you get the data for spi3? what you pasted was spi1, want to make sure it's the same
<marcan> ah, I don't have spi3 because I'm on a mac mini :)
<j_ey> oh right
<marcan> you can run dump_pmgr.py yourself though!
yuyichao has quit [Quit: Konversation terminated!]
<j_ey> I'll try that in a bit
<marcan> knowing how the uart block works, that "REG_CONFIG_PIOEN" looks more like IRQ enabled? it's the same bit as the IRQ mode on the samsung spi (S3C2410_SPCON_SMOD_INT)
<marcan> I wonder if CPHA/CPOL and some of the others are the same as that samsung
<marcan> I should spend some time poking at spi after I tear down this thing...
<sven> maz: https://f.svpe.de/636177e0cd0a06448d05c0380b4bc5b4c7b9a888b62585731849c1aa6a8eb8f4_dart-bugfix.patch compiles but is completely untested, probably wrong and maybe doesn't even fix that issue. can't get pcie to work right now and i'm about to head out: https://f.svpe.de/b745ec0ca275c9438cf98b4c31c46a86ab38c555fc93086d1d6675bf7fe763d9_pcie.txt
<j_ey> marcan: I watch a Ben Eater video on spi (https://www.youtube.com/watch?v=MCi7dCBhVpQ) but thats about as far as I got
<sven> (my kernel tree is pretty messed up right now fwiw, so there's a good chance that pcie error is spurious)
<j_ey> marcan: I have tried doing some random changes and stuff in this driver.. but if you want to redo it completely, I think that might be better
<j_ey> sven: lol, high praise on that patch.
<maz> sven: I'll have a stab at it.
<sven> ah yes. the memcpy is already wrong
<sven> should copy from cfg->stream_maps. maybe.
<marcan> j_ey: I might spend some time poking at the hardware and figuring out how to redo it more sanely
<j_ey> marcan: im happy to test with keyboard, since the other obvious spi thing is the nor flash.. and well.. we dunno about that yet :P
<marcan> well, my mac minis only have nor...
<marcan> but if I brick this thing it'll be a good experiment too :D
<j_ey> marcan: nothing else really looks similar to that samsung spi
bah_ has joined #asahi
<marcan> yeah, it's not similar like uart is
<marcan> but given the lineage of these chips, it wouldn't be surprising if details are the same
aleasto has quit [Quit: Konversation terminated!]
aleasto has joined #asahi
bah_ has quit []
jbowen has quit [Ping timeout: 480 seconds]
aleasto has quit [Remote host closed the connection]
aleasto has joined #asahi
aleasto has quit [Remote host closed the connection]
aleasto has joined #asahi
aleasto has quit []
aleasto has joined #asahi
jbowen has joined #asahi
aleasto has quit [Ping timeout: 480 seconds]
aleasto has joined #asahi
jbowen has quit [Ping timeout: 480 seconds]
dff has joined #asahi
jbowen has joined #asahi
<povik> marcan: re: dump_pmgr.py, should boot clock indices be related to device phandles in ADT?
<povik> because i see what is either a connection between the two or strange coincidence
yuyichao has joined #asahi
yuyichao has quit [Remote host closed the connection]
yuyichao has joined #asahi
yuyichao has quit [Remote host closed the connection]
yuyichao has joined #asahi
yuyichao has quit []
yuyichao has joined #asahi
yuyichao has quit [Remote host closed the connection]
yuyichao has joined #asahi
X-Scale` has joined #asahi
X-Scale has quit [Ping timeout: 480 seconds]
yuyichao has quit [Remote host closed the connection]
yuyichao has joined #asahi
yuyichao has quit [Remote host closed the connection]
yuyichao has joined #asahi
aleasto has quit [Read error: Connection reset by peer]
yuyichao has quit []
yuyichao has joined #asahi
yuyichao has quit [Quit: Konversation terminated!]
yuyichao has joined #asahi
kettenis_ has joined #asahi
kettenis has quit [Ping timeout: 480 seconds]
yuyichao has quit [Quit: Konversation terminated!]
yuyichao has joined #asahi
nskl has quit [Quit: WeeChat 3.2]
yuyichao has quit [Remote host closed the connection]
yuyichao has joined #asahi
nsklaus has joined #asahi
X-Scale has joined #asahi
X-Scale` has quit [Ping timeout: 480 seconds]
jbowen has quit [Quit: leaving]
kettenis_ is now known as kettenis
crucifix has quit []
<alyssa> "I'm sending this from my arm work e-mail address, however it was done on personal time"
<alyssa> this is why we negotiate copyright assignment, folks
<j_ey> just making it clear I wasnt being paid to look at it :P
<j_ey> alyssa: note2 is for you :P
TheLink has quit [Quit: ZNC 1.8.2 - https://znc.in]
<alyssa> j_ey: 😉
<alyssa> j_ey: what's the deal with pinctrl vs pinmux?
<j_ey> pinctrl includes pinmux, pinctrl is the 'overall' name for it. there's also pinconf
<alyssa> Aaa
<j_ey> pinconf is about electrical settings (voltage etc), that we dont support
<j_ey> muxing is well. muxing
<j_ey> normally you would want to split gpio and pinctrl I think, but theyre all in the same hw block on the m1
<alyssa> hum, ok
<j_ey> (I mean have drivers/gpio/apple.c and drivers/pinctrl/apple.c)
<povik> uf, work done
<povik> alyssa: ^ as promised
<alyssa> povik: :D
<alyssa> sign-offs usually mean the DCO
<alyssa> basically "this code is licnesed the way I said it was, and I'm legally allowed to do that"
<psykose> is it possible to sign a dco with no name or not
<psykose> i think i never found a concrete answer
<povik> right, but i would prefer the project documentation saying so
<povik> instead of relying on custom
<povik> although i don't know how strong the custom is
TheLink has joined #asahi
<psykose> personally never seen something saying sign-off that wasn't dco so must be pretty strong :)
<povik> okay, i will not nitpcik then :)
* povik is adding the sign offs
<alyssa> git sign off is morally signing your name on the contract that is the DCO, i guess.
<alyssa> (I am not a lawyer this is not legal advice.)
<alyssa> (So, er, morally not legally)
<psykose> (this is not moral advice)
<jn> at least in linux, where this binding (between S-o-b and DCO) is established in the documentation
<alyssa> povik: So it looks like you understand ADMAC well but not the other parts used to drive the speaker?
<povik> pretty much
<alyssa> 👍
<povik> you don't see into the mca-switch and friends as much you see into the dma
<povik> i have a lot expectations on what a dma is, less so with the others
<alyssa> Sure
<alyssa> povik: I think there was a kext with the initialism ADMAC ....
<povik> i will try not to touch any kexts in this life :)
<alyssa> well, I'm sure when the time comes, there will be a marcan ex machina ;)
<povik> :D
TheLink has quit [Read error: Connection reset by peer]
TheLink has joined #asahi
gladiac is now known as Guest592
gladiac has joined #asahi
Guest592 has quit [Ping timeout: 480 seconds]