[PATCH] ARM: OMAP2+: pm34xx: add NEON wakeup dependency before clockdomain idle

Andreas Kemnade andreas at kemnade.info
Thu Nov 19 11:04:50 PST 2026


On Fri, 13 Nov 2026 10:11:05 -0800
"Kevin Hilman (TI)" <khilman at baylibre.com> wrote:

> On OMAP3630 (BeagleBoard-xM), about one boot in three dies early when
> a context switch touches the VFP, which traps as undefined.
> 
> The VFP is unreachable because NEON is powered off while the MPU runs.
> omap3_pm_init() sets NEON's next state to OFF/RET and lets all
> clockdomains idle before it adds the NEON -> MPU wakeup dependency, so
> NEON can power down immediately and stay off until the MPU next idles.
> This was visible in pm_debug, which showed neon_pwrdm OFF:1 while
> mpu_pwrdm OFF:0.
> 

I haved played around during debugging with this:

@ -687,7 +695,17 @@ static int vfp_kmode_exception(struct pt_regs *regs, unsigned int instr)
         * rebuilding and running with CONFIG_DEBUG_ATOMIC_SLEEP enabled should
         * be helpful in localizing the problem.
         */
+       u32 access = get_copro_access();
+
+
+       WARN_ON(1);
+       if ((CPACC_FULL(10) | CPACC_FULL(11)) != (access & (CPACC_FULL(10) | CPACC_FULL(11)))) {
+               pr_err("no access to copro\n");
+               WARN_ON(1);
+               vfp_enable(NULL);
+       }
        if (fmrx(FPEXC) & FPEXC_EN)

That error comes. but the endless exception  recursion of course still comes.
I am wondering if I should submit something like that with a BUG() instead
to have some more sane error message.
So the visibile symptom is that these CPI15 bits cannot be set.

Regards,
Andreas



More information about the linux-arm-kernel mailing list