Devicetree
 help / color / mirror / Atom feed
From: Bjorn Andersson <andersson@kernel.org>
To: Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
Cc: Konrad Dybcio <konradybcio@kernel.org>,
	 Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
	 Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	 linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] arm64: dts: qcom: shikra: Raise CPU critical trips
Date: Fri, 4 Dec 2026 13:08:53 -0600	[thread overview]
Message-ID: <axMOU6o6cRmIISqZ@zenbook> (raw)
In-Reply-To: <20261025-shikra_crit_trip-v2-1-79e429cb9350@oss.qualcomm.com>

On Sun, Oct 25, 2026 at 01:33:05PM +0530, Gaurav Kohli wrote:
> Shikra firmware starts CPU thermal mitigation at 115 C and also
> handles the 117 C threshold, while hardware shutdown is at 120 C. A
> Linux critical trip at 115 C overlaps the beginning of firmware
> mitigation and can shut the system down before firmware has had a
> chance to complete its thermal sequence.
> 

"One of the 67 different firmware images in Shikra performs thermal
mitigation at 115C, if we configure the kernel to shut down at the same
temperature, the firmware will be sad. Change it a bit so that we can
all be happy."

> Raise the CPU and CPUSS critical trips to 118 C instead. This keeps a
> Linux graceful shutdown path before the hardware cutoff while allowing
> the firmware mitigation range to run first.

I would expect that we put this at 118C because the design says so, not
because it's a random value between "the one that makes firmware happy"
and the hardware cutoff.

> Leave the hot trips, non-CPU critical trips and GPUSS passive cooling
> map unchanged.
> 

Why? How the hot trips relate to the problem that you're describing
above?


Please describe the problem in terms of how thermal mitigation is
expected to work across firmware, Linux, and hardware - not in terms of
"let's move numbers around so they don't overlap".

Thanks,
Bjorn

> Signed-off-by: Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
> ---
> Changes in v2:
> - Move critical support at 118. (Abel)
> - Link to v1: https://lore.kernel.org/r/20260924-shikra_crit_trip-v1-1-730c48fa998e@oss.qualcomm.com
> ---
>  arch/arm64/boot/dts/qcom/shikra.dtsi | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
> index c1f06f692f66..c4e1b78e2673 100644
> --- a/arch/arm64/boot/dts/qcom/shikra.dtsi
> +++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
> @@ -3756,7 +3756,7 @@ trip-point0 {
>  				};
>  
>  				cpu00-critical {
> -					temperature = <115000>;
> +					temperature = <118000>;
>  					hysteresis = <0>;
>  					type = "critical";
>  				};
> @@ -3774,7 +3774,7 @@ trip-point0 {
>  				};
>  
>  				cpu01-critical {
> -					temperature = <115000>;
> +					temperature = <118000>;
>  					hysteresis = <0>;
>  					type = "critical";
>  				};
> @@ -3792,7 +3792,7 @@ trip-point0 {
>  				};
>  
>  				cpu10-critical {
> -					temperature = <115000>;
> +					temperature = <118000>;
>  					hysteresis = <0>;
>  					type = "critical";
>  				};
> @@ -3810,7 +3810,7 @@ trip-point0 {
>  				};
>  
>  				cpu11-critical {
> -					temperature = <115000>;
> +					temperature = <118000>;
>  					hysteresis = <0>;
>  					type = "critical";
>  				};
> @@ -3828,7 +3828,7 @@ trip-point0 {
>  				};
>  
>  				cpuss0-critical {
> -					temperature = <115000>;
> +					temperature = <118000>;
>  					hysteresis = <0>;
>  					type = "critical";
>  				};
> @@ -3968,7 +3968,7 @@ trip-point0 {
>  				};
>  
>  				cpu02-critical {
> -					temperature = <115000>;
> +					temperature = <118000>;
>  					hysteresis = <0>;
>  					type = "critical";
>  				};
> @@ -3986,7 +3986,7 @@ trip-point0 {
>  				};
>  
>  				cpuss1-critical {
> -					temperature = <115000>;
> +					temperature = <118000>;
>  					hysteresis = <0>;
>  					type = "critical";
>  				};
> 
> ---
> base-commit: 3d7783543c2646af69ad65825e810060494bea21
> change-id: 20260924-shikra_crit_trip-7a11bbb66b71
> 
> Best regards,
> -- 
> Gaurav Kohli <gaurav.kohli@oss.qualcomm.com>
> 

      parent reply	other threads:[~2026-12-04 19:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-25  8:03 [PATCH v2] arm64: dts: qcom: shikra: Raise CPU critical trips Gaurav Kohli
2026-12-04 15:37 ` Gaurav Kohli
2026-12-04 19:08 ` Bjorn Andersson [this message]

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=axMOU6o6cRmIISqZ@zenbook \
    --to=andersson@kernel.org \
    --cc=abelvesa@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gaurav.kohli@oss.qualcomm.com \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    /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