#
#asahi-dev · 2026-06-14 17:25
nickchanenough that the pmu patches that had little to do with that is affected
#asahi-dev · 2026-06-14 17:25
nickchanand let's say people really do not like these kinds of behavior
#asahi-dev · 2026-06-14 17:24
nickchanas well as aarch32 can only be executed in performance core, attempting to do so on e-core or switching to p-core while executing results in illegal instruction
#asahi-dev · 2026-06-14 17:24
nickchanon A10/A10X/T2 the MPIDR_EL1 can appear to change while switching pstate because it's switching physical cores
#asahi-dev · 2026-06-14 17:23
nickchanI suppose I could summarize:
#asahi-dev · 2026-06-14 17:22
nickchanback to "where..." it's a combination of things: https://lore.kernel.org/asahi/aHUeUMmn_19EayL1@willie-the-truck/
#asahi-dev · 2026-06-14 17:21
nickchanwell then that's fine it's not like having unused midr will do much
#asahi-dev · 2026-06-14 17:21
sveni half-expect only the workaround for m4+ will be accepted because really m1n1 is the only bootloader and we always set the correct bits in cyc_ovrd
#asahi-dev · 2026-06-14 17:20
svenwhich brings me back to "pre-m1 can always be a follow up patch"
#asahi-dev · 2026-06-14 17:18
nickchanwfi force up
#asahi-dev · 2026-06-14 17:18
nickchansven: uses same workaround as m1
#asahi-dev · 2026-06-14 17:18
svenuh... where?
#asahi-dev · 2026-06-14 17:18
nickchanbased on previous interactions the only way to get cpu midr into the kernel is to lump them together with M-series...
#asahi-dev · 2026-06-14 17:18
svendoesn't that already somehow work?
#asahi-dev · 2026-06-14 17:18
nickchansven: nah not really
#asahi-dev · 2026-06-14 17:18
svenand why do you need pre-m1 support?
#asahi-dev · 2026-06-14 17:18
svenmeh, pre-m1 can always come later
#asahi-dev · 2026-06-14 17:15
nickchan(and i do not have th patches downloaded now)
#asahi-dev · 2026-06-14 17:14
nickchannamely pre-M1 should also be on the list
#asahi-dev · 2026-06-14 17:13
nickchanI want to suggest some changes, but it looks like that git server isn't reachable right now :/
#asahi-dev · 2026-06-14 16:38
yukanice!
#asahi-dev · 2026-06-14 16:38
jannauenabling debugusb works now from within m1n1 on devices with i2c usb-c port controller
#asahi-dev · 2026-06-14 16:37
jannaui2c fixed by switching from checking STATUS_XFER_BUSY to STATUS_XFER_ENDED
#asahi-dev · 2026-06-14 16:14
svenespecially useful if you need a v2, v3, etc.
#asahi-dev · 2026-06-14 16:14
sven^-- that
#asahi-dev · 2026-06-14 16:14
chaos_princessalso, recommendation - use b4
#asahi-dev · 2026-06-14 16:13
svenwhatever you used to send the email works otherwise, it looks good
#asahi-dev · 2026-06-14 16:13
chaos_princessi also think other errata has kconfig symbols so people can compile it out
#asahi-dev · 2026-06-14 16:11
svenyou'll get complaints about the #define location but that's fine since we have no idea where to put them
#asahi-dev · 2026-06-14 16:11
yukanoted, thanks
#asahi-dev · 2026-06-14 16:11
sveni.e. #define CYC_OVRD_WFI_MODE_MASK GENMASK(...) and then FIELD_GET(read_sysreg_s(...), CYC_OVRD_WFI_MODE_MASK) != 2
#asahi-dev · 2026-06-14 16:10
sven*and probably use FIELD_GET for the CYC_OVRD check
#asahi-dev · 2026-06-14 16:10
svenyeah, i'd add a cover letter. and probablyt u
#asahi-dev · 2026-06-14 16:10
chaos_princesscover letter?
#asahi-dev · 2026-06-14 16:05
svenfeel free to send them to sven@kernel.org
#asahi-dev · 2026-06-14 16:04
svensure
#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 16:00
svenalso, fwiw, checkpatch is generally just a recommendation and does have false positives sometimes (especially for WARNINGS)
#asahi-dev · 2026-06-14 15:58
jannaunot sure there should be one
#asahi-dev · 2026-06-14 15:58
sveni'd also add "This workaround no longer exists since M4" to the commit message just to make it clear we're not doing this for fun
#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:57
jannauapple's performance counters has sys_impl_apl as well but those are local as well
#asahi-dev · 2026-06-14 15:57
svenah, pmu has some SYS_IMP_APL as well but there's also in a header file for it
#asahi-dev · 2026-06-14 15:56
jannaum1n1's i2c / smbus seems to busted. code to enter debugusb works when running under hv with i2c tracing
#asahi-dev · 2026-06-14 15:56
sveni guess the place can also just be yak shaved on the ML then :D
#asahi-dev · 2026-06-14 15:56
svenhm... i think the only SYS_IMP_APL regs we need in the kernel are for aic and those are just defined directly at the driver
#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
sven#define wfit(val) asm volatile(ALTERNATIVE("msr s0_3_c1_c0_1, %0", "msr s0_3_c1_c0_0, %0", ARM64_WORKAROUND_WFI_STATE) \ <-- what's that msr s0_3... thing? shouldn't that also be nop?

plus ›