Skip to content
Merged
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
3 changes: 3 additions & 0 deletions posix/include/rtos/alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ void sof_heap_free(struct k_heap *heap, void *addr);
struct k_heap *sof_sys_heap_get(void);
struct k_heap *sof_sys_user_heap_get(void);

/* trace and log memory allocation statistics across all heaps */
void heap_trace_all(int force);

/* Posix version of struct mod_alloc_ctx without vregion support */
struct vregion;

Expand Down
19 changes: 19 additions & 0 deletions posix/include/rtos/idc_msg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2026 Intel Corporation.
*/

/**
* \file include/rtos/idc_msg.h
* \brief IDC message format
*
* The host builds are not partitioned into kernel and user space, so
* this is all of rtos/idc.h.
*/

#ifndef __POSIX_RTOS_IDC_MSG_H__
#define __POSIX_RTOS_IDC_MSG_H__

#include <rtos/idc.h>

#endif /* __POSIX_RTOS_IDC_MSG_H__ */
1 change: 0 additions & 1 deletion posix/include/sof/lib/mm_heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ void init_heap(struct sof *sof);
void free_heap(void);

/* status */
void heap_trace_all(int force);
void heap_trace(struct mm_heap *heap, int size);

#if CONFIG_DEBUG_MEMORY_USAGE_SCAN
Expand Down
2 changes: 0 additions & 2 deletions scripts/kernel_user_partition.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ src/audio/module_adapter/iadk/kpb_service.cpp
src/audio/module_adapter/iadk/system_agent.cpp
src/audio/module_adapter/iadk/timestamping_service_provider.cpp
src/audio/module_adapter/library/native_system_service.c
src/audio/module_adapter/module_adapter_ipc3.c
src/audio/module_adapter/module_adapter_ipc4.c
src/audio/pipeline/pipeline-graph.c
src/audio/pipeline/pipeline-params.c
src/audio/pipeline/pipeline-schedule.c
src/audio/pipeline/pipeline-stream.c
src/audio/pipeline/pipeline-xrun.c
Expand Down
1 change: 0 additions & 1 deletion src/audio/chain_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <rtos/alloc.h>
#include <rtos/task.h>
#include <sof/lib/dma.h>
#include <sof/lib/memory.h>
#include <ipc4/error_status.h>
#include <ipc4/module.h>
#include <ipc4/pipeline.h>
Expand Down
1 change: 0 additions & 1 deletion src/audio/copier/copier_ipcgtw.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <sof/audio/sink_api.h>
#include <sof/audio/source_api.h>
#include <sof/trace/trace.h>
#include <sof/lib/memory.h>
#include <sof/ut.h>
#include <sof/lib/mailbox.h>
#include "copier.h"
Expand Down
2 changes: 0 additions & 2 deletions src/audio/kpb.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@
#include <sof/ipc/msg.h>
#include <rtos/timer.h>
#include <rtos/alloc.h>
#include <rtos/clk.h>
#include <rtos/init.h>
#include <rtos/symbol.h>
#include <sof/lib/cold.h>
#include <sof/lib/pm_runtime.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
#include <sof/math/numbers.h>
#include <sof/platform.h>
#include <sof/schedule/edf_schedule.h>
#include <sof/schedule/schedule.h>
#include <rtos/task.h>
Expand Down
1 change: 0 additions & 1 deletion src/audio/module_adapter/module_adapter_ipc3.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <sof/audio/pipeline.h>
#include <sof/common.h>
#include <sof/ut.h>
#include <rtos/interrupt.h>
#include <limits.h>
#include <stdint.h>

Expand Down
1 change: 0 additions & 1 deletion src/audio/pipeline/pipeline-graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <rtos/interrupt.h>
#include <rtos/symbol.h>
#include <rtos/alloc.h>
#include <sof/lib/mm_heap.h>
#include <sof/lib/uuid.h>
#include <sof/compiler_attributes.h>
#include <sof/list.h>
Expand Down
1 change: 0 additions & 1 deletion src/include/ipc4/dmic.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include <stdint.h>
#include <stddef.h>
#include <sof/drivers/dmic.h>
#include "gateway.h"

