From: sashiko-bot@kernel.org
To: "Jie Gan" <jie.gan@oss.qualcomm.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v6 1/5] dt-bindings: arm: coresight-tnoc: Bind on platform bus instead of AMBA
Date: Fri, 10 Jul 2026 02:48:23 +0000 [thread overview]
Message-ID: <20260710024824.135A51F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260710-fix-tracenoc-probe-issue-v6-1-41eb36fef8d9@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] The kernel has no platform driver configured to match the `qcom,coresight-tnoc` compatible string, leaving the device unbound on the platform bus.
- [Low] Restricting the 'compatible' property to a single string abruptly breaks schema validation for existing in-tree device trees that use the dual-string AMBA format.
--
--- Patch [1]: [PATCH v6 1/5] dt-bindings: arm: coresight-tnoc: Bind on platform bus instead of AMBA ---
commit 53696bf96bfa353e6c866bb916cba6363324a355
Author: Jie Gan <jie.gan@oss.qualcomm.com>
dt-bindings: arm: coresight-tnoc: Bind on platform bus instead of AMBA
The Aggregator TraceNoC hardware exposes CID registers, but the Component
ID value returned by the hardware is 0x00000000 instead of a valid AMBA
Component ID. As a result, the device cannot be identified on the AMBA
bus.
> Describe the Aggregator TraceNoC with a dedicated single
> "qcom,coresight-tnoc" compatible instead of the two-string AMBA form
> "qcom,coresight-tnoc", "arm,primecell". This creates the device on the
> platform bus so it is bound by the platform driver through its compatible
> string rather than as an AMBA device.
[Severity: High]
Does the platform driver have the correct compatible string to match this?
Looking at itnoc_of_match in drivers/hwtracing/coresight/coresight-tnoc.c:
static const struct of_device_id itnoc_of_match[] = {
{ .compatible = "qcom,coresight-itnoc" },
{}
};
Since "qcom,coresight-tnoc" is not in this match table, will the device
silently fail to probe at runtime on the platform bus?
> diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml b/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml
> index ef648a15b8065..72fb1210e22e0 100644
> --- a/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml
> +++ b/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml
[ ... ]
> @@ -22,24 +22,12 @@ description: >
>
> Note this binding is specifically intended for Aggregator TNOC instances.
>
> -# Need a custom select here or 'arm,primecell' will match on lots of nodes
> -select:
> - properties:
> - compatible:
> - contains:
> - enum:
> - - qcom,coresight-tnoc
> - required:
> - - compatible
> -
> properties:
> $nodename:
> pattern: "^tn(@[0-9a-f]+)$"
>
> compatible:
> - items:
> - - const: qcom,coresight-tnoc
> - - const: arm,primecell
> + const: qcom,coresight-tnoc
[Severity: Low]
Will this break schema validation for existing device trees?
Existing files like arch/arm64/boot/dts/qcom/sm8750.dtsi still use the dual
string format:
tn@109ab000 {
compatible = "qcom,coresight-tnoc", "arm,primecell";
Running make dtbs_check might produce validation errors until those device
trees are updated to match this new strict constraint.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260710-fix-tracenoc-probe-issue-v6-0-41eb36fef8d9@oss.qualcomm.com?part=1
next prev parent reply other threads:[~2026-07-10 2:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-10 2:38 [PATCH v6 0/5] Fix traceNoC probe issue on multiple QCOM platforms Jie Gan
2026-07-10 2:39 ` [PATCH v6 1/5] dt-bindings: arm: coresight-tnoc: Bind on platform bus instead of AMBA Jie Gan
2026-07-10 2:48 ` sashiko-bot [this message]
2026-07-10 7:03 ` Krzysztof Kozlowski
2026-07-10 2:39 ` [PATCH v6 2/5] coresight: tnoc: Bind Aggregator TNOC on the platform bus Jie Gan
2026-07-10 2:50 ` sashiko-bot
2026-07-10 8:40 ` Leo Yan
2026-07-10 2:39 ` [PATCH v6 3/5] arm64: dts: qcom: kaanapali: bind traceNoC " Jie Gan
2026-07-10 2:54 ` sashiko-bot
2026-07-10 9:49 ` Konrad Dybcio
2026-07-10 2:39 ` [PATCH v6 4/5] arm64: dts: qcom: sm8750: " Jie Gan
2026-07-10 9:49 ` Konrad Dybcio
2026-07-10 2:39 ` [PATCH v6 5/5] arm64: dts: qcom: glymur: use Aggregator TNOC compatible Jie Gan
2026-07-10 9:50 ` Konrad Dybcio
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=20260710024824.135A51F000E9@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.