ChanServ changed the topic of #asahi-dev to: Asahi Linux: porting Linux to Apple Silicon macs | Non-development talk: #asahi | General development | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-dev
ahdeb[m] has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baahemian has quit [Quit: baahemian]
raveling has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
raveling has joined #asahi-dev
baahemian has joined #asahi-dev
skipwich_ has quit []
raveling has quit [Ping timeout: 480 seconds]
baahemian has quit [Quit: baahemian]
baahemian has joined #asahi-dev
i509vcb has joined #asahi-dev
Urriellu has quit [Ping timeout: 480 seconds]
skipwich has joined #asahi-dev
alyssa has joined #asahi-dev
<alyssa> orowith2os: marcan: jannau: if we're building Asahi-only Mesa, you can drop the LLVM dep (build option -Dllvm=disabled)
<alyssa> if you don't want OpenCL (via Rusticl)
<alyssa> and don't care about GL_SELECT emulation performance
<alyssa> libexpat you can drop if you enable the static-driconf
<alyssa> which is probably the right call for flatpak
<alyssa> -Dxmlconfig=disabled
baahemian has quit [Ping timeout: 480 seconds]
<alyssa> one of zstd or zlib is hard required for the disk cache
<alyssa> (but you don't need both)
seeeath has joined #asahi-dev
seeeath has quit []
alyssa has quit [Quit: leaving]
seeeath has joined #asahi-dev
znih has joined #asahi-dev
znih has quit []
Mary6 has quit []
Mary6 has joined #asahi-dev
ntal has joined #asahi-dev
skipwich has quit [Quit: DISCONNECT]
skipwich has joined #asahi-dev
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ntal has quit [Remote host closed the connection]
<lina> kettenis_: I already mentioned this to robher at some point ^^
tobhe_ has joined #asahi-dev
pbsds has quit [Quit: The Lounge - https://thelounge.chat]
tobhe has quit [Ping timeout: 480 seconds]
pbsds has joined #asahi-dev
seeeath has joined #asahi-dev
hightower3 has joined #asahi-dev
hightower2 has quit [Ping timeout: 480 seconds]
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drubrkletern has quit [Remote host closed the connection]
user982492 has joined #asahi-dev
seeeath has joined #asahi-dev
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-dev
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-dev
seeeath has quit []
seeeath has joined #asahi-dev
user982492 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
derzahl has quit [Remote host closed the connection]
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crabbedhaloablut has quit [Ping timeout: 480 seconds]
Urriellu has joined #asahi-dev
raveling has joined #asahi-dev
mixi has joined #asahi-dev
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
probie_ has joined #asahi-dev
probie has quit [Read error: Connection reset by peer]
probie_ is now known as probie
crabbedhaloablut has joined #asahi-dev
nicolas17 has quit [Ping timeout: 480 seconds]
bisko has joined #asahi-dev
hightower3 has quit [Remote host closed the connection]
leitao has joined #asahi-dev
Urriellu has quit [Ping timeout: 480 seconds]
rpirea has joined #asahi-dev
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
loki_val has joined #asahi-dev
cylm has joined #asahi-dev
crabbedhaloablut has quit [Ping timeout: 480 seconds]
loki_val has quit []
crabbedhaloablut has joined #asahi-dev
crabbedhaloablut has quit []
crabbedhaloablut has joined #asahi-dev
leitao has joined #asahi-dev
nyilas has joined #asahi-dev
bisko has joined #asahi-dev
nsklaus has joined #asahi-dev
leitao has quit [Ping timeout: 480 seconds]
i509vcb has quit [Quit: Connection closed for inactivity]
leitao has joined #asahi-dev
leitao has quit []
leitao has joined #asahi-dev
rpirea_ has joined #asahi-dev
rpirea has quit [Ping timeout: 480 seconds]
rpirea has joined #asahi-dev
rpirea_ has quit [Ping timeout: 480 seconds]
leitao has quit [Ping timeout: 480 seconds]
gordonfreeman has joined #asahi-dev
<gordonfreeman> hello, I'm running macos under m1n1 for kernel debugging. How can I locate physical address of an EL0 virtual address?
<gordonfreeman> there are `at` instructions in hv_translate function but they require SPSR.M value to be EL0. However in m1n1 shell we are not EL0. Set it to EL0 forcefully then called hv_translate but didn't work
<gordonfreeman> Also tried to run `at s1e0r`at EL1 for EL0 VA--->PA conversion but what I get in the PAR_EL1 is "Translation fault, level 2" error code.
leitao has joined #asahi-dev
MajorBiscuit has joined #asahi-dev
<marcan> hv_translate does work
<marcan> ah, for EL0... not sure about that
<gordonfreeman> Interesting fact is `at s1e0r` has only 1 reference in XNU src, in `mmu_uvtop` ("MMU user virtual to physical address translation"). But this mmu_uvtop is meant to be used only in KDP.
<gordonfreeman> so seemingly xnu doesn't do EL0 VA-PA conversion as well... but then what manages this mapping?
<marcan> gordonfreeman: using the live SPSR_EL2 is probably wrong, it should use the saved SPSR from the HV context so it can survive exceptions at EL2. but at that point `el` might as well be an argument.
<marcan> other than that it should work
<marcan> of course it will only work if EL0 is actually mapped, which might only be the case when actually executing kernel code. and then you'll have to look up how PAN interacts with that.
<marcan> *executing user code
<marcan> OSes don't usually need to do VA to PA conversion via hardware, they have higher-level page management structures.
<gordonfreeman> > *executing user code
<gordonfreeman> any idea how can I drop to m1n1 shell while executing user code? What I currently do is to trigger kernel to make a hvc call to stop the execution. But obviously we switch to kernel context while doing this
<marcan> use a `brk`, that gets caught by the hypervisor too
<marcan> brk 0x4242 is an EL0 hypercall in m1n1
<marcan> hv.add_hvcall() etc to register handlers
<gordonfreeman> oh so EL0 brk's are also handled in m1n1? I thought only EL1 ones... will try this out
rpirea has quit []
rpirea has joined #asahi-dev
seeeath has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leitao has joined #asahi-dev
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gordonfreeman> Okay, right after mmap'ing and memset'ting a fixed address from EL0, I trigger a brk. In brk handler I run hv_translate but 0x0 is returned. checked out SPSR and it's M=SPSR_M.EL0t, which is what we want.
<gordonfreeman> What's wrong?
<maz> gordonfreeman: do you have HCR_EL2.TGE=0 at the point where you translate? How about any of the E0PD bits set in TCR_EL1?
amarioguy has joined #asahi-dev
raveling has joined #asahi-dev
<gordonfreeman> HCR_EL2.TGE is 0. E0PD0 and E0PD1 are zero.
bisko has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
raveling has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
amarioguy has quit [Ping timeout: 480 seconds]
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-dev
rpirea has quit [Ping timeout: 480 seconds]
raveling has joined #asahi-dev
rpirea has joined #asahi-dev
raveling has quit [Ping timeout: 480 seconds]
raveling has joined #asahi-dev
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bisko has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bps has quit [Ping timeout: 480 seconds]
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
nyilas has quit [Remote host closed the connection]
raveling has quit [Ping timeout: 480 seconds]
leitao has joined #asahi-dev
c10l has quit [Quit: Bye o/]
c10l has joined #asahi-dev
raveling has joined #asahi-dev
leitao has quit [Ping timeout: 480 seconds]
amarioguy has joined #asahi-dev
i509vcb has joined #asahi-dev
amarioguy has quit [Ping timeout: 480 seconds]
raveling has quit [Ping timeout: 480 seconds]
leitao has joined #asahi-dev
Urriellu has joined #asahi-dev
thasti has quit [Remote host closed the connection]
thasti has joined #asahi-dev
raveling has joined #asahi-dev
cylm has quit [Ping timeout: 480 seconds]
raveling has quit [Ping timeout: 480 seconds]
leitao has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nyilas has joined #asahi-dev
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-dev
timokrgr has joined #asahi-dev
erik has joined #asahi-dev
erik is now known as Erkovich_
Erkovich_ has quit []
erik has joined #asahi-dev
erik has quit [Remote host closed the connection]
Cromulent has joined #asahi-dev
nicolas17 has joined #asahi-dev
WindowPa- has joined #asahi-dev
WindowPain has quit [Ping timeout: 480 seconds]
seeeath has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seeeath has joined #asahi-dev
zalyx0 has quit [Read error: Connection reset by peer]
seeeath has quit [Quit: Textual IRC Client: www.textualapp.com]
zalyx0 has joined #asahi-dev
nyilas has quit [Remote host closed the connection]
Urriellu has quit [Ping timeout: 480 seconds]
MajorBiscuit has quit [Quit: WeeChat 3.6]
Urriellu has joined #asahi-dev
Cromulent has quit [Quit: Connection closed for inactivity]
YungRaj has joined #asahi-dev
YungRaj has quit []
Droop has quit [Read error: Connection reset by peer]
Droop has joined #asahi-dev
lewurm`` has quit [Ping timeout: 480 seconds]
seb91nihel has joined #asahi-dev
null has quit [Quit: oh no.]
null has joined #asahi-dev
seb4nihel has quit [Quit: ZNC 1.8.2 - https://znc.in]
nsklaus has quit [Quit: ZZZzzz…]