-
Notifications
You must be signed in to change notification settings - Fork 321
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
modules: restore behaviour for non-LLEXT modules #8933
Conversation
An earlier commit inadvertantly potentially changed behaviour of non-llext modules by imposing too strict a condition for calling modules_new(). Restore the original behaviour for those modules. Fixes: 6b9b4c2 ("modules: don't re-load on each restart") Signed-off-by: Guennadi Liakhovetski <[email protected]>
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.
We cannot allow register module with NULL pointer in md->ops or anything else. Untile module_adapter is not obsolete, llext need second separate condition.
@pjdobrowolski could you please read the patch once again. It is not allowing any new |
Ok, I see but why do you extends modules type? Are llext modules compatible with IADK? |
@@ -136,7 +136,7 @@ static int modules_init(struct processing_module *mod) | |||
} | |||
comp_info(dev, "modules_init() start"); | |||
|
|||
if (!md->module_adapter && md->ops == &interface) { | |||
if (!md->llext || md->ops == &interface) { |
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.
The module_data
structure is unique for each module instance. You will not be able to tell whether this is the first loading of the module based on the value of any of its fields. I suggest following solution: #8939
@pjdobrowolski now sure what you mean by "extending the module type" - yes, LLEXT modules are different enough from other module types. No, they're in no way compatible with IADK. |
Ok, I think that to prevent future misunderstanding we should integrate @softwarecki refactor #8935 and after that you will have separe path of development only for llext modules. |
@lyakh @pjdobrowolski any update here ? I think some other PRs now applied, whats next ? |
An earlier commit inadvertantly potentially changed behaviour of non-llext modules by imposing too strict a condition for calling modules_new(). Restore the original behaviour for those modules.
Fixes: 6b9b4c2 ("modules: don't re-load on each restart")