Uh oh!
There was an error while loading. Please reload this page.
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 <guennadi.liakhovetski@linux.intel.com>
pjdobrowolski
left a comment
There was a problem hiding this comment.
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.
lyakh
commented
Mar 12, 2024
@pjdobrowolski could you please read the patch once again. It is not allowing any new |
pjdobrowolski
commented
Mar 13, 2024
Ok, I see but why do you extends modules type? Are llext modules compatible with IADK? |
| 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.
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
lyakh
commented
Mar 14, 2024
@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. |
pjdobrowolski
commented
Mar 14, 2024
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. |
lgirdwood
commented
Apr 15, 2024
@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")