* [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid
@ 2026-11-27 11:31 Qianhui Xu
2026-11-27 11:31 ` [PATCH 1/2] dt-bindings: arm: qcom,coresight-tnoc: allow the " Qianhui Xu
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Qianhui Xu @ 2026-11-27 11:31 UTC (permalink / raw)
To: andersson
Cc: konradybcio, robh, krzk+dt, conor+dt, linux-arm-msm, devicetree,
linux-kernel
Hi,
on SM8750 the Trace NOC at 109ab000 is an AMBA device, but without
"arm,primecell-periphid" the AMBA core reads its ID as 0x00000000, so
coresight-tnoc (amba_ids 0x000f0c00/0x001f0c00, mask 0x00ffff00) never
matches and the node is left as "deferred probe pending: (reason
unknown)". The value below is the one the driver expects for this
integration; sm8250 describes its funnel the same way.
Changing the DTS alone is not enough: qcom,coresight-tnoc.yaml sets
additionalProperties: false without referencing the PrimeCell schema, so
dtbs_check rejects the property. 1/2 adds the reference the other
CoreSight AMBA bindings use and switches the root to
unevaluatedProperties: false, 2/2 adds the property.
Tested on SM8750 hardware: with both patches the TNOC binds to
coresight-trace-noc and no Coresight AMBA device remains unbound (0 of
28), where the TNOC itself stayed unbound before. dtbs_check on
sm8750-mtp.dtb and
sm8750-qrd.dtb is silent, dt_binding_check passes.
*** AI-assistance disclosure ***
This series was prepared with the help of an LLM coding assistant. The
author reviewed every line and verified the binding on hardware.
Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
Qianhui Xu (2):
dt-bindings: arm: qcom,coresight-tnoc: allow the AMBA periphid
arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid
.../bindings/arm/qcom,coresight-tnoc.yaml | 5 ++++-
arch/arm64/boot/dts/qcom/sm8750.dtsi | 1 +
2 files changed, 5 insertions(+), 1 deletion(-)
--
2.51.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: arm: qcom,coresight-tnoc: allow the AMBA periphid
2026-11-27 11:31 [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid Qianhui Xu
@ 2026-11-27 11:31 ` Qianhui Xu
2026-11-27 11:31 ` [PATCH 2/2] arm64: dts: qcom: sm8750: describe the TNOC " Qianhui Xu
2026-11-27 13:23 ` [PATCH 0/2] " Qianhui Xu
2 siblings, 0 replies; 5+ messages in thread
From: Qianhui Xu @ 2026-11-27 11:31 UTC (permalink / raw)
To: andersson
Cc: konradybcio, robh, krzk+dt, conor+dt, linux-arm-msm, devicetree,
linux-kernel
TNOC is an AMBA device, so its node may need "arm,primecell-periphid"
when the ID read back by the AMBA core does not match what the driver
expects (SM8750 reads 0x00000000). The binding sets
additionalProperties: false without pulling in the PrimeCell schema, so
the property is rejected by dtbs_check.
Reference /schemas/arm/primecell.yaml# like the other CoreSight AMBA
bindings and switch the root to unevaluatedProperties: false so the
referenced properties are accepted while unknown ones are still
rejected.
*** AI-assistance disclosure ***
This patch was prepared with the help of an LLM coding assistant. The
author reviewed every line and ran dt_binding_check and dtbs_check.
Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
.../devicetree/bindings/arm/qcom,coresight-tnoc.yaml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml b/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml
index 37147124449e5..279ce384caa57 100644
--- a/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml
+++ b/Documentation/devicetree/bindings/arm/qcom,coresight-tnoc.yaml
@@ -32,6 +32,9 @@ select:
required:
- compatible
+allOf:
+ - $ref: /schemas/arm/primecell.yaml#
+
properties:
$nodename:
pattern: "^tn(@[0-9a-f]+)$"
@@ -78,7 +81,7 @@ required:
- in-ports
- out-ports
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
--
2.53.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid
2026-11-27 11:31 [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid Qianhui Xu
2026-11-27 11:31 ` [PATCH 1/2] dt-bindings: arm: qcom,coresight-tnoc: allow the " Qianhui Xu
@ 2026-11-27 11:31 ` Qianhui Xu
2026-11-27 13:23 ` [PATCH 0/2] " Qianhui Xu
2 siblings, 0 replies; 5+ messages in thread
From: Qianhui Xu @ 2026-11-27 11:31 UTC (permalink / raw)
To: andersson
Cc: konradybcio, robh, krzk+dt, conor+dt, linux-arm-msm, devicetree,
linux-kernel
The trace NOC at 109ab000 is an AMBA device, but without
"arm,primecell-periphid" the AMBA core reads its ID as 0x00000000 on
this platform, so coresight-tnoc (which matches 0x000f0c00/0x001f0c00
with mask 0x00ffff00) never probes and the node is reported as
"deferred probe pending: (reason unknown)".
The value is the one the driver expects for this integration and the
same way sm8250 describes its funnel. Add it so the TNOC binds.
*** AI-assistance disclosure ***
This patch was prepared with the help of an LLM coding assistant. The
author reviewed every line and verified the binding on hardware.
Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
arch/arm64/boot/dts/qcom/sm8750.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/qcom/sm8750.dtsi b/arch/arm64/boot/dts/qcom/sm8750.dtsi
index 01eee5c2adcce..585a22eccb303 100644
--- a/arch/arm64/boot/dts/qcom/sm8750.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8750.dtsi
@@ -5366,6 +5366,7 @@ tpdm_rdpm_cmb2_out: endpoint {
tn@109ab000 {
compatible = "qcom,coresight-tnoc", "arm,primecell";
reg = <0x0 0x109ab000 0x0 0x4200>;
+ arm,primecell-periphid = <0x000f0c00>;
clocks = <&aoss_qmp>;
clock-names = "apb_pclk";
--
2.53.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid
2026-11-27 11:31 [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid Qianhui Xu
2026-11-27 11:31 ` [PATCH 1/2] dt-bindings: arm: qcom,coresight-tnoc: allow the " Qianhui Xu
2026-11-27 11:31 ` [PATCH 2/2] arm64: dts: qcom: sm8750: describe the TNOC " Qianhui Xu
@ 2026-11-27 13:23 ` Qianhui Xu
2026-11-30 1:39 ` Jie Gan
2 siblings, 1 reply; 5+ messages in thread
From: Qianhui Xu @ 2026-11-27 13:23 UTC (permalink / raw)
To: Jie Gan
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel
Hi Jie,
please drop my series above as a duplicate: your "[PATCH 0/4] Fix the
TraceNoC probe issue on QCOM platform" (2026-11-18, series 1214623)
already carries both changes I sent -- [1/4] relaxes the binding the same
way, and [3/4] adds the very same periphid to sm8750.
The overlap, for anyone who does not want to diff it by hand:
- 2/2 of my series: `tn@109ab000` in arch/arm64/boot/dts/qcom/sm8750.dtsi
gains `arm,primecell-periphid = <0x000f0c00>`; your 3/4 touches the
same node with the same value.
- 1/2 of my series: the `arm,primecell-periphid` allowance in
Documentation/devicetree/bindings/arm/coresight-tnoc.yaml; your 1/4
does the same.
Your series is clearly the better vehicle -- it covers kaanapali and
glymur in the same pass, and it already has Abel's and Konrad's
Reviewed-by tags. Nothing in my copies is worth keeping.
One measurement you may want to fold into v2, or ignore if you already
have it: on SM8750 hardware (Lenovo Legion Y700 Gen4, TB322FC, kernel
7.3.1) that TNOC instance is `tn@109ab000`, and before the property is
present AMBA reports the device unbound; with
`arm,primecell-periphid = <0x000f0c00>` the driver binds and all 28
CoreSight AMBA devices on the board reach bound state (unbound count
28 -> 0). That is a before/after comparison on one board, not a claim
about your series.
Sorry for the noise, and thanks for the earlier work.
Best regards,
Qianhui Xu
---
AI-assistance disclosure: this reply was drafted with an LLM coding
assistant and reviewed and edited by me; the measurement quoted above is
mine and reproducible; the decision to withdraw the series is mine.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid
2026-11-27 13:23 ` [PATCH 0/2] " Qianhui Xu
@ 2026-11-30 1:39 ` Jie Gan
0 siblings, 0 replies; 5+ messages in thread
From: Jie Gan @ 2026-11-30 1:39 UTC (permalink / raw)
To: Qianhui Xu
Cc: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel
Hi Qianhui,
On 11/27/2026 9:23 PM, Qianhui Xu wrote:
> Hi Jie,
>
> please drop my series above as a duplicate: your "[PATCH 0/4] Fix the
> TraceNoC probe issue on QCOM platform" (2026-11-18, series 1214623)
> already carries both changes I sent -- [1/4] relaxes the binding the same
> way, and [3/4] adds the very same periphid to sm8750.
>
> The overlap, for anyone who does not want to diff it by hand:
>
> - 2/2 of my series: `tn@109ab000` in arch/arm64/boot/dts/qcom/sm8750.dtsi
> gains `arm,primecell-periphid = <0x000f0c00>`; your 3/4 touches the
> same node with the same value.
> - 1/2 of my series: the `arm,primecell-periphid` allowance in
> Documentation/devicetree/bindings/arm/coresight-tnoc.yaml; your 1/4
> does the same.
>
> Your series is clearly the better vehicle -- it covers kaanapali and
> glymur in the same pass, and it already has Abel's and Konrad's
> Reviewed-by tags. Nothing in my copies is worth keeping.
>
You're welcome to fix the issue. Thanks for your work on this.
Please don't hesitate to fix any issues you find in the future.
Thanks,
Jie
> One measurement you may want to fold into v2, or ignore if you already
> have it: on SM8750 hardware (Lenovo Legion Y700 Gen4, TB322FC, kernel
> 7.3.1) that TNOC instance is `tn@109ab000`, and before the property is
> present AMBA reports the device unbound; with
> `arm,primecell-periphid = <0x000f0c00>` the driver binds and all 28
> CoreSight AMBA devices on the board reach bound state (unbound count
> 28 -> 0). That is a before/after comparison on one board, not a claim
> about your series.
>
> Sorry for the noise, and thanks for the earlier work.
>
> Best regards,
> Qianhui Xu
>
> ---
> AI-assistance disclosure: this reply was drafted with an LLM coding
> assistant and reviewed and edited by me; the measurement quoted above is
> mine and reproducible; the decision to withdraw the series is mine.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-30 1:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 11:31 [PATCH 0/2] arm64: dts: qcom: sm8750: describe the TNOC AMBA periphid Qianhui Xu
2026-11-27 11:31 ` [PATCH 1/2] dt-bindings: arm: qcom,coresight-tnoc: allow the " Qianhui Xu
2026-11-27 11:31 ` [PATCH 2/2] arm64: dts: qcom: sm8750: describe the TNOC " Qianhui Xu
2026-11-27 13:23 ` [PATCH 0/2] " Qianhui Xu
2026-11-30 1:39 ` Jie Gan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®