Skip to content

Commit

Permalink
topology2: pipeline: add constraints on pipeline.priority attribute
Browse files Browse the repository at this point in the history
Add constraints on valid pipeline priority values and document
the semantics so that 0 is considered the highest priority and such
pipeline should be run first.

The range matches definitions in include/ipc4/pipeline.h and
SOF_IPC4_MAX_PIPELINE_PRIORITY.

Signed-off-by: Kai Vehmanen <[email protected]>
  • Loading branch information
kv2019i committed Apr 5, 2024
1 parent 929b194 commit 07b762e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/topology/topology2/include/components/pipeline.conf
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ Class.Widget."pipeline" {
}
}

# pipeline priority
# pipeline priority (0 = highest priority, 7 = lowest)
DefineAttribute."priority" {
# Token reference and type
token_ref "scheduler.word"
constraints {
min 0
max 7
}
}

# core that the pipeline should be scheduled on
Expand Down

0 comments on commit 07b762e

Please sign in to comment.