Skip to content
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

[DRAFT] LLEXT DRAM data #9721

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Dec 11, 2024

This is an illustration of how data can be assigned to be kept in DRAM. This specific change should be done by adjusting scripts, creating those headers, not by patching headers directly. Besides additional code is needed to copy selected coefficient sets to SRAM for fast access during operation

With this data can be assigned to a separate read-only section, which
then will be kept in DRAM without copying it to SRAM on module
instantiation.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
This adds a __cold_data macro, that can be used to designate read-
only data to be kept in DRAM.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
src coefficients take a lot of space, keep them in DRAM to only copy
used sets in SRAM.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks simple.

@@ -76,6 +76,7 @@ def main():
executable = []
writable = []
readonly = []
readonly_dram = []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this will all be dumped when we build the target i.e. xkB hybrid RODATA in DRAM ?

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