You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b5f1a83
Browse filesBrowse the repository at this point in the historyBrowse files
userspace: doc: document the scheduler_dp_kick system call
Add scheduler_dp_kick to the syscall map and the LL-only callers, and
describe where the DP scheduling calculation runs with user-space DP
and LL.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@@ -139,9 +139,15 @@ from user-writable data such as `ipc_user->thread[]`.
139
139
|-----------------|----------|
140
140
| Any user thread, including DP module threads |`cpu_get_id`, all module management syscalls (`mod_*`), `ipc_msg_send`, `ipc_msg_list_remove`, `send_resource_notif`|
141
141
| IPC user thread only |`ipc_compound_pre_start`, `ipc_compound_post_start`, `ipc_wait_for_compound_msg`, `lib_manager_free_module`|
142
-
| LL user thread only |`scheduler_dp_ll_tick`|
142
+
| LL user thread only |`scheduler_dp_ll_tick`, `scheduler_dp_kick`|
143
143
| LL or IPC user thread | all other SOF syscalls |
144
144
145
+
With `CONFIG_SOF_USERSPACE_APPLICATION`, the DP task list and task memory are writable by DP
146
+
threads, so the kernel does not walk them. The DP readiness and deadline calculation runs in
147
+
the LL user thread (`scheduler_dp_ll_post_tick()`), which passes its results to
148
+
`scheduler_dp_kick()`; the kernel takes the DP thread and event objects from its own task
149
+
records. `scheduler_dp_ll_tick` is not built when `CONFIG_SOF_USERSPACE_LL` is also set.
150
+
145
151
DP modules only get the syscalls needed to implement the module interface. That includes
146
152
sending notifications: modules queue messages from `mod_ipc_msg_init()` with
147
153
`ipc_msg_send()` and free them with `mod_ipc_msg_free()`, and `dp_task_run()` reports
Copy file name to clipboardExpand all lines: src/schedule/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ The DP scheduler (`zephyr_dp_schedule.c`) manages asynchronous, compute-heavy ta
110
110
### Architecture
111
111
112
112
-**Separate Threads**: Unlike LL which multiplexes tasks inside a single thread, **each DP task is assigned its own Zephyr thread**.
113
-
-**Wakeup Mechanism**: DP scheduling is evaluated at the end of each LL tick (`scheduler_dp_recalculate()`).
113
+
-**Wakeup Mechanism**: DP scheduling is evaluated at the end of each LL tick (`scheduler_dp_recalculate()`). With user-space LL and DP, this runs in the LL user thread and the kernel applies the results with `scheduler_dp_kick()`.
114
114
-**Readiness**: It checks if a component has sufficient data across its sinks and sources. If so, it transitions to `RUNNING` and signals the individual DP thread via a Zephyr Event object.
115
115
-**Deadlines**: Once ready, the DP thread computes its deadline absolute timestamp (`module_get_deadline()`) and calls `k_thread_absolute_deadline_set()`, submitting to the Zephyr kernel's EDF scheduler.
0 commit comments