#
…

2024-07-14

00:01herrwolfe has quit [Server closed connection]
00:01herrwolfe has joined #asahi-dev
00:01klausvalka has joined #asahi-dev
00:09robher has quit [Server closed connection]
00:09robher has joined #asahi-dev
00:10_alice has quit [Server closed connection]
00:10_alice has joined #asahi-dev
00:12snek has quit [Server closed connection]
00:12snek has joined #asahi-dev
00:20Method_ has quit [Server closed connection]
00:20Method has joined #asahi-dev
00:20checkfoc_us has quit [Server closed connection]
00:21checkfoc_us has joined #asahi-dev
00:25klausvalka has quit [Remote host closed the connection]
00:26klausvalka has joined #asahi-dev
00:26kevans91 has quit [Server closed connection]
00:26kevans91 has joined #asahi-dev
00:31ddxtanx has joined #asahi-dev
00:34Leo3418 has quit [Server closed connection]
00:35Leo3418 has joined #asahi-dev
00:47ddxtanx has quit [Remote host closed the connection]
00:51weitcis has quit [Server closed connection]
00:51weitcis has joined #asahi-dev
00:51ddxtanx has joined #asahi-dev
00:53ddxtanx has quit [Remote host closed the connection]
00:53lynndotpy has quit [Server closed connection]
00:54lynndotpy has joined #asahi-dev
00:54ddxtanx has joined #asahi-dev
00:58hailey has quit [Server closed connection]
00:58hailey has joined #asahi-dev
00:59dcavalca8 has quit [Server closed connection]
01:00KxCORP5894 has quit [Quit: Bye!]
01:00dcavalca8 has joined #asahi-dev
01:00KxCORP5894 has joined #asahi-dev
01:04klausvalka has quit [Remote host closed the connection]
01:05psanford has quit [Ping timeout: 480 seconds]
01:08psanford has joined #asahi-dev
01:09klausvalka has joined #asahi-dev
01:12bpye has quit [Server closed connection]
01:13bpye has joined #asahi-dev
01:13klausvalka has quit [Remote host closed the connection]
01:14klausvalka has joined #asahi-dev
01:18klausvalka has quit [Remote host closed the connection]
01:19klausvalka has joined #asahi-dev
01:19klausvalka has quit [Remote host closed the connection]
01:20klausvalka has joined #asahi-dev
01:21klausvalka has quit [Remote host closed the connection]
01:28klausvalka has joined #asahi-dev
01:32pb17 has quit [Ping timeout: 480 seconds]
01:33benjins has quit [Server closed connection]
01:34benjins has joined #asahi-dev
01:38klausvalka has quit [Ping timeout: 480 seconds]
01:42klausvalka has joined #asahi-dev
01:42buroa23 has quit [Server closed connection]
01:43buroa23 has joined #asahi-dev
01:44zalyx2 has quit [Server closed connection]
01:44zalyx2 has joined #asahi-dev
01:47jlco has quit [Server closed connection]
01:57pb17 has joined #asahi-dev
02:08klausvalka has quit [Remote host closed the connection]
02:23ddxtanx has quit [Quit: Konversation terminated!]
02:24ddxtanx has joined #asahi-dev
02:25ddxtanx has quit []
02:25ddxtanx has joined #asahi-dev
02:25ddxtanx has quit []
02:25ddxtanx has joined #asahi-dev
02:28ddxtanx has quit []
02:29ddxtanx has joined #asahi-dev
02:35ddxtanx_ has joined #asahi-dev
02:35ddxtanx has quit [Read error: Connection reset by peer]
02:52ddxtanx_ has quit [Ping timeout: 480 seconds]
02:56ddxtanx has joined #asahi-dev
03:11tristan2_ has joined #asahi-dev
03:13tristan2 has quit [Ping timeout: 480 seconds]
03:26phire has joined #asahi-dev
03:27pb17 has quit [Ping timeout: 480 seconds]
03:41ddxtanx has quit [Quit: Konversation terminated!]
03:41ddxtanx has joined #asahi-dev
03:41ddxtanx has quit []
03:42ddxtanx has joined #asahi-dev
03:43ddxtanx has quit []
03:44ddxtanx has joined #asahi-dev
03:46pb17 has joined #asahi-dev
03:54Stary has quit [Quit: ZNC - http://znc.in]
04:01Stary has joined #asahi-dev
04:16ddxtanx has quit [Remote host closed the connection]
04:21chadmed has quit [Remote host closed the connection]
04:29yuyichao has quit [Ping timeout: 480 seconds]
04:49croissant has joined #asahi-dev
05:37yuyichao has joined #asahi-dev
05:38pb17 has quit [Ping timeout: 480 seconds]
05:56pb17 has joined #asahi-dev
06:19ddxtanx has joined #asahi-dev
06:21chadmed has joined #asahi-dev
06:36ddxtanx has quit [Remote host closed the connection]
06:37ddxtanx has joined #asahi-dev
07:00VeBop has joined #asahi-dev
07:03VeeBop has quit [Ping timeout: 480 seconds]
07:03VeBop has quit [Read error: Connection reset by peer]
07:06VeeBop has joined #asahi-dev
08:15nickchanhas 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.
08:18nickchanAlso under SPTM, XNU cannot ever run with MMU disabled, as it is no longer physically contiguous in memory.
08:20KxCORP5894 has quit [Quit: Bye!]
08:21KxCORP5894 has joined #asahi-dev
08:33jannauI'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
08:34chadmedm1n1 does not boot on sonoma no
08:34jannauis SPTM active in permissive security?
08:35chadmedno idea, this was on j314 so is it even a thing there
08:35chadmed(i did do the usual steps of disabling sip and bputil -nkcas etc)
08:36jannausonoma on M3
08:37jannauboots without obvious issues (ignoring the missing hw support)
08:37chadmedhm ill try again next time i need the hv
08:37jannaumacos15 is sequoia
08:38svenwhat’s SPTM?
08:39nickchanSPTM stands for Secure Page Table Monitor, it is a PPL replacement but unlike PPL it is not part of the kernel image
08:40nickchanit has the highest privilege in macOS, just like PPL
08:41nickchanthe 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
08:42svenI would expect that there’s some way to skip that in permissive security but would still be interesting to check that
08:43KxCORP5894 has quit [Quit: Bye!]
08:44nickchanA15-A17: SPTM introduced in iOS 17; M4: SPTM launched with iPadOS 17.5; M2: SPTM introduced in iOS 18/macOS 15
08:44KxCORP5894 has joined #asahi-dev
08:45nickchanit is expected that it will eventually be introduced to M1/A14+
08:45jannausounds like it is part of the exclave handling present for tons of intersting devices in the ipad pro m4 ADT
08:46pb17 has quit [Ping timeout: 480 seconds]
08:47nickchanyeah every exception level is used now GL2: SPTM; EL2: XNU; GL1: ExclaveCore; EL1: Guest Kernel; GL0: ExclaveOS; EL0: macOS userland
08:47nickchanneed SPTM as the hypervisor to run Exclave
08:49nickchanchadmed: 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
08:51nickchanit 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
08:51nickchanlike moving Core Bringup to it
08:53nickchanand 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.
08:53sveneither way, we can’t really run Linux under SPTM so there better be a way to skip all that ;)
09:22pb17 has joined #asahi-dev
09:29chadmed has quit [Quit: Konversation terminated!]
09:29chadmed has joined #asahi-dev
11:23pb17 has quit [Ping timeout: 480 seconds]
11:28jannauenabling the MMU in m1n1 is broken on macos 15 beta: https://gist.github.com/jannau/7da57f30440606337991568e87d57fda
11:28jannauM2 mac mini
11:34svenhrm, the GL2 init happens before that and i'd expect that to already fail if this SPTM thing was running
11:43pb17 has joined #asahi-dev
12:02martinr has joined #asahi-dev
12:05martinrOk, 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.
12:24martinrthere are other minutiae: currently tipd does not support resetting the cd321x. do we now send the unlock command on initialization and enable this functionality?
12:55chadmed has quit [Quit: Konversation terminated!]
12:55chadmed has joined #asahi-dev
13:22pb17 has quit [Ping timeout: 480 seconds]
13:23yuyichao has quit [Ping timeout: 480 seconds]
13:38pb17 has joined #asahi-dev
13:44leah2 has quit [Ping timeout: 480 seconds]
14:00leah2 has joined #asahi-dev
14:26leah2 has quit [Ping timeout: 480 seconds]
14:26leah2 has joined #asahi-dev
14:36john-cabaj has quit [Ping timeout: 480 seconds]
14:51nickchanjannau: someone said running a raw image should be without sptm, so maybe sptm is not running after all
14:52nickchanthey also said that only macho boot objects should be ran with sptm
15:15midou has joined #asahi-dev
15:20midou_ has joined #asahi-dev
15:23midou has quit [Ping timeout: 480 seconds]
15:24kettenisah, but we support both and some of us may still be in the habit of using macho?
15:25kettenisguess it should only matter for the first-stage m1n1
15:25pb17 has quit [Ping timeout: 480 seconds]
15:25jannaumartinr: just for reboot/enable UART the sysfs interface seems fine
15:27jannaunickchan: seems like m1n1 get's further than one would expect with sptm
15:28jannaukettenis: this is only for stage1 / kmutil configure boot. I don't think m1n1.macho still works for that since 12.x
15:28midou_ has quit [Ping timeout: 480 seconds]
15:31martinrjannau: great thanks, tidying up now
15:34midou has joined #asahi-dev
15:53pb17 has joined #asahi-dev
15:54midou has quit [Ping timeout: 480 seconds]
16:20billak has joined #asahi-dev
16:24billak has quit []
16:49midou has joined #asahi-dev
16:49buroa236 has joined #asahi-dev
16:55buroa23 has quit [Ping timeout: 480 seconds]
16:55buroa236 is now known as buroa23
16:57midou has quit [Ping timeout: 480 seconds]
16:58roxfan has quit [Ping timeout: 480 seconds]
17:15yuyichao has joined #asahi-dev
17:16buroa237 has joined #asahi-dev
17:21kujeger has joined #asahi-dev
17:22sting has quit [Quit: Ping timeout (120 seconds)]
17:24buroa23 has quit [Ping timeout: 480 seconds]
17:24buroa237 is now known as buroa23
17:27kujeger- has quit [Ping timeout: 480 seconds]
17:28c10l3 has quit [Remote host closed the connection]
17:29c10l3 has joined #asahi-dev
17:30midou has joined #asahi-dev
17:33sting has joined #asahi-dev
17:33c10l3 has quit []
17:33c10l has joined #asahi-dev
17:36pb17 has quit [Ping timeout: 480 seconds]
17:56ddxtanx has quit [Quit: Konversation terminated!]
17:56ddxtanx has joined #asahi-dev
18:13pb17 has joined #asahi-dev
18:23glem8 has joined #asahi-dev
18:31leah2 has quit [Ping timeout: 480 seconds]
18:43leah2 has joined #asahi-dev
18:51roxfan has joined #asahi-dev
19:10al3xtjames has joined #asahi-dev
19:11leah2 has quit [Ping timeout: 480 seconds]
19:12leah2 has joined #asahi-dev
20:47klausvalka has joined #asahi-dev
20:49klausvalka has quit [Remote host closed the connection]
20:49klausvalka has joined #asahi-dev
20:56klausvalka has quit [Remote host closed the connection]
21:11ellyq_ has joined #asahi-dev
21:20lynndotpy has quit [Quit: bye bye]
21:21lynndotpy has joined #asahi-dev
21:30ellyq has quit [Remote host closed the connection]
21:31ellyq has joined #asahi-dev
21:33ellyq_ has quit [Ping timeout: 480 seconds]
21:37pb17 has quit [Ping timeout: 480 seconds]
21:59ellyq_ has joined #asahi-dev
22:08melonai has quit []
22:14pb17 has joined #asahi-dev
23:11melonai has joined #asahi-dev
23:36pb17 has quit [Ping timeout: 480 seconds]
…