Skip to content

audio: pipeline-schedule: make pipeline_schedule_triggered() user safe#10993

Open
kv2019i wants to merge 1 commit into
thesofproject:mainfrom
kv2019i:202607-audio-triggered-for-user
Open

audio: pipeline-schedule: make pipeline_schedule_triggered() user safe#10993
kv2019i wants to merge 1 commit into
thesofproject:mainfrom
kv2019i:202607-audio-triggered-for-user

Conversation

@kv2019i

@kv2019i kv2019i commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Add support to run pipeline_schedule_triggered() in user-space. Use the user_ll_lock/unlock_sched() interface if building with CONFIG_SOF_USERSPACE_LL.

Add support to run pipeline_schedule_triggered() in user-space.
Use the user_ll_lock/unlock_sched() interface if building
with CONFIG_SOF_USERSPACE_LL.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Copilot AI review requested due to automatic review settings July 13, 2026 17:00
@kv2019i

kv2019i commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

For context, related to #10558

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates pipeline_schedule_triggered() to be callable from user-space builds by replacing the kernel-only IRQ critical section (irq_local_disable()/enable()) with the user-space LL scheduler lock (user_ll_lock_sched()/unlock_sched()) when CONFIG_SOF_USERSPACE_LL is enabled.

Changes:

  • Add CONFIG_SOF_USERSPACE_LL locking path using user_ll_lock_sched()/user_ll_unlock_sched() around pipeline trigger scheduling.
  • Keep the existing IRQ-disable critical section for kernel-space builds.

*/
int sched_core = ppl_data->start->ipc_config.core;

user_ll_lock_sched(sched_core);
Comment on lines +293 to +296
int sched_core = ppl_data->start->ipc_config.core;

user_ll_lock_sched(sched_core);
#else
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.

3 participants