Skip to content

Commit 48df3eb

Browse files
author
Jyri Sarha
committed
topology2: Add lifetime and shaded -bytes_requirement widget attributes
Add lifetime_bytes_requirement and shared_bytes_requirement widget attributes. This token's value indicates the amount of heap memory needed at component initialization phase. Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 83129a3 commit 48df3eb

2 files changed

Lines changed: 19 additions & 3 deletions

File tree

tools/topology/topology2/include/common/tokens.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ Object.Base.VendorToken {
2828
scheduler_domain 418
2929
domain_id 419
3030
stack_bytes_requirement 420
31-
heap_bytes_requirement 421
31+
interim_heap_bytes_requirement 421
32+
lifetime_heap_bytes_requirement 422
33+
shared_bytes_requirement 423
3234
}
3335

3436
"2" {

tools/topology/topology2/include/components/widget-common.conf

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,22 @@ DefineAttribute."stack_bytes_requirement" {
149149
token_ref "comp.word"
150150
}
151151

152-
## Heap size requirement in bytes for this component. Zero indicates default heap size.
153-
DefineAttribute."heap_bytes_requirement" {
152+
## Interim Heap size requirement in bytes for this component.
153+
DefineAttribute."interim_heap_bytes_requirement" {
154+
# Token set reference name and type
155+
token_ref "comp.word"
156+
}
157+
158+
## Liftime heap memory alllocation requirement in bytes for this component.
159+
## This token's value indicates the amount of allocated memory needed at component init phase
160+
DefineAttribute."lifetime_heap_bytes_requirement" {
161+
# Token set reference name and type
162+
token_ref "comp.word"
163+
}
164+
165+
## Shared memory alllocation requirement in bytes for this component.
166+
## this token's value indicates the amount of shared memory the component may need to alocated
167+
DefineAttribute."shared_bytes_requirement" {
154168
# Token set reference name and type
155169
token_ref "comp.word"
156170
}

0 commit comments

Comments
 (0)