/**
Expand Down
4 changes: 2 additions & 2 deletions src/include/sof/audio/component_ext.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include <sof/audio/component.h>
#include <ipc/topology.h>
/* in user-space LL builds idc_send_msg() forwards to the remote user IPC thread */
#include <rtos/idc.h>
#include <sof/schedule/ll_schedule_domain.h>
#include <rtos/idc_msg.h>
#include <sof/schedule/ll_schedule.h>
#include <sof/schedule/schedule.h>

/** \addtogroup component_infra_api
Expand Down
2 changes: 1 addition & 1 deletion src/include/sof/audio/intel_uaol.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#define __SOF_AUDIO_INTEL_UAOL_H__

#include <stdint.h>
#include <sof/lib/memory.h>
#include <sof/lib/cold.h>
#include <zephyr/devicetree.h>

struct sof_tlv;
Expand Down
2 changes: 0 additions & 2 deletions src/include/sof/lib/dai-zephyr.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

#include <rtos/bit.h>
#include <sof/list.h>
#include <sof/lib/io.h>
#include <sof/lib/memory.h>
#include <sof/lib/dma.h>
#include <sof/list.h>
#include <rtos/sof.h>
Expand Down
8 changes: 8 additions & 0 deletions src/include/sof/schedule/ll_schedule.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ void user_ll_assert_locked(int core);
#else
static inline void user_ll_assert_locked(int core) { ARG_UNUSED(core); }
#endif

struct k_heap;

/**
* @brief Get the user-space heap for Low-Latency scheduling structures.
* @return Pointer to the k_heap instance.
*/
struct k_heap *zephyr_ll_user_heap(void);
#endif /* CONFIG_SOF_USERSPACE_LL */

/* ll tracing */
Expand Down
7 changes: 0 additions & 7 deletions src/include/sof/schedule/ll_schedule_domain.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <rtos/alloc.h>
#include <sof/lib/cpu.h>
#include <rtos/clk.h>
#include <sof/lib/memory.h>
#include <sof/schedule/ll_schedule.h>
#include <rtos/sof.h>
#include <rtos/spinlock.h>
Expand Down Expand Up @@ -209,12 +208,6 @@ static inline struct ll_schedule_domain *dma_domain_get(void)
*/
struct task *zephyr_ll_task_alloc(void);

/**
* @brief Get the user-space heap for Low-Latency scheduling structures.
* @return Pointer to the k_heap instance.
*/
struct k_heap *zephyr_ll_user_heap(void);

/**
* @brief Verify that a pointer belongs to the user-space LL heap.
* @param[in] heap Heap handle to check.
Expand Down
10 changes: 1 addition & 9 deletions src/ipc/ipc-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,16 @@
#include <sof/audio/pipeline.h>
#include <sof/common.h>
#include <sof/debug/gdb/gdb.h>
#include <rtos/idc.h>
#include <rtos/idc_msg.h>
#include <rtos/symbol.h>
#include <sof/ipc/topology.h>
#include <sof/ipc/common.h>
#include <sof/ipc/msg.h>
#include <sof/ipc/driver.h>
#include <sof/ipc/schedule.h>
#include <rtos/alloc.h>
#include <rtos/cache.h>
#include <sof/lib/cpu.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/list.h>
#include <sof/platform.h>
#include <sof/schedule/ll_schedule.h>
#include <sof/schedule/ll_schedule_domain.h>
#include <rtos/sof.h>
Expand All @@ -45,10 +41,6 @@
#include <zephyr/internal/syscall_handler.h>
#endif

#ifdef CONFIG_SOF_USERSPACE_LL
#include <rtos/userspace_helper.h>
#endif

#include <sof/debug/telemetry/performance_monitor.h>

/* The IPC code that runs in kernel mode is in src/kernel/ipc/ipc-common-kernel.c */
Expand Down
3 changes: 0 additions & 3 deletions src/ipc/ipc-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <sof/common.h>
#include <sof/debug/telemetry/performance_monitor.h>
#include <sof/debug/telemetry/telemetry.h>
#include <rtos/idc.h>
#include <rtos/interrupt.h>
#include <sof/ipc/topology.h>
#include <sof/ipc/common.h>
Expand All @@ -21,8 +20,6 @@
#include <rtos/alloc.h>
#include <rtos/cache.h>
#include <sof/lib/cpu.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/list.h>
#include <rtos/sof.h>
#include <rtos/spinlock.h>
Expand Down
2 changes: 0 additions & 2 deletions src/ipc/ipc4/dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
#include <sof/audio/component_ext.h>
#include <sof/audio/ipc-config.h>
#include <sof/common.h>
#include <rtos/idc.h>
#include <rtos/alloc.h>
#include <rtos/mutex.h>
#include <sof/lib/dai.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/lib/notifier.h>
#include <rtos/sof.h>
#include <rtos/timer.h>
Expand Down
4 changes: 0 additions & 4 deletions src/ipc/ipc4/handler-user.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
#include <sof/ipc/topology.h>
#include <sof/ipc/common.h>
#include <sof/ipc/msg.h>
#include <sof/ipc/driver.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/lib/pm_runtime.h>
#include <sof/llext_manager.h>
#include <sof/math/numbers.h>
#include <sof/tlv.h>
#include <sof/trace/trace.h>
Expand Down
1 change: 0 additions & 1 deletion src/ipc/ipc4/helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <ipc4/handler.h>
#include <sof/ipc/msg.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
#include <sof/lib/vregion.h>
#include <sof/list.h>
#include <sof/schedule/dp_schedule.h>
Expand Down
1 change: 0 additions & 1 deletion src/lib/dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <sof/lib/dai.h>
#include <rtos/alloc.h>
#include <sof/lib/cpu.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <rtos/spinlock.h>
#include <sof/trace/trace.h>
Expand Down
1 change: 0 additions & 1 deletion src/lib/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include <rtos/alloc.h>
#include <rtos/cache.h>
#include <sof/lib/dma.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/trace/trace.h>
#include <ipc/topology.h>
Expand Down
3 changes: 1 addition & 2 deletions src/lib/notifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

