2025-04-06
00:08ece314378925355451680698427415 has joined #asahi-re
00:36mischa85 has quit [Ping timeout: 480 seconds]
00:58mischa85 has joined #asahi-re
00:59pb17 has quit [Ping timeout: 480 seconds]
01:06mischa85 has quit [Ping timeout: 480 seconds]
01:15ddxtanx has quit [Remote host closed the connection]
01:15mischa85 has joined #asahi-re
01:17ddxtanx has joined #asahi-re
01:24mischa85 has quit [Ping timeout: 480 seconds]
01:32pb17 has joined #asahi-re
02:13mischa85 has joined #asahi-re
02:21mischa85 has quit [Ping timeout: 480 seconds]
03:16pb17 has quit [Ping timeout: 480 seconds]
03:23pb17 has joined #asahi-re
03:30red_rider has joined #asahi-re
03:31mischa85 has joined #asahi-re
03:39mischa85 has quit [Ping timeout: 480 seconds]
04:09red_rider has quit [Ping timeout: 480 seconds]
04:12WindowPain has joined #asahi-re
04:14mischa85 has joined #asahi-re
04:23mischa85 has quit [Ping timeout: 480 seconds]
04:32mischa85 has joined #asahi-re
04:40mischa85 has quit [Ping timeout: 480 seconds]
05:01Halian has quit [Quit: I'll be back.]
05:02pb17 has quit [Ping timeout: 480 seconds]
05:24pb17 has joined #asahi-re
05:55red_rider has joined #asahi-re
06:02red_rider has quit [Remote host closed the connection]
06:33mischa85 has joined #asahi-re
06:36pb17 has quit [Ping timeout: 480 seconds]
06:41mischa85 has quit [Ping timeout: 480 seconds]
07:10pb17 has joined #asahi-re
07:21chadmed has quit [Quit: Konversation terminated!]
07:21chadmed has joined #asahi-re
07:22JayBeeFOSS has quit [Ping timeout: 480 seconds]
07:23JayBeeFOSS has joined #asahi-re
07:25mischa85 has joined #asahi-re
07:30mattia013 has quit [Remote host closed the connection]
07:33mattia013 has joined #asahi-re
07:35mischa85 has quit [Ping timeout: 480 seconds]
07:57mischa85 has joined #asahi-re
08:31pb17 has quit [Ping timeout: 480 seconds]
08:49pb17 has joined #asahi-re
09:46mattia013 has quit [Quit: mattia013]
09:46mattia013 has joined #asahi-re
10:19thunfisch has quit [Ping timeout: 480 seconds]
10:26pb17 has quit [Ping timeout: 480 seconds]
10:27thunfisch has joined #asahi-re
10:42pb17 has joined #asahi-re
11:21opticron has quit [Read error: Connection reset by peer]
11:26opticron has joined #asahi-re
11:38chaos_princesssven: do we know how xnu stars secondaries on m4?
11:39sveneventually they all end up at XNU's entry point https://github.com/apple-oss-distributions/xnu/blob/main/osfmk/arm64/sptm/start_sptm.s#L34
11:39chaos_princessas in: genter to sptm with a "do start secondaries" syscall?
11:40svenI think SPTM does that all automatically. i've found a function in there that parses the ADT and finds the cpu-impl-regs and maps them
11:41nickchanit also has to because the core comes out of reset in EL2 with GL available but disabled
11:41chaos_princessis there a chance that sptm is not the first/only code that runs there, and it jumps to iboot or sth?
11:42svensiguza suggested yesterday that it either has to be a sysreg or something that applies to all cores directly after they're out of reset or that they do something cursed like putting a single page under CTRR and locking down the secondary reset vectors to that one
11:43chaos_princesscan we read the state of those?
11:44chaos_princesswould be interesting to do for both raw and macho and compare
11:44chaos_princessand in general just see what is there
11:51nickchanbut of course if isa extensions are being disable it's also possible that those regs just don' twork
11:52chaos_princessdoesn't hurt to try
11:54chaos_princessmischa85: could you try reading out all ctrr regs in both modes
11:57nickchanin my understanding CTRR should have multiple parts, EL1 restriction, EL2 restriction and DRAM restriction
11:57nickchanbut m1n1's apple_regs.json makes absolutely no mention of anything related to DRAM restrictions
11:58nickchanEL1 restriction and EL2 restrictions limit instruction fetches, DRAM restrictions ensure memory ranges cannot be written to
12:09svendidn't the sysregs also change when they introduced PPL? i'm not sure they still limit instruction fetches these days
12:14pb17 has quit [Ping timeout: 480 seconds]
12:14mischa85chaoss_princess: currently A and B are defined in apple_regs, how do i translate s3_0_c11_c6_6 to "enc": [3, 4, 15, 9, x ]
12:16yuyichao_ has quit [Ping timeout: 480 seconds]
12:19mischa85CTRR_C_LWR_EL2 = 0x10004e1c000, CTRR_C_UPR_EL2 = 0x10004e27000, CTRR_D_LWR_EL2 = 0x0, CTRR_D_LWR_EL2 = 0x0
12:24mischa85CTRR_A_LWR_EL12 = 0x0, CTRR_A_UPR_EL12 = 0x0, CTRR_B_LWR_EL12 = 0x0, CTRR_B_UPR_EL12 = 0x0
12:33svenif this was my machine I'd dump these regions and take a look at them, but since they contain apple code we shouldn't share them unfortunately . they seem to all be rather large though.
12:35sveni'd take a look at that value and see if it happens to point into one of these CTRR regions
12:46pb17 has joined #asahi-re
12:47mattia013 has quit [Remote host closed the connection]
12:49mattia013 has joined #asahi-re
12:56nickchanokay so supposed put code at 0x10005d68000 and supposedly all other cores would end up there
12:58nickchanokay so that's right at m1n1 base and apple goes out of the way to make sure it's not the entry point *either*
14:00pb17 has quit [Ping timeout: 480 seconds]
14:17pb17 has joined #asahi-re
15:44pb17 has quit [Ping timeout: 480 seconds]
16:15pb17 has joined #asahi-re
16:32mischa85 has quit [Ping timeout: 480 seconds]
16:54mischa85 has joined #asahi-re
16:56chadmed has quit [Quit: Konversation terminated!]
16:56chadmed has joined #asahi-re
17:03mischa85 has quit [Ping timeout: 480 seconds]
17:11mischa85 has joined #asahi-re
17:24pb17 has quit [Ping timeout: 480 seconds]
17:45pb17 has joined #asahi-re
17:50swiftraccoon has quit [Remote host closed the connection]
17:56swiftraccoon has joined #asahi-re
18:00glem81005488 has quit [Quit: bye.]
18:16swiftraccoon has quit [Ping timeout: 480 seconds]
18:18glem810054889 has joined #asahi-re
18:22swiftraccoon has joined #asahi-re
18:28nela has joined #asahi-re
18:28swiftraccoon has quit [Remote host closed the connection]
18:30swiftraccoon has joined #asahi-re
18:56pb17 has quit [Ping timeout: 480 seconds]
19:20pb17 has joined #asahi-re
21:18okb has quit [Read error: Connection reset by peer]
21:35commandoline has quit [Quit: Bye!]
21:36commandoline has joined #asahi-re
21:37commandoline has quit []
21:41commandoline has joined #asahi-re
22:33pb17 has quit [Ping timeout: 480 seconds]
22:50pb17 has joined #asahi-re