Commit cf8944e
ipc3: Fix spinlock violation in PM context save on fuzzer
Fix spinlock validation assertion failure during fuzzing on native_sim
builds with IPC3.
Recent Zephyr commit added spinlock validation that detects context
switching while holding spinlocks. This revealed that
`ipc_pm_context_save` calls `arch_irq_lock` before the EDF work queue
yields, causing:
ASSERTION FAIL [arch_irq_unlocked(key) || ...] Context switching while
holding lock!
The hardware PM operations (arch_irq_lock, platform_timer_stop, etc.)
are not needed for POSIX simulation environments. Extend the existing
guard to exclude these operations when CONFIG_ZEPHYR_POSIX is defined.
This preserves PM functionality while avoiding spinlock violations in
native simulation builds.
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent 6b875ba commit cf8944e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
675 | | - | |
| 675 | + | |
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
| |||
0 commit comments