Devicetree
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: dts: qcom: msm8937: Fix CPU4 thermal trip point type
@ 2026-11-06 17:37 Krzysztof Kozlowski
  2026-11-06 17:37 ` [PATCH 2/2] arm64: dts: qcom: sm8150: Drop non-existing enable-gpio in PCI Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-06 17:37 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Barnabás Czémán,
	Dang Huynh, Dmitry Baryshkov, linux-arm-msm, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski, Sashiko, stable

CPU4 thermal zone, unlike the rest CPU5-7, has reversed types for
75 and 85 *C trips: the "passive", not "hot" should be used for alert
triggering cooling device.  Wrong types could cause missing thermal
throttling of CPU4.

Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/bug/linux-3ae74c01-648b-445f-9a65-114b2d3b2ac6
Fixes: a829f6f2e8a7 ("arm64: dts: qcom: Add initial support for MSM8937")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/msm8937.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/msm8937.dtsi b/arch/arm64/boot/dts/qcom/msm8937.dtsi
index 7de6447de48f..6729b39c3f2e 100644
--- a/arch/arm64/boot/dts/qcom/msm8937.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8937.dtsi
@@ -1942,13 +1942,13 @@ trips {
 				cpu4_alert0: trip-point0 {
 					temperature = <75000>;
 					hysteresis = <2000>;
-					type = "passive";
+					type = "hot";
 				};
 
 				cpu4_alert1: trip-point1 {
 					temperature = <85000>;
 					hysteresis = <2000>;
-					type = "hot";
+					type = "passive";
 				};
 
 				cpu4_crit: cpu-crit {
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] arm64: dts: qcom: sm8150: Drop non-existing enable-gpio in PCI
  2026-11-06 17:37 [PATCH 1/2] arm64: dts: qcom: msm8937: Fix CPU4 thermal trip point type Krzysztof Kozlowski
@ 2026-11-06 17:37 ` Krzysztof Kozlowski
  2026-11-06 17:52   ` sashiko-bot
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-06 17:37 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Abel Vesa, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Barnabás Czémán,
	Dang Huynh, Dmitry Baryshkov, linux-arm-msm, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski

Qualcomm PCI bindings do not allow enable-gpio.  Linux drivers do not
use it, either.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/sm8150.dtsi | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi
index 293fcbacff34..e62a3005134f 100644
--- a/arch/arm64/boot/dts/qcom/sm8150.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi
@@ -2019,8 +2019,6 @@ pcie1: pcie@1c08000 {
 
 			power-domains = <&gcc PCIE_1_GDSC>;
 
-			enable-gpio = <&tlmm 104 GPIO_ACTIVE_HIGH>;
-
 			pinctrl-names = "default";
 			pinctrl-0 = <&pcie1_default_state>;
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/2] arm64: dts: qcom: sm8150: Drop non-existing enable-gpio in PCI
  2026-11-06 17:37 ` [PATCH 2/2] arm64: dts: qcom: sm8150: Drop non-existing enable-gpio in PCI Krzysztof Kozlowski
@ 2026-11-06 17:52   ` sashiko-bot
  0 siblings, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-11-06 17:52 UTC (permalink / raw)
  To: Krzysztof Kozlowski, devicetree; +Cc: robh, conor+dt

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] arm64: dts: qcom: sm8150: pcie1 enable-gpio dropped instead
  of wake-gpios
- [Low] arm64: dts: qcom: sm8150: missing Fixes trailer for commit
  a1c86c680533
It also noticed 1 related pre-existing issue this patch does not
introduce:
- [High] arm64: dts: qcom: sm8150: incorrect PCIe PERST# GPIO polarity
  [1]
--

commit 665cb84da938cddddc3913668cfa84f9461af819
Author: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

> arm64: dts: qcom: sm8150: Drop non-existing enable-gpio in PCI
>
> Qualcomm PCI bindings do not allow enable-gpio.  Linux drivers do not
> use it, either.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

[Severity: Low]
Should this include a Fixes: tag for the commit that introduced the invalid
enable-gpio property on pcie1:

  Fixes: a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes")

> diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi
> index 293fcbacff346..e62a3005134f9 100644
> --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi
> @@ -2019,8 +2019,6 @@ pcie1: pcie@1c08000 {
>  
>  			power-domains = <&gcc PCIE_1_GDSC>;
>  
> -			enable-gpio = <&tlmm 104 GPIO_ACTIVE_HIGH>;
> -
>  			pinctrl-names = "default";
>  			pinctrl-0 = <&pcie1_default_state>;
>  

[Severity: Medium]
Should gpio104 be moved into the pcie@0 root port child node as
wake-gpios = <&tlmm 104 GPIO_ACTIVE_LOW> instead of being dropped?

Commit a1c86c680533 ("arm64: dts: qcom: sm8150: Add PCIe nodes") added both
pcie0 and pcie1 with misnamed enable-gpio properties for their WAKE# pins,
and pcie1_default_state still configures gpio104 under wake-pins.  On pcie0,
commits 7c38989d0f7a ("arm64: dts: qcom: sm8150: correct PCIe wake-gpios"),
463d931d6a66 ("arm64: dts: qcom: sm8150: Fix PCIe WAKE# GPIO polarity"), and
9e753907e6ba ("arm64: dts: qcom: sm8150: Move PCIe phy and GPIOs to root port
node") converted and moved gpio37 into pcie0's pcie@0 child node, but missed
pcie1 because its property was still named enable-gpio.  Dropping gpio104
leaves pcie1 without wake-gpios and prevents pci_configure_of_wake_gpio()
from configuring PCIe WAKE# wakeup on pcie1.

[Severity: High]
This problem wasn't introduced by this patch, but the PCIe PERST# GPIOs in
pcie0 and pcie1 (reset-gpios = <&tlmm 35 GPIO_ACTIVE_HIGH> and
reset-gpios = <&tlmm 102 GPIO_ACTIVE_HIGH>) are configured with inverted
polarity [1].

PERST# is an active-low signal.  When qcom_ep_reset_deassert() sets the
logical GPIO value to 0 to release the endpoint from reset, GPIO_ACTIVE_HIGH
causes gpiolib to drive the physical pin low, asserting PERST# and holding
connected PCIe endpoints in reset.

[1] https://sashiko.dev/#/bug/linux-9970a06f-8202-465a-86f2-3c66f7fd39f4

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261106173719.276668-3-krzysztof.kozlowski@oss.qualcomm.com?part=2

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-06 17:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-06 17:37 [PATCH 1/2] arm64: dts: qcom: msm8937: Fix CPU4 thermal trip point type Krzysztof Kozlowski
2026-11-06 17:37 ` [PATCH 2/2] arm64: dts: qcom: sm8150: Drop non-existing enable-gpio in PCI Krzysztof Kozlowski
2026-11-06 17:52   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox