#
#asahi-dev · 2023-04-06 04:52
nicolas17sounds like m1 -> m1 pro -> m2 were "easier"?
#asahi-dev · 2023-04-06 04:52
nicolas17I didn't know m2 pro had changed *that* much
#asahi-dev · 2023-04-06 04:52
nicolas17huh
#asahi-dev · 2023-04-06 02:49
chadmedi can juuuuust get an m2 pro mini booting tethered, but no display out no nvme no pcie makes it completely useless lmfao
#asahi-dev · 2023-04-06 02:48
chadmedthe devices are kinda useless at this stage though because barely anything works properly
#asahi-dev · 2023-04-06 02:48
chadmedkaazoo: that PR kinda works on the m2 pro with some additions and changes to spin up the secondaries, ive got a m1n1 branch with those changes pending that PR being merged
#asahi-dev · 2023-04-05 21:23
mooshdabooshWhatup! Im a fairly beginner progammer with general knowledge of Python, Java, overall basic OOP. Is there any way i can help out?
#asahi-dev · 2023-04-05 20:43
kaazooHi, I just received a MBP 14" with M2 Pro (Mac14,9) and would like to contribute to improve support for M2 Pro. Has anybody tried out https://github.com/AsahiLinux/m1n1/pull/285 which adds support for M2 Max and Pro to m1n1?
#asahi-dev · 2023-04-05 17:30
marcanjannau: libinput snafu was my fault, we had an old package overlaid and I didn't think we'd end up with ABI breakage.
#asahi-dev · 2023-04-05 10:13
jannauno, the dependency is listed
#asahi-dev · 2023-04-05 10:09
jannausigh, the alarm xf86-input-libinput pkg seems not to depend on libinput
#asahi-dev · 2023-04-05 03:50
orowith2osThis doesn't use the 1.4 version extension since it's probably best not to use that yet.
#asahi-dev · 2023-04-05 03:50
orowith2osThis only currently builds for fd.o 22.08, when it's ready for an upstream Asahi PKGBUILD I can help with setting things up for 21.08 and making it easier for alternative branch support in the future.
#asahi-dev · 2023-04-05 03:48
orowith2osmarcan: I pushed my local changes and made an issue over on https://github.com/orowith2os/mesa-asahi-flatpak/issues/28 regarding native package support. I'd love it if you could take a look at it.
#asahi-dev · 2023-04-04 12:52
gordonfreemanHCR_EL2.TGE is 0. E0PD0 and E0PD1 are zero.
#asahi-dev · 2023-04-04 12:42
mazgordonfreeman: do you have HCR_EL2.TGE=0 at the point where you translate? How about any of the E0PD bits set in TCR_EL1?
#asahi-dev · 2023-04-04 12:37
gordonfreemanWhat's wrong?
#asahi-dev · 2023-04-04 12:36
gordonfreemanOkay, 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.
#asahi-dev · 2023-04-04 11:53
gordonfreemanoh so EL0 brk's are also handled in m1n1? I thought only EL1 ones... will try this out
#asahi-dev · 2023-04-04 11:52
marcanhv.add_hvcall() etc to register handlers
#asahi-dev · 2023-04-04 11:52
marcanbrk 0x4242 is an EL0 hypercall in m1n1
#asahi-dev · 2023-04-04 11:52
marcanuse a `brk`, that gets caught by the hypervisor too
#asahi-dev · 2023-04-04 11:50
gordonfreemanany 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
#asahi-dev · 2023-04-04 11:49
gordonfreeman> *executing user code
#asahi-dev · 2023-04-04 11:48
marcanOSes don't usually need to do VA to PA conversion via hardware, they have higher-level page management structures.
#asahi-dev · 2023-04-04 11:47
marcan*executing user code
#asahi-dev · 2023-04-04 11:46
marcanof 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.
#asahi-dev · 2023-04-04 11:45
marcanother than that it should work
#asahi-dev · 2023-04-04 11:45
marcangordonfreeman: 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.
#asahi-dev · 2023-04-04 11:44
gordonfreemanso seemingly xnu doesn't do EL0 VA-PA conversion as well... but then what manages this mapping?
#asahi-dev · 2023-04-04 11:43
gordonfreemanInteresting 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.
#asahi-dev · 2023-04-04 11:39
marcanah, for EL0... not sure about that
#asahi-dev · 2023-04-04 11:38
marcanhv_translate does work
#asahi-dev · 2023-04-04 11:27
gordonfreemanAlso 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.
#asahi-dev · 2023-04-04 11:24
gordonfreemanthere 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
#asahi-dev · 2023-04-04 11:23
gordonfreemanhello, I'm running macos under m1n1 for kernel debugging. How can I locate physical address of an EL0 virtual address?
#asahi-dev · 2023-04-04 03:12
linakettenis_: I already mentioned this to robher at some point ^^
#asahi-dev · 2023-04-04 01:52
alyssa(but you don't need both)
#asahi-dev · 2023-04-04 01:52
alyssaone of zstd or zlib is hard required for the disk cache
#asahi-dev · 2023-04-04 01:51
alyssa-Dxmlconfig=disabled
#asahi-dev · 2023-04-04 01:50
alyssawhich is probably the right call for flatpak
#asahi-dev · 2023-04-04 01:50
alyssalibexpat you can drop if you enable the static-driconf
#asahi-dev · 2023-04-04 01:49
alyssaand don't care about GL_SELECT emulation performance
#asahi-dev · 2023-04-04 01:49
alyssaif you don't want OpenCL (via Rusticl)
#asahi-dev · 2023-04-04 01:49
alyssaorowith2os: marcan: jannau: if we're building Asahi-only Mesa, you can drop the LLVM dep (build option -Dllvm=disabled)
#asahi-dev · 2023-04-03 22:34
kettenis_that might work
#asahi-dev · 2023-04-03 22:29
jannaukettenis_: I'll test if fw upload works in linux after disabling the u-boot usb hcd driver
#asahi-dev · 2023-04-03 22:28
jannauadded to the Hypervisor page
#asahi-dev · 2023-04-03 22:26
ChaosPrincessjannau: ty
#asahi-dev · 2023-04-03 22:25
kettenis_and I haven't figured out how the pci bridge works on that soc

plus ›