#include <sof/common.h>
#include <rtos/panic.h>
#include <rtos/idc.h>
#include <rtos/interrupt.h>
#include <rtos/idc_msg.h>
#include <rtos/alloc.h>
#include <rtos/cache.h>
#include <sof/lib/cpu.h>
Expand Down
3 changes: 0 additions & 3 deletions src/schedule/zephyr_dp_schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@

#include <sof/audio/component.h>
#include <sof/audio/module_adapter/module/generic.h>
#include <sof/llext_manager.h>
#include <rtos/task.h>
#include <rtos/userspace_helper.h>
#include <sof/schedule/dp_schedule.h>
#include <sof/schedule/ll_schedule.h>
#include <sof/schedule/ll_schedule_domain.h>
#include <sof/trace/trace.h>
#include <rtos/wait.h>
#include <rtos/interrupt.h>
#include <zephyr/kernel.h>
#include <zephyr/sys/clock.h>
#include <zephyr/sys/sem.h>
#include <zephyr/sys/mutex.h>
#include <sof/lib/memory.h>
#include <sof/schedule/schedule.h>
#include <ipc4/base_fw.h>

Expand Down
3 changes: 0 additions & 3 deletions src/schedule/zephyr_dp_schedule_application.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@
*/

#include <rtos/task.h>
#include <rtos/userspace_helper.h>

#include <sof/audio/module_adapter/module/generic.h>
#include <sof/audio/component.h>
#include <sof/common.h>
#include <sof/debug/telemetry/telemetry.h>
#include <sof/ipc/common.h>
#include <sof/lib/mailbox.h>
#include <sof/list.h>
#include <sof/llext_manager.h>
#include <sof/objpool.h>
#include <sof/schedule/dp_schedule.h>
#include <sof/schedule/schedule.h>
Expand Down
1 change: 0 additions & 1 deletion src/schedule/zephyr_dp_schedule_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

#include <rtos/task.h>
#include <rtos/userspace_helper.h>

#include <sof/audio/module_adapter/module/generic.h>
#include <sof/audio/module_adapter/library/userspace_proxy.h>
Expand Down
1 change: 0 additions & 1 deletion src/schedule/zephyr_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <rtos/symbol.h>
#include <sof/audio/component.h>
#include <rtos/interrupt.h>
#include <sof/lib/memory.h>
#include <sof/schedule/dp_schedule.h>
#include <sof/schedule/ll_schedule_domain.h>
#include <sof/schedule/zephyr_ll.h>
Expand Down
Loading
Loading