Skip to content

[BUG][Needs Check] IPC worker thread can run on secondary cores #8165

Closed

Description

@lyakh

Describe the bug

SOF isn't an SMP system, its use of cores is hard-wired. Most management tasks are only supposed to run on the primary core, only pre-assigned audio processing tasks should run on secondary cores. One of such management tasks is the EDF scheduler work handler. To fix it to the primary core a special work queue is created, which is set to only run on the primary core, and the delayed work, implementing the scheduler, is submitted to that queue.

Whereas the IPC delayed work is run on the default work queue, which on Zephyr can run on any core.

Expected behavior

The IPC delayed work should only run on the primary core.

Impact

Running on a secondary core without proper code synchronisation can lead to data corruption.

Activity

  1. added
    bugSomething isn't working as expected
    P2Critical bugs or normal features
    on Sep 6, 2023
  2. lgirdwood commented on Sep 13, 2023

    @lgirdwood
    Member

    @marcinszkudlinski are you also aligned with this proposal ?

  3. added this to the v2.8 milestone on Sep 13, 2023
  4. kv2019i commented on Nov 20, 2023

    @kv2019i
    Collaborator

    Nobody assigned, less than a week to branch, moving to v2.9.

  5. modified the milestones: v2.8, v2.9 on Nov 20, 2023
  6. modified the milestones: v2.9, v2.10 on Mar 4, 2024
  7. kv2019i commented on Mar 4, 2024

    @kv2019i
    Collaborator

    Stable-v2.9 branched, this didn't make the cut, bumping to 2.10.

  8. modified the milestones: v2.10, v2.11 on May 28, 2024
  9. modified the milestones: v2.11, v2.12 on Sep 5, 2024
  10. kv2019i commented on Jan 3, 2025

    @kv2019i
    Collaborator

    @lyakh Can you check this and if still valid, ensure this is covered for for v2.13 ? Bumping now as v2.12 has been already branched.

  11. modified the milestones: v2.12, v2.13 on Jan 3, 2025
  12. added 5 commits that reference this issue on Jan 6, 2025
    c7b7c91
    c24c7e2
    0bf9779
    549927c
    9428f95
  13. added a commit that references this issue on Feb 5, 2025
    85f1dbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Critical bugs or normal featuresbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions