You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c04d3f1
Browse filesBrowse the repository at this point in the historyBrowse files
probe: IPC3+Zephyr: extract to a host ring through the i.MX host DMA
IPC3 PROBE_INIT carries no host buffer address: on Intel the kernel
programs the destination into the HDA stream, so the firmware never
needs one. On i.MX the host DMA (nxp_sof_host_dma) is configured by
the firmware itself and was never given a destination, so the
extraction channel had nowhere to deliver to and dma_reload() never
moved any probe data.
Have the kernel pass the bus address of a coherent host buffer in the
PROBE_INIT stream_tag field. The buffer is a header page followed by a
ring whose size is a power of two of at least the local probe ring.
Before every transfer point the host DMA block at the bytes about to go
out, at the offset given by the write counter, then let the common
dma_reload() path copy them, exactly as on the other Zephyr-native
platforms. The transfer size is already clamped at the end of the
local ring and the host ring is a multiple of it, so the transfer never
has to wrap in the host ring either.
The host DMA reports no position, so after each transfer publish the
write counter in the first word of the header page for the kernel to
poll. Use channel 0 in probe_dma_init() under CONFIG_PROBE_IMX_HOST_DMA,
since stream_tag carries an address there, not a channel index; every other
IPC3 platform (e.g. AMD ACP, MediaTek) keeps its previous channel
selection unchanged.
Add the CONFIG_PROBE_IMX_HOST_DMA Kconfig option for this path and
enable it, together with CONFIG_PROBE=y and CONFIG_PROBE_POINTS_MAX=16,
for the i.MX8MP EVK ADSP board. Look up IPC3 probe points with
ipc_get_buffer_by_id() on this path, as on AMD.
Signed-off-by: Stefan Ghetu <stefan.ghetu@nxp.com>
0 commit comments