Commit 9b67276
committed
zephyr: map IPC4 HOSTBOX partitions into user LL memory domain
The user-space IPC thread reads the IPC4 module init parameter block
directly from MAILBOX_HOSTBOX_BASE (comp_new_ipc4() / comp_new_ipc4_user()),
so the HOSTBOX region must be reachable from the user LL memory domain.
Map two partitions when CONFIG_SOF_USERSPACE_LL && CONFIG_IPC_MAJOR_4:
an uncached read-only view for the parameter reads, and a cached RW view
because the sys_cache_data_invd_range() syscall verifier requires write
access to the invalidated range.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent 03c7169 commit 9b67276
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
113 | 146 | | |
114 | 147 | | |
115 | 148 | | |
| |||
0 commit comments