Thread (16 messages) 16 messages, 7 authors, 2026-05-30

RE: [PATCH 2/5] remoteproc: imx_rpoc: fix carveout name parsing

From: Peng Fan <peng.fan@nxp.com>
Date: 2026-05-26 00:43:03
Also in: imx, linux-devicetree, linux-remoteproc, lkml

Subject: Re: [PATCH 2/5] remoteproc: imx_rpoc: fix carveout name
parsing



On 5/24/2026 7:13 PM, Peng Fan wrote:
quoted
On Fri, May 22, 2026 at 04:18:46AM -0700, Laurentiu Mihalcea
wrote:
quoted
quoted
From: Laurentiu Mihalcea <redacted>

The imx remoteproc driver assumes that the names of the reserved
memory regions reflect their usage (e.g. "vdevbuffer", "vdev0vring0",
etc.). This conflicts with the devicetree specification's
recommendation, which states that the names of the devicetree
nodes should be generic.
quoted
quoted
Therefore, instead of relying on the node names, use the names
passed
quoted
quoted
via the "memory-region-names" property if present. Otherwise,
keep
quoted
quoted
the old behavior.

The definition of imx_rproc_rmem_to_resource() is added to a
common
quoted
quoted
place as imx_dsp_rproc.c can also use it given that it suffers from
the same aforementioned problem.

Signed-off-by: Laurentiu Mihalcea <redacted>
---
drivers/remoteproc/imx_rproc.c |  7 +++++--
drivers/remoteproc/imx_rproc.h | 19 +++++++++++++++++++
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/drivers/remoteproc/imx_rproc.c
b/drivers/remoteproc/imx_rproc.c index
7f54322244ac..1ee1c658dcc1
quoted
quoted
100644
--- a/drivers/remoteproc/imx_rproc.c
+++ b/drivers/remoteproc/imx_rproc.c
@@ -672,7 +672,7 @@ static int imx_rproc_prepare(struct rproc
*rproc)
quoted
quoted
		int err;
		struct resource res;

-		err = of_reserved_mem_region_to_resource(np, i++,
&res);
quoted
quoted
+		err = imx_rproc_rmem_to_resource(np, i++, &res);
		if (err)
			break;
@@ -850,11 +850,14 @@ static int imx_rproc_addr_init(struct
imx_rproc *priv,
quoted
quoted
	if (nph <= 0)
		return 0;

+	if (!of_property_present(np, "memory-region-names"))
+		dev_warn(dev, "using node names for carveouts
should be
quoted
quoted
+avoided\n");
Please check 'memory-regions && !memory-region-names', some
demos may
quoted
not need to use memory regions.

Regards
Peng
What for? You'll not reach this check unless "memory-regions" is
specified?
Sorry, ignore my last comment.

Thanks,
Peng.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help