Commit 54d5db0
ipc: place global IPC context in user-accessible memory for user-space LL
When CONFIG_SOF_USERSPACE_LL is enabled the IPC context must live in
user-accessible application memory rather than being allocated from the
kernel heap and reached via sof->ipc. Place struct ipc in a dedicated
K_APP_BMEM partition and provide an out-of-line ipc_get() returning it;
drop the sof->ipc pointer in this configuration.
Add the generic ll_alloc allocation context to struct ipc and set it up
in ipc_init() from the LL user heap, so LL components (host, dai,
chain_dma) can allocate their buffers from a user-accessible heap. IPC
objects (the context itself and comp_data) are allocated accordingly.
A no-op ipc_user_init() stub is added here and implemented later.
No IPC-major-specific knowledge is added here.
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>1 parent 350fc41 commit 54d5db0
3 files changed
Lines changed: 81 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
98 | 108 | | |
99 | 109 | | |
100 | 110 | | |
| |||
104 | 114 | | |
105 | 115 | | |
106 | 116 | | |
| 117 | + | |
| 118 | + | |
107 | 119 | | |
108 | 120 | | |
109 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
46 | 67 | | |
47 | 68 | | |
48 | 69 | | |
| |||
288 | 309 | | |
289 | 310 | | |
290 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
291 | 316 | | |
292 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
293 | 321 | | |
294 | 322 | | |
295 | 323 | | |
296 | 324 | | |
297 | 325 | | |
298 | | - | |
| 326 | + | |
299 | 327 | | |
300 | 328 | | |
301 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
302 | 346 | | |
303 | | - | |
304 | | - | |
| 347 | + | |
| 348 | + | |
305 | 349 | | |
306 | 350 | | |
307 | 351 | | |
308 | | - | |
309 | | - | |
310 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
311 | 358 | | |
312 | | - | |
313 | | - | |
| 359 | + | |
314 | 360 | | |
| 361 | + | |
315 | 362 | | |
316 | | - | |
317 | | - | |
318 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
319 | 366 | | |
320 | 367 | | |
321 | 368 | | |
| |||
324 | 371 | | |
325 | 372 | | |
326 | 373 | | |
327 | | - | |
| 374 | + | |
328 | 375 | | |
329 | | - | |
| 376 | + | |
330 | 377 | | |
331 | 378 | | |
332 | 379 | | |
333 | 380 | | |
334 | 381 | | |
335 | | - | |
| 382 | + | |
| 383 | + | |
336 | 384 | | |
337 | 385 | | |
338 | | - | |
| 386 | + | |
339 | 387 | | |
340 | 388 | | |
341 | 389 | | |
| |||
346 | 394 | | |
347 | 395 | | |
348 | 396 | | |
349 | | - | |
| 397 | + | |
350 | 398 | | |
351 | 399 | | |
352 | | - | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
353 | 403 | | |
354 | 404 | | |
355 | 405 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
0 commit comments