Skip to content

ipc: Safely aborting thread during SOF_IPC4_MOD_INIT_INSTANCE if module crashes - #11485

Draft
adityaganeshintel2k wants to merge 8 commits into
thesofproject:mainfrom
adityaganeshintel2k:ag-userspace-handler
Draft

adityaganeshintel2k wants to merge 8 commits into
thesofproject:mainfrom
adityaganeshintel2k:ag-userspace-handler

Conversation

@adityaganeshintel2k

Copy link
Copy Markdown

This adds capability of aborting a userspace thread if it crashes during SOF_IPC4_MOD_INIT_INSTANCE and reporting this back to host with a known error status instead of sending a panic notification to host for a dsp reboot

@sofci

sofci commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

reply test this please to run this test once

Signed-off-by: Ganesh, Aditya <[email protected]>
This enables aborting a userspace thread if an exception occurs
from userspace context on intel adsp ace platforms

Signed-off-by: Ganesh, Aditya <[email protected]>
This adds a syscall so that we can call k_thread_cpu_pin
from userspace

Signed-off-by: Ganesh, Aditya <[email protected]>
This adds capability of invoking a thread for module initialization
and is tied to the same core as the ipc_user thread invoking the
module initialization

Signed-off-by: Ganesh, Aditya <[email protected]>
This invokes a thread to complete the module initialization.
This is done so that if the module crashes during initialization
it can be safely reported back to host without crashing the adsp

Signed-off-by: Ganesh, Aditya <[email protected]>
This setups up the ipc user init thread required for
module initialization

Signed-off-by: Ganesh, Aditya <[email protected]>
…erified

This adds the capability of aborting a user thread if kernel oops is raised from
a syscall verifier

Signed-off-by: Ganesh, Aditya <[email protected]>
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.

2 participants