#asahi-dev · 2026-01-23 20:16
yukaJoshuaPeisach[mds] https://github.com/AsahiLinux/linux/blob/f1879b3d78dcf69a8ff9be3b504c1bd6d5fa2f47/drivers/cpuidle/cpuidle-apple.c#asahi-dev · 2026-01-23 20:13
yukaThen I can remove the register based check?#asahi-dev · 2026-01-23 20:02
yukaIf I knew that this is true for all M4(/Pro/...) cores, I would check based on that, but I only have the base M4#asahi-dev · 2026-01-23 20:00
yukaor just hard code lists of platforms where it should be skipped?#asahi-dev · 2026-01-23 19:59
yukaso then we also don't need cpuidle-apple there. shall I make a PR to hide it behind a new device tree compatible?#asahi-dev · 2026-01-23 19:58
yukaseems like it#asahi-dev · 2026-01-23 19:57
yukaI see!#asahi-dev · 2026-01-23 19:57
yukaOk, the cpuidle-apple code has no comments ;)#asahi-dev · 2026-01-23 19:57
yukaand now some irqs are disabled by other means#asahi-dev · 2026-01-23 19:56
yukawhere previously ARM64_REG_CYC_OVRD was used#asahi-dev · 2026-01-23 19:56
yukaok so here is an #else block for NO_CPU_OVRD#asahi-dev · 2026-01-23 19:56
yukahttps://github.com/apple-oss-distributions/xnu/blob/f6217f891ac0bb64f3d375211650a4c1ff8ca1ea/osfmk/arm64/machine_routines_asm.s#L1041#asahi-dev · 2026-01-23 19:55
yukadoes xnu not have a weird license that is potentially not gpl compatible?#asahi-dev · 2026-01-23 19:54
yukathat is similar to a lot of the things I discovered in xnu while trying to figure out why chickens were not working, and as sven just said there xnu no longer uses those registers on this platform and one might look at alternative code paths from there but that's more something for #asahi-re, no?#asahi-dev · 2026-01-23 19:49
yukabut if xnu no longer uses it there is likely another way to achieve it now#asahi-dev · 2026-01-23 19:47
yukaindeed#asahi-dev · 2026-01-23 19:43
yukadoes it still make sense to use wfi without being able to set that?#asahi-dev · 2026-01-23 19:42
yuka(SYS_APL_CYC_OVRD according to wiki)#asahi-dev · 2026-01-23 19:42
yukas3_5_c15_c5_0 is locked#asahi-dev · 2026-01-23 19:42
yukaso I don't see a way to check this#asahi-dev · 2026-01-23 19:42
yukawell it immediately crashes when attempting to do the apple_cpu_deep_wfi#asahi-dev · 2026-01-23 19:39
yukaI see, just re-read the wiki section on that#asahi-dev · 2026-01-23 19:38
yukasven: you mean cpuidle can never be upstreamed, or not in this state?#asahi-dev · 2026-01-23 19:37
yukaotherwise cpuidle-apple wouldn't register#asahi-dev · 2026-01-23 19:37
yukaaccording to the check of aidr_el1, yes#asahi-dev · 2026-01-23 19:24
yukasince currently it just checks for apple,arm-platform#asahi-dev · 2026-01-23 19:23
yukamight have to add some compatible indicator in the device tree for this e.g. cpuidle-t8103 (which is also used in all the others which support this)?#asahi-dev · 2026-01-23 19:22
yukanot a problem on mainline (yet) since there is no cpuidle-apple#asahi-dev · 2026-01-23 19:21
yukaagain some locked register write#asahi-dev · 2026-01-23 19:21
yukaanother m4 oopsie: cpuidle-apple will kill the cpu when trying to apple_enter_idle()#asahi-dev · 2026-01-23 15:27
yukawhen the pmgr_adt2dt.py produces bad power-domain references, this means there were bad references in the adt?#asahi-dev · 2026-01-23 14:23
yukamaz: do we need to set SYS_IMP_APL_VM_TMR_FIQ_ENA_EL2 during run-time for kvm? or just initialize them with the correct values#asahi-dev · 2026-01-23 14:23
yukanice!#asahi-dev · 2026-01-23 14:18
yukamaz: your analysis was correct. commenting out the is_kernel_in_hyp_mode() part of aic_init_cpu works#asahi-dev · 2026-01-23 13:48
yukayes#asahi-dev · 2026-01-23 13:47
yukaIt's still an AICv3, but we're running in the new "m1n1/Linux" mode where they lock down a lot of the Apple-specific implementation registers#asahi-dev · 2026-01-23 13:37
yukathe stacktrace already helps so much#asahi-dev · 2026-01-23 13:37
yukaOh, it's actually in aic_init_cpu#asahi-dev · 2026-01-23 13:36
yukanoopwafel: this is the full trace for the undefined instruction https://termbin.com/5wbr#asahi-dev · 2026-01-23 13:10
yukabecause it's a tar and not cpio#asahi-dev · 2026-01-23 13:10
yukaand then you re-pack it?#asahi-dev · 2026-01-23 13:09
yukausing the netboot one I get stuck at Mounting boot media...#asahi-dev · 2026-01-23 13:09
yukaintegralpilot which initramfs from alpine do you use exactly?#asahi-dev · 2026-01-23 13:03
yukanoopwafel, integralpilot: which platform are you both talking about right now?#asahi-dev · 2026-01-23 13:01
yukaright! alpine was designed to run from ram ;)#asahi-dev · 2026-01-23 12:54
yukaok, so just EFI_STUB=n? I wasn't sure which options are responsible for this#asahi-dev · 2026-01-23 12:53
yukayes, nixos#asahi-dev · 2026-01-23 12:53
yukabut that's a me-problem#asahi-dev · 2026-01-23 12:52
yukamatching the kernel modules shipped in the initrd on my distro of choice is also complicated by the distro's kernel config not producing an Image.gz#asahi-dev · 2026-01-23 12:51
yukajust not my priority