Skip to content

schedule: ll: handle completed task state in library scheduler - #11128

Open
singalsu wants to merge 1 commit into
thesofproject:mainfrom
singalsu:testbench_ll_schedule_fix
Open

schedule: ll: handle completed task state in library scheduler#11128
singalsu wants to merge 1 commit into
thesofproject:mainfrom
singalsu:testbench_ll_schedule_fix

Conversation

@singalsu

Copy link
Copy Markdown
Collaborator

Update the library LL scheduler in schedule_ll_run_tasks() to check the task_run() return state and remove tasks returning SOF_TASK_STATE_COMPLETED from the scheduler list.

Following commit 002e499 ("ipc4: pipeline: split trigger and copy processing"), IPC4 uses a one-shot trigger task that returns SOF_TASK_STATE_COMPLETED upon trigger completion, while the copy task waits for task_is_active(p->trigger_task) to clear before copying. Previously, the library LL scheduler ignored the return value of task_run() and reset the task state back to SOF_TASK_STATE_QUEUED, leaving trigger_task permanently active and causing testbench pipeline copy tasks to stall indefinitely.

Update the library LL scheduler in schedule_ll_run_tasks() to check
the task_run() return state and remove tasks returning
SOF_TASK_STATE_COMPLETED from the scheduler list.

Following commit 002e499 ("ipc4: pipeline: split trigger and
copy processing"), IPC4 uses a one-shot trigger task that returns
SOF_TASK_STATE_COMPLETED upon trigger completion, while the copy task
waits for task_is_active(p->trigger_task) to clear before copying.
Previously, the library LL scheduler ignored the return value of
task_run() and reset the task state back to SOF_TASK_STATE_QUEUED,
leaving trigger_task permanently active and causing testbench pipeline
copy tasks to stall indefinitely.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu
singalsu marked this pull request as ready for review August 25, 2026 15:51
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.

2 participants