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
herrwolfe has quit [Server closed connection]
herrwolfe has joined #asahi-dev
klausvalka has joined #asahi-dev
robher has quit [Server closed connection]
robher has joined #asahi-dev
_alice has quit [Server closed connection]
_alice has joined #asahi-dev
snek has quit [Server closed connection]
snek has joined #asahi-dev
Method_ has quit [Server closed connection]
Method has joined #asahi-dev
checkfoc_us has quit [Server closed connection]
checkfoc_us has joined #asahi-dev
klausvalka has quit [Remote host closed the connection]
klausvalka has joined #asahi-dev
kevans91 has quit [Server closed connection]
kevans91 has joined #asahi-dev
ddxtanx has joined #asahi-dev
Leo3418 has quit [Server closed connection]
Leo3418 has joined #asahi-dev
ddxtanx has quit [Remote host closed the connection]
weitcis has quit [Server closed connection]
weitcis has joined #asahi-dev
ddxtanx has joined #asahi-dev
ddxtanx has quit [Remote host closed the connection]
lynndotpy has quit [Server closed connection]
lynndotpy has joined #asahi-dev
ddxtanx has joined #asahi-dev
hailey has quit [Server closed connection]
hailey has joined #asahi-dev
dcavalca8 has quit [Server closed connection]
KxCORP5894 has quit [Quit: Bye!]
dcavalca8 has joined #asahi-dev
KxCORP5894 has joined #asahi-dev
klausvalka has quit [Remote host closed the connection]
psanford has quit [Ping timeout: 480 seconds]
psanford has joined #asahi-dev
klausvalka has joined #asahi-dev
bpye has quit [Server closed connection]
bpye has joined #asahi-dev
klausvalka has quit [Remote host closed the connection]
klausvalka has joined #asahi-dev
klausvalka has quit [Remote host closed the connection]
klausvalka has joined #asahi-dev
klausvalka has quit [Remote host closed the connection]
klausvalka has joined #asahi-dev
klausvalka has quit [Remote host closed the connection]
klausvalka has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
benjins has quit [Server closed connection]
benjins has joined #asahi-dev
klausvalka has quit [Ping timeout: 480 seconds]
klausvalka has joined #asahi-dev
buroa23 has quit [Server closed connection]
buroa23 has joined #asahi-dev
zalyx2 has quit [Server closed connection]
zalyx2 has joined #asahi-dev
jlco has quit [Server closed connection]
pb17 has joined #asahi-dev
klausvalka has quit [Remote host closed the connection]
ddxtanx has quit [Quit: Konversation terminated!]
ddxtanx has joined #asahi-dev
ddxtanx has quit []
ddxtanx has joined #asahi-dev
ddxtanx has quit []
ddxtanx has joined #asahi-dev
ddxtanx has quit []
ddxtanx has joined #asahi-dev
ddxtanx_ has joined #asahi-dev
ddxtanx has quit [Read error: Connection reset by peer]
ddxtanx_ has quit [Ping timeout: 480 seconds]
ddxtanx has joined #asahi-dev
tristan2_ has joined #asahi-dev
tristan2 has quit [Ping timeout: 480 seconds]
phire has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
ddxtanx has quit [Quit: Konversation terminated!]
ddxtanx has joined #asahi-dev
ddxtanx has quit []
ddxtanx has joined #asahi-dev
ddxtanx has quit []
ddxtanx has joined #asahi-dev
pb17 has joined #asahi-dev
Stary has quit [Quit: ZNC - http://znc.in]
Stary has joined #asahi-dev
ddxtanx has quit [Remote host closed the connection]
chadmed has quit [Remote host closed the connection]
yuyichao has quit [Ping timeout: 480 seconds]
croissant has joined #asahi-dev
yuyichao has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
ddxtanx has joined #asahi-dev
chadmed has joined #asahi-dev
ddxtanx has quit [Remote host closed the connection]
ddxtanx has joined #asahi-dev
VeBop has joined #asahi-dev
VeeBop has quit [Ping timeout: 480 seconds]
VeBop has quit [Read error: Connection reset by peer]
VeeBop has joined #asahi-dev
<nickchan> has anyone checked whether m1n1 boots with a macOS 15 beta stub on M2? In macOS 15 on M2, SPTM is introduced to the M2 (and ONLY M2, not any of the Pro/Max/Ultra or M3). The XNU would be loaded in EL2 while GL is enabled, this will break everything in m1n1 unless Apple has special logic when flat arm64 executables are specified in kmutil.
<nickchan> Also under SPTM, XNU cannot ever run with MMU disabled, as it is no longer physically contiguous in memory.
KxCORP5894 has quit [Quit: Bye!]
KxCORP5894 has joined #asahi-dev
<jannau> I'd say it's very unlikely that anyone has tried. looking at newer stubs only makes sense for new device support due to the firmware dependencies
<chadmed> m1n1 does not boot on sonoma no
<jannau> is SPTM active in permissive security?
<chadmed> no idea, this was on j314 so is it even a thing there
<chadmed> (i did do the usual steps of disabling sip and bputil -nkcas etc)
<jannau> sonoma on M3
<jannau> boots without obvious issues (ignoring the missing hw support)
<chadmed> hm ill try again next time i need the hv
<jannau> macos15 is sequoia
<sven> what’s SPTM?
<nickchan> SPTM stands for Secure Page Table Monitor, it is a PPL replacement but unlike PPL it is not part of the kernel image
<nickchan> it has the highest privilege in macOS, just like PPL
<nickchan> the fact that it is not in the kernel image is the problem since the code execution primitive we have on apple silicon is being able to replace that
<jannau> somewhat helpful https://www.df-f.com/blog/ios17
<sven> I would expect that there’s some way to skip that in permissive security but would still be interesting to check that
KxCORP5894 has quit [Quit: Bye!]
<nickchan> A15-A17: SPTM introduced in iOS 17; M4: SPTM launched with iPadOS 17.5; M2: SPTM introduced in iOS 18/macOS 15
KxCORP5894 has joined #asahi-dev
<nickchan> it is expected that it will eventually be introduced to M1/A14+
<jannau> sounds like it is part of the exclave handling present for tons of intersting devices in the ipad pro m4 ADT
pb17 has quit [Ping timeout: 480 seconds]
<nickchan> yeah every exception level is used now GL2: SPTM; EL2: XNU; GL1: ExclaveCore; EL1: Guest Kernel; GL0: ExclaveOS; EL0: macOS userland
<nickchan> need SPTM as the hypervisor to run Exclave
<nickchan> chadmed: sptm is not a thing yet on j314 since it is the m1 pro and for mac it is on M2 on macOS 15 and nothing else
<nickchan> it is all an enginnering time thing that it is not on other devices yet since for SPTM to be a functioning hypervisor there is a lot of stuff beyond renaming PPL to SPTM
<nickchan> like moving Core Bringup to it
<nickchan> and this order of things getting SPTM makes sense when you consider iOS as the most important to apple, followed by iPadOS, then macOS; and that newer devices are more important than older ones.
<sven> either way, we can’t really run Linux under SPTM so there better be a way to skip all that ;)
pb17 has joined #asahi-dev
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
<jannau> enabling the MMU in m1n1 is broken on macos 15 beta: https://gist.github.com/jannau/7da57f30440606337991568e87d57fda
<jannau> M2 mac mini
<sven> :/
<sven> hrm, the GL2 init happens before that and i'd expect that to already fail if this SPTM thing was running
pb17 has joined #asahi-dev
martinr has joined #asahi-dev
<martinr> Ok, I just managed to get initial VDM support added to tipd (i.e. just the reboot command working for now). I might need some input from somone on best practices re. interfaces (currently exposed via sysfs), as this is my first attempt at driver code.
<martinr> there are other minutiae: currently tipd does not support resetting the cd321x. do we now send the unlock command on initialization and enable this functionality?
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
yuyichao has quit [Ping timeout: 480 seconds]
pb17 has joined #asahi-dev
leah2 has quit [Ping timeout: 480 seconds]
leah2 has joined #asahi-dev
leah2 has quit [Ping timeout: 480 seconds]
leah2 has joined #asahi-dev
john-cabaj has quit [Ping timeout: 480 seconds]
<nickchan> jannau: someone said running a raw image should be without sptm, so maybe sptm is not running after all
<nickchan> they also said that only macho boot objects should be ran with sptm
midou has joined #asahi-dev
midou_ has joined #asahi-dev
midou has quit [Ping timeout: 480 seconds]
<kettenis> ah, but we support both and some of us may still be in the habit of using macho?
<kettenis> guess it should only matter for the first-stage m1n1
pb17 has quit [Ping timeout: 480 seconds]
<jannau> martinr: just for reboot/enable UART the sysfs interface seems fine
<jannau> nickchan: seems like m1n1 get's further than one would expect with sptm
<jannau> kettenis: this is only for stage1 / kmutil configure boot. I don't think m1n1.macho still works for that since 12.x
midou_ has quit [Ping timeout: 480 seconds]
<kettenis> right
<martinr> jannau: great thanks, tidying up now
midou has joined #asahi-dev
pb17 has joined #asahi-dev
midou has quit [Ping timeout: 480 seconds]
billak has joined #asahi-dev
billak has quit []
midou has joined #asahi-dev
buroa236 has joined #asahi-dev
buroa23 has quit [Ping timeout: 480 seconds]
buroa236 is now known as buroa23
midou has quit [Ping timeout: 480 seconds]
roxfan has quit [Ping timeout: 480 seconds]
yuyichao has joined #asahi-dev
buroa237 has joined #asahi-dev
kujeger has joined #asahi-dev
sting has quit [Quit: Ping timeout (120 seconds)]
buroa23 has quit [Ping timeout: 480 seconds]
buroa237 is now known as buroa23
kujeger- has quit [Ping timeout: 480 seconds]
c10l3 has quit [Remote host closed the connection]
c10l3 has joined #asahi-dev
midou has joined #asahi-dev
sting has joined #asahi-dev
c10l3 has quit []
c10l has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]
ddxtanx has quit [Quit: Konversation terminated!]
ddxtanx has joined #asahi-dev
pb17 has joined #asahi-dev
glem8 has joined #asahi-dev
leah2 has quit [Ping timeout: 480 seconds]
leah2 has joined #asahi-dev
roxfan has joined #asahi-dev
al3xtjames has joined #asahi-dev
leah2 has quit [Ping timeout: 480 seconds]
leah2 has joined #asahi-dev
klausvalka has joined #asahi-dev
klausvalka has quit [Remote host closed the connection]
klausvalka has joined #asahi-dev
klausvalka has quit [Remote host closed the connection]
ellyq_ has joined #asahi-dev
lynndotpy has quit [Quit: bye bye]
lynndotpy has joined #asahi-dev
ellyq has quit [Remote host closed the connection]
ellyq has joined #asahi-dev
ellyq_ has quit [Ping timeout: 480 seconds]
pb17 has quit [Ping timeout: 480 seconds]
ellyq_ has joined #asahi-dev
melonai has quit []
pb17 has joined #asahi-dev
melonai has joined #asahi-dev
pb17 has quit [Ping timeout: 480 seconds]