-
Notifications
You must be signed in to change notification settings - Fork 361
topology2: Update memory requirements to what the our current FW expects #10903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,9 +28,7 @@ Object.Base.VendorToken { | |
| 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
28
to
32
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes mostly revert the changes made in 83390bd and there has not been any SOF release in between those. These extra attributes are not needed AFAICT so I do not think we should have them. |
||
|
|
||
| "2" { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -149,33 +149,12 @@ DefineAttribute."stack_bytes_requirement" { | |
| token_ref "comp.word" | ||
| } | ||
|
|
||
| ## Interim Heap size requirement in bytes for this component. | ||
| ## Used for resources that may change in size or be freed during the lifetime of the component. | ||
| ## In practice this means anything allocated outside module's init() call-back. | ||
| DefineAttribute."interim_heap_bytes_requirement" { | ||
| # Token set reference name and type | ||
| token_ref "comp.word" | ||
| } | ||
|
|
||
| ## Lifetime heap memory allocation requirement in bytes for this component. | ||
| ## This token's value indicates the amount of allocated memory needed at component init phase | ||
| ## and used over the lifetime of the component until the component is destroyed. | ||
| ## In practice this means anything allocated in init() call-back. | ||
| DefineAttribute."lifetime_heap_bytes_requirement" { | ||
| # Token set reference name and type | ||
| token_ref "comp.word" | ||
| } | ||
|
|
||
| ## Shared memory allocation requirement in bytes for this component. | ||
| ## This token's value indicates the amount of shared memory the component may need to allocated. | ||
| ## Shared memory may be shared to other components. | ||
| DefineAttribute."shared_bytes_requirement" { | ||
| ## Heap size requirement in bytes for this component. | ||
| DefineAttribute."heap_bytes_requirement" { | ||
| # Token set reference name and type | ||
| token_ref "comp.word" | ||
| } | ||
|
Comment on lines
+152
to
156
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The FW will decide the division between different memory types. All that is needed is the amount of memory required. There is no need to add any more information here. |
||
|
|
||
| # These default values are here until we have measured module specific numbers | ||
| stack_bytes_requirement 8192 | ||
| interim_heap_bytes_requirement 4096 | ||
| lifetime_heap_bytes_requirement 16384 | ||
| shared_bytes_requirement 4096 | ||
| heap_bytes_requirement 24576 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you are repeating yourself |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Topology parser evaluates expressions enclosed in $[] .