#
#asahi-dev · 2025-12-30 10:46
nickchanrtkit is in drivers/soc/apple
#asahi-dev · 2025-12-30 10:46
integralpilotthere's definetely still more RTKit fixing to do but i feel like smaller, self-contained patches are better than just once big "RTKit M3 makeover" patch but not sure about upstream dynamics or when we should send stuff there
#asahi-dev · 2025-12-30 10:45
integralpilotgiven RTKit is also in mainline, once merged into asahi, should i bring this oslog patch upstream as well?
#asahi-dev · 2025-12-30 10:44
integralpilotuploading PR soon just doing some testing
#asahi-dev · 2025-12-30 10:44
integralpilotjust finished RE of new RTKit oslog message format, the updated driver is working now
#asahi-dev · 2025-12-30 10:02
nickchanhere's like 5 registers that's a clone of arm registers but probably runs at 24 MHz instead of 1 GHz
#asahi-dev · 2025-12-30 10:01
nickchanhttps://github.com/apple-oss-distributions/xnu/blob/43a90889846e00bfb5cf1d255cdc0a701a1e05a4/osfmk/arm64/machine_routines.c#L2324
#asahi-dev · 2025-12-30 10:00
Shizi'm sure we can make it work later today :)
#asahi-dev · 2025-12-30 10:00
nickchanxnu sources
#asahi-dev · 2025-12-30 10:00
nickchanas found in NXU sources
#asahi-dev · 2025-12-30 10:00
nickchanand some of those registers has to do with what appears to be a full set of custom parallel registers to ARM's arch timer
#asahi-dev · 2025-12-30 10:00
noopwafelstream is going to start now
#asahi-dev · 2025-12-30 09:59
Shizwait
#asahi-dev · 2025-12-30 09:59
Shizchaos and drama
#asahi-dev · 2025-12-30 09:56
nickchanlike im pretty sure s3_1_c15_c1_5 gets the vhe treatment with s3_4_c15_c14_6 being the corresponding _EL12 register
#asahi-dev · 2025-12-30 09:55
chaos_princessapple chips always run using vhe, old non-vhe virtualization is not supported
#asahi-dev · 2025-12-30 09:55
nickchanand vhe adds some register redirection so the same encoding can be a different register in different EL
#asahi-dev · 2025-12-30 09:55
integralpilotoh interesting, thank you!
#asahi-dev · 2025-12-30 09:55
chaos_princessno, the keywords to search for is "virtualization host extensions", its an arm thing that makes el2 look kinda like el1
#asahi-dev · 2025-12-30 09:55
nickchanso of course it can access _EL2 and _EL12 registers then
#asahi-dev · 2025-12-30 09:54
nickchanon normal macOS boot macOS runs in EL2
#asahi-dev · 2025-12-30 09:54
integralpiloti thought on normal macOS boot there's nothing in EL2, but maybe i'm wrong
#asahi-dev · 2025-12-30 09:54
chaos_princessintegralpilot: "nothing in el2"? macos runs in el2 under vhe, no?
#asahi-dev · 2025-12-30 09:53
nickchanBut that's probably too many traps
#asahi-dev · 2025-12-30 09:53
nickchantidcp should cause those to be trapped
#asahi-dev · 2025-12-30 09:53
noopwafelif it is still 'open' then maybe I will play a bit later today and see if I can blindly find any trap bits
#asahi-dev · 2025-12-30 09:52
integralpilotit's annoying that it doesn't like trap to us in EL2 when EL1 touches these, it sends an exception to El1 and doesn't notify us
#asahi-dev · 2025-12-30 09:52
noopwafelmakes sense, thanks :) we were trying to use a different kernel and we have the offsets to nop but it seemed horrible :D
#asahi-dev · 2025-12-30 09:51
nickchansounds like hacr/hcr trapping to me
#asahi-dev · 2025-12-30 09:51
integralpilotto my knowledge there's no way for us in EL2 to allow EL1 to access these, so we have to binary patch, but there might be another way
#asahi-dev · 2025-12-30 09:51
integralpilotwhich i guess makes sense for them to be protected like this, probably if you are a hypervisor running a sandboxed VM, you don't want it messing with sensitive registers like that
#asahi-dev · 2025-12-30 09:50
integralpilotif we don't set the chickens, XNU hangs at some sha512 function, so i assume they are crypto related in some way
#asahi-dev · 2025-12-30 09:49
integralpilotthey seem to be registers which, when there is nothing in EL2, access it allowed from EL1. but when there is something (m1n1) in EL2, EL1 is not allowed to touch them
#asahi-dev · 2025-12-30 09:48
noopwafelnickchan: is that new for the M3 setup? I went down a rabbit hole yesterday of trying to try hacr_trap_bits.py and then, oh, el1_call is broken (I have patch) after wondering if there was a nicer way to trap them
#asahi-dev · 2025-12-30 09:48
jannausven's talk isn't going to last 8+ hours
#asahi-dev · 2025-12-30 09:47
jannauI think #asahi would be fine
#asahi-dev · 2025-12-30 09:47
integralpilotjinx
#asahi-dev · 2025-12-30 09:47
nickchani mean there's #asahi-stream which is basically unused
#asahi-dev · 2025-12-30 09:47
integralpilot#asahi-stream ?
#asahi-dev · 2025-12-30 09:45
leiofirst time I see some conference actually do a clap test and such. Should we go to another channel for the stream discussions though? :)
#asahi-dev · 2025-12-30 09:45
integralpilotwell i guess it's more intended as like techno background music while it shows the schedule and stuff as they set up
#asahi-dev · 2025-12-30 09:44
integralpilotlol
#asahi-dev · 2025-12-30 09:44
integralpilotwhy is it like ominous video game boss music
#asahi-dev · 2025-12-30 09:43
nickchanthere's sound now
#asahi-dev · 2025-12-30 09:43
noopwafelfirst talk of the day in here so they are still doing setup etc
#asahi-dev · 2025-12-30 09:42
leioit switched to showing the room so early just as I was posting the link
#asahi-dev · 2025-12-30 09:42
leioit was some informational stuff before; some sound coming through just now too
#asahi-dev · 2025-12-30 09:42
integralpilotoh, makes sense
#asahi-dev · 2025-12-30 09:41
leioit's in 18 minutes, I assume they intentionally don't give early setup sound
#asahi-dev · 2025-12-30 09:41
integralpilotthere's no sound :(

plus ›