#
✕ nick:sven
#asahi-dev · 2026-10-29 20:19
svenHCR_EL2.E2H
#asahi-dev · 2026-10-29 20:18
sventhat's also the reason the _EL12 regs exist: they're used to actually access the EL1 reg when you're running in EL2
#asahi-dev · 2026-10-29 20:18
svenwith that you can run the same code in EL1 and EL2 and it just works out
#asahi-dev · 2026-10-29 20:17
svenon arm if a bit in HCR is set (which is always set on Apple hardware) and if you're running in EL2 *every* access to a _EL1 reg is forwarded to the _EL2 reg instead
#asahi-dev · 2026-10-29 20:17
svenSPTM is running in GL2 and XNU in EL2 usually
#asahi-dev · 2026-10-29 20:17
svenno
#asahi-dev · 2026-10-29 20:15
svenwhich i don't do in the emulator because i'm cutting every corner i can :D
#asahi-dev · 2026-10-29 20:15
svenso i guess XNU reads the _EL2 variants while SPTM writes to the _EL1 variants which on real hardware get aliased to the _EL2 ones
#asahi-dev · 2026-10-29 20:14
sven*sigh*
#asahi-dev · 2026-10-29 20:14
svenoh.... yes
#asahi-dev · 2026-10-29 19:55
svenand then see what's being written and read
#asahi-dev · 2026-10-29 19:55
svenjust add the printfs to VREG_MASKED_ALIAS
#asahi-dev · 2026-10-29 19:55
sveni'd add printfs for reading/writing any of the CTRR {A,B,C,D} sysregs
#asahi-dev · 2026-10-29 19:50
sventhere's also CTXR but i'm not sure what it does, the sysregs look more complex than the CTRR ones at least
#asahi-dev · 2026-10-29 19:49
svenit's a bunch of sysregs that make a memory region read-only
#asahi-dev · 2026-10-29 19:49
svenit's a newer version of that i think
#asahi-dev · 2026-10-29 19:46
svenroregion kinda sounds like CTRR, but why would it allocate read-only memory?!
#asahi-dev · 2026-10-29 19:45
svenhm, so i guess that 0x0 - 0xfff is the issue? i.e. that's what it thinks is the ro region?
#asahi-dev · 2026-10-29 15:59
svenhrm, looks like the xml format in the latest AARCHMRS has somehow changed and reg2json.py doesn't work anymore :/
#asahi-dev · 2026-10-28 18:13
svenwhich is the only thing I wanted :-(
#asahi-dev · 2026-10-28 16:45
svenoh, lol, nice. I’m heading out for today but will take a look tomorrow
#asahi-dev · 2026-10-28 16:34
sventhat keyword might be useful. let's see
#asahi-dev · 2026-10-28 16:34
svenweb search is just so damn broken these days :(
#asahi-dev · 2026-10-28 16:31
svencan't find a source though
#asahi-dev · 2026-10-28 16:31
svendoes anyone remember where arm_regs.json came from? I need to add two sysregs but figured we could just update to whatever the latest ARM ARM has anyway
#asahi-dev · 2026-10-28 16:12
sventime to get back to that series now I guess
#asahi-dev · 2026-10-28 16:12
svenyay, looks like we’re (usb4 maintainer, dt-binding maintainer, qcom and us) in agreement to use graph bindings for usb4/tbt now
#asahi-dev · 2026-10-28 07:52
sven:(
#asahi-dev · 2026-10-28 07:43
svenjust a little bit ;)
#asahi-dev · 2026-10-28 07:41
sven🍿
#asahi-dev · 2026-10-27 20:32
svenoh, true
#asahi-dev · 2026-10-27 20:25
svenit's kinda odd that patch isn't required for m4 or m5
#asahi-dev · 2026-10-27 18:24
sventhink different(tm)
#asahi-dev · 2026-10-27 16:15
svenlooks like that was caused by a fiq storm because the HACR trap for PMCR0 no longer works
#asahi-dev · 2026-10-27 16:15
svenyuka: https://github.com/AsahiLinux/m1n1/pull/742/changes/98a0e98d139da43f282a1b6a12c43ccbf8e00d7b has fixed the hangs after I login fwiw
#asahi-dev · 2026-10-27 15:16
svenor only increase the heap to something bigger for non-macho payloads in run_guest.py
#asahi-dev · 2026-10-27 15:05
svenjust patching that check out also works
#asahi-dev · 2026-10-27 15:05
sventhat stupid thing is the reason I had to move the shadow pagetables around twice :D
#asahi-dev · 2026-10-27 15:04
sven*bit more
#asahi-dev · 2026-10-27 15:04
sveniirc we have a bit than 100 MiB of headroom until it hits that check
#asahi-dev · 2026-10-27 15:04
svenyeah, that's gonna trigger that
#asahi-dev · 2026-10-27 15:01
sven(in the guest's bootargs)
#asahi-dev · 2026-10-27 15:00
sventhat's what the dapf check in SPTM used iirc
#asahi-dev · 2026-10-27 15:00
svenwhat's in the bootargs for phys_base?
#asahi-dev · 2026-10-27 14:59
sveniirc that one was checking ALIGN_DOWN(dram_base, 512MiB)
#asahi-dev · 2026-10-27 14:59
sventhat looks similar to the DAPF panic I ran into with SPTM
#asahi-dev · 2026-10-27 14:53
svenoh wait, it failed, so it's complaining it isn't
#asahi-dev · 2026-10-27 14:53
svenbut that assert looks weird, isn't the dram usually based at one of those locations?
#asahi-dev · 2026-10-27 14:49
svensomething wrong with bootargs might cause that
#asahi-dev · 2026-10-27 14:47
svenhmmm

plus ›