[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DU2PR04MB90822E836A7415C43BBF7C0FE3E79@DU2PR04MB9082.eurprd04.prod.outlook.com>
Date: Wed, 6 Apr 2022 10:18:49 +0000
From: "S.J. Wang" <shengjiu.wang@....com>
To: "Daniel Baluta (OSS)" <daniel.baluta@....nxp.com>,
"linux-remoteproc@...r.kernel.org" <linux-remoteproc@...r.kernel.org>,
"mathieu.poirier@...aro.org" <mathieu.poirier@...aro.org>,
"bjorn.andersson@...aro.org" <bjorn.andersson@...aro.org>
CC: "s.hauer@...gutronix.de" <s.hauer@...gutronix.de>,
"kernel@...gutronix.de" <kernel@...gutronix.de>,
"festevam@...il.com" <festevam@...il.com>,
dl-linux-imx <linux-imx@....com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"daniel.baluta@...il.com" <daniel.baluta@...il.com>,
Daniel Baluta <daniel.baluta@....com>
Subject: RE: [PATCH] remoteproc: imx_dsp_rproc: Make rsc_table optional
>
> There are cases when we want to test a simple "hello world"
> app on the DSP and we do not need a resource table.
>
> remoteproc core allows us having an optional rsc_table.
>
> Signed-off-by: Daniel Baluta <daniel.baluta@....com>
Acked-by: Shengjiu Wang <shengjiu.wang@...il.com>
Best regards
Wang Shengjiu
> ---
> drivers/remoteproc/imx_dsp_rproc.c | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/remoteproc/imx_dsp_rproc.c
> b/drivers/remoteproc/imx_dsp_rproc.c
> index 2abee78df96e..987ab1add761 100644
> --- a/drivers/remoteproc/imx_dsp_rproc.c
> +++ b/drivers/remoteproc/imx_dsp_rproc.c
> @@ -802,6 +802,14 @@ static void imx_dsp_rproc_kick(struct rproc *rproc,
> int vqid)
> dev_err(dev, "%s: failed (%d, err:%d)\n", __func__, vqid,
> err); }
>
> +static int imx_dsp_rproc_parse_fw(struct rproc *rproc, const struct
> +firmware *fw) {
> + if (rproc_elf_load_rsc_table(rproc, fw))
> + dev_warn(&rproc->dev, "no resource table found for this
> firmware\n");
> +
> + return 0;
> +}
> +
> static const struct rproc_ops imx_dsp_rproc_ops = {
> .prepare = imx_dsp_rproc_prepare,
> .unprepare = imx_dsp_rproc_unprepare,
> @@ -809,7 +817,7 @@ static const struct rproc_ops imx_dsp_rproc_ops = {
> .stop = imx_dsp_rproc_stop,
> .kick = imx_dsp_rproc_kick,
> .load = imx_dsp_rproc_elf_load_segments,
> - .parse_fw = rproc_elf_load_rsc_table,
> + .parse_fw = imx_dsp_rproc_parse_fw,
> .sanity_check = rproc_elf_sanity_check,
> .get_boot_addr = rproc_elf_get_boot_addr,
> };
> --
> 2.27.0
Powered by blists - more mailing lists