Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

idc: check if secondary core is down before sending IDC #8466

Merged
merged 1 commit into from
Nov 20, 2023

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.

@@ -119,6 +129,10 @@ int idc_send_msg(struct idc_msg *msg, uint32_t mode)
work->handler = idc_handler;
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 <[email protected]>
@marcinszkudlinski
Copy link
Contributor Author

just rebase to newest main

@lgirdwood lgirdwood merged commit 50c2576 into thesofproject:main Nov 20, 2023
43 of 44 checks passed
@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