sof icon indicating copy to clipboard operation
sof copied to clipboard

Notifiers shouldn't run in the caller's context when triggered on the same core

Open lyakh opened this issue 4 months ago • 1 comments

Describe the bug notifier_event() is supposed to send notifications to all registered listeners. When the listener is on a different core, its callback is called in the IDC thread context, but if it's on the same core, it runs directly in the caller's context, which is inconsistent and can block high priority contexts for prolonged periods of time.

Expected behavior When running on the same core, notification callbacks should run in an asynchronous (potentially low priority) context.

Impact https://github.com/thesofproject/sof/pull/10177#discussion_r2332503956

lyakh avatar Sep 09 '25 10:09 lyakh

I think we can fix this over time with RTIO do deal with cross core and memory domain notify producers and consumers.

lgirdwood avatar Sep 15 '25 11:09 lgirdwood