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

LLEXT: Minor improvements #9703

Merged
merged 7 commits into from
Dec 3, 2024
Merged

LLEXT: Minor improvements #9703

merged 7 commits into from
Dec 3, 2024

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Dec 3, 2024

Several minor fixes and improvements from #9688

lyakh added 7 commits December 3, 2024 10:30
Use section offset from the section header in
llext_manager_load_data_from_storage() to simplify calculations and
eliminate a function parameter.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
file_offset in struct lib_manager_segment_desc is unused, remove it.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
We don't need to store .bss address and size until the module is
freed since .bss is allocated together with .data and we only need
its size when initialising it, not when freeing module memory. Remove
it to save memory.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
free(NULL) is allowed, remove redundant checks.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Remove unused arguments from llext_manager_load_module(),
llext_manager_unload_module() and llext_manager_link().

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Zephyr logging prints function names, no need to include them
explicitly.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
llext_manager_allocate_module() should return 0 when failing, not an
error code.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
@lyakh
Copy link
Collaborator Author

lyakh commented Dec 3, 2024

https://sof-ci.01.org/sofpr/PR9703/build9630/devicetest/index.html unfortunately only tested SDW, we need HDA tested, restart SOF CI

@lyakh
Copy link
Collaborator Author

lyakh commented Dec 3, 2024

SOFCI TEST

@lyakh
Copy link
Collaborator Author

lyakh commented Dec 3, 2024

A few failures on LNL, but supposedly all known https://sof-ci.01.org/sofpr/PR9703/build9638/devicetest/index.html

Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

Good fixes and easy to follow commit messages!

@kv2019i
Copy link
Collaborator

kv2019i commented Dec 3, 2024

sof-docs fail and Intel LNL fails all known and tracked in https://github.com/thesofproject/sof/issues?q=is%3Aissue+is%3Aopen+label%3A%22Known+PR+Failures%22+

@kv2019i kv2019i merged commit 31ab84a into thesofproject:main Dec 3, 2024
46 of 49 checks passed
@lyakh lyakh deleted the minor branch December 4, 2024 06:46
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