#
✕ nick:sven
#asahi-dev · 2025-06-13 21:11
svenaren't we at 6.15 already?
#asahi-dev · 2025-06-13 21:10
svenuh... that sounds like an outdated branch
#asahi-dev · 2025-06-13 21:08
svenj`ey: fair :D
#asahi-dev · 2025-06-13 21:08
svenit's usually about cleaning up the branches into reasonable commits and series
#asahi-dev · 2025-06-13 21:08
sventhe challenge isn't to type b4 send
#asahi-dev · 2025-06-13 21:08
sven" the commit history that well and it seems disorganized" is gonna be true for almost every bits branch
#asahi-dev · 2025-06-13 20:42
svenasahi unfortunately is a project where you get thrown into the cold water and have to figure out how to swim mostly by yourself :(
#asahi-dev · 2025-06-13 20:42
sventhey probably need a bit of cleanup as well
#asahi-dev · 2025-06-13 20:41
svenlook at the bits/ branches in our github repo. there should be one called wifi
#asahi-dev · 2025-06-13 20:38
sveni think we have a few wifi patches that aren't on anyone's todo list
#asahi-dev · 2025-06-12 20:27
svenfound some time to do it now: https://git.kernel.org/pub/scm/linux/kernel/git/sven/linux.git/log/?h=b4/apple-kconfig-defconfig
#asahi-dev · 2025-06-12 14:01
svenright now defconfig builds contain a lot of apple drivers by accident :/
#asahi-dev · 2025-06-12 14:01
sveni can prepare a series this weekend to fix that
#asahi-dev · 2025-06-12 13:59
svenmaybe except for pmgr and aic? or does anything else need to be built-in?
#asahi-dev · 2025-06-12 13:58
svenit should all be dropped and then selected in defconfig
#asahi-dev · 2025-06-12 13:54
svenwe really need to clean that „default ARCH_APPLE“ mess up though
#asahi-dev · 2025-06-12 13:54
svenhe probably added us manually
#asahi-dev · 2025-06-12 13:53
svenit’s an indirect effect
#asahi-dev · 2025-06-12 13:53
sven SND_SOC_APPLE_MCA
#asahi-dev · 2025-06-12 13:53
svenah no
#asahi-dev · 2025-06-12 13:52
sventhat seems wrong
#asahi-dev · 2025-06-12 13:52
svenhuh
#asahi-dev · 2025-06-10 16:21
svenhttps://lore.kernel.org/asahi/20250610-smc-6-15-v7-0-556cafd771d3@kernel.org/ that hopefully the smc that will go upstream 🤞
#asahi-dev · 2025-06-07 22:09
svenfeel free to prove me wrong but I think this is a bit more than a single day‘s work :D
#asahi-dev · 2025-06-07 22:04
svenel1 can’t turn them on if they’re off in el2
#asahi-dev · 2025-06-07 22:03
svenjust don’t turn them on
#asahi-dev · 2025-06-07 21:42
svenhttps://github.com/apple-oss-distributions/xnu/blob/main/osfmk/arm64/sptm/start_sptm.s#L34
#asahi-dev · 2025-06-07 21:41
svenone of the first thing it does it call out to SPTM there
#asahi-dev · 2025-06-07 21:41
svenyeah, open source xnu contains the SPTM entry point
#asahi-dev · 2025-06-07 21:41
svenit's gonna disable all apple-specific extensions
#asahi-dev · 2025-06-07 21:39
svenwhich is disabled for raw boot objects so that won't help us i think
#asahi-dev · 2025-06-07 21:39
svennested sptm/gxf virt probably just uses the hardware itself
#asahi-dev · 2025-06-07 21:39
svenso we'll need two sets of shadow pagetables for XNU-EL2 and XNU-GL2 and keep that all in sync
#asahi-dev · 2025-06-07 21:37
svenit's gonna be messy though since the pagetable permission bits will be all wrong and we'll have to fix that all up
#asahi-dev · 2025-06-07 21:36
svenright, so we can simulate that situation on m1/m2/m3 already by just disabling it ourselves
#asahi-dev · 2025-06-07 21:35
sven+you
#asahi-dev · 2025-06-07 21:35
svenhow would run xnu without gxf/sprr?
#asahi-dev · 2025-06-07 21:35
svenhow?
#asahi-dev · 2025-06-07 20:49
svenshould be possible but painful, might need nested virtualization
#asahi-dev · 2025-06-07 20:49
sveni.e. emulate SPRR/GXF and all other apple instructions somehow
#asahi-dev · 2025-06-07 20:49
svenamarioguy: if you (or anyone else) wants to work on m4 support try disabling SPRR/GXF on M1/M2/M3 and make XNU boot under the hv. iirc there's even one kernel that also comes with SPTM
#asahi-dev · 2025-06-07 19:01
svendepending on your firmware version it may not boot at all due to an apple bug
#asahi-dev · 2025-06-07 19:01
svendunno
#asahi-dev · 2025-06-07 09:51
svenso maybe also do a few boots without resetting it and confirm that it's incremented
#asahi-dev · 2025-06-07 09:51
svenand isn't the error count that thing that increases automatically?
#asahi-dev · 2025-06-07 09:50
sveni'd probably trace the pmu using the hv and see what values macos updates and if they match that new scrpad offset
#asahi-dev · 2025-06-07 09:49
svenah, sure, that might help
#asahi-dev · 2025-06-07 09:37
svenadding print statements? how is that going to help?
#asahi-dev · 2025-06-07 09:33
svenfl0_id: you'd need to understand what actually changed and if that new way is indeed correct and then make it conditional on the compatible
#asahi-dev · 2025-06-04 07:51
svenif the offset changed we can’t use aic2

plus ›