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

waves: add support for IPC4 compilation, including as LLEXT #9775

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Jan 14, 2025

With this waves can be built as a part of IPC4 configuration - either linked into the base image or as a LLEXT module.

lyakh added 2 commits January 14, 2025 13:29
Of course, 32 modules must be enough forever, until it isn't. With
waves we've hit the limit. Let's raise it to 48, because that
certainly will be enough forever.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
With this waves can be built as a part of IPC4 configuration - either
linked into the base image or as a LLEXT module.

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.

LGTM, just one open on max module count.

@@ -27,7 +27,7 @@
#define EXTENDED_MANIFEST_VERSION_MAJOR 0x0001
#define EXTENDED_MANIFEST_VERSION_MINOR 0x0000

#define FW_MAX_EXT_MODULE_NUM 32
#define FW_MAX_EXT_MODULE_NUM 48
Copy link
Member

Choose a reason for hiding this comment

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

What's the container size ? Lets just set this unlimited.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@lgirdwood it is used for a fixed-size array inside a structure. So the only alternative would be to count and dynamically allocate

Copy link
Member

Choose a reason for hiding this comment

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

ack, I think we need the dynamic alloc (with a sane max). Whats the array elem size ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@lgirdwood one element is 48 bytes large (if I counted correctly). Since this is rimage, running on a build machine with gigabytes of RAM, maybe this optimisation isn't very urgent and can be postponed to a later PR?

Copy link
Member

Choose a reason for hiding this comment

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

ack - that's fine - no impact to FW foot print. Since its host I would make it high in a followup PR to future proof rimage for v2.13

@lgirdwood lgirdwood merged commit b95fc72 into thesofproject:main Jan 15, 2025
45 of 51 checks passed
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.

3 participants