-
Notifications
You must be signed in to change notification settings - Fork 349
LLEXT: don't reload upon resume #10028
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
Changes from all commits
ee61ce1
f8f3af9
91783f3
c9810d8
2c36914
6a4e0f4
e5ebed2
1ebde97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ | |
| #include <sof/lib/mailbox.h> | ||
| #include <sof/lib/memory.h> | ||
| #include <sof/lib/pm_runtime.h> | ||
| #include <sof/llext_manager.h> | ||
| #include <sof/math/numbers.h> | ||
| #include <sof/tlv.h> | ||
| #include <sof/trace/trace.h> | ||
|
|
@@ -1485,6 +1486,17 @@ __cold static int ipc4_module_process_dx(struct ipc4_message_request *ipc4) | |
| return IPC4_BUSY; | ||
| } | ||
|
|
||
| #if !CONFIG_ADSP_IMR_CONTEXT_SAVE | ||
| ret = llext_manager_store_to_dram(); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How does this play with full CONTEXT_SAVE feature? If full SRAM is saved, then this is redundant, right?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. right, need to add that
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any update here ? |
||
| if (ret < 0) | ||
| ipc_cmd_err(&ipc_tr, "Error %d saving LLEXT context. Resume might fail.", | ||
| ret); | ||
|
|
||
| #if CONFIG_L3_HEAP | ||
| l3_heap_save(); | ||
| #endif | ||
| #endif | ||
|
|
||
| #if defined(CONFIG_PM) | ||
| ipc_get()->task_mask |= IPC_TASK_POWERDOWN; | ||
| #endif | ||
|
|
||
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.
why call it experimental? Perhaps LLEXT_SAVE_RESTORE makes better sense?
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.
@ranj063 we don't, Zephyr does. This option has recently been added to Zephyr to support our partial LLEXT restore, but the way how we added it there isn't perfectly clean. It's hardly usable by other LLEXT users, it's almost SOF-specific, therefore it's been decided to mark it "experimental" until a proper universal solution replaces it.