Skip to content

assert hit on PM_IDLE exit in subsys/pm/pm.c:133 #69807

@kv2019i

Description

@kv2019i

Describe the bug
Starting with commit b9d4b9d ("pm: Remove CURRENT_CPU macro"), SOF public test have started failing with

ASSERTION FAIL [!z_smp_cpu_mobile()] @ ZEPHYR_BASE/subsys/pm/pm.c:133
[ 220.790855] os: print_fatal_exception: ** FATAL EXCEPTION

... the system is running active use-case on core0 and the assert happens when SOF releases the IDLE state lock with
"pm_policy_state_lock_put(PM_STATE_RUNTIME_IDLE, PM_ALL_SUBSTATES);" and allow Zephyr to enter RUNTIME_IDLE on core0.

To Reproduce
Steps to reproduce the behavior:

  1. build SOF with Zephyr for Intel MTL target
  2. run sof-test case: TPLG=/lib/firmware/intel/development/sof-mtl-nocodec.tplg MODEL=MTLP_RVP_NOCODEC SOF_TEST_INTERVAL=5 ~/sof-test/test-case/check-playback.sh -d 10 -l 1 -r 1

Expected behavior
Test passes.

Impact
Loss of audio on end-user system.

Logs and console output
https://sof-ci.01.org/sofpr/PR8901/build3107/devicetest/index.html?model=MTLP_RVP_NOCODEC&testcase=check-playback-10sec
See the "mtrace" tab to see Zephyr log.

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: XCC / cadence
  • commit: v3.6.0 tag (also tested with v3.6.0 plus 672c21d1db68678b171729caf746d9ddf1427548 )

Additional context
With the identified Zephyr commit revert, the same test passes reliably with no other failures seen in the test.

cc:

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions