#
✕ nick:sven
#asahi-dev · 2026-11-10 17:21
svenand yes, HPD comes from dpin
#asahi-dev · 2026-11-10 17:21
svenyup! the header file already contains all registers I think so tracing should give you the right order then
#asahi-dev · 2026-11-10 15:50
svenfor tbt tunnels the dp aux channel is tunneled as well and that thing usually sends HPD updates
#asahi-dev · 2026-11-10 15:50
svenit’s very simple and iirc HPD must come from there as well
#asahi-dev · 2026-11-10 15:50
sventhat thing should be in the ADT
#asahi-dev · 2026-11-10 15:34
svenit needs a bunch of MMIO pokes after the tunnel is up
#asahi-dev · 2026-11-10 15:34
sventhere’s a DP-in phy which is very simple
#asahi-dev · 2026-11-09 22:08
svenvery nice!
#asahi-dev · 2026-11-09 22:06
sven*and
#asahi-dev · 2026-11-09 22:06
svenso now you can create three commits an open a PR: that CTRR alias hack, that weird exclave-misc ADT thing, and finally add that bootarg automatically. there's already a list somewhere in hv/__init__.py that disables a bunch of other crap
#asahi-dev · 2026-11-09 22:04
svenbest disassembler ever
#asahi-dev · 2026-11-09 22:04
sven<3 strings
#asahi-dev · 2026-11-09 22:01
svenstrings to the rescue! try -vm_compressor_wk_sw
#asahi-dev · 2026-11-09 21:59
svenah true :(
#asahi-dev · 2026-11-09 21:57
sven*add a header
#asahi-dev · 2026-11-09 21:56
svenit's very odd the bootarg doesn't work though
#asahi-dev · 2026-11-09 21:56
svenmaybe look at xnu's source code to see what it expects, it might a header or something
#asahi-dev · 2026-11-09 21:56
svenmemcpy a page (16K? who knows) from rS to rD and you'd have to figure out the return status in r5 if https://asahilinux.org/docs/hw/cpu/apple-instructions/ is correct
#asahi-dev · 2026-11-09 21:55
svenif the bootarg doesn't work for some reason you'll have to patch wkdmc/wkdmd like i e.g. patch genter or that weird GXF TLBI instruction
#asahi-dev · 2026-11-09 21:54
svenodd, that should work :/
#asahi-dev · 2026-11-09 21:51
svencan you show the full run_guest.py args you used?
#asahi-dev · 2026-11-09 21:50
svenbut the hv should set that, see sprr_init_cpu
#asahi-dev · 2026-11-09 21:50
svenI think that's APSTS_EL1 and it's polling for bit 0 or whatever there
#asahi-dev · 2026-11-09 21:47
svendumb question: you always chainload before run_guest, don't you?
#asahi-dev · 2026-11-09 21:45
svenplease try to disassemble a larger block like chaos said
#asahi-dev · 2026-11-09 21:44
sventhat hvc is probably some VREG
#asahi-dev · 2026-11-09 21:26
svenbut it will panic if it runs out of memory because I’m lazy I think
#asahi-dev · 2026-11-09 21:25
sveni think I added a flag to run_guest to adjust it
#asahi-dev · 2026-11-09 21:25
svenpretty sure it’s just that value unless you modify it
#asahi-dev · 2026-11-09 21:25
sven2GB I think
#asahi-dev · 2026-11-09 21:14
svenlol
#asahi-dev · 2026-11-09 21:11
svenjust too slow ;)
#asahi-dev · 2026-11-09 21:11
svendamn… just found it as well
#asahi-dev · 2026-11-09 21:04
svenbootarg would be even better
#asahi-dev · 2026-11-09 21:03
svenmemcpy is a valid compression algorithm, isn’t it? 😁
#asahi-dev · 2026-11-09 21:01
svenI guess I never hit that because my machines have too much RAM :D
#asahi-dev · 2026-11-09 21:01
svenhttps://asahilinux.org/docs/hw/cpu/apple-instructions/
#asahi-dev · 2026-11-09 21:01
svenlol, that’s wkdmc, compress memory page
#asahi-dev · 2026-11-09 20:59
svenYeah, that’s a real IMPDEF instruction and not just a sysreg :(
#asahi-dev · 2026-11-09 20:58
svendidn’t know we could that, that would’ve been useful
#asahi-dev · 2026-11-09 20:56
svenneat!
#asahi-dev · 2026-11-09 20:55
svenoh wait.. you mean map a page to EL0 that has not stage 2 backing and then try to read from that one?
#asahi-dev · 2026-11-09 20:55
svenI just map a page that has hvcs at each exception
#asahi-dev · 2026-11-09 20:54
svenor, well, I do something similar
#asahi-dev · 2026-11-09 20:53
svenmmediouni[m]: yeah, that's what I already do in the SPRR/GXF emu but hooking that up and exiting to the hv shell sounds annoying
#asahi-dev · 2026-11-09 20:52
svenfeel free to open a PR with that plus the CTRR hack
#asahi-dev · 2026-11-09 20:51
sventhis was brought to you by staring at strings referenced from nearby functions :D
#asahi-dev · 2026-11-09 20:51
sveni dunno why that isn't fatal on m5, it just complains if the exclave memory map is missing there
#asahi-dev · 2026-11-09 20:50
sven:D
#asahi-dev · 2026-11-09 20:48
svenchaos_princess: that's just a hvc handler, isn't it? I thought hvc from EL0 is UNDEF

plus ›