#asahi-dev · 2025-03-29 19:14
mischa85right here: https://github.com/AsahiLinux/m1n1/blob/5291d5c1ccee788086972dbad21ba9202be30b8d/proxyclient/m1n1/proxyutils.py#L82#asahi-dev · 2025-03-29 19:08
mischa85which reinforces chaos_princess' hunch here#asahi-dev · 2025-03-29 19:07
mischa85which should be allocated at startup already right?#asahi-dev · 2025-03-29 19:04
mischa85so that memory allocation fails#asahi-dev · 2025-03-29 19:04
mischa85i think we're onto something#asahi-dev · 2025-03-29 19:03
mischa85j`ey: thanks. does that mean when mrs() gets called from the hypervisor python script it tries to do the same?#asahi-dev · 2025-03-29 19:00
mischa85which means something between chickens.c and uartproxy is messing things up#asahi-dev · 2025-03-29 19:00
mischa85which is odd because that register read succeeds when being done from chickens.c#asahi-dev · 2025-03-29 18:58
mischa85and it somehow gives me that same instruction abort when i try to do mrs(MIDR_EL1)#asahi-dev · 2025-03-29 18:58
mischa85mrs() is available in the shell#asahi-dev · 2025-03-29 18:58
mischa85ok derp got it#asahi-dev · 2025-03-29 18:56
mischa85ok, thank you. i'll see if i can find something like that in the m1n1 shell#asahi-dev · 2025-03-29 18:54
mischa85i'm missing something obvious here#asahi-dev · 2025-03-29 18:53
mischa85i expect it to be defined as an address of some sorts#asahi-dev · 2025-03-29 18:52
mischa85MIDR_EL1 also doesn't seem to be defined anywhere in the sourcecode?#asahi-dev · 2025-03-29 18:52
mischa85ok i want to test some things, but i have some noobish questions. i'm trying read32(MIDR_EL1) which of course doesn't work because it expects an integer. but i cannot for the life of me figure out what that integer should be#asahi-dev · 2025-03-29 18:19
mischa85and MIDR_EL1#asahi-dev · 2025-03-29 18:19
mischa85well it does for OSLAR_EL1 for example#asahi-dev · 2025-03-29 18:08
mischa85how do you recognize it as MMU fault?#asahi-dev · 2025-03-29 17:58
mischa85*mmu_init#asahi-dev · 2025-03-29 17:53
mischa85or at least, mmc_init() is not getting called#asahi-dev · 2025-03-29 17:52
mischa85it's disabled#asahi-dev · 2025-03-29 17:44
mischa85this is the exception it throws: https://gist.github.com/mischa85/6fd90c909d4c4e79820fa4cdbf313927#asahi-dev · 2025-03-29 17:43
mischa85at least not crash before it transfers the kernel#asahi-dev · 2025-03-29 17:42
mischa85no wonder i had to comment out all the register stuff to at least not make it crash#asahi-dev · 2025-03-29 17:41
mischa85this is odd#asahi-dev · 2025-03-29 17:39
mischa85hmmm, should be fine then#asahi-dev · 2025-03-29 17:38
mischa85what sets the current core? i want m1n1 to strictly use cpu4#asahi-dev · 2025-03-29 17:36
mischa85so my theory, perhaps this register is tied to a disabled core and it's trying to read it?#asahi-dev · 2025-03-29 17:36
mischa85searching HCR_EL2 on the IRC history of this channel results in someone mentioning it being a per-core setting rather than system-wide#asahi-dev · 2025-03-29 17:30
mischa85aight i'm back on t6041 duties again. this time taking a closer look at what happens regarding the HCR_EL2 register. it crashes on the first call: hcr = HCR(self.u.mrs(HCR_EL2))#asahi-dev · 2025-03-23 21:18
mischa85it's going to be painful tho transferring the kernel at 115200 bauds everytime. if anyone has a trick to get 1.5 mbaud without m1n1 denying it without mmu i'd be glad to hear of it#asahi-dev · 2025-03-23 21:13
mischa85i should, however, take a closer look at what happens to HCR_EL2#asahi-dev · 2025-03-23 21:10
mischa85and that bit should be 0 according to arm64 specs#asahi-dev · 2025-03-23 21:09
mischa85chaos_princess: translation should be disabled when mmu_unit() is not called. the hv_translate() function actually checks for the SCTLR_M bit (mmu) in the SCTLR_EL12 (SCTLR_2?) register and acts accordingly#asahi-dev · 2025-03-23 20:08
mischa85something something paging related, but what...#asahi-dev · 2025-03-23 20:07
mischa85interestingly, i also don't get a rainbow apple logo. it just crashes before#asahi-dev · 2025-03-23 18:36
mischa85i'm out of ideas for today#asahi-dev · 2025-03-23 18:36
mischa85taking HCR_VM); // Enable stage 2 translation out doesn't make a difference sadly#asahi-dev · 2025-03-23 18:00
mischa85HCR_VM?#asahi-dev · 2025-03-23 17:52
mischa85is it even possible to launch hv without mmu?#asahi-dev · 2025-03-23 17:51
mischa85nope. so enabling mmu_init makes pt_update pass without crashing, but crashes later as a guest exception#asahi-dev · 2025-03-23 17:28
mischa85my best guess is that mcc_init() has something to do with it#asahi-dev · 2025-03-23 16:53
mischa85which is indeed the range it tries to jump to: PT[10016428000:12000000000] -> HW:RAM-HIGH#asahi-dev · 2025-03-23 16:50
mischa85pt_update causes an Exception:SYNC on HW:RAM-HIGH#asahi-dev · 2025-03-23 16:28
mischa85the pt_update function doesn't crash instantly, i can try to let it run partially#asahi-dev · 2025-03-23 16:26
mischa85how can i find out?#asahi-dev · 2025-03-23 15:53
mischa85i don't know#asahi-dev · 2025-03-23 15:52
mischa85well, seeing how much i had to cut from the process#asahi-dev · 2025-03-23 15:52
mischa85my bad