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-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
raster has joined #asahi
troseman has joined #asahi
odmir has quit [Ping timeout: 268 seconds]
odmir has joined #asahi
raster has quit [Quit: Gettin' stinky!]
Emantor has joined #asahi
jeffmiw_ has joined #asahi
jeffmiw_ has quit [Ping timeout: 260 seconds]
odmir has quit [Ping timeout: 240 seconds]
solarkraft has joined #asahi
odmir has joined #asahi
odmir has quit [Ping timeout: 240 seconds]
stblassitude has joined #asahi
odmir has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
phiologe has joined #asahi
marvin24 has quit [Ping timeout: 250 seconds]
marvin24 has joined #asahi
Necrosporus has quit [Read error: Connection reset by peer]
Necrosporus has joined #asahi
odmir has quit [Remote host closed the connection]
phiologe has quit [*.net *.split]
Emantor has quit [*.net *.split]
Empus has quit [*.net *.split]
bendoin_ has quit [*.net *.split]
ponikrf[m] has quit [*.net *.split]
wagood[m] has quit [*.net *.split]
devinvs[m] has quit [*.net *.split]
clover[m] has quit [*.net *.split]
hypergenesis[m] has quit [*.net *.split]
Bastian[m] has quit [*.net *.split]
mrkajetanp has quit [*.net *.split]
kakobrekla has quit [*.net *.split]
Augur[m] has quit [*.net *.split]
wicast has quit [*.net *.split]
the-mentor3 has quit [*.net *.split]
Necrosporus has quit [*.net *.split]
h_ro[m] has quit [*.net *.split]
M1f4a9[m] has quit [*.net *.split]
m1kr0[m] has quit [*.net *.split]
M3zh[m] has quit [*.net *.split]
fstokesman[m] has quit [*.net *.split]
pipcet[m] has quit [*.net *.split]
rockinrobstar[m] has quit [*.net *.split]
mandresic[m] has quit [*.net *.split]
bylaws has quit [*.net *.split]
emily has quit [*.net *.split]
Jasper[m] has quit [*.net *.split]
arnd has quit [*.net *.split]
stblassitude has quit [*.net *.split]
Z750 has joined #asahi
phiologe has joined #asahi
Necrosporus has joined #asahi
stblassitude has joined #asahi
Emantor has joined #asahi
Empus has joined #asahi
the-mentor3 has joined #asahi
bendoin_ has joined #asahi
Augur[m] has joined #asahi
wicast has joined #asahi
h_ro[m] has joined #asahi
mandresic[m] has joined #asahi
rockinrobstar[m] has joined #asahi
M1f4a9[m] has joined #asahi
ponikrf[m] has joined #asahi
clover[m] has joined #asahi
Bastian[m] has joined #asahi
wagood[m] has joined #asahi
devinvs[m] has joined #asahi
M3zh[m] has joined #asahi
m1kr0[m] has joined #asahi
fstokesman[m] has joined #asahi
pipcet[m] has joined #asahi
mrkajetanp has joined #asahi
hypergenesis[m] has joined #asahi
emily has joined #asahi
Jasper[m] has joined #asahi
kakobrekla has joined #asahi
bylaws has joined #asahi
bkero has joined #asahi
arnd has joined #asahi
pent1ckel has joined #asahi
jaXvi has joined #asahi
baryluk has joined #asahi
bdju has joined #asahi
kit_ty_kate has joined #asahi
stemnic has joined #asahi
flying_sausages has joined #asahi
roxfan has joined #asahi
cdesai has joined #asahi
tbodt has joined #asahi
PendulumSwinger has joined #asahi
jhol has joined #asahi
Hakon has joined #asahi
comex has joined #asahi
awesomebing1 has joined #asahi
hatf0 has joined #asahi
robher has joined #asahi
NekomimiScience has joined #asahi
Helikopt1 has joined #asahi
prusnak has joined #asahi
GaveUp has joined #asahi
kkd has joined #asahi
XeR has joined #asahi
Lightsword has joined #asahi
radex1 has joined #asahi
gruetzkopf has joined #asahi
Cynthia has joined #asahi
doof has joined #asahi
ar has joined #asahi
JTL has joined #asahi
jordan_ has joined #asahi
jabashque has joined #asahi
DarkShadow44 has joined #asahi
_andy_t_ has joined #asahi
sorear has joined #asahi
larbob has joined #asahi
lethalbit has joined #asahi
ml has joined #asahi
Swant has joined #asahi
dottedmag has joined #asahi
jato has joined #asahi
coderobe has joined #asahi
krzywix- has joined #asahi
Janhouse has joined #asahi
Behemoth has joined #asahi
tomtastic has joined #asahi
marcan has joined #asahi
inglor has joined #asahi
zkrx has joined #asahi
mxw39 has joined #asahi
bpye has joined #asahi
shenki has joined #asahi
anarsoul has joined #asahi
tardyp has joined #asahi
TomJepp has joined #asahi
HotSwap has joined #asahi
Yuzu has joined #asahi
leah2 has joined #asahi
yorick has joined #asahi
DragoonAethis has joined #asahi
scooby2 has joined #asahi
x56_ has joined #asahi
Simonx22 has joined #asahi
tarzeau_ has joined #asahi
Stary has joined #asahi
jn__ has joined #asahi
thresh has joined #asahi
riatre has joined #asahi
mort has joined #asahi
_jannau_ has joined #asahi
rossy has joined #asahi
nemith has joined #asahi
saintdev has joined #asahi
puhitaku has joined #asahi
jonmason has joined #asahi
sbingner has joined #asahi
tmbinc has joined #asahi
linkmauve has joined #asahi
eichin has joined #asahi
jkkm has joined #asahi
awordnot has joined #asahi
niv has joined #asahi
Baughn has joined #asahi
nspaced has joined #asahi
diddledan has joined #asahi
hrnz has joined #asahi
steev has joined #asahi
abff has joined #asahi
dgb has joined #asahi
rafaelmartins has joined #asahi
hspak has joined #asahi
bisko has joined #asahi
commandoline has joined #asahi
_ghost_ has joined #asahi
Graypup_ has joined #asahi
ifthenelse has joined #asahi
nmg has joined #asahi
OatmealDome has joined #asahi
robinp has joined #asahi
zarvox has joined #asahi
narmstrong has joined #asahi
nkaretnikov has joined #asahi
mrkajetanp has quit [Max SendQ exceeded]
mort has quit [Max SendQ exceeded]
mort has joined #asahi
ewlsh[m] has quit [Ping timeout: 245 seconds]
bfredl has quit [Ping timeout: 245 seconds]
winocm has quit [Ping timeout: 245 seconds]
Bastian[m] has quit [Ping timeout: 258 seconds]
m1kr0[m] has quit [Ping timeout: 244 seconds]
rockinrobstar[m] has quit [Ping timeout: 244 seconds]
emily has quit [Ping timeout: 244 seconds]
davidrysk[m] has quit [Ping timeout: 252 seconds]
notafile has quit [Max SendQ exceeded]
meiji163[m] has quit [Ping timeout: 260 seconds]
cepheus has quit [Ping timeout: 245 seconds]
dyniec[m] has quit [Ping timeout: 244 seconds]
noc0lour1 has quit [Ping timeout: 244 seconds]
Eighth_Doctor has quit [Ping timeout: 248 seconds]
mofux[m] has quit [Ping timeout: 245 seconds]
JakeVossen[m] has quit [Ping timeout: 276 seconds]
fridtjof[m] has quit [Ping timeout: 245 seconds]
rann has quit [Ping timeout: 245 seconds]
blazra has quit [Ping timeout: 245 seconds]
uartman[m] has quit [Ping timeout: 245 seconds]
Lockna[m] has quit [Ping timeout: 252 seconds]
user1tt[m] has quit [Ping timeout: 252 seconds]
foxlet has quit [Ping timeout: 252 seconds]
M1f4a9[m] has quit [Ping timeout: 245 seconds]
M3zh[m] has quit [Ping timeout: 245 seconds]
bylaws has quit [Ping timeout: 245 seconds]
jryans has quit [Max SendQ exceeded]
brentr123[m] has quit [Ping timeout: 248 seconds]
HeN has quit [Ping timeout: 260 seconds]
konradybcio has quit [Ping timeout: 245 seconds]
PixelyIon[m] has quit [Ping timeout: 245 seconds]
ldhacker[m] has quit [Ping timeout: 245 seconds]
kharit[m] has quit [Ping timeout: 245 seconds]
mandresic[m] has quit [Ping timeout: 245 seconds]
h_ro[m] has quit [Ping timeout: 245 seconds]
fstokesman[m] has quit [Ping timeout: 245 seconds]
pipcet[m] has quit [Ping timeout: 245 seconds]
Jasper[m] has quit [Ping timeout: 245 seconds]
ryanhrob[m] has quit [Ping timeout: 246 seconds]
Jaehyuk[m] has quit [Ping timeout: 246 seconds]
izzyisles[m] has quit [Ping timeout: 246 seconds]
nickray has quit [Ping timeout: 246 seconds]
Augur[m] has quit [Ping timeout: 258 seconds]
simjnd[m] has quit [Ping timeout: 276 seconds]
pakl[m] has quit [Ping timeout: 276 seconds]
svenpeter has quit [Ping timeout: 276 seconds]
JJJollyjim has quit [Ping timeout: 276 seconds]
ponikrf[m] has quit [Ping timeout: 258 seconds]
devinvs[m] has quit [Ping timeout: 258 seconds]
hypergenesis[m] has quit [Ping timeout: 258 seconds]
clover[m] has quit [Ping timeout: 258 seconds]
wagood[m] has quit [Ping timeout: 258 seconds]
The_DarkFire_[m] has quit [Ping timeout: 252 seconds]
d_u_f_f[m] has quit [Ping timeout: 252 seconds]
Serentty has quit [Ping timeout: 245 seconds]
iilmer[m] has quit [Ping timeout: 248 seconds]
hothotleg[m] has quit [Ping timeout: 248 seconds]
jamesmunns[m] has quit [Ping timeout: 248 seconds]
rkjnsn[m] has quit [Ping timeout: 246 seconds]
HeN has joined #asahi
ivanmedoedov[m] has quit [Ping timeout: 276 seconds]
manu1volta[m] has quit [Ping timeout: 276 seconds]
_alice has quit [Ping timeout: 252 seconds]
WhyNotHugo has quit [Ping timeout: 252 seconds]
WhyNotHugo has joined #asahi
rann has joined #asahi
troseman has quit [Ping timeout: 265 seconds]
d_u_f_f[m] has joined #asahi
foxlet has joined #asahi
Jasper[m] has joined #asahi
nickray has joined #asahi
svenpeter has joined #asahi
bylaws has joined #asahi
JakeVossen[m] has joined #asahi
jryans has joined #asahi
JJJollyjim has joined #asahi
dyniec[m] has joined #asahi
emily has joined #asahi
winocm has joined #asahi
user1tt[m] has joined #asahi
Eighth_Doctor has joined #asahi
fridtjof[m] has joined #asahi
jamesmunns[m] has joined #asahi
notafile has joined #asahi
_alice has joined #asahi
blazra has joined #asahi
mrkajetanp has joined #asahi
konradybcio has joined #asahi
pakl[m] has joined #asahi
bfredl has joined #asahi
cepheus has joined #asahi
noc0lour1 has joined #asahi
pipcet[m] has joined #asahi
izzyisles[m] has joined #asahi
hothotleg[m] has joined #asahi
uartman[m] has joined #asahi
iilmer[m] has joined #asahi
kharit[m] has joined #asahi
ldhacker[m] has joined #asahi
meiji163[m] has joined #asahi
M3zh[m] has joined #asahi
brentr123[m] has joined #asahi
The_DarkFire_[m] has joined #asahi
fstokesman[m] has joined #asahi
Bastian[m] has joined #asahi
hypergenesis[m] has joined #asahi
manu1volta[m] has joined #asahi
mofux[m] has joined #asahi
PixelyIon[m] has joined #asahi
m1kr0[m] has joined #asahi
clover[m] has joined #asahi
devinvs[m] has joined #asahi
Serentty has joined #asahi
ryanhrob[m] has joined #asahi
rkjnsn[m] has joined #asahi
Augur[m] has joined #asahi
Lockna[m] has joined #asahi
M1f4a9[m] has joined #asahi
ewlsh[m] has joined #asahi
Jaehyuk[m] has joined #asahi
ponikrf[m] has joined #asahi
mandresic[m] has joined #asahi
h_ro[m] has joined #asahi
simjnd[m] has joined #asahi
wagood[m] has joined #asahi
rockinrobstar[m] has joined #asahi
davidrysk[m] has joined #asahi
ivanmedoedov[m] has joined #asahi
VinDuv has joined #asahi
vlixa has quit [Remote host closed the connection]
_rjeffman has joined #asahi
mort has quit [Changing host]
mort has joined #asahi
abff has left #asahi ["later"]
JakeVossen[m] has quit [Quit: Idle for 30+ days]
Glanzmann has joined #asahi
ephe_meral1 has joined #asahi
choozy has joined #asahi
totebagel has joined #asahi
jeffmiw_ has joined #asahi
jeffmiw_ has quit [Ping timeout: 252 seconds]
vlixa has joined #asahi
klaus has joined #asahi
raster has joined #asahi
Glanzmann has quit [Quit: leaving]
nico_32 has joined #asahi
glibc has joined #asahi
jeffmiw_ has joined #asahi
jeffmiw_ has quit [Client Quit]
suskun has joined #asahi
suskun has quit [Remote host closed the connection]
ArnoldSebastian[ has joined #asahi
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
vlixa has quit [Remote host closed the connection]
vimal has joined #asahi
_whitelogger has joined #asahi
vlixa has joined #asahi
choozy has joined #asahi
odmir has joined #asahi
odmir has quit [Ping timeout: 260 seconds]
plainbits has joined #asahi
M1f4a9[m] has quit [Quit: Idle for 30+ days]
simjnd[m] has quit [Quit: Idle for 30+ days]
mandresic[m] has quit [Quit: Idle for 30+ days]
klaus_ has joined #asahi
<klaus_> ≤
klaus_ has quit [Client Quit]
<jeffmiw> I'm trying to see how to setup m1n1 as an EL2 hypervisor, from my understanding we shall set HCR_EL2.E2H(Bit 34) to zero for that, I have been trying to change this first with a proxy shell, then in exception_initialize but for some reason it does work
<jeffmiw> this bit stays at 1
<jeffmiw> there must be a pre-condition to be able to change it but I did not find it. If anyone has an idead on where to dig ?
<j`ey> jeffmiw: you cant change it
klaus_ has joined #asahi
klaus has quit [Quit: Textual IRC Client: www.textualapp.com]
<jeffmiw> j`ey: thanks ... need to rethink my understanding for having m1n1 as an hypervisor ...
tomboy64 has quit [*.net *.split]
arekm has quit [*.net *.split]
_blasty`_ has quit [*.net *.split]
vijfhoek has quit [*.net *.split]
eta has quit [*.net *.split]
Shiz has quit [*.net *.split]
ch3sh1r3c4t has quit [*.net *.split]
anuejn has quit [*.net *.split]
zorun has quit [*.net *.split]
Ziemas has quit [*.net *.split]
rbenua has quit [*.net *.split]
segher has quit [*.net *.split]
jannau has quit [*.net *.split]
vafanlignarde has quit [*.net *.split]
_blasty`_ has joined #asahi
eta has joined #asahi
arekm has joined #asahi
Shiz has joined #asahi
vafanlignarde has joined #asahi
anuejn has joined #asahi
Ziemas has joined #asahi
ch3sh1r3c4t has joined #asahi
jannau has joined #asahi
rbenua has joined #asahi
vijfhoek has joined #asahi
tomboy64 has joined #asahi
zorun has joined #asahi
segher has joined #asahi
plainbits has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plainbits has joined #asahi
odmir has joined #asahi
klaus has joined #asahi
klaus_ has quit [Ping timeout: 240 seconds]
plainbits has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plainbits has joined #asahi
<kettenis_> yay, I have a m1n1/u-boot combo that doesn't need the tunables
<marcan> \o/
<marcan> awesome!
<marcan> jeffmiw: m1n1 can already be a "hypervisor", you can boot m1n1 as a "guest" with chainload.py --el1
<marcan> and then boot linux under that (only works in single-cpu mode because there's no real virtualization of the SMP spinup stuff, so the other cores come up in EL2 and that breaks)
odmir has quit [Remote host closed the connection]
<marcan> it doesn't actually hypervise anything yet though, making it do that is the next step :)
odmir has joined #asahi
<jn__> mm1otrace will be fun :)
ephe_meral1 has quit [Ping timeout: 250 seconds]
ephe_meral1 has joined #asahi
odmir has quit [Ping timeout: 240 seconds]
plainbits has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klaus has quit [Quit: Lost terminal]
plainbits has joined #asahi
<kettenis_> I'll send a pull request after https://github.com/AsahiLinux/m1n1/pull/44 has been merged
plainbits has quit [Client Quit]
klaus has joined #asahi
odmir has joined #asahi
Bublik has joined #asahi
Bublik_ has quit [Ping timeout: 248 seconds]
ephe_meral1 has quit [Ping timeout: 258 seconds]
<jeffmiw> marcan: I did play a bit with chainload.py --el1, still, I'm trying to make a small step to hypervise something
<jeffmiw> I was thinking to have m1n1 keeping the usb interface (I do not have the serial interface stuff, only usb) and then boot linux and virtualize the uart to do somekind of mmio tracing
<jeffmiw> once I have that, I was thinking to do the same with macos, so we can trace registers to help reverse eng without having to disassemble and risking copyright infringement
<jeffmiw> and I was on the plan to use the HCR_EL2.E2H to have type 1 like virtualization for that
<jeffmiw> but then I got stuck on this sticky HCR_EL2.E2H bit ...
<jeffmiw> now I'm rethinking the appraoch with E2H set to 1 , looking at the memory map to try to do this basic mmiotrace experiment
<marcan> jeffmiw: you're describing what I've been planning on doing all along :p
<roxfan> well, you aren't doing it yet so...
<marcan> I was going to start on monday!
<roxfan> too late!
<marcan> kettenis_: merged :p
<marcan> roxfan: come on, I finally did my taxes today, I need to avoid getting deported first :p
<roxfan> congrats
<jeffmiw> marcan: yes this is what I understood and found so powerful, i decided to try to give it a try
<jeffmiw> don't worry I'm still catching up with all the work you have done, it took me hours to understand the armv8 virtualization stuff on top of the page tables :)
<jeffmiw> just understanding m1n1 memory.c took me hours/days :) (not full time but still :) )
<jeffmiw> so before I have something you will have done in a couple of hours :)
ephe_meral1 has joined #asahi
<marcan> I have a fairly well cooked idea in my head, just don't want to end up overlapping and ending up with wasted time :)
<marcan> but yeah, you don't care about E2H=1. it just means EL2 can pretend to be EL1.
<marcan> the setup that --el1 does is correct, you just need to enable the second-stage page tables (VM mode) like you would with E2H=0
<sven> hah, looks like kettenis_ has some way of making marcan actually look at my PRs :P
<marcan> sven: speaking of, what's the state of the USB one?
<sven> https://github.com/AsahiLinux/m1n1/pull/45 that one first, after that you'll get the usb one :)
<marcan> I actually have a draft review on that one fwiw :p
odmir has quit [Ping timeout: 265 seconds]
<kettenis_> marcan: thanks
<sven> not much changes for the usb one fwiw, i've just split the dart and pmgr stuff out because kettenis_ needed the first and i had updates for the second
<marcan> but also, eh, whatever *click*
<marcan> there's your amazing review :p
<sven> hahaha :D
<marcan> (honestly, I don't really care too much about details with m1n1; anything broken we can fix, as long as the basic approach is fine)
<marcan> (e.g. your framebuffer scrolling thing is definitely weird enough to get complaints; stuff like this is fine :p)
<sven> heh, yeah. that framebuffer thing was somewhat strange
<sven> no idea what me go into that direction when the new one is so much simpler
<sven> you should probably do a closer review of the usb one though. that one's more critical
<marcan> yeah, definitely
<marcan> will review the FB stuff tomorrow too, but go over the diff a bit, there's at least one random blank line added and also some of the fix commits could use squashing
<marcan> I expect to do some munging over the blue between fb / usb / serial / proxy after this is all merged anyway, it needs a rethink
<marcan> which is fine as long as the underlying primitives are OK for each bit
<sven> sure
<marcan> *glue
<jeffmiw> marcan: yes working to do some VM memory map and trying it, looking at VTCR_EL2 and VTTBR_EL2 before turning on HCR_EL2.VM to 1
<kettenis_> for framebuffer scrolling trying to avoid reading back the framebuffer contents is typically a good idea
<kettenis_> a trick that is often used is to use a shadow framebuffer
<marcan> we map it as normal memory, so there is no difference
<marcan> the display hardware is cache coherent as far as I can tell
<kettenis_> ah, yes, that helps
<marcan> sven: this reminds me, on paper we prooobably need to unmap some high RAM at some point, need to figure out what the sane way of determining what the hole is
<marcan> because right now the CPU is allowed to speculate into a carveout there that blows up IIRC
<marcan> that's probably going to annoy us when we least expect it
<sven> oh, the sep carveout area?
<marcan> yeah, I think it's up there? I know the highest part of RAM faults anyway
<sven> hm, true. i do remember hitting something before the end of ram once after chainload m1n1 too often
<sven> *chianloading
<marcan> wow, you actually ran out of RAM?
<marcan> amazing
<marcan> I've never managed that :D
<sven> only once :d
<sven> when working on the usb code trying to track down some heisenbug
<marcan> heh
<marcan> I always crash it before that happens
<marcan> (and reboot takes 7 seconds so whatever)
<sven> yeah, that's usually what happens to me as well
<marcan> still need to make chainload do in-place updates somehow
<sven> i think it was a missing dma barrier so the bug only happened *sometimes*
<marcan> though that's only going to work after the first chainload, properly at least
<marcan> due to memory layout
<sven> so i was just spamming chainload over and over again to trigger it
<marcan> heh
<marcan> but then again all this ties in with the xnu loading stuff for mmiotrace, I need to just write code that can rebuild the adt/bootargs/stuff anyway
<marcan> which will allow "proper" in-place chainloads
<kettenis_> coding-style wise, is it something exitstng (in emacs) you're using?
<marcan> for C? we have the clang-format thing, just run "make format"
<marcan> there's no formal coding style other than the rules in that .clang-format file (which I update sometimes) and basically following the style of the rest of the code
odmir has joined #asahi
<marcan> I do enforce the clang-format thing, even when it does the "wrong" thing it's better to leave the formatting to a tool than agonize over doing things manually
VinDuv has quit [Quit: Leaving.]
raster has quit [Quit: Gettin' stinky!]
<marcan> there's a github workflow that should do a clang-format check on all PRs
<kettenis_> hmm, the llvm package is missing from the last OpenBSD arm64 package snapshot
klaus has quit [Quit: Lost terminal]
<sven> i think the CI workflow should also just give you a diff to make clang-format happy otherwise
odmir has quit [Ping timeout: 240 seconds]
ephe_meral1 has quit [Ping timeout: 250 seconds]
aratuk has joined #asahi
aratuk has quit [Client Quit]
mxw39 has quit [Quit: Konversation terminated!]
mxw39 has joined #asahi
odmir has joined #asahi
danqo has joined #asahi
jeffmiw_ has joined #asahi
odmir has quit [Remote host closed the connection]
odmir has joined #asahi
odmir has quit [Ping timeout: 268 seconds]
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
odmir has joined #asahi
bgianf has joined #asahi