Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Shawn Guo" <shengchao.guo@oss.qualcomm.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 1/4] arm64: dts: qcom: Add device tree for Nord SoC series
Date: Tue, 07 Jul 2026 12:54:49 +0000	[thread overview]
Message-ID: <20260707125449.F12591F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260707123902.3868016-2-shengchao.guo@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
- [High] All thermal zones incorrectly configure their highest trip point as 'passive' instead of 'critical'.
- [High] The QUPv3 wrapper nodes (`qupv3_0`, `qupv3_1`, `qupv3_2`) and their child serial engines are missing the mandatory `clocks` and `clock-names` properties.
- [Medium] The QUPv3 wrapper nodes lack the `dma-coherent;` property despite operating behind DMA-coherent SMMUs.
--

--- Patch [1]: [PATCH v4 1/4] arm64: dts: qcom: Add device tree for Nord SoC series ---
commit 5f24b1554bc5bc9f0d13a6a874f148ee166082f5
Author: Shawn Guo <shengchao.guo@oss.qualcomm.com>
Subject: arm64: dts: qcom: Add device tree for Nord SoC series

This commit adds the base device tree include for the Qualcomm Nord SoC
series. It describes core hardware components like CPUs, interrupt
controllers, GPIO, thermal sensors, memory mappings, and QUP blocks.

> diff --git a/arch/arm64/boot/dts/qcom/nord.dtsi b/arch/arm64/boot/dts/qcom/nord.dtsi
> new file mode 100644
> --- /dev/null
> +++ b/arch/arm64/boot/dts/qcom/nord.dtsi
[ ... ]
> +	soc: soc@0 {
> +		compatible = "simple-bus";
> +		#address-cells = <2>;
> +		#size-cells = <2>;
> +		dma-ranges = <0 0 0 0 0x10 0>;
> +		ranges = <0 0 0 0 0x10 0>;
> +
> +		qupv3_2: geniqup@8c0000 {
> +			compatible = "qcom,geni-se-qup";
> +			reg = <0x0 0x008c0000 0x0 0x2000>;
> +			#address-cells = <2>;
> +			#size-cells = <2>;
> +			iommus = <&apps_smmu_0 0x15a3 0x0>;
> +			ranges;

[Severity: High]
Are these QUPv3 wrapper nodes (and their child serial engines) missing
the mandatory clocks and clock-names properties?

The qcom,geni-se-qup compatible string instructs the driver to request
two clocks (m-ahb and s-ahb). Because these properties are omitted, the
probe function will fail immediately with -ENOENT when validating the
clock count, leaving the QUP wrappers and all their child serial engines
unusable.

[Severity: Medium]
Should this node also include the dma-coherent property?

The apps_smmu_0, apps_smmu_1, and apps_smmu_2 IOMMUs are explicitly
marked as dma-coherent. However, because the parent soc node does not
declare dma-coherent, the QUP wrappers must explicitly define it so that
child serial engines inherit the coherency property.

Omitting it causes the DMA API to fall back to non-coherent mappings,
leading to unnecessary CPU cache maintenance operations on every DMA
transfer.

> +
> +			i2c14: i2c@880000 {
[ ... ]
> +	thermal_zones: thermal-zones {
> +		ddr-0-0-thermal {
> +			polling-delay-passive = <0>;
> +			polling-delay = <0>;
> +			thermal-sensors = <&tsens0 0>;
> +
> +			trips {
> +				trip-point0 {
> +					temperature = <105000>;
> +					hysteresis = <10000>;
> +					type = "passive";
> +				};
> +
> +				trip-point1 {
> +					temperature = <115000>;
> +					hysteresis = <10000>;
> +					type = "passive";
> +				};

[Severity: High]
Is the highest trip point intentionally configured as passive instead
of critical here and across the other thermal zones?

When the hardware reaches high temperature thresholds like 115C or 125C,
having the type set to passive means the Linux thermal core will only
attempt passive cooling (throttling) and will not initiate an emergency
shutdown.

Without a critical trip point, temperatures could continue to rise until
the hardware's protection circuit forcibly cuts power, which can lead to
data corruption or permanent hardware damage.

> +			};

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260707123902.3868016-1-shengchao.guo@oss.qualcomm.com?part=1

  reply	other threads:[~2026-07-07 12:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07 12:38 [PATCH v4 0/4] Add initial device trees for Nord SA8797P Shawn Guo
2026-07-07 12:38 ` [PATCH v4 1/4] arm64: dts: qcom: Add device tree for Nord SoC series Shawn Guo
2026-07-07 12:54   ` sashiko-bot [this message]
2026-07-07 12:39 ` [PATCH v4 2/4] arm64: dts: qcom: Add device tree for Nord SA8797P SoC Shawn Guo
2026-07-07 12:49   ` sashiko-bot
2026-07-07 12:39 ` [PATCH v4 3/4] dt-bindings: arm: qcom: Document SA8797P Ride board Shawn Guo
2026-07-07 12:39 ` [PATCH v4 4/4] arm64: dts: qcom: Add device tree for " Shawn Guo
2026-07-07 12:50   ` sashiko-bot
2026-07-07 13:45 ` [PATCH v4 0/4] Add initial device trees for Nord SA8797P Shawn Guo

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=20260707125449.F12591F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=shengchao.guo@oss.qualcomm.com \
    /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