#asahi-dev · 2026-06-15 09:09
yukaI mean it probably depends on what EL2 does?#asahi-dev · 2026-06-15 09:09
yukaFor v2, I should add a check for EL2? Anything else?#asahi-dev · 2026-06-15 08:50
yukaCan I fix this somehow without getting two threads?#asahi-dev · 2026-06-15 08:49
yukaBut you should have received a copy too?#asahi-dev · 2026-06-15 08:48
yukaI sent it to the auto detected lists (arm-kernel) yesterday but forgot to add the asahi list#asahi-dev · 2026-06-14 20:04
yukaCan we run m1n1 in hvf? :D#asahi-dev · 2026-06-14 19:03
yukaI don't know for sure if some M4 / Pro / Max laptop doesn't have the same#asahi-dev · 2026-06-14 19:03
yukaI have not seen this on any other device, so I would name it after t8140?#asahi-dev · 2026-06-14 19:02
yukabecause then the old driver which does not support the property yet will not attempt to operate on this device tree node?#asahi-dev · 2026-06-14 19:01
yukacrash#asahi-dev · 2026-06-14 19:01
yukaor is adding an optional property possible in the existing compatible?#asahi-dev · 2026-06-14 19:00
yukaAnother question regarding upstream stuff (device tree bindings): I discovered some time ago that on A18 Pro we need to take into account the no-restore-gpio-pins adt property and tell the regmap to not read and write the regs of the gpios listed there. So essentially we would need a new apple,t????-pinctrl compatible to be able to express this, correct?#asahi-dev · 2026-06-14 18:21
yukabelow the --#asahi-dev · 2026-06-14 18:21
yukaI wanted at least the comment about the defines location to go into the comment field#asahi-dev · 2026-06-14 18:19
yukaWell b4 and then send the eml files using git send-email because I already configured that#asahi-dev · 2026-06-14 18:19
yukaYep#asahi-dev · 2026-06-14 17:57
yukaregardless of cpuidle#asahi-dev · 2026-06-14 17:57
yukawfit is used in delay#asahi-dev · 2026-06-14 17:46
yukaThen we could just enable it for apple midr unconditionally? As I understand, there's no plan to change/fix this behavior anyways, and if they do change it we can always add an upper bound later.#asahi-dev · 2026-06-14 17:40
yukaI mean, how far back did they use the Apple MIDR, and when did they introduce the deep wfi...#asahi-dev · 2026-06-14 17:39
yukaDo we know if there are _any_ devices with Apple MIDR which do _not_ have this behavior?#asahi-dev · 2026-06-14 17:31
yukaAh, finally, my irc is also working again#asahi-dev · 2026-06-14 17:30
yukanickchan: do you have a link to the patch adding the other MIDRs?#asahi-dev · 2026-06-14 16:38
yukanice!#asahi-dev · 2026-06-14 16:11
yukanoted, thanks#asahi-dev · 2026-06-14 16:04
yukaI can count the number of patches I've sent to kernel mailing lists on one hand. Can I send my draft to some of you by mail to get a review before I send it to the list?#asahi-dev · 2026-06-14 15:57
yukathere doesn't seem to be a general apple sysregs header yet#asahi-dev · 2026-06-14 15:55
yukaI changed it to a nop already locally#asahi-dev · 2026-06-14 15:55
yukait's wfit / wfet#asahi-dev · 2026-06-14 15:55
yukayes#asahi-dev · 2026-06-14 15:55
yukaAh fair I looked at past commits which seemed to add the MIDRs at the same time as adding the errata, but maybe this one is a bit more controversial/complicated than those#asahi-dev · 2026-06-14 15:54
yukafor the wfi() macro with the ALTERNATIVE added#asahi-dev · 2026-06-14 15:54
yukaand I get "WARNING: Single statement macros should not use a do {} while (0) loop"#asahi-dev · 2026-06-14 15:54
yukaThen I put it in a do {} while (0) loop#asahi-dev · 2026-06-14 15:53
yuka"ERROR: Macros with complex values should be enclosed in parentheses"#asahi-dev · 2026-06-14 15:36
yukacan't make checkpatch.pl happy :(#asahi-dev · 2026-06-14 13:18
yukawhere does the #define SYS_IMP_APL_CYC_OVRD ... belong in the kernel?#asahi-dev · 2026-06-14 13:01
yukait's quite annoying indeed when trying to scan mmio ranges#asahi-dev · 2026-06-14 12:30
yukabotched chickens are not at all ruled out, but we need some more detailed information before we can file a bug report#asahi-dev · 2026-06-14 12:29
yukaMy plan (not today) is to try to take one of the commonly occurring crash sites, and see which allocation should be accessed, then add logging to where it's allocated, and check if the page is rw at allocation and at access time.#asahi-dev · 2026-06-14 12:26
yukanickchan: the pattern is: something tries to write somewhere (can be tcp_init, some spinlock, allocator, whatever). the addresses it's trying to access (write to) look like a valid kernel address, but they are seemingly not mapped rw (they lost the 'w' bit? or they are the wrong kernel addresses in the first place, ...).#asahi-dev · 2026-06-14 12:21
yukaWe also got flokli's M4 Pro to boot with smp with this patch and a lot of luck. It still crashes with seemingly random stacktraces most of the time though.#asahi-dev · 2026-06-14 12:20
yukanot out of tree but not upstream, you know what I mean#asahi-dev · 2026-06-14 12:20
yukasimilar to (out-of-tree) cpuidle-apple minus setting CYC_OVRD_WFI_MODE#asahi-dev · 2026-06-14 12:19
yukaLike the plan is to re-introduce a way to properly sleep later in the boot process. This erratum is mostly in order to stop it from crashing earlier.#asahi-dev · 2026-06-14 11:55
yukaWFI experiment on my M1 does exactly the same: With CYC_OVRD_WFI_MODE(0) the boot core (core 0) retains register state, the others don't#asahi-dev · 2026-06-14 11:10
yukaI will run the wfi experiment once more on my M1#asahi-dev · 2026-06-14 11:04
yukahttps://cyberchaos.dev/yuka/linux/-/commit/5f9907223013a7fad6ae089bf0212295c041e2fe#asahi-dev · 2026-06-14 11:04
yukaThx#asahi-dev · 2026-06-14 10:35
yukathx