* [PATCH v2] arm64: dts: qcom: shikra: Raise CPU critical trips
@ 2026-10-25 8:03 Gaurav Kohli
2026-12-04 15:37 ` Gaurav Kohli
2026-12-04 19:08 ` Bjorn Andersson
0 siblings, 2 replies; 4+ messages in thread
From: Gaurav Kohli @ 2026-10-25 8:03 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel, Gaurav Kohli
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.
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. Leave the hot trips,
non-CPU critical trips and GPUSS passive cooling map unchanged.
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>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] arm64: dts: qcom: shikra: Raise CPU critical trips
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
1 sibling, 0 replies; 4+ messages in thread
From: Gaurav Kohli @ 2026-12-04 15:37 UTC (permalink / raw)
To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
Krzysztof Kozlowski, Conor Dooley
Cc: linux-arm-msm, devicetree, linux-kernel
On 10/25/2026 1:33 PM, 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.
>
> 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. Leave the hot trips,
> non-CPU critical trips and GPUSS passive cooling map unchanged.
>
> 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
>
Gentle reminder for this change.
> Best regards,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] arm64: dts: qcom: shikra: Raise CPU critical trips
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
2026-12-05 6:51 ` Gaurav Kohli
1 sibling, 1 reply; 4+ messages in thread
From: Bjorn Andersson @ 2026-12-04 19:08 UTC (permalink / raw)
To: Gaurav Kohli
Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel
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>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] arm64: dts: qcom: shikra: Raise CPU critical trips
2026-12-04 19:08 ` Bjorn Andersson
@ 2026-12-05 6:51 ` Gaurav Kohli
0 siblings, 0 replies; 4+ messages in thread
From: Gaurav Kohli @ 2026-12-05 6:51 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Konrad Dybcio, Abel Vesa, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, linux-arm-msm, devicetree, linux-kernel
On 12/5/2026 12:38 AM, Bjorn Andersson wrote:
> 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?
will drop this.
>
>
> 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 for review, will send the new version.
>
> 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>
>>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-12-05 6:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-12-05 6:51 ` Gaurav Kohli
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.