Commit ac8a08c
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 0ae1ab1 commit ac8a08c
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 | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
576 | 579 | | |
577 | 580 | | |
578 | 581 | | |
| |||
715 | 718 | | |
716 | 719 | | |
717 | 720 | | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
718 | 726 | | |
719 | 727 | | |
720 | 728 | | |
| |||
0 commit comments