From: Marek Vasut <marex@nabladev.com>
To: Frank Li <Frank.li@oss.nxp.com>, sashiko-reviews@lists.linux.dev
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
Frank.Li@kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH v4 4/6] arm64: dts: imx8mm: imx8mp: Add CM DTOs for Data Modul i.MX8M Mini and Plus eDM SBC
Date: Mon, 13 Jul 2026 18:33:33 +0200 [thread overview]
Message-ID: <f1e52327-42da-48e1-8e4a-dabf148ce216@nabladev.com> (raw)
In-Reply-To: <alUICTI-24tREZO8@SMW015318>
On 7/13/26 5:45 PM, Frank Li wrote:
> On Sun, Jul 05, 2026 at 08:24:38PM +0000, sashiko-bot@kernel.org wrote:
>> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
>> - [Medium] The virtio device buffer node is named `vdevbuffer` instead of `vdev0buffer`, bypassing the driver's carveout exclusion logic.
>> --
>>
>> commit b1e78cbda66a659316ae8170db75a75bd2d9d9d2
>> Author: Marek Vasut <marex@nabladev.com>
>>
>> arm64: dts: imx8mm: imx8mp: Add CM DTOs for Data Modul i.MX8M Mini and Plus eDM SBC
>>
>> This commit adds device tree overlays for the CM4/CM7 cores on the Data
>> Modul i.MX8M Mini and Plus eDM SBCs. The overlays allow CM4/CM7 firmware
>> to be used with remoteproc and rpmsg without imposing the overhead on
>> every user of the platform.
>>
>> [ ... ]
>>
>>> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-data-modul-edm-sbc-overlay-cm4.dtso b/arch/arm64/boot/dts/freescale/imx8mm-data-modul-edm-sbc-overlay-cm4.dtso
>>> new file mode 100644
>>> index 0000000000000..8d681c0eff0d4
>>> --- /dev/null
>>> +++ b/arch/arm64/boot/dts/freescale/imx8mm-data-modul-edm-sbc-overlay-cm4.dtso
>>> @@ -0,0 +1,56 @@
>> [ ... ]
>>> + rsc_table: rsc-table@b80ff000 {
>>> + reg = <0 0xb80ff000 0 0x1000>;
>>> + no-map;
>>> + };
>>> +
>>> + vdevbuffer: vdevbuffer@b8400000 {
>>> + compatible = "shared-dma-pool";
>>> + reg = <0 0xb8400000 0 0x100000>;
>>
>> [Severity: Medium]
>> Will this node name bypass the driver's carveout exclusion logic?
>>
>> Looking at imx_rproc_prepare(), it iterates over memory-regions and checks
>> specifically for the name "vdev0buffer" to skip processing the vdev buffer:
>>
>> if (!strcmp(it.node->name, "rsc-table") ||
>> !strcmp(it.node->name, "vdev0vring0") ||
>> !strcmp(it.node->name, "vdev0vring1") ||
>> strstarts(res.name, "vdev0buffer"))
>> continue;
>>
>> Because this node is named "vdevbuffer" instead of "vdev0buffer", it appears
>> it will be mapped as a generic carveout via ioremap_wc() and unintentionally
>> included in the remoteproc coredump.
>>
>> Could this node be renamed to "vdev0buffer" to avoid wasting vmalloc space
>> and bloating the coredump?
>
> Look like make sense, please check it.
>
> It is not good to use node-name as ABI. Laurentiu is working on use
> memory-region-namses.
The memory regionss are referenced from imx8mm-cm4 { } node via the
memory-region property:
memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, <&rsc_table>;
next prev parent reply other threads:[~2026-07-13 23:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-05 20:05 [PATCH v4 1/6] arm64: dts: imx8mm: imx8mp: Add LVDS DTOs for Data Modul i.MX8M Mini and Plus eDM SBC Marek Vasut
2026-07-05 20:05 ` [PATCH v4 2/6] arm64: dts: imx8mm: imx8mp: Add legacy board " Marek Vasut
2026-07-05 20:05 ` [PATCH v4 3/6] arm64: dts: imx8mm: imx8mp: Add HDMI " Marek Vasut
2026-07-05 20:05 ` [PATCH v4 4/6] arm64: dts: imx8mm: imx8mp: Add CM " Marek Vasut
2026-07-05 20:24 ` sashiko-bot
2026-07-13 15:45 ` Frank Li
2026-07-13 16:33 ` Marek Vasut [this message]
2026-07-14 1:33 ` Frank Li
2026-07-14 22:51 ` Marek Vasut
2026-07-15 16:22 ` Frank Li
2026-07-15 16:38 ` Marek Vasut
2026-07-15 21:37 ` Frank Li
2026-07-15 23:30 ` Marek Vasut
2026-07-16 14:26 ` Frank Li
2026-07-05 20:05 ` [PATCH v4 5/6] arm64: dts: imx8mm: imx8mp: Add FIO1 " Marek Vasut
2026-07-05 20:20 ` sashiko-bot
2026-07-05 20:05 ` [PATCH v4 6/6] arm64: dts: imx8mm: imx8mp: Add FIO1-Audio " Marek Vasut
2026-07-05 20:22 ` sashiko-bot
2026-07-13 15:49 ` Frank Li
2026-07-13 16:41 ` Marek Vasut
2026-07-05 20:22 ` [PATCH v4 1/6] arm64: dts: imx8mm: imx8mp: Add LVDS " sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f1e52327-42da-48e1-8e4a-dabf148ce216@nabladev.com \
--to=marex@nabladev.com \
--cc=Frank.Li@kernel.org \
--cc=Frank.li@oss.nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox