#
#asahi-dev · 2026-07-09 21:07
StanfordAppliedCyber[m]there appear to be a set of registers related to SME that are used on thread context switch thar are not writable from el1
#asahi-dev · 2026-07-09 21:06
StanfordAppliedCyber[m]tl;dr sme is causing issues
#asahi-dev · 2026-07-09 21:06
StanfordAppliedCyber[m]also can i solicit maintainer feedback on something else?
#asahi-dev · 2026-07-09 21:06
StanfordAppliedCyber[m]yuka previously said she can clean room the emulator, tbh it's really not that bad, the docs i'm writing are quite nice nd most of the custom code is isolated to a single table
#asahi-dev · 2026-07-09 21:05
StanfordAppliedCyber[m]so unfortunately not immediately usable by anyone who isnt me
#asahi-dev · 2026-07-09 21:05
StanfordAppliedCyber[m]excluding
#asahi-dev · 2026-07-09 20:41
Sobek[m](Hmm, including the SPTM thing, or excluding the SPTM thing ?)
#asahi-dev · 2026-07-09 20:26
StanfordAppliedCyber[m]need to write some commit messages, add some comments, then it's PR time
#asahi-dev · 2026-07-09 20:26
StanfordAppliedCyber[m]upstreamable hypervisor works!
#asahi-dev · 2026-07-09 20:06
svenyeah, hv_exc.c fixes this. so once each core went through at least one exception that hit hv_exc_entry everything's fine
#asahi-dev · 2026-07-09 20:05
svenah.. i thinnk hv_exc.c may just fix this on the first exception anyway
#asahi-dev · 2026-07-09 20:04
svenuh... or maybe i'm confused
#asahi-dev · 2026-07-09 20:03
svenif they exit quickly enough they still meet, it's just that if they're too slow... well
#asahi-dev · 2026-07-09 20:03
svenit's gonna send an IPI to each and every cpu anyway so we may just be very lucky on M1/M2
#asahi-dev · 2026-07-09 20:02
svenessentially hv_rendezvous will return the moment it caught the boot cpu unless i'm missing something
#asahi-dev · 2026-07-09 20:02
svendon't think so
#asahi-dev · 2026-07-09 20:01
chaos_princessdoes the fact that we now boot on core 4 make it worse?
#asahi-dev · 2026-07-09 19:59
sventhat, uh, might just make every hv_rendezvous unreliable i think
#asahi-dev · 2026-07-09 19:58
svenonly suspicious thing i found in the hv code
#asahi-dev · 2026-07-09 19:58
svenhttps://github.com/AsahiLinux/m1n1/pull/621 🙃
#asahi-dev · 2026-07-09 19:50
svenyeah, that too
#asahi-dev · 2026-07-09 19:50
chaos_princessi found that making stuff that is generic straight out of the gate tends to invite extra scrutiny on ml
#asahi-dev · 2026-07-09 19:49
svenunless this sounds like fun ofc ;)
#asahi-dev · 2026-07-09 19:48
svenimho stuff can always be made generic later, i usually prefer to just make it work for us for now
#asahi-dev · 2026-07-09 19:48
yukaor something
#asahi-dev · 2026-07-09 19:48
yukaeverything is a file
#asahi-dev · 2026-07-09 19:45
yukalike you write a mailbox driver and get a uart/tty-including-console-support for free
#asahi-dev · 2026-07-09 19:45
yukaI wonder if the mailbox-uart/tty-including-console-support part could be so generic that it isn't even apple-dockchannel specific
#asahi-dev · 2026-07-09 19:41
yukaWhen there was nothing to be sent
#asahi-dev · 2026-07-09 19:40
yukathe previous thing I tested was busy looping somewhere
#asahi-dev · 2026-07-09 19:37
sven10W, wtf
#asahi-dev · 2026-07-09 19:34
yukaand I hope this implementation doesn't draw an extra 10W
#asahi-dev · 2026-07-09 19:34
yukaSo the earlycon would still work if the mbox was entirely missing, and the normal uart driver would still work if the regs were missing
#asahi-dev · 2026-07-09 19:34
yukaTo make this not completely horrible, I duplicated the fifo reg on the mailbox and the uart node. Both earlycon and the normal uart driver use to the same dt node, but look at different properties (regs vs mboxes)
#asahi-dev · 2026-07-09 19:32
yukaI think the earlycon still writes things to the fifo after mailbox has been initialized
#asahi-dev · 2026-07-09 19:32
yukaexcept when I enable both at once, the handover goes wrong
#asahi-dev · 2026-07-09 19:31
yukaOkay I have dockchannel-uart earlycon (direct mmio, tx-only) and console= / ttyDC0 (mailbox, tx/rx) working :-)
#asahi-dev · 2026-07-09 19:15
svenweird
#asahi-dev · 2026-07-09 19:15
jannauwith cpus={4,6} get "panic(cpu 0 caller 0xfffffe00159a2a0c): "ApplePMGR: virtual void ApplePMGR::enableCPUComplex(UInt32, bool):4331 REQUIRE failed: complex < _cpuComplexCount" @ApplePMGR.cpp:4331"
#asahi-dev · 2026-07-09 19:09
jannaupmgr related panics or early hangs
#asahi-dev · 2026-07-09 19:07
svenhow is it unstable? still weird crashes in random places?
#asahi-dev · 2026-07-09 19:06
chaos_princessno tracer output at all?
#asahi-dev · 2026-07-09 19:05
jannauno luck with HV :(
#asahi-dev · 2026-07-09 18:48
jannaudart works after turning ISP_SYS manually on
#asahi-dev · 2026-07-09 18:39
jannauon j504 and j514s
#asahi-dev · 2026-07-09 18:38
jannaudart-isp has no clock/power-gates
#asahi-dev · 2026-07-09 18:36
chaos_princessactually, wait, why is it powered off, there is a call to turn it on in tracer
#asahi-dev · 2026-07-09 18:35
sofusyay for avd :p
#asahi-dev · 2026-07-09 18:34
chaos_princesscan you just delete the self.dart_tracer.start() call for now?
#asahi-dev · 2026-07-09 18:31
jannauchaos_princess: tracer fails on j504 because dart-isp isn't powered on

plus ›