Skip to content

Conversation

@marcinszkudlinski
Copy link
Contributor

If for any reason a secondary core is down, IDC message has no chance to be processed. This may lead to process hang in case of blocking calls and to undefined actions in case of non blocking.

This commit adds a check and error log message in case of target core is down.

work->sync = mode == IDC_BLOCKING;

if (!cpu_is_core_enabled(target_cpu)) {
tr_err(&zephyr_idc_tr, "Core %u is down, cannot sent IDC message", target_cpu);
Copy link
Collaborator

Choose a reason for hiding this comment

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

grammar: sent->send

@kv2019i
Copy link
Collaborator

kv2019i commented Nov 9, 2023

Mandatory CI check is failing, otherwise this is good to go.

@lgirdwood
Copy link
Member

@marcinszkudlinski can you check CI, this is blocking merge today. Thanks !

@lgirdwood lgirdwood added this to the v2.8 milestone Nov 17, 2023
If for any reason a secondary core is down, IDC message has no
chance to be processed. This may lead to process hang in case
of blocking calls and to undefined actions in case of non
blocking.

This commit adds a check and error log message in case of
target core is down.

Signed-off-by: Marcin Szkudlinski <marcin.szkudlinski@intel.com>
@marcinszkudlinski
Copy link
Contributor Author

just rebase to newest main

@lgirdwood lgirdwood merged commit 50c2576 into thesofproject:main Nov 20, 2023
@marcinszkudlinski marcinszkudlinski deleted the IDC-check branch November 21, 2023 07:15
Sign up for free to 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