#
✕ nick:sven
#asahi-dev · 2026-06-18 14:16
svenprogress \o/
#asahi-dev · 2026-06-18 14:15
sven[ 5.090406] CPU1: failed to come online
#asahi-dev · 2026-06-18 14:15
sven[ 0.026035] psci: calling into PSCI-via-EFI done
#asahi-dev · 2026-06-18 14:15
svenhello, world from m1n1!
#asahi-dev · 2026-06-18 14:15
sven[ 0.026035] psci: calling into PSCI-via-EFI now
#asahi-dev · 2026-06-18 14:15
sven[ 0.025462] smp: Bringing up secondary CPUs ...
#asahi-dev · 2026-06-17 19:40
sven:(
#asahi-dev · 2026-06-17 19:37
svencould it be that we have some irqs unmasked or something that constantly reach the first core?
#asahi-dev · 2026-06-17 19:35
sven__delay because the cpufeature detection also only happens after early_param stuff and just before the alternative patching afaict
#asahi-dev · 2026-06-17 19:35
svenfor both idle loop and __delay
#asahi-dev · 2026-06-17 19:35
svenboth early_param and alternative patching are early enough afaict
#asahi-dev · 2026-06-17 19:07
sventhough maybe wfe isn't a subset for wfi i guess. don't really feel like reading the reference manual to figure out the difference right now
#asahi-dev · 2026-06-17 19:06
svenwhich brings us back to idle={wfi,wfe,nop} like will suggested i guess
#asahi-dev · 2026-06-17 19:05
svenif we use nohlt we can't even idle with psci or anything else. that's not gonna be fun long term
#asahi-dev · 2026-06-17 19:02
svenhuh
#asahi-dev · 2026-06-17 19:02
svenwhy?
#asahi-dev · 2026-06-17 19:01
svenguess it's time to write that idle=wfe patch and also stop udelay from using wfit then ;)
#asahi-dev · 2026-06-17 18:54
sventry_check_zero does call udelay
#asahi-dev · 2026-06-17 18:52
svenhm.. so there must be another wfi somewhere then
#asahi-dev · 2026-06-17 18:13
svenno need to have this discussion here, we have a policy against using gen ai so if you want to contribute please follow that. if you want to start a separate project that somehow uses claude to port linux or m1n1 or whatever to these machines, sure, go ahead, but please leave us alone
#asahi-dev · 2026-06-17 18:11
svenplease read that and then stop wasting our time
#asahi-dev · 2026-06-17 18:11
svenhttps://asahilinux.org/docs/project/policies/slop/
#asahi-dev · 2026-06-17 18:11
sven*sigh*
#asahi-dev · 2026-06-17 18:10
svenso is that what actually happened? you asked claude to write an a18 pro emulator? :/
#asahi-dev · 2026-06-17 18:10
svenwhat do you mean with system topology?
#asahi-dev · 2026-06-17 18:06
sven*what* apple binary?
#asahi-dev · 2026-06-17 18:06
sveni'm still confused what you are suggesting. what code do you want to run in there?
#asahi-dev · 2026-06-17 18:05
svenwhat upper working code from apple do you mean?
#asahi-dev · 2026-06-17 18:05
svenhuh?
#asahi-dev · 2026-06-17 17:59
sven:>
#asahi-dev · 2026-06-17 17:58
sveni've been told it isn't
#asahi-dev · 2026-06-17 17:57
svenah :/
#asahi-dev · 2026-06-17 17:55
svenwe should be able to trap wfi to el2, shouldn't we?
#asahi-dev · 2026-06-17 17:54
svenat least this motivated me to finally prototype this psci-via-efi-runtime thingy
#asahi-dev · 2026-06-17 17:53
svenshe already checked that wfi even in EL1 sometimes just drops all state
#asahi-dev · 2026-06-17 17:53
svenah nice :)
#asahi-dev · 2026-06-17 17:53
sveni think will suggested to introduce idle={wfi,wfe,nop} which should also work nicely
#asahi-dev · 2026-06-17 17:52
svenlike, that wfit just by pure chance decides not to drop any state :D
#asahi-dev · 2026-06-17 17:52
svenmaybe just luck lol?
#asahi-dev · 2026-06-17 17:51
svenat least i didn't find any mechanism that would prevent that
#asahi-dev · 2026-06-17 17:51
sveni don't think so
#asahi-dev · 2026-06-17 17:51
sveni think the only two wfis that matter are the idle loop and that __delay function when wfit is available
#asahi-dev · 2026-06-17 17:51
svennice!
#asahi-dev · 2026-06-17 17:50
svensmp or single core?
#asahi-dev · 2026-06-17 17:50
svenyuka: \o/
#asahi-dev · 2026-06-17 17:50
svenjmax[m]: i haven't been able to build a simple reproduction case yet unfortunately :D same soc fwiw
#asahi-dev · 2026-06-17 16:32
svenincreasing the stack size also makes it disappear
#asahi-dev · 2026-06-17 16:32
sveni don't know what it's related to, putting barriers at the right/wrong places makes it disappear. putting udelay or printf somewhere also makes it disappear
#asahi-dev · 2026-06-17 16:31
sveneach core already has their own stack which is why i'm not sure this can even happen. it would have to be core 0 deciding to speculatively fetch core 1's stack for some weird reason at just the wrong time
#asahi-dev · 2026-06-17 16:22
svendunno if that makes sense or if there's any reason for the first core to speculatively read that value

plus ›