Skip to content

Commit af12485

Browse files
committed
ipc: allocate userspace LL context uncached
Userspace LL allocation context can be used by all cores, allocate it as uncached. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
1 parent 21a3e58 commit af12485

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/ipc/ipc-common.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,8 @@ __cold static int ipc_user_init_thread(struct ipc_user *ipc_user)
665665
return ret;
666666
}
667667

668-
__cold int ipc_user_init(void)
668+
/* Primary core only */
669+
__cold static int ipc_user_init(void)
669670
{
670671
struct ipc *ipc = ipc_get();
671672
struct ipc_user *ipc_user = sof_heap_alloc(sof_sys_user_heap_get(),
@@ -770,7 +771,8 @@ __cold int ipc_init(struct sof *sof)
770771

771772
ipc = ipc_get();
772773
memset(ipc, 0, sizeof(*ipc));
773-
ipc->ll_alloc = sof_heap_alloc(heap, SOF_MEM_FLAG_USER, sizeof(*ipc->ll_alloc), 0);
774+
ipc->ll_alloc = sof_heap_alloc(heap, SOF_MEM_FLAG_USER | SOF_MEM_FLAG_COHERENT,
775+
sizeof(*ipc->ll_alloc), 0);
774776
if (!ipc->ll_alloc) {
775777
tr_err(&ipc_tr, "Unable to allocate IPC ll_alloc");
776778
return -ENOMEM;

0 commit comments

Comments
 (0)