topology2: Update memory requirements to what the our current FW expects#10903
Open
jsarha wants to merge 3 commits into
Open
topology2: Update memory requirements to what the our current FW expects#10903jsarha wants to merge 3 commits into
jsarha wants to merge 3 commits into
Conversation
added 3 commits
June 12, 2026 17:34
The widget specific stack requirement works in such a way that all components in a pipeline have their stack requirements, and the pipeline stack size will be the highest of those values. I am not sure if this is actually the best method. I am not sure what factors affect the required stack size for a pipeline, but for now this will have to do. So 4k is not enough for all pipelines, and these generic numbers are here to guarantee that everything works until we have fine tuned values for all the modules. So increase the number to 8k to guarantee functionality. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
…butes Remove tokens lifetime_heap_bytes_requirement and shared_bytes_requirement and turn interim_bytes_requirement back into heap_bytes_requirement. These new types are not after all needed. The vregions code can handle the division between lifetime linear allocs and traditional interim heap autonomously. And shared memory does not need to be separately configured, vregion_alloc_coherent_align() can allocate shared memory from the same heap. Fixes: 83390bd ("topology2: Add lifetime and shared -bytes_requirement widget attributes") Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Fine tune SRC DP memory requirements to values that should satisfy all use-cases, without using too much memory. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates topology2 memory requirement tokens/config to match current SOF firmware expectations ahead of the next SOF release (per #10842).
Changes:
- Replaces interim/lifetime/shared heap requirement attributes with a single
heap_bytes_requirement. - Updates vendor token mappings to expose only
heap_bytes_requirement. - Adjusts SRC domain memory values in
cavs-nocodec.conf(stack/heap/domain_id).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| tools/topology/topology2/include/components/widget-common.conf | Consolidates heap requirement attributes and updates default heap requirement value. |
| tools/topology/topology2/include/common/tokens.conf | Updates vendor token list to use heap_bytes_requirement instead of 3 separate heap tokens. |
| tools/topology/topology2/cavs-nocodec.conf | Updates DP SRC domain memory requirements (stack/heap) and domain id. |
Comment on lines
28
to
32
| scheduler_domain 418 | ||
| domain_id 419 | ||
| stack_bytes_requirement 420 | ||
| interim_heap_bytes_requirement 421 | ||
| lifetime_heap_bytes_requirement 422 | ||
| shared_bytes_requirement 423 | ||
| heap_bytes_requirement 421 | ||
| } |
Comment on lines
+701
to
+703
| domain_id 0 | ||
| stack_bytes_requirement 2048 | ||
| heap_bytes_requirement "$[(24 * 1024)]" |
Comment on lines
+152
to
156
| ## Heap size requirement in bytes for this component. | ||
| DefineAttribute."heap_bytes_requirement" { | ||
| # Token set reference name and type | ||
| token_ref "comp.word" | ||
| } |
| interim_heap_bytes_requirement 4096 | ||
| lifetime_heap_bytes_requirement 16384 | ||
| shared_bytes_requirement 4096 No newline at end of file | ||
| heap_bytes_requirement 24576 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These updates should go in before we make a SOF release since, #10842 is now in.