Skip to content

zephyr: cpu: init cpu if context save is not support - #8027

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
RanderWang:ipc4_cavs_multicore
Aug 16, 2023
Merged

zephyr: cpu: init cpu if context save is not support#8027
lgirdwood merged 1 commit into
thesofproject:mainfrom
RanderWang:ipc4_cavs_multicore

Conversation

@RanderWang

Copy link
Copy Markdown
Collaborator

Fix multicore test issue on cavs platforms which don't support context save now, so need to init cpu when the core boot up.

@kv2019ikv2019i left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @RanderWang !

Comment threadzephyr/lib/cpu.c Outdated
*/
#ifdef CONFIG_ADSP_IMR_CONTEXT_SAVE
if (pm_state_next_get(id)->state == PM_STATE_ACTIVE)
#endif

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: would

if (IS_ENABLED(CONFIG_ADSP_IMR_CONTEXT_SAVE) && pm_state_next_get(id)->state == PM_STATE_ACTIVE)

also work?

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NP. change it.

Fix multicore test issue on cavs platforms which don't support context
save now, so need to init cpu when the core boot up.
Signed-off-by: Rander Wang <rander.wang@intel.com>
@aiChaoSONG

Copy link
Copy Markdown
Collaborator

SOFCI TEST

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@RanderWang@aiChaoSONG@lyakh@lgirdwood@btian1@kv2019i@tmleman