remoteproc: imx_dsp_rproc: Add mandatory find_loaded_rsc_table op
authorIuliana Prodan <iuliana.prodan@nxp.com>
Fri, 13 Oct 2023 15:27:30 +0000 (18:27 +0300)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 20 Nov 2023 20:58:49 +0000 (13:58 -0700)
commitfb49b6f65a699b3463f5b2f16815340bbd3dabeb
treefa7d3acbd2efa7f202713530899c5dc70958dfb9
parent98b1cc82c4affc16f5598d4fa14b1858671b2263
remoteproc: imx_dsp_rproc: Add mandatory find_loaded_rsc_table op

Add the .find_loaded_rsc_table operation for i.MX DSP.
We need it for inter-process communication between DSP
and main core.

This callback is used to find the resource table (defined
in remote processor linker script) where the address of the
vrings along with the other allocated resources (carveouts etc)
are stored.
If this is not found, the vrings are not allocated and
the IPC between cores will not work.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20231013152731.23471-2-iuliana.prodan@oss.nxp.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/imx_dsp_rproc.c