Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/kernel/drivers/imx/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ int platform_ipc_init(struct ipc *ipc)
iipc->dh_buffer.page_table = rzalloc(SOF_MEM_FLAG_USER,
PLATFORM_PAGE_TABLE_SIZE);
if (!iipc->dh_buffer.page_table)
sof_panic(SOF_IPC_PANIC_IPC);
k_panic();
bzero(iipc->dh_buffer.page_table, PLATFORM_PAGE_TABLE_SIZE);
#if CONFIG_ZEPHYR_NATIVE_DRIVERS
iipc->dh_buffer.dmac = sof_dma_get(SOF_DMA_DIR_HMEM_TO_LMEM, 0, SOF_DMA_DEV_HOST,
Expand All @@ -214,7 +214,7 @@ int platform_ipc_init(struct ipc *ipc)
#endif
if (!iipc->dh_buffer.dmac) {
tr_err(&ipc_tr, "Unable to find DMA for host page table");
sof_panic(SOF_IPC_PANIC_IPC);
k_panic();
}
#endif

Expand Down
10 changes: 5 additions & 5 deletions src/kernel/ipc/ipc-common-kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ __cold static void ipc_user_init(void)

if (!ipc_user) {
LOG_ERR("user IPC pdata alloc failed");
sof_panic(SOF_IPC_PANIC_IPC);
k_panic();
}

/* the allocation is not zeroed, start with clean state (e.g. ppl_phase) */
Expand Down Expand Up @@ -800,14 +800,14 @@ __cold static void ipc_user_init(void)
ret = ipc_user_init_thread(ipc_user, PLATFORM_PRIMARY_CORE_ID);
if (ret < 0) {
LOG_ERR("user IPC thread initialization failed");
sof_panic(SOF_IPC_PANIC_IPC);
k_panic();
}

ret = user_access_to_mailbox(zephyr_ll_mem_domain(),
ipc_user_kthread[PLATFORM_PRIMARY_CORE_ID]);
if (ret < 0) {
LOG_ERR("ipc user: mailbox access grant failed: %d", ret);
sof_panic(SOF_IPC_PANIC_IPC);
k_panic();
}

/* Store references in ipc struct so kernel handler can forward commands */
Expand Down Expand Up @@ -867,7 +867,7 @@ __cold int ipc_init(struct sof *sof)
sizeof(*ipc->ll_alloc), 0);
if (!ipc->ll_alloc) {
tr_err(&ipc_tr, "Unable to allocate IPC ll_alloc");
sof_panic(SOF_IPC_PANIC_IPC);
k_panic();
}
ipc->ll_alloc->heap = heap;
ipc->ll_alloc->vreg = NULL;
Expand All @@ -892,7 +892,7 @@ __cold int ipc_init(struct sof *sof)
#endif
if (!ipc->comp_data) {
tr_err(&ipc_tr, "Unable to allocate IPC component data");
sof_panic(SOF_IPC_PANIC_IPC);
k_panic();
}
memset(ipc->comp_data, 0, SOF_IPC_MSG_MAX_SIZE);
#ifdef CONFIG_SOF_USERSPACE_LL
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/lib/agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static enum task_state validate(void *data)
#if CONFIG_AGENT_PANIC_ON_DELAY
/* panic timeout */
if (sa->panic_on_delay && delta > sa->panic_timeout)
sof_panic(SOF_IPC_PANIC_IDLE);
k_panic();
#endif

/* warning timeout */
Expand Down
Loading