#asahi-re · 2025-04-06 12:30
nickchanokay that's _EL1 but since VHE is always active that should just be _EL2#asahi-re · 2025-04-06 12:29
mischa85uh#asahi-re · 2025-04-06 12:29
mischa85CTRR_B_LWR_EL1 = 0x10000000000, CTRR_B_UPR_EL1 = 0x1000181f000#asahi-re · 2025-04-06 12:28
nickchanand B#asahi-re · 2025-04-06 12:28
mischa85CTRR_A_LWR_EL2 = 0x1000000c000, CTRR_A_UPR_EL2 = 0x100002af000#asahi-re · 2025-04-06 12:26
nickchantry the _EL2 registers#asahi-re · 2025-04-06 12:26
nickchanit's the vhe register aliases#asahi-re · 2025-04-06 12:26
nickchanof course they should be 0#asahi-re · 2025-04-06 12:26
nickchanmischa85: EL12 is EL1#asahi-re · 2025-04-06 12:25
mischa85all 0#asahi-re · 2025-04-06 12:25
mischa85no these are correct#asahi-re · 2025-04-06 12:24
mischa85derp#asahi-re · 2025-04-06 12:24
mischa85oh wait#asahi-re · 2025-04-06 12:24
mischa85CTRR_A_LWR_EL12 = 0x0, CTRR_A_UPR_EL12 = 0x0, CTRR_B_LWR_EL12 = 0x0, CTRR_B_UPR_EL12 = 0x0#asahi-re · 2025-04-06 12:23
nickchanmischa85: how about A and B?#asahi-re · 2025-04-06 12:22
sventhat's likely the coprocessor firmware region#asahi-re · 2025-04-06 12:19
mischa85CTRR_C_LWR_EL2 = 0x10004e1c000, CTRR_C_UPR_EL2 = 0x10004e27000, CTRR_D_LWR_EL2 = 0x0, CTRR_D_LWR_EL2 = 0x0#asahi-re · 2025-04-06 12:17
nickchanyou can also mrs((3,0,11,6,6)) in the shell#asahi-re · 2025-04-06 12:17
mischa85excuse me, on it#asahi-re · 2025-04-06 12:17
mischa85oh i expected some complicated logic behind it again#asahi-re · 2025-04-06 12:16
svens3_0_c11_c6_6 is [3, 0, 11, 6, 6] or what do you mean?#asahi-re · 2025-04-06 12:15
mischa85x is 1, 2, 3 and 4 for A and B#asahi-re · 2025-04-06 12:14
mischa85chaoss_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 ]#asahi-re · 2025-04-06 12:09
svendidn't the sysregs also change when they introduced PPL? i'm not sure they still limit instruction fetches these days#asahi-re · 2025-04-06 12:08
svenand the sysreg restrictions at least limit writes to caches#asahi-re · 2025-04-06 12:06
svendram restriction is MMIO iirc#asahi-re · 2025-04-06 11:58
nickchanEL1 restriction and EL2 restrictions limit instruction fetches, DRAM restrictions ensure memory ranges cannot be written to#asahi-re · 2025-04-06 11:57
nickchanbut m1n1's apple_regs.json makes absolutely no mention of anything related to DRAM restrictions#asahi-re · 2025-04-06 11:57
nickchanin my understanding CTRR should have multiple parts, EL1 restriction, EL2 restriction and DRAM restriction#asahi-re · 2025-04-06 11:55
nickchanalso#asahi-re · 2025-04-06 11:54
nickchanchadmed: they will not be disabled in that situation but it would be EL2 under sptm#asahi-re · 2025-04-06 11:54
chaos_princessmischa85: could you try reading out all ctrr regs in both modes#asahi-re · 2025-04-06 11:53
chadmedthey shouldnt be disabled if a macho m1n1 is enrolled though right#asahi-re · 2025-04-06 11:52
chaos_princessdoesn't hurt to try#asahi-re · 2025-04-06 11:51
nickchanbut of course if isa extensions are being disable it's also possible that those regs just don' twork#asahi-re · 2025-04-06 11:50
j`eywoops sorry#asahi-re · 2025-04-06 11:50
j`ey /win 108#asahi-re · 2025-04-06 11:50
nickchanerm s3_0_c11_c7_1 should be CTRR_D_UPR_EL2#asahi-re · 2025-04-06 11:49
nickchanand s3_0_c11_c7_0 for CTRR_D_LWR_EL2, s3_0_c11_c7_1 for CTRR_D_LWR_EL2#asahi-re · 2025-04-06 11:48
nickchantry s3_0_c11_c6_6 for CTRR_C_LWR_EL2 and s3_0_c11_c6_7 for CTRR_C_UPR_EL2#asahi-re · 2025-04-06 11:47
nickchanokay so#asahi-re · 2025-04-06 11:44
nickchanbut m4 supposedly also have C and D#asahi-re · 2025-04-06 11:44
nickchanso m1n1's apple_regs.json already has CTRR A and B#asahi-re · 2025-04-06 11:44
svenyeah#asahi-re · 2025-04-06 11:44
chaos_princessand in general just see what is there#asahi-re · 2025-04-06 11:44
chaos_princesswould be interesting to do for both raw and macho and compare#asahi-re · 2025-04-06 11:44
nickchanhold#asahi-re · 2025-04-06 11:44
svenunless they're locked down to just return 0 or whatever, yes#asahi-re · 2025-04-06 11:43
nickchanit's cpu registers so it should be possible#asahi-re · 2025-04-06 11:43
chaos_princesscan we read the state of those?