#asahi-dev · 2026-06-17 19:35
yuka*that switch_boot_cpu could work#asahi-dev · 2026-06-17 19:35
yukajannau: but it's still possible that switch_boot_cpu. the idle loop won't run before the patching.#asahi-dev · 2026-06-17 19:30
yukaall the way back, the "default" state was that the boot cpu does not lose state, but other cores do (on some older cpus, the first p-core also doesn't lose state, but the first e-core on M4 / A18 Pro does lose state)#asahi-dev · 2026-06-17 19:29
yukayep#asahi-dev · 2026-06-17 19:28
yukaand M1 Pro....#asahi-dev · 2026-06-17 19:28
yukaAlso on M3 if you set WFI_MODE = 0#asahi-dev · 2026-06-17 19:28
yukaNot only on M4#asahi-dev · 2026-06-17 19:09
yukadescribing the findings in wfe and wfit#asahi-dev · 2026-06-17 19:09
yukaOkay, I will write a response to will now#asahi-dev · 2026-06-17 19:07
yukafair#asahi-dev · 2026-06-17 19:06
yukaso we need nohlt but only disabling the default idle state#asahi-dev · 2026-06-17 19:06
yukaOh, that's not good#asahi-dev · 2026-06-17 19:04
yukaBut as maz suggested nohlt could also stop delay from using wfit#asahi-dev · 2026-06-17 19:03
yukaat least when replacing wfi with wfe directly#asahi-dev · 2026-06-17 19:02
yukaand never wakes up again#asahi-dev · 2026-06-17 19:02
yukait just gets stuck#asahi-dev · 2026-06-17 19:02
yukaidle=wfe does not help us#asahi-dev · 2026-06-17 19:00
yukahad to give it a value big enough#asahi-dev · 2026-06-17 19:00
yukareproduced it#asahi-dev · 2026-06-17 19:00
yukaAha#asahi-dev · 2026-06-17 18:57
yukaI mean even without setting up timer interrupts, wfit / wfet both return immediately#asahi-dev · 2026-06-17 18:54
yukaOr wfit loses state after all, even though I can not reproduce it in m1n1#asahi-dev · 2026-06-17 18:51
yukahttps://yuyu.yuka.dev/public/t8132-nohlt-losing-state.txt#asahi-dev · 2026-06-17 18:51
yukaone particular crash with nohlt which looks like lost state#asahi-dev · 2026-06-17 18:50
yukanohlt does not seem to be enough for t8132 not to lose state. it's happens less often (I get further in the boot process and see other crashes) but not fixed.#asahi-dev · 2026-06-17 18:09
yukahardy94 thinks claude coded a working emulator ;-)#asahi-dev · 2026-06-17 18:04
yukait's still just a hint#asahi-dev · 2026-06-17 18:03
yukaI mean, I guess that's a valid implementation#asahi-dev · 2026-06-17 18:03
yukait behaves like a nop from what I can tell#asahi-dev · 2026-06-17 18:03
yukait does not lose state, but it also does not take as long as I expected to execute#asahi-dev · 2026-06-17 18:03
yukaabout wfit#asahi-dev · 2026-06-17 18:02
yukaI'm confused#asahi-dev · 2026-06-17 17:52
yukamaz: I will bring that up next, if I can confirm that this is the remaining problem#asahi-dev · 2026-06-17 17:52
yukabut with wfit#asahi-dev · 2026-06-17 17:52
yukaOh let me just run the wfi experiment#asahi-dev · 2026-06-17 17:52
yukayeah probably#asahi-dev · 2026-06-17 17:51
yukaexactly#asahi-dev · 2026-06-17 17:51
yukaexactly, and I haven't found out yet if nohlt would prevent the wfit in the delay function from being used#asahi-dev · 2026-06-17 17:51
yukaI wonder if it is because I have so few drivers enabled that none of them is using delay() :D#asahi-dev · 2026-06-17 17:51
yukasmp#asahi-dev · 2026-06-17 17:50
yukaSo nohlt at least partially does the thing I wanted to add with the erratum#asahi-dev · 2026-06-17 17:50
yukaand unmodified 7.1 kernel#asahi-dev · 2026-06-17 17:50
yukainteresting! t8140 boots to a shell with 26.6 beta 2 iboot and nohlt in the cmdline#asahi-dev · 2026-06-16 20:13
yuka*26.6 beta 2#asahi-dev · 2026-06-16 20:13
yuka(the 26.6 beta InstallAssistant.pkg was not linked anywhere yet, so I found some file in my mac os installation which contained a link to a site which contains a link [...])#asahi-dev · 2026-06-16 20:13
yukaso no#asahi-dev · 2026-06-16 20:13
yukaYou need a mac os installation#asahi-dev · 2026-06-16 20:13
yukaI guess it might be prohibited according to the general mac os ToS#asahi-dev · 2026-06-16 20:12
yukaI can get the link without an apple developer account#asahi-dev · 2026-06-16 20:12
yukadid I accept that?