From: sashiko-bot@kernel.org
To: "Jie Gan" <jie.gan@oss.qualcomm.com>
Cc: conor+dt@kernel.org, robh@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 2/2] arm64: dts: qcom: shikra: Add coresight nodes
Date: Tue, 14 Jul 2026 02:10:08 +0000 [thread overview]
Message-ID: <20260714021009.5145A1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260714-add-coresight-nodes-for-shikra-v1-2-b1cf85962455@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] The ETM device tree nodes use the `arm,coresight-etm4x-sysreg` compatible string while simultaneously specifying a memory-mapped `reg` property, which inadvertently forces the Linux driver to use MMIO and bypasses sysreg access.
--
--- Patch [2]: [PATCH 2/2] arm64: dts: qcom: shikra: Add coresight nodes ---
commit 24d3e76ff822f220e7ce3ce7c925342e5bd6c189
Author: Jie Gan <jie.gan@oss.qualcomm.com>
arm64: dts: qcom: shikra: Add coresight nodes
This commit adds DT nodes for the CoreSight debug and trace subsystem on the
Qualcomm Shikra SoC.
> diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
> index 4e5bc9e17c8ed..84c906be16a93 100644
> --- a/arch/arm64/boot/dts/qcom/shikra.dtsi
> +++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
[ ... ]
> + etm@9040000 {
> + compatible = "arm,coresight-etm4x-sysreg";
> + reg = <0x0 0x09040000 0x0 0x1000>;
[Severity: High]
Does combining "arm,coresight-etm4x-sysreg" with a memory-mapped reg property
cause the driver to incorrectly fall back to MMIO mode?
Since this compatible string is meant for sysreg-only access, providing the
reg property violates the DT bindings. This forces the coresight-etm4x
platform driver into an MMIO fallback mode and skips sysreg initialization.
Because it binds to the platform driver instead of the AMBA primecell driver,
won't it miss AMBA PM and UCI ID initialization? Accessing an unpowered or
improperly clocked CoreSight MMIO region could cause bus errors or silent
probe failures.
This same pattern also appears in the other ETM nodes added by this patch
(etm@9140000, etm@9240000, and etm@9340000).
> +
> + clocks = <&rpmcc RPM_SMD_QDSS_CLK>;
> + clock-names = "apb_pclk";
> + cpu = <&cpu0>;
> + qcom,skip-power-up;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260714-add-coresight-nodes-for-shikra-v1-0-b1cf85962455@oss.qualcomm.com?part=2
prev parent reply other threads:[~2026-07-14 2:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 1:57 [PATCH 0/2] Add CoreSight nodes for Qualcomm Shikra SoC Jie Gan
2026-07-14 1:57 ` Jie Gan
2026-07-14 1:57 ` [PATCH 1/2] dt-bindings: arm: add CTCU device for shikra Jie Gan
2026-07-14 1:57 ` Jie Gan
2026-07-14 1:57 ` [PATCH 2/2] arm64: dts: qcom: shikra: Add coresight nodes Jie Gan
2026-07-14 1:57 ` Jie Gan
2026-07-14 2:10 ` sashiko-bot [this message]
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=20260714021009.5145A1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jie.gan@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.