From: sashiko-bot@kernel.org
To: "Richard Genoud (TI)" <richard.genoud@bootlin.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v4 3/7] arm64: dts: ti: k3-j7200-ti-ipc-firmware: Reserve memory for LPM metadata
Date: Mon, 21 Sep 2026 15:03:00 +0000 [thread overview]
Message-ID: <20260921150301.6B6BD1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921145325.300025-4-richard.genoud@bootlin.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] dt-bindings: ABI break: appending firewalled lpm_memory_region to memory-region array crashes older kernels
--
commit 07681f0176ba38c8ed49ce9e6c61d2f4b216437d
Author: Richard Genoud (TI) <richard.genoud@bootlin.com>
arm64: dts: ti: k3-j7200-ti-ipc-firmware: Reserve memory for LPM metadata
This commit declares a carveout memory region on J7200 to store LPM metadata,
which is needed for saving ATF context and certificate information. It also
appends this region to the mcu_r5fss0_core0 memory-region list.
> diff --git a/arch/arm64/boot/dts/ti/k3-j7200-ti-ipc-firmware.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-ti-ipc-firmware.dtsi
> index d65f68c7d4321..a6043970715ac 100644
> --- a/arch/arm64/boot/dts/ti/k3-j7200-ti-ipc-firmware.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-j7200-ti-ipc-firmware.dtsi
[ ... ]
> @@ -99,8 +105,10 @@ &mcu_r5fss0 {
> &mcu_r5fss0_core0 {
> mboxes = <&mailbox0_cluster0 &mbox_mcu_r5fss0_core0>;
> memory-region = <&mcu_r5fss0_core0_dma_memory_region>,
> - <&mcu_r5fss0_core0_memory_region>;
> - memory-region-names = "dma", "firmware";
> + <&mcu_r5fss0_core0_memory_region>,
> + <&lpm_memory_region>;
> + memory-region-names = "dma", "firmware", "lpm-metadata";
[Severity: High]
Does appending the firewalled lpm_memory_region to the standard memory-region
array break Device Tree forward compatibility with older kernels?
Older kernel remoteproc drivers unconditionally iterate over all memory-region
elements (skipping index 0) and map them using devm_ioremap_resource_wc():
drivers/remoteproc/ti_k3_common.c:k3_reserved_mem_init() {
...
kproc->rmem[j].cpu_addr = devm_ioremap_resource_wc(dev, &res);
...
}
Since the region is firewalled by TIFS and mapped as Write-Combine (Normal
Non-Cacheable memory), could speculative fetches to this memory trigger bus
errors (SError) and crash the system?
To maintain compatibility when running a new Device Tree on an older kernel,
should the firewalled region be provided via a custom property (e.g.,
ti,lpm-metadata) rather than overloading the standard memory-region array?
> + bootph-pre-ram;
> status = "okay";
> };
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260921145325.300025-1-richard.genoud@bootlin.com?part=3
next prev parent reply other threads:[~2026-09-21 15:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 14:53 [PATCH v4 0/7] dts: ti: k3-j7: Reserve memory for LPM metadata Richard Genoud (TI)
2026-09-21 14:53 ` [PATCH v4 1/7] dt-bindings: remoteproc: k3-r5f: Add Jacinto LPM memory region Richard Genoud (TI)
2026-09-22 16:02 ` Rob Herring (Arm)
2026-09-21 14:53 ` [PATCH v4 2/7] remoteproc: k3: skip mapping firewalled lpm-metadata " Richard Genoud (TI)
2026-09-21 14:53 ` [PATCH v4 3/7] arm64: dts: ti: k3-j7200-ti-ipc-firmware: Reserve memory for LPM metadata Richard Genoud (TI)
2026-09-21 15:03 ` sashiko-bot [this message]
2026-09-21 14:53 ` [PATCH v4 4/7] arm64: dts: ti: k3-j721s2-ti-ipc-firmware: " Richard Genoud (TI)
2026-09-21 14:53 ` [PATCH v4 5/7] arm64: dts: ti: k3-j784s4-ti-ipc-firmware: " Richard Genoud (TI)
2026-09-21 14:53 ` [PATCH v4 6/7] arm64: dts: ti: k3-j722s-ti-ipc-firmware: " Richard Genoud (TI)
2026-09-21 14:53 ` [PATCH v4 7/7] arm64: dts: ti: k3-j742s2-ti-ipc-firmware: " Richard Genoud (TI)
2026-09-21 14:59 ` 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=20260921150301.6B6BD1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=richard.genoud@bootlin.com \
--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