Commit 3a8cf09
committed
ipc4: add user-space command-forwarding context
Add the struct ipc_user descriptor (and its ipc_user_pdata slot in struct
ipc) that the IPC4 kernel handler uses to forward commands to the
user-space IPC thread: the two IPC4 message words, the reply fields, and
a user-readable copy of the resolved comp_driver + tr_ctx used by
user-space component creation.
In ipc4 helper, allow component buffers to be allocated from the LL user
heap (ipc->ll_alloc) and create them on the component's configured core
rather than the current CPU, so buffer creation works from the user
thread when CONFIG_SOF_USERSPACE_LL is enabled.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent 648408b commit 3a8cf09
2 files changed
Lines changed: 42 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
56 | 88 | | |
57 | 89 | | |
58 | 90 | | |
| |||
75 | 107 | | |
76 | 108 | | |
77 | 109 | | |
| 110 | + | |
78 | 111 | | |
79 | 112 | | |
80 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
562 | 565 | | |
563 | 566 | | |
564 | 567 | | |
| |||
701 | 704 | | |
702 | 705 | | |
703 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
704 | 712 | | |
705 | 713 | | |
706 | 714 | | |
| |||
0 commit comments