#asahi-dev · 2026-10-25 21:30
svenand sptm really wants to be able to access (or at least create pagetable entries) for that region#asahi-dev · 2026-10-25 21:30
chaos_princessyea, trying to read the relevant sections of arm arm, and intel sdm is a lot more comprehensible in general#asahi-dev · 2026-10-25 21:30
svenso far the issue is that there's some apple IMPDEF reg that points to end_of_useable_ram - $whatever and that's where I store the sprr shadow pageables #asahi-dev · 2026-10-25 21:29
svenI have no idea :D#asahi-dev · 2026-10-25 21:29
chaos_princesshow does mte interact with virtualization?#asahi-dev · 2026-10-25 21:28
hex86[m]Haha hopefully we can get this merged at some point, I've left it sitting around for maybe a little too long! #asahi-dev · 2026-10-25 21:28
hex86[m]ok sofus I should have responded to everything from your review now! :D#asahi-dev · 2026-10-25 21:23
svenstill gotta figure out where to place the shadow pagetables though with that new MTE crap#asahi-dev · 2026-10-25 21:21
svenok, pretty sure that sptm doesn't set up any stage 2 translations for cl4 so this shouldn't be too bad I think#asahi-dev · 2026-10-25 19:52
yukapeople have gotten it to work by doing usb3 device mode, since the usb3 lanes are not going through the hub. there is only sloppy code for this though.#asahi-dev · 2026-10-25 19:52
yukaso this is correct, you can't properly use the hv vuart on the Neo#asahi-dev · 2026-10-25 19:51
yukathere is no second iodev for debugusb#asahi-dev · 2026-10-25 19:28
svenchances are it's a msr/mrs for some sysreg#asahi-dev · 2026-10-25 19:27
svennext step is to use disassemble_at and figure out what generated the exception#asahi-dev · 2026-10-25 19:27
snooze6214[m]s/more/mode/#asahi-dev · 2026-10-25 19:27
snooze6214[m]alright, ill look into it tomorrow then. thanks for all the help :)#asahi-dev · 2026-10-25 19:26
sventhen you'll have to debug from the hv :(#asahi-dev · 2026-10-25 19:26
snooze6214[m]yeah, i didnt get device more working because of the usb hub thing that yuka mentioned#asahi-dev · 2026-10-25 19:25
svenohh... i assumed it was already running in device mode#asahi-dev · 2026-10-25 19:24
snooze6214[m]i dont see a new ACM device come up in /dev :( https://termbin.com/v45e idk if this matters but im using debugusb + kisd#asahi-dev · 2026-10-25 19:09
svenif i were to bet this is an UNDEF instruction because there's some new sysreg in the a18 pro kernel the m4 pro one doesn't have ;)#asahi-dev · 2026-10-25 19:08
snooze6214[m]ack#asahi-dev · 2026-10-25 19:08
chaos_princessttys are virtual#asahi-dev · 2026-10-25 19:08
svenif the first one pops up the second one will also appear#asahi-dev · 2026-10-25 19:08
chaos_princessirrelevant#asahi-dev · 2026-10-25 19:08
snooze6214[m]hmm neo has a usb hub in between, so i dont think they'll pop up... i know yuka was talking about this a while back#asahi-dev · 2026-10-25 19:08
svendisassemble_at actually#asahi-dev · 2026-10-25 19:07
sventhey should already be there before you start the hv#asahi-dev · 2026-10-25 19:07
chaos_princessyes, usually the same device but with 3 instead of 1#asahi-dev · 2026-10-25 19:07
svenyes, you should have two ttys in /dev#asahi-dev · 2026-10-25 19:07
chaos_princesssnooze6214[m]: everyone started out knowing ~nothing, don't worry#asahi-dev · 2026-10-25 19:07
svenor maybe it was disassmble_at#asahi-dev · 2026-10-25 19:07
snooze6214[m]will xnu logs appear as another tty in /dev?#asahi-dev · 2026-10-25 19:07
svendisassemble(addr, size) from the hv shell should work I think#asahi-dev · 2026-10-25 19:06
snooze6214[m]chaos_princess: ah nvm... this is probably it 🤦♂️im sorry again 😭#asahi-dev · 2026-10-25 19:05
snooze6214[m]this just means serror i think?#asahi-dev · 2026-10-25 19:05
snooze6214[m]0x2000000#asahi-dev · 2026-10-25 19:05
snooze6214[m]u.mrs(ESR_EL12)#asahi-dev · 2026-10-25 19:04
snooze6214[m]is there some way to see the disassembly at some address in m1n1?#asahi-dev · 2026-10-25 19:04
snooze6214[m]0xfffffebcb4130000#asahi-dev · 2026-10-25 19:04
snooze6214[m]u.mrs(FAR_EL12)#asahi-dev · 2026-10-25 19:04
snooze6214[m]0xfffffe003cf4ba84#asahi-dev · 2026-10-25 19:04
snooze6214[m]* u.mrs(ELR_EL12)#asahi-dev · 2026-10-25 19:04
snooze6214[m]>>> u.mrs(ELR_EL12)... (full message at <https://matrix.org/oftc/media/v1/media/download/AaQJVzXtoLaQ1Dly2T2QlR3v97VQ0Od5gGyPaXchgKWCxOjB6uEn1RClwOwkss9pgug4PtjGYhef3FLsJKH7wV1CehvIvTKAAG1hdHJpeC5vcmcvbXdNelBSTnhLYlVlaFpYRUJCalBmbFhh>)#asahi-dev · 2026-10-25 18:58
sventhis has to be very early if you really see nothing on the second ACM device#asahi-dev · 2026-10-25 18:58
svenso then dump the exception register file and see what actually cause the exception#asahi-dev · 2026-10-25 18:57
snooze6214[m]yep it is stuck in a loop: wfe b loop#asahi-dev · 2026-10-25 18:57
sventhe dump ELR_EL12, FAR_EL12, ... to figure out what cause the exception#asahi-dev · 2026-10-25 18:57
snooze6214[m]https://termbin.com/wc8ey