Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Varadarajan Narayanan" <varadarajan.narayanan@oss.qualcomm.com>
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v4 1/3] arm64: dts: qcom: ipq5210: Add nodes for multiple peripherals
Date: Fri, 24 Jul 2026 10:11:30 +0000	[thread overview]
Message-ID: <20260724101131.62DA51F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260724-08-dts-v4-1-65e61a1061f0@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] The `cpu1-thermal` zone defines a `cpu-passive` trip point but lacks a `cooling-maps` block to enforce CPU throttling.
- [Low] The `cpu0-thermal` cooling maps use `THERMAL_NO_LIMIT` bounds, which contradicts the stated intention to cap the frequency at 816 MHz.
--

--- Patch [1]: [PATCH v4 1/3] arm64: dts: qcom: ipq5210: Add nodes for multiple peripherals ---
commit 1a65f86590b0031ce931c8fec8d83a0167f7d018
Author: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com>

arm64: dts: qcom: ipq5210: Add nodes for multiple peripherals
    
Describe common IPQ5210 SoC peripherals in the base DTSI so board DTS files
can enable the hardware they use. Add nodes for USB, PCIe, QPIC NAND/BAM,
QFPROM, TSENS and thermal zones. This also describes the CPU OPP table and
CPU cooling cells needed for frequency scaling and thermal throttling.

> diff --git a/arch/arm64/boot/dts/qcom/ipq5210.dtsi b/arch/arm64/boot/dts/qcom/ipq5210.dtsi
> index 2cdc10529c489..2e6f99d894aba 100644
> --- a/arch/arm64/boot/dts/qcom/ipq5210.dtsi
> +++ b/arch/arm64/boot/dts/qcom/ipq5210.dtsi

[ ... ]

> @@ -306,6 +618,287 @@ frame@b128000 {

[ ... ]

> +		cpu0-thermal {
> +			thermal-sensors = <&tsens 14>;
> +
> +			trips {
> +				cpu-critical {
> +					temperature = <120000>;
> +					hysteresis = <9000>;
> +					type = "critical";
> +				};
> +
> +				cpu0_thermal_alert: cpu-passive {
> +					temperature = <110000>;
> +					hysteresis = <9000>;
> +					type = "passive";
> +				};
> +			};
> +
> +			cooling-maps {
> +				map0 {
> +					trip = <&cpu0_thermal_alert>;
> +					/* Set maximum frequency as 816 MHz */
> +					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,

[Severity: Low]
This isn't a bug, but does THERMAL_NO_LIMIT match the comment about setting
the maximum frequency to 816 MHz?

Passing THERMAL_NO_LIMIT simply delegates the entire range of cooling states
to the thermal governor rather than applying a hard upper frequency limit.

If the intention is to clamp the frequency to 816 MHz, should explicit cooling
states be used?

> +							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
> +							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
> +							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
> +				};
> +			};
> +		};
> +
> +		cpu1-thermal {
> +			thermal-sensors = <&tsens 15>;
> +
> +			trips {
> +				cpu-critical {
> +					temperature = <120000>;
> +					hysteresis = <9000>;
> +					type = "critical";
> +				};
> +
> +				cpu-passive {
> +					temperature = <110000>;
> +					hysteresis = <9000>;
> +					type = "passive";
> +				};
> +			};
> +		};

[Severity: High]
Is a cooling-maps block missing for this thermal zone?

The cpu1-thermal zone defines a passive trip point but lacks a cooling-maps
section to enforce CPU throttling.

If CPU1's thermal sensor detects a temperature exceeding 110C independent of
CPU0, won't it exceed the passive threshold unmitigated until it reaches the
120C critical trip, causing an abrupt hardware thermal shutdown?

>  	};
>  
>  	timer {

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260724-08-dts-v4-0-65e61a1061f0@oss.qualcomm.com?part=1

  reply	other threads:[~2026-07-24 10:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-24  9:54 [PATCH v4 0/3] Enable mutliple peripherals in IPQ5210 Varadarajan Narayanan
2026-07-24  9:54 ` [PATCH v4 1/3] arm64: dts: qcom: ipq5210: Add nodes for multiple peripherals Varadarajan Narayanan
2026-07-24 10:11   ` sashiko-bot [this message]
2026-07-24  9:54 ` [PATCH v4 2/3] arm64: dts: qcom: ipq5210: Introduce RDP504 common DT file Varadarajan Narayanan
2026-07-24 10:19   ` sashiko-bot
2026-07-24  9:54 ` [PATCH v4 3/3] arm64: dts: qcom: ipq5210: Introduce RDP504 variant specific " Varadarajan Narayanan
2026-07-24 10:24   ` sashiko-bot

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=20260724101131.62DA51F00A3A@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=varadarajan.narayanan@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