All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Jie Gan" <jie.gan@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] arm64: dts: qcom: eliza: Add CoreSight debug nodes
Date: Tue, 24 Nov 2026 09:56:30 +0000	[thread overview]
Message-ID: <sashiko-outbox-230893@kernel.org> (raw)
In-Reply-To: <20261124-add-coresight-nodes-for-eliza-v1-2-e1679ce78547@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] arm64: dts: qcom: eliza: missing element-bits on static TPDM
  nodes
- [Low] arm64: dts: qcom: eliza: wpss-replicator port@2 violates DT
  binding schema
--

commit 54f1938fd654d770e58cbcb66d2760184479af8c
Author: Jie Gan <jie.gan@oss.qualcomm.com>

arm64: dts: qcom: eliza: Add CoreSight debug nodes

This commit adds Devicetree nodes for the CoreSight debug and trace
subsystem on the Qualcomm Eliza SoC.

> diff --git a/arch/arm64/boot/dts/qcom/eliza.dtsi b/arch/arm64/boot/dts/qcom/eliza.dtsi
> index 4a125ef386c02..7bf58daace9c9 100644
> --- a/arch/arm64/boot/dts/qcom/eliza.dtsi
> +++ b/arch/arm64/boot/dts/qcom/eliza.dtsi

[ ... ]

> @@ -5430,4 +7484,127 @@ timer {
>  			     <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
>  			     <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
>  	};
> +
> +	tpdm-ddr-lpicc {
> +		compatible = "arm,coresight-dummy-source";
> +		label = "tpdm_ddr_lpicc";
> +
> +		out-ports {
> +			port {
> +				tpdm_ddr_lpicc_out: endpoint {
> +					remote-endpoint = <&funnel_aoss_in3>;
> +				};
> +			};
> +		};
> +	};
> +
> +	tpdm-lpass-lpi {
> +		compatible = "arm,coresight-dummy-source";
> +		label = "tpdm_lpass_lpi";
> +
> +		out-ports {
> +			port {
> +				tpdm_lpass_lpi_out: endpoint {
> +					remote-endpoint = <&funnel_lpass_lpi_1_in1>;
> +				};
> +			};
> +		};
> +	};
> +
> +	tpdm-lpass-rscc {
> +		compatible = "arm,coresight-dummy-source";
> +		label = "tpdm_lpass_rscc";
> +
> +		out-ports {
> +			port {
> +				tpdm_lpass_rscc_out: endpoint {
> +					remote-endpoint = <&funnel_lpass_lpi_1_in4>;
> +				};
> +			};
> +		};
> +	};
> +
> +	tpdm-modem-rscc {
> +		compatible = "qcom,coresight-static-tpdm";
> +		label = "tpdm_modem_rscc";
> +
> +		out-ports {
> +			port {
> +				tpdm_modem_rscc_out: endpoint {
> +					remote-endpoint = <&tpda_modem_crm_in0>;
> +				};
> +			};
> +		};
> +	};
> +
> +	tpdm-modem1 {
> +		compatible = "qcom,coresight-static-tpdm";
> +		label = "tpdm_modem_1";
> +
> +		out-ports {
> +			port {
> +				tpdm_modem_1_out: endpoint {
> +					remote-endpoint = <&tpda_modem_in1>;
> +				};
> +			};
> +		};
> +	};

[Severity: Medium]
Should tpdm-modem-rscc and tpdm-modem1 specify qcom,dsb-element-bits or
qcom,cmb-element-bits?

In static_tpdm_datasets_setup(), drvdata->dsb and drvdata->cmb are only
allocated when the corresponding element-bits property is present.  Without
either property, enabling a trace path through their connected TPDAs
(tpda@1080e000 and tpda@10803000) fails with -EINVAL in tpda_enable_port()
-> tpda_get_element_size() -> tpdm_read_element_size().

> +
> +	wpss_etm0: wpss-etm0 {
> +		compatible = "arm,coresight-dummy-source";
> +		label = "wpss_etm0";
> +		arm,static-trace-id = <44>;
> +
> +		out-ports {
> +			port {
> +				wpss_etm0_out: endpoint {
> +					remote-endpoint = <&funnel_wpss_in2>;
> +				};
> +			};
> +		};
> +	};
> +
> +	wpss-replicator {
> +		compatible = "arm,coresight-static-replicator";
> +
> +		in-ports {
> +			port {
> +				rep_wpss_in: endpoint {
> +					remote-endpoint = <&funnel_wpss_out>;
> +				};
> +			};
> +		};
> +
> +		out-ports {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +
> +			port@0 {
> +				reg = <0>;
> +
> +				rep_wpss_out0: endpoint {
> +					remote-endpoint = <&tpda_dlct_in5>;
> +					filter-source = <&tpdm_wpss_dsb>;
> +				};
> +			};
> +
> +			port@1 {
> +				reg = <1>;
> +
> +				rep_wpss_out1: endpoint {
> +					remote-endpoint = <&tpda_dlct_in6>;
> +					filter-source = <&tpdm_wpss_cmb>;
> +				};
> +			};
> +
> +			port@2 {
> +				reg = <2>;
> +
> +				rep_wpss_out2: endpoint {
> +					remote-endpoint = <&funnel_dlct_in4>;
> +					filter-source = <&wpss_etm0>;
> +				};
> +			};
> +		};
> +	};

[Severity: Low]
Does port@2 in wpss-replicator pass dtbs_check?

Documentation/devicetree/bindings/arm/arm,coresight-static-replicator.yaml
only matches '^port@[01]$' under out-ports for endpoints that carry
filter-source, so port@2 falls back to the base graph schema where
unevaluatedProperties: false rejects filter-source.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-add-coresight-nodes-for-eliza-v1-0-e1679ce78547@oss.qualcomm.com?part=2

  reply	other threads:[~2026-11-24  9:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24  9:39 [PATCH 0/2] Add coresight nodes for the QCOM Eliza SoC Jie Gan
2026-11-24  9:39 ` [PATCH 1/2] dt-bindings: arm: qcom,coresight-ctcu: Add Eliza Jie Gan
2026-11-24  9:39 ` [PATCH 2/2] arm64: dts: qcom: eliza: Add CoreSight debug nodes Jie Gan
2026-11-24  9:56   ` sashiko-bot [this message]
2026-11-24 10:10     ` Jie Gan
2026-11-24 10:33     ` Jie Gan

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=sashiko-outbox-230893@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.