#asahi-dev · 2025-03-29 19:19
mischa85and i feel stupid#asahi-dev · 2025-03-29 19:19
mischa85i found it#asahi-dev · 2025-03-29 19:19
mischa85oh boy#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:06
j`eyok found https://github.com/AsahiLinux/m1n1/blob/5291d5c1ccee788086972dbad21ba9202be30b8d/proxyclient/m1n1/proxyutils.py#L216 looks like it just has a code_buffer it uses#asahi-dev · 2025-03-29 19:06
chaos_princessit looks more like it fails to make it executable#asahi-dev · 2025-03-29 19:06
chaos_princessIf memory allocation failed i think you'd have no python at all#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:04
j`eyif it's in the C it's just in the memory loaded when m1n1 starts#asahi-dev · 2025-03-29 19:03
j`eyyeah from python it has to copy the instruction to memory somewhere to execute#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:01
j`eymischa85: in chickens.c it's reading it directly/compiled, with mrs() in the shell, im pretty sure it tries to allocate some memory, and then copy the instruction there#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:55
chaos_princesslike, it is closer to x15 or eax than a memory address#asahi-dev · 2025-03-29 18:54
chaos_princessThat does not make sense, read32 is a memory read, and MIDR_EL1 id a system register#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:26
fl0_id(though not directly relevant, except for how packet logger works)#asahi-dev · 2025-03-29 18:24
fl0_idthere is also https://www.youtube.com/watch?v=3uILiFL83v4#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:18
svendoes mrs work with any other register?#asahi-dev · 2025-03-29 18:18
fl0_idjannau so if I read this correctly, there isn't any consensus in bluez yet, on how to implement this?#asahi-dev · 2025-03-29 18:11
j`eythat's what an instruction abort it, when it tries to execute from some invalid adress#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:50
j`eythat's an MMU fault#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
j`eywell current core as in the core that executes that instruction#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:37
j`eymrs reads the current cores register#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:33
j`eythat's pretty weird, just reading a register