#
#asahi-dev · 2026-04-14 14:21
yukabut the more I look at it, the more plausible it becomes that wfi always loses register state on M4
#asahi-dev · 2026-04-14 14:21
yukabasically
#asahi-dev · 2026-04-14 14:20
chaos_princessso... remove every single wfi?
#asahi-dev · 2026-04-14 14:20
yukawith WFE it just gets stuck. With WFI simply commented out it gets a bit further before it crashes (possibly because some other code also does WFI)
#asahi-dev · 2026-04-14 14:14
chaos_princessif it is truly loaded too late, find the normal cpuidle driver and replace it's WFI with a WFE, or a loop
#asahi-dev · 2026-04-14 14:12
yukaor rather registered, since it's a builtin
#asahi-dev · 2026-04-14 14:12
yukait is probably loaded too late
#asahi-dev · 2026-04-14 14:07
yukaSadly it seems just loading cpuidle-apple with the CYC_OVRD accesses removed is not sufficient
#asahi-dev · 2026-04-14 14:06
yukaIf I'm not completely crazy, x20 is one of the registers saved and restored for deep sleep by the cpuidle-apple driver. And the null pointer dereference I'm getting is exactly dereferencing x20
#asahi-dev · 2026-04-14 13:14
yukaHowever I'm not sure if this explanation is coherent with it only happening on secondary cores
#asahi-dev · 2026-04-14 13:14
yukaAs in maybe after waking up from idle some of the registers have lost their value and now contain null values
#asahi-dev · 2026-04-14 13:14
yukaI had a wild theory that the random Null pointer dereferences in the idle loop on M4 secondary cores could be caused by a deeper sleep state being now the (nonconfigurable) default.
#asahi-dev · 2026-04-14 12:01
tryhard[m]thx
#asahi-dev · 2026-04-14 12:01
tryhard[m]yeah it passed
#asahi-dev · 2026-04-14 11:59
tryhard[m]yeah i'm getting some unused varaibles warnings so that's good
#asahi-dev · 2026-04-14 11:58
chaos_princessand "wrong config name" is what is causing rustc to skip building everything inside that module
#asahi-dev · 2026-04-14 11:58
chaos_princessdrop it entirely, it is a wrong way to do what you are trying to do
#asahi-dev · 2026-04-14 11:58
tryhard[m]its actually the wrong config name i forgot to change it
#asahi-dev · 2026-04-14 11:56
chaos_princessi suspect line 10 is the culprit
#asahi-dev · 2026-04-14 11:56
tryhard[m]ok i'm building
#asahi-dev · 2026-04-14 11:55
chaos_princesskernel crate should be doing no_std for you
#asahi-dev · 2026-04-14 11:55
chaos_princessyou are fighting a symptom, not a cause
#asahi-dev · 2026-04-14 11:55
tryhard[m]just until i figure it out
#asahi-dev · 2026-04-14 11:55
tryhard[m]i kept line 8 bcz it wont compile
#asahi-dev · 2026-04-14 11:54
chaos_princessdrop lines 8 and 10
#asahi-dev · 2026-04-14 11:54
tryhard[m]obj-$(CONFIG_APPLE_PMP_V1) += pmpv1.o
#asahi-dev · 2026-04-14 11:54
tryhard[m]obj-$(CONFIG_APPLE_PMP) += pmp.o
#asahi-dev · 2026-04-14 11:54
tryhard[m]its not ready yet obviously
#asahi-dev · 2026-04-14 11:54
tryhard[m]https://pastebin.com/qcwdEH7P
#asahi-dev · 2026-04-14 11:48
jannaupasting the Makefile changes won't hurt but there is little that could go wrong
#asahi-dev · 2026-04-14 11:47
jannauno, the\ whole source file
#asahi-dev · 2026-04-14 11:46
tryhard[m]the makefile?
#asahi-dev · 2026-04-14 11:45
chaos_princesssomething is going very wrong there
#asahi-dev · 2026-04-14 11:45
chaos_princesscan you post the entire file
#asahi-dev · 2026-04-14 11:42
tryhard[m]actually the result .o is very small
#asahi-dev · 2026-04-14 11:42
tryhard[m]jannau: nothing
#asahi-dev · 2026-04-14 11:33
jannau `strings drivers/soc/apple/pmpv1.o | grep license=`
#asahi-dev · 2026-04-14 11:30
tryhard[m]sent a code block: https://matrix.org/oftc/media/v1/media/download/AWg2DA7DO9fV5S_phwARXe0D45PGUD4O2NbLMjy6bF7euVfAe8a_psA0M3r-L1VtuYeOfCXpwLm9K7rsETuPAsdCed09r3EAAG1hdHJpeC5vcmcvZmxEV2VMY2ZpWUJwT0pnYmhHcVVFYlBK
#asahi-dev · 2026-04-14 11:30
tryhard[m]JamesCalligeros[m]: yes
#asahi-dev · 2026-04-14 11:28
JamesCalligeros[m]Did you specify a licence in your driver
#asahi-dev · 2026-04-14 11:27
tryhard[m]ERROR: modpost: missing MODULE_LICENSE() in drivers/soc/apple/pmpv1.o
#asahi-dev · 2026-04-14 11:27
tryhard[m]this thing appears again. i've no idea what's wrong.
#asahi-dev · 2026-04-14 11:27
tryhard[m] MODPOST Module.symvers
#asahi-dev · 2026-04-13 23:10
wilfredorok, I'm done for today
#asahi-dev · 2026-04-13 23:09
wilfredorm1n1/src/smp.c - deep_wfi() loop with SYS_IMP_APL_IPI_SR_EL1 handling, and aic.c MASK_SET/MASK_CLR interrupt configuration. The register at 0x292004018 controls interrupt masking
#asahi-dev · 2026-04-13 23:05
chaos_princesssuuuuuure.
#asahi-dev · 2026-04-13 23:04
wilfredorI used research tools for investigation and logical deduction, but the analysis is mine, saves a lot of time on tests
#asahi-dev · 2026-04-13 23:01
nicolas17I mean, llms aside, they keep ignoring your questions and monologuing...
#asahi-dev · 2026-04-13 23:01
chaos_princessso, i wanna hear where you are getting this info from
#asahi-dev · 2026-04-13 23:01
chaos_princessi see that you keep saying words that form valid syntax, but do not make actual sense with how this hardware works

plus ›