From: sashiko-bot@kernel.org
To: "Kathiravan Thirumoorthy" <kathiravan.thirumoorthy@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, conor+dt@kernel.org, robh@kernel.org
Subject: Re: [PATCH v2 2/5] arm64: dts: qcom: ipq9574: add the IMEM node
Date: Fri, 02 Oct 2026 13:11:49 +0000 [thread overview]
Message-ID: <20261002131150.316A11F00893@smtp.kernel.org> (raw)
In-Reply-To: <20261002-imem_restart_reason-v2-2-61703c6362e3@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dts: IMEM reg size exposes inaccessible memory to genalloc
--
commit d2b7d5d7c89f0f7e2ce2ebd4070ca10c86d37283
Author: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
arm64: dts: qcom: ipq9574: add the IMEM node
This commit adds the IMEM node to the device tree to extract debugging
information. The commit message notes the region is 32KB overall, but
only the initial 4KB is accessible by all masters in the SoC.
> diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
> index 771a595856459..f7cc6f274ca91 100644
> --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi
> +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi
[ ... ]
> @@ -757,6 +757,13 @@ usb_0_qmpphy: phy@7d000 {
> status = "disabled";
> };
>
> + sram@8600000 {
> + compatible = "qcom,ipq9574-imem", "mmio-sram";
> + reg = <0x08600000 0x8000>;
[Severity: Medium]
Does this reg property expose inaccessible memory to the generic SRAM pool?
The commit message states that only the initial 4KB of this 32KB region
is accessible. However, because the node uses the mmio-sram compatible
string, sram_probe() in drivers/misc/sram.c will automatically add all
unreserved regions within the full 32KB (0x8000) space to the kernel's
generic SRAM pool via gen_pool_add_virt().
If any driver allocates from this pool and attempts to access the upper
28KB, could it trigger a fatal Synchronous External Abort (SError) due to
the hardware protections on the inaccessible region?
Is there a way to describe only the accessible 4KB portion in the reg
property, or mark the inaccessible portion as reserved, so the allocator
state remains safe?
> +
> + no-memory-wc;
> + };
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261002-imem_restart_reason-v2-0-61703c6362e3@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-10-02 13:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-02 13:03 [PATCH v2 0/5] Add support for reporting boot status on Qualcomm IPQ9574 and IPQ5332 Kathiravan Thirumoorthy
2026-10-02 13:03 ` [PATCH v2 1/5] dt-bindings: sram: Document IMEM found in Qualcomm's " Kathiravan Thirumoorthy
2026-10-03 14:37 ` Krzysztof Kozlowski
2026-10-02 13:03 ` [PATCH v2 2/5] arm64: dts: qcom: ipq9574: add the IMEM node Kathiravan Thirumoorthy
2026-10-02 13:11 ` sashiko-bot [this message]
2026-10-02 13:03 ` [PATCH v2 3/5] arm64: dts: qcom: ipq5332: " Kathiravan Thirumoorthy
2026-10-02 13:03 ` [PATCH v2 4/5] arm64: dts: qcom: ipq9574: add support to get watchdog bootstatus from IMEM Kathiravan Thirumoorthy
2026-10-02 13:03 ` [PATCH v2 5/5] arm64: dts: qcom: ipq5332: " Kathiravan Thirumoorthy
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=20261002131150.316A11F00893@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kathiravan.thirumoorthy@oss.qualcomm.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