From nobody Fri Dec 19 05:01:40 2025 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F80D1DE4F1 for ; Wed, 19 Feb 2025 11:36:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739965014; cv=none; b=CHeJbHaKFk632tEpIIJgAWPYLnxBrR/V7jmJyD6MtbYpXFg0iztrkfyoOjs8LURciTkianeuiObBnwZfivgOReTJstmB3BP7n1tL9+ptMhNJe0wxhbihNst4XVn7oIydzvuERgSJZB/hN7yjxH3WxYzhqNKIo20/HKFs/ShW5QI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739965014; c=relaxed/simple; bh=3H69X3Cqj2JbC59hSmaYbJvrvfm7od4X1ekR5TALqp8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HiZWjzKVVQ9S3TNxNKuk6unhbh7jbtvkQoVZOVssj0Q42I82sTygTKnK3IV1fXXf71DLLyBxt+ux2eTnv2oKyt+pfdbDzmB1T+xbNojBGyKN5RWYTcM1859O7GmRmTxbgKb5JH0XeUiEvz/hEX0+U+5uSa93txZSiaUTWZeclwU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=V+J8iX7Q; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="V+J8iX7Q" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-436ce2ab251so45306925e9.1 for ; Wed, 19 Feb 2025 03:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739965011; x=1740569811; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ueWur+NN/gkMnNOeqW0FEJmxaSPUKRn8QUh96pYaGz4=; b=V+J8iX7QZLwH0YkXfbzbrUUBQJ4e5VhNgw7gYbEn/VZIgTTP0Htff234eXbOtYg3Fn YW/B0DTFyAlOfd1F1dlk27rmiTrqQYaFuI1WRnkFrxDij7OBsF0oCvJVZTRCy6u4PyoN mr6VYXIvrujmqOVwV6U1YR9YJnTAIg0GfFY8orSlhg2nRuA1sgJvRDeAzuzG/bdTsnJv XiH8ZTRk1RSa6ONhH+Jwojq+MD76rj3uKR86uu5sbovvRDvTpaOEah35FqR3kgCTwEI7 KYuPqxqAJETM98lPhwotBQiJY3lJdLNJnV5qLePJOhNwhtUe2LzYjUsU+Of0Px/B7ieo Jzog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739965011; x=1740569811; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ueWur+NN/gkMnNOeqW0FEJmxaSPUKRn8QUh96pYaGz4=; b=PT0W/xh5+dNaBj27os98voS13s+T2N2CGlqHSznJ8udvQEk2hMtrtvVZfSKOCzqGLC 4g3ZhtOjh2U2N0jR/x+DNdnntApR07s/AZYzk9zBmbPavRZEpVHiSqylQRqTD2COQmGI VA/6y5OaOWJK62Yf3GaV6CsqJ8lCHbuWAo/4bin6gt0rVH9/BF+llENNzvFF/OH6j/7R Ywk0cyFQb+PXRUyC9bG4mHnLNQwaShafOWh7PdEzfCKeNjGHkjxR1f1vnA78eQXW0a+D 3UJNWYtv5AnX1nlgHNccLoPnz8kxHlAa9slYXYu2ftb+nXWQ/6paOIumxJpPAVtrO2XC Fqjw== X-Forwarded-Encrypted: i=1; AJvYcCVZ1hudqAtqZvKQXtRrlErqCXLsfGf8YhIfu3LHvbNLcij5/c34LKmIUL5QOYihZx2GIVUew1E2p0sj5v0=@vger.kernel.org X-Gm-Message-State: AOJu0Yz/yEjjaMQ1dm1LRsLHCRTrH9wz2QMv+U6P1Y/fLPWYwO0Pe1NL GaoUzkzaTEhwtXCpVWo2vC6l9AKfWXrxnMdyQrgYP+g9VnUDWoCnflsjhTBGehY= X-Gm-Gg: ASbGncuu/7T0f2jkfWuEd7JVyLgrKbOKesBb0mvmcb7P/1YGgegXKhJyeFcq8mh/h64 gD3oesFy407Hu3iJwM1khQhYVw5iY2NTSvdnT4G3rUVCEbp+YJ1Cy3mMI8n8s3biim+j9hHCqFA zO7Ut3Pzqh7B1i8uScJtNoQU5S5sTOB5iL0KTyhladkxo23nNWPD1YpYA6/fyMAiNAolWMbfokX I+vbrUYf4yWtTxV27ZmPbj9sBKssoRz5YvdWjyqeMO1cFhWj/57TLXXkdCnbEytGhcxVbN/7G/K Z408VoGRLOD8/zhFZfmHQKxlR5++hQ== X-Google-Smtp-Source: AGHT+IHj7r3NGsZDWby/4EjvSUDybeVrnPg+FYZgiGNi+BxmxRTlu3icH2awOt0iOOQQCiKEmobYIw== X-Received: by 2002:a05:6000:188c:b0:38f:2ffc:1e99 with SMTP id ffacd0b85a97d-38f33f51346mr15874258f8f.49.1739965010576; Wed, 19 Feb 2025 03:36:50 -0800 (PST) Received: from [127.0.0.2] ([2a02:2454:ff21:ef41:8630:e1af:c2ac:8a22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4399600257asm42437905e9.4.2025.02.19.03.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2025 03:36:50 -0800 (PST) From: Stephan Gerhold Date: Wed, 19 Feb 2025 12:36:18 +0100 Subject: [PATCH 1/4] arm64: dts: qcom: x1e80100: Fix video thermal zone Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250219-x1e80100-thermal-fixes-v1-1-d110e44ac3f9@linaro.org> References: <20250219-x1e80100-thermal-fixes-v1-0-d110e44ac3f9@linaro.org> In-Reply-To: <20250219-x1e80100-thermal-fixes-v1-0-d110e44ac3f9@linaro.org> To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Rajendra Nayak , Akhil P Oommen , Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.2 A passive trip point at 125=C2=B0C is pretty high, this is usually the temperature for the critical shutdown trip point. Also, we don't have any passive cooling devices attached to the video thermal zone. Change this to be a critical trip point, and add a "hot" trip point at 90=C2=B0C for consistency with the other thermal zones. Cc: stable@vger.kernel.org Fixes: 4e915987ff5b ("arm64: dts: qcom: x1e80100: Enable tsens and thermal = zone nodes") Signed-off-by: Stephan Gerhold Reviewed-by: Johan Hovold Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/q= com/x1e80100.dtsi index 9d38436763432892ceef95daf0335d4cf446357c..e349cbf6a2665695b5cc961cf9d= 53e7182e68e7f 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -8727,15 +8727,19 @@ mem-critical { }; =20 video-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens0 12>; =20 trips { trip-point0 { + temperature =3D <90000>; + hysteresis =3D <2000>; + type =3D "hot"; + }; + + video-critical { temperature =3D <125000>; hysteresis =3D <1000>; - type =3D "passive"; + type =3D "critical"; }; }; }; --=20 2.47.2 From nobody Fri Dec 19 05:01:40 2025 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 692051DEFE5 for ; Wed, 19 Feb 2025 11:36:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739965016; cv=none; b=HU+iqcjuSJwLfusbHeVB9t6gfPsfg1I1vZT1xai5fumlq2oSl62jqUFSCpzYMWzx+u+r9+NeTt4xC9IaP9jR8RCiaVmpRWfa1wkV2p2UWKrSfVM904yyeG3tr+JRWPOiGkQM2L4n6QFD3k8H6YwN0bjYR+L3W5jD0Hep+9HTaQg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739965016; c=relaxed/simple; bh=33cm5WS/G6VY/dc2qmZDX/V+SsLvyzcbRcvB37CSYbI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Qu4AS9ZCowG6WvMJxsPCB88tIlm5CvlNy4WXLvbCIADTglV+5xsT4fDoSEg/vG9TbSzOrRmjPnzsTJaRcOvIYBoaXJvuPyp1XPlI7d4c8lUr+xdkqTQ57giXgkAYBJkAlZM+Fkd8VPhgqNK6miAwF+qahpd8W4Dn6lR/B61c4i8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ic7iNTZl; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ic7iNTZl" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-38f1e8efe82so7269799f8f.0 for ; Wed, 19 Feb 2025 03:36:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739965012; x=1740569812; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=0iGD8NL6kmMwxzaeqi64LDKuVZAOMW+RBizn+/JXQY4=; b=ic7iNTZlRIWUQj7DT5lr/73OPfswNiw2hlScvnzEoGekUAZ9m2wM3hi2uIzeDA0krn lNVT+INT65JfTm5PIoyTewlkclRO6HTB+O49LchJcA5nihEOXhgG2SqCSVlmrcB2sli+ B7bcpaup8pFbv4OFAaG7BIowYvuzxD1C6fA+mCWYYyeSEqWv5TfoFvaWXn5+N30cAug8 WBcZaIQ0qEpoxL56HVXwcMCtZruo44HLDhomCmVCRHGu1KMAs83lyNvToutpkC7Pn6nN Xi/sbgVVNo0ebTY20WeN20LmlQbeqsQtmUyPqwNEZf9hw/gfyIWyef6GT9QwX+W2Z20m mm9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739965012; x=1740569812; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0iGD8NL6kmMwxzaeqi64LDKuVZAOMW+RBizn+/JXQY4=; b=ftyBociw1z4RTnd/2z6Ezi780dgdJg4u3fuszjZ3RViuSD0EwMpf1K6T1yztUDdAIi NPfL2WXGcNR6JBYkqfDUhbt3eq/XB1mBkcBKaXym2kN2DxZjkotTtbFRxDeym0DG97qK es7MN9p4ByMRDCOoIzsU5gKS2A8ayt++j3JE7JGt8Wdz1f/KLLtZI9X2nGCd1YwYwZr5 Kd9AH5Dha+V2GC/3b/3RbONznjf7501QGqqUwEl1wWYkFFf6wMyB4U0yJwivufysjloH TXJcL2zASXyC5P6ZecUk20Co6h2aWiTkrHR+xp0PlZKBPhYg70FtZI5iGFUza6Vq3vhU +7Lg== X-Forwarded-Encrypted: i=1; AJvYcCWPuyKRsVFBTGJScXpEyUVrCrvauOOdi9TlNbhP6QsBhKfjzTC4QTMuDahjwOLSos4+dI5j4FJEMaLPScQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyFN5MwBoXjEZeOgRGi/hRM/wx7OenwEPxx9IFjbt41L4Gyud8z vRfBRf2sX4+gLAWSYCkM9sYGRY2TGORcFEnDT7FQlSfGXMf3IvZKi7PXH0N1SEo= X-Gm-Gg: ASbGnctOWiX8i8rPOJpgCcWNmxYF0C0Rj4nTzLOjnbLsAG9KdN1qfGRgsznMJzgTjUt lD9CdPad/2I4Md1+Z1vECQJcwosJKVozMekdaiUfzicYLpY4nD2XlwFiGG7kAtpj4+hhqtM4ob+ CSdmLu3DypM3Js9vXy2Z0eavQkJecRMOX6F1y3xMd42Kk2pNTU2TV/WG3xAlZ/mss4CTAve5eUq GSD+bgYAg3BNw1yfuMzPdcEq7+S0QgJIr75aBqRn2POxfRAmb7m7Fzj5guS3yIROHPntk368n+Z azFcEA0MZw01Rd9N/3f5c9oeRipJyg== X-Google-Smtp-Source: AGHT+IGNMSOqjWnlyZLFvK6YmONGNDZANemlT7uaXrS7eZVPt8fRzXq+1z+qd/VxYr7IARiwT5KheA== X-Received: by 2002:a5d:5888:0:b0:38d:e33d:d0eb with SMTP id ffacd0b85a97d-38f33f125f7mr17169149f8f.9.1739965011565; Wed, 19 Feb 2025 03:36:51 -0800 (PST) Received: from [127.0.0.2] ([2a02:2454:ff21:ef41:8630:e1af:c2ac:8a22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4399600257asm42437905e9.4.2025.02.19.03.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2025 03:36:51 -0800 (PST) From: Stephan Gerhold Date: Wed, 19 Feb 2025 12:36:19 +0100 Subject: [PATCH 2/4] arm64: dts: qcom: x1e80100: Apply consistent critical thermal shutdown Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250219-x1e80100-thermal-fixes-v1-2-d110e44ac3f9@linaro.org> References: <20250219-x1e80100-thermal-fixes-v1-0-d110e44ac3f9@linaro.org> In-Reply-To: <20250219-x1e80100-thermal-fixes-v1-0-d110e44ac3f9@linaro.org> To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Rajendra Nayak , Akhil P Oommen , Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.2 The firmware configures the TSENS controller with a maximum temperature of 120=C2=B0C. When reaching that temperature, the hardware automatically trig= gers a reset of the entire platform. Some of the thermal zones in x1e80100.dtsi use a critical trip point of 125=C2=B0C. It's impossible to reach those. It's preferable to shut down the system cleanly before reaching the hardware trip point. Make the critical temperature trip points consistent by setting all of them to 115=C2=B0C and apply a consistent hysteresis. The ACPI tables also specify 115=C2=B0C as critical shutdown temperature. Cc: stable@vger.kernel.org Fixes: 4e915987ff5b ("arm64: dts: qcom: x1e80100: Enable tsens and thermal = zone nodes") Signed-off-by: Stephan Gerhold Reviewed-by: Johan Hovold Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 128 ++++++++++++++++-------------= ---- 1 file changed, 64 insertions(+), 64 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/q= com/x1e80100.dtsi index e349cbf6a2665695b5cc961cf9d53e7182e68e7f..9893fa8353f144e0ee723ab5312= cd95aadab041d 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -8457,8 +8457,8 @@ trip-point0 { }; =20 aoss0-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -8483,7 +8483,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8509,7 +8509,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8535,7 +8535,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8561,7 +8561,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8587,7 +8587,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8613,7 +8613,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8639,7 +8639,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8665,7 +8665,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8683,8 +8683,8 @@ trip-point0 { }; =20 cpuss2-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -8701,8 +8701,8 @@ trip-point0 { }; =20 cpuss2-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -8719,7 +8719,7 @@ trip-point0 { }; =20 mem-critical { - temperature =3D <125000>; + temperature =3D <115000>; hysteresis =3D <0>; type =3D "critical"; }; @@ -8737,7 +8737,7 @@ trip-point0 { }; =20 video-critical { - temperature =3D <125000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8755,8 +8755,8 @@ trip-point0 { }; =20 aoss0-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -8781,7 +8781,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8807,7 +8807,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8833,7 +8833,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8859,7 +8859,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8885,7 +8885,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8911,7 +8911,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8937,7 +8937,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8963,7 +8963,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -8981,8 +8981,8 @@ trip-point0 { }; =20 cpuss2-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -8999,8 +8999,8 @@ trip-point0 { }; =20 cpuss2-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -9017,8 +9017,8 @@ trip-point0 { }; =20 aoss0-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -9043,7 +9043,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9069,7 +9069,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9095,7 +9095,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9121,7 +9121,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9147,7 +9147,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9173,7 +9173,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9199,7 +9199,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9225,7 +9225,7 @@ trip-point1 { }; =20 cpu-critical { - temperature =3D <110000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9243,8 +9243,8 @@ trip-point0 { }; =20 cpuss2-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -9261,8 +9261,8 @@ trip-point0 { }; =20 cpuss2-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -9279,8 +9279,8 @@ trip-point0 { }; =20 aoss0-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -9297,8 +9297,8 @@ trip-point0 { }; =20 nsp0-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -9315,8 +9315,8 @@ trip-point0 { }; =20 nsp1-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -9333,8 +9333,8 @@ trip-point0 { }; =20 nsp2-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -9351,8 +9351,8 @@ trip-point0 { }; =20 nsp3-critical { - temperature =3D <125000>; - hysteresis =3D <0>; + temperature =3D <115000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -9377,7 +9377,7 @@ trip-point1 { }; =20 trip-point2 { - temperature =3D <125000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9403,7 +9403,7 @@ trip-point1 { }; =20 trip-point2 { - temperature =3D <125000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9429,7 +9429,7 @@ trip-point1 { }; =20 trip-point2 { - temperature =3D <125000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9455,7 +9455,7 @@ trip-point1 { }; =20 trip-point2 { - temperature =3D <125000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9481,7 +9481,7 @@ trip-point1 { }; =20 trip-point2 { - temperature =3D <125000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9507,7 +9507,7 @@ trip-point1 { }; =20 trip-point2 { - temperature =3D <125000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9533,7 +9533,7 @@ trip-point1 { }; =20 trip-point2 { - temperature =3D <125000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9559,7 +9559,7 @@ trip-point1 { }; =20 trip-point2 { - temperature =3D <125000>; + temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; }; @@ -9578,7 +9578,7 @@ trip-point0 { =20 camera0-critical { temperature =3D <115000>; - hysteresis =3D <0>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -9596,7 +9596,7 @@ trip-point0 { =20 camera0-critical { temperature =3D <115000>; - hysteresis =3D <0>; + hysteresis =3D <1000>; type =3D "critical"; }; }; --=20 2.47.2 From nobody Fri Dec 19 05:01:40 2025 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5695A1DF265 for ; Wed, 19 Feb 2025 11:36:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739965016; cv=none; b=o+o4zdfjGwiOlFzg7HQezEFuoPyggfoK57Jwt1cQ0Qbk9MD+Ahr+BPFO/BbWOuHm4oODp2WLMBVu3KtBGXETUWs9wSBiB0rlY7kFIYr1L0H1dJV94PDf9dBEX4Y+aD7+IuUz4s9aRvf2cq//KVqH97wnlKMXyCkotHBhyMz4DnU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739965016; c=relaxed/simple; bh=aeQpVCYX96EiILRvRBe71bf7oL57iRYfowgV8+KRUvI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VNTg+PUFx5QXoBAJZg3OWYsunIQyBr2daKkRQJxy+6p9Z830IbItCdldJf0gjOkHHsip7DttqGE820hTAnEmMdhsERmzr3vt2bE17PiA3BAU3FCWabA5nvYCItl9reB3UdFUhcG9ftsL/c3gagp2vTOIvq/1bBGLnjuD5+hxBbo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Gw8cLMwY; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Gw8cLMwY" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4396424d173so67154735e9.0 for ; Wed, 19 Feb 2025 03:36:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739965012; x=1740569812; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=iSkPk59emVMF8j5rckMLbpsRWNkWqyF3q7PprSmf8V8=; b=Gw8cLMwYexqDMERa/CyD9oIgsdyG7RCGnpfhwjnJySKq7h8d7TXp8XjKxYokd7UTnr 5zs8c/oJR5LM5ksRAVOJea3Fv1CdkzQrP72lqXEVw2LO20/be+WOC9WxqDotdDxdpZFD 60XxksQ+Zd/312GvTUMGcy7WOr5YsGy4wLcqZJ0GFT+o2PXO5lNExZmCj6Y5R9BvTmcR 4MM7ewP0SBP9Dds61DZS3Z8d3FpgpEqki6s2YTKM39Q/U1shscs1l8YTyVThLk5xw4CE HSdAHQr0q7z7xbEMV4NCVoaljKCD3B0ys6gLge29IoGwyyfQz/sfVNPh5KvUjNXryygb NRGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739965012; x=1740569812; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iSkPk59emVMF8j5rckMLbpsRWNkWqyF3q7PprSmf8V8=; b=QkWYBJcoYLAu2B/H6Az9vGaXy/ivv2TUWrLKXj2Vq5LmX/hJ2ROCVNKIjbJFx8cQhZ M4h4qhNcApG1g9F3Cj5qJSriExS2Yx2flCfqcBQ0llCsQ67uEgG7Tjo8QX3I4hxiWp++ NDlSeYdXVi594CiPCGxU0H2FTtRDxjOl37ZcmZWErG3O+s7G+7mFlK8u2MYwoNJD0WMo QZqvMcSZRUJQbtpoF7oboACJiky7jeC5OuDifeiJII5h7BcSRsTwms4LLbmWHE08xUkY X6nftAobTLFihzS2OeeBLdBHZ90lsJYcY11hGvbFC5jxjAcyAkrTXZ96shGJ+79zPXSq sPHw== X-Forwarded-Encrypted: i=1; AJvYcCVyJYxEwV4GYAEhq6VSov40j3f2DHtKGPDASMqIuE9ocotE79p3xfUvHeE3i72LMOoFmbcCYm5RteE980c=@vger.kernel.org X-Gm-Message-State: AOJu0Yya22GeG25BxS6diEFi4Og0S+lfdVOTDE9+KIcMMmGoaPbQeXe+ kYV48GUUEE38y4RU6ZUdAJnOpKk1VST8xYcFTmlVJRLyJYosUnc5jkm2gMJX2Cs= X-Gm-Gg: ASbGnctxSAaeyttacROS+GXLfUiOyesAJi704yhyDcvI7NTuw+ZM32+cZlOvyp4dtqa ZOcMK2t8zdWVD/DhPXy8RWtzmWDXQCxSY5RfuBSZY+OMy1mW3yDn3rqeAiJszBxkhEWfGK94Y1i Q2XWCiFxux5GHN3OOFchL6iM77Phm/N/6fxYhhHBrAQKl3NnEWtUDVP0ZI5zK4elluGwPHjGq3d M0TLZFwKv6PdPwCoT8gG847o1gvr1SSDXHmixtk57qNXKADRj094qlpCfcBuRfCX+JKaCexEGkd hYafBfV9V8u2XzPuspQH4n2VWPN2rA== X-Google-Smtp-Source: AGHT+IEpXXkp/nHXqfdoqJc5/1i4FhiGEfkVGPMa0uEDEmE51VlEjCs0pDaE1dXfD31R0mK2D+8t4w== X-Received: by 2002:a05:600c:4fce:b0:439:3d5c:8c19 with SMTP id 5b1f17b1804b1-4396e717094mr151284125e9.24.1739965012519; Wed, 19 Feb 2025 03:36:52 -0800 (PST) Received: from [127.0.0.2] ([2a02:2454:ff21:ef41:8630:e1af:c2ac:8a22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4399600257asm42437905e9.4.2025.02.19.03.36.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2025 03:36:52 -0800 (PST) From: Stephan Gerhold Date: Wed, 19 Feb 2025 12:36:20 +0100 Subject: [PATCH 3/4] arm64: dts: qcom: x1e80100: Add GPU cooling Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250219-x1e80100-thermal-fixes-v1-3-d110e44ac3f9@linaro.org> References: <20250219-x1e80100-thermal-fixes-v1-0-d110e44ac3f9@linaro.org> In-Reply-To: <20250219-x1e80100-thermal-fixes-v1-0-d110e44ac3f9@linaro.org> To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Rajendra Nayak , Akhil P Oommen , Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.2 Unlike the CPU, the GPU does not throttle its speed automatically when it reaches high temperatures. With certain high GPU loads it is possible to reach the critical hardware shutdown temperature of 120=C2=B0C, endangering= the hardware and making it impossible to run certain applications. Set up GPU cooling similar to the ACPI tables, by throttling the GPU speed when reaching 95=C2=B0C and polling every 200ms. Cc: stable@vger.kernel.org Fixes: 721e38301b79 ("arm64: dts: qcom: x1e80100: Add gpu support") Signed-off-by: Stephan Gerhold Reviewed-by: Johan Hovold Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 169 +++++++++++++++++------------= ---- 1 file changed, 89 insertions(+), 80 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/q= com/x1e80100.dtsi index 9893fa8353f144e0ee723ab5312cd95aadab041d..a0d4be29a489618a152f79d15a8= 47338271f12d4 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -20,6 +20,7 @@ #include #include #include +#include =20 / { interrupt-parent =3D <&intc>; @@ -9359,24 +9360,25 @@ nsp3-critical { }; =20 gpuss-0-thermal { - polling-delay-passive =3D <10>; + polling-delay-passive =3D <200>; =20 thermal-sensors =3D <&tsens3 5>; =20 - trips { - trip-point0 { - temperature =3D <85000>; - hysteresis =3D <1000>; - type =3D "passive"; + cooling-maps { + map0 { + trip =3D <&gpuss0_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + }; =20 - trip-point1 { - temperature =3D <90000>; + trips { + gpuss0_alert0: trip-point0 { + temperature =3D <95000>; hysteresis =3D <1000>; - type =3D "hot"; + type =3D "passive"; }; =20 - trip-point2 { + gpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; @@ -9385,24 +9387,25 @@ trip-point2 { }; =20 gpuss-1-thermal { - polling-delay-passive =3D <10>; + polling-delay-passive =3D <200>; =20 thermal-sensors =3D <&tsens3 6>; =20 - trips { - trip-point0 { - temperature =3D <85000>; - hysteresis =3D <1000>; - type =3D "passive"; + cooling-maps { + map0 { + trip =3D <&gpuss1_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + }; =20 - trip-point1 { - temperature =3D <90000>; + trips { + gpuss1_alert0: trip-point0 { + temperature =3D <95000>; hysteresis =3D <1000>; - type =3D "hot"; + type =3D "passive"; }; =20 - trip-point2 { + gpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; @@ -9411,24 +9414,25 @@ trip-point2 { }; =20 gpuss-2-thermal { - polling-delay-passive =3D <10>; + polling-delay-passive =3D <200>; =20 thermal-sensors =3D <&tsens3 7>; =20 - trips { - trip-point0 { - temperature =3D <85000>; - hysteresis =3D <1000>; - type =3D "passive"; + cooling-maps { + map0 { + trip =3D <&gpuss2_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + }; =20 - trip-point1 { - temperature =3D <90000>; + trips { + gpuss2_alert0: trip-point0 { + temperature =3D <95000>; hysteresis =3D <1000>; - type =3D "hot"; + type =3D "passive"; }; =20 - trip-point2 { + gpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; @@ -9437,24 +9441,25 @@ trip-point2 { }; =20 gpuss-3-thermal { - polling-delay-passive =3D <10>; + polling-delay-passive =3D <200>; =20 thermal-sensors =3D <&tsens3 8>; =20 - trips { - trip-point0 { - temperature =3D <85000>; - hysteresis =3D <1000>; - type =3D "passive"; + cooling-maps { + map0 { + trip =3D <&gpuss3_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + }; =20 - trip-point1 { - temperature =3D <90000>; + trips { + gpuss3_alert0: trip-point0 { + temperature =3D <95000>; hysteresis =3D <1000>; - type =3D "hot"; + type =3D "passive"; }; =20 - trip-point2 { + gpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; @@ -9463,24 +9468,25 @@ trip-point2 { }; =20 gpuss-4-thermal { - polling-delay-passive =3D <10>; + polling-delay-passive =3D <200>; =20 thermal-sensors =3D <&tsens3 9>; =20 - trips { - trip-point0 { - temperature =3D <85000>; - hysteresis =3D <1000>; - type =3D "passive"; + cooling-maps { + map0 { + trip =3D <&gpuss4_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + }; =20 - trip-point1 { - temperature =3D <90000>; + trips { + gpuss4_alert0: trip-point0 { + temperature =3D <95000>; hysteresis =3D <1000>; - type =3D "hot"; + type =3D "passive"; }; =20 - trip-point2 { + gpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; @@ -9489,24 +9495,25 @@ trip-point2 { }; =20 gpuss-5-thermal { - polling-delay-passive =3D <10>; + polling-delay-passive =3D <200>; =20 thermal-sensors =3D <&tsens3 10>; =20 - trips { - trip-point0 { - temperature =3D <85000>; - hysteresis =3D <1000>; - type =3D "passive"; + cooling-maps { + map0 { + trip =3D <&gpuss5_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + }; =20 - trip-point1 { - temperature =3D <90000>; + trips { + gpuss5_alert0: trip-point0 { + temperature =3D <95000>; hysteresis =3D <1000>; - type =3D "hot"; + type =3D "passive"; }; =20 - trip-point2 { + gpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; @@ -9515,24 +9522,25 @@ trip-point2 { }; =20 gpuss-6-thermal { - polling-delay-passive =3D <10>; + polling-delay-passive =3D <200>; =20 thermal-sensors =3D <&tsens3 11>; =20 - trips { - trip-point0 { - temperature =3D <85000>; - hysteresis =3D <1000>; - type =3D "passive"; + cooling-maps { + map0 { + trip =3D <&gpuss6_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + }; =20 - trip-point1 { - temperature =3D <90000>; + trips { + gpuss6_alert0: trip-point0 { + temperature =3D <95000>; hysteresis =3D <1000>; - type =3D "hot"; + type =3D "passive"; }; =20 - trip-point2 { + gpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; @@ -9541,24 +9549,25 @@ trip-point2 { }; =20 gpuss-7-thermal { - polling-delay-passive =3D <10>; + polling-delay-passive =3D <200>; =20 thermal-sensors =3D <&tsens3 12>; =20 - trips { - trip-point0 { - temperature =3D <85000>; - hysteresis =3D <1000>; - type =3D "passive"; + cooling-maps { + map0 { + trip =3D <&gpuss7_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; + }; =20 - trip-point1 { - temperature =3D <90000>; + trips { + gpuss7_alert0: trip-point0 { + temperature =3D <95000>; hysteresis =3D <1000>; - type =3D "hot"; + type =3D "passive"; }; =20 - trip-point2 { + gpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; type =3D "critical"; --=20 2.47.2 From nobody Fri Dec 19 05:01:40 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F0691DF97F for ; Wed, 19 Feb 2025 11:36:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739965018; cv=none; b=Kw2ibeNOWtZxyXUq3diSY8AET+sDdZxs/jZlSliUIYT683QyoG+Bip29DCIJUXR9Ys0tASxssYEfkj1RQwFlQhV/CrigsERHo9Gx5BMGRMUldAqbR0ZEpGAwIljqJ9bO9Na2mQ5trcNgXsqe9Qvh07qDikJqBCzPhiHmsf0HR9U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739965018; c=relaxed/simple; bh=VBtYLlI32D1IT1g6oXAH+/Y5Mni8ARmIevFsmFIlkEI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tUr+S0pCkl3imiLPkRZXi5BhD7cCviaqQTSZlsKyjbQm8KjG89oKlm12xdpXB/AyghFxjQ3+EmqkZA/CUs1KKyaLh9qfXsWyu0VDRb5OQO5HMYyR60nMydWTbK+jFEruVLOtt/3XW9wU+wWuha5VwFWinjy65V0o0jv3mjF8Pvw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=CFnvCbqc; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CFnvCbqc" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4399d14334aso3790465e9.0 for ; Wed, 19 Feb 2025 03:36:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739965014; x=1740569814; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=o2xAYRgSHSTQxHrbNsTs5CuiGhXgTzNq3Zj4ycfB7Kk=; b=CFnvCbqcDDcoJJMjNQNtB7TtLBmXEcHAdjTwuVpzb0X/Zx+34exBvs08OBp/dVEVPw AnAkcPXJSC7AhUgwk8PFaMupeiYUI6IdDLGfGnumjrVZBwlQcFHWATngh0JKQLMpOV/s nH8i2G7buCUSfXt65GBNSPaRqdZLI9utHN9pDUkoShi4wdMfnHo8i/r6LxBLxGE44mcN MJ1xbIcxkIBC4BCYUrIguPk1F1jF3ohoWRM1te5AWxg0MvcSL10jdWCmxJGL7rfkze9K 5FxZpN5rb0NBizjD/XVzigKpuyqwKJfeSAupMC71JlfsRlKk3RZpQiEJBpAKo/N4fUI0 zKvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739965014; x=1740569814; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o2xAYRgSHSTQxHrbNsTs5CuiGhXgTzNq3Zj4ycfB7Kk=; b=g/842r3mzUfU/NLgdWPhZxKqsAGKLOP6Vb8MYJPEBUMwhXzjejYH240t8zoQjKpXES qkeyPM9LnzLiCP+UnOm3l0D0nY+XFDTw1eKWu/lTjCK4RZO7t10I75GJTN+x8vEdS6D8 e5HF+2y/0pTIjgl+Rw4yRI57fmSobNnD6wGTpZVRlz2t8YI5XLreCrGPRrvAczWdJfr3 KzOloSCPihdJvJl4O0tKl3NKMlwH6BUtzsl8oc0XwvtjXj6sgloawuIqWXutaKHFM1Le i6xRSJgkqAHPcMqRibhbrJzBjEmhPiRv3eV2lqf8TCjYWfjGvy8ZBT84nL2epnLJr97V b2SQ== X-Forwarded-Encrypted: i=1; AJvYcCUI38CHO7izt2qcOQTVjirSeZD5uCLF0/7GghioBzhtyXbBTZCCzhj4LutZgP/xvmKNu/7T++aszOcOqyI=@vger.kernel.org X-Gm-Message-State: AOJu0YxKRsRwVep5nnkswFe55d7dkKrqDFkTOtAmPjdGW5JejU9CRyFD sRDWb8/8zahzPjJ/yH1yDFCF3mFyCh3d9t6FKN5C4IfGf448UG/ORF+Wz6cCs9k= X-Gm-Gg: ASbGncv3u3//cGN96eX9w0xke8a9MlgtCTGNT7uQZITjufQyKsfS4ptq9UswhYBWLlp x4H+qqA7r2OzCRuJgkafFv/7LNLHIaONue1egE6k/RS7mK8FSIgIJ8BGqm3Acq6+SF+fcxzXiFo Hc/NBMN6RiOcia2sD3gh3UEdrmaseS+XqJk8f3+f/SuEH5C16p9AdD3tPRJKcCXHH3qrKJun9PI jwVB4+POuTf/hNrDDlEeFwlF+97xnRGOxP9XDp7uXMbKDUyjiuHAsmTZ9+elF+v/0H9dGQN0a7m bRMC//53tGI5CPICgze2EBpTy4QlRA== X-Google-Smtp-Source: AGHT+IGHf16s+kr6QC93nlk3mFr3yas/GHw1k1Yy1YQcjY7HS5Er1cYbYWvfsxfitogVCnNTDB+LGg== X-Received: by 2002:a05:600c:511e:b0:439:8bc3:a698 with SMTP id 5b1f17b1804b1-43999d7591bmr31932825e9.6.1739965014306; Wed, 19 Feb 2025 03:36:54 -0800 (PST) Received: from [127.0.0.2] ([2a02:2454:ff21:ef41:8630:e1af:c2ac:8a22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4399600257asm42437905e9.4.2025.02.19.03.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2025 03:36:53 -0800 (PST) From: Stephan Gerhold Date: Wed, 19 Feb 2025 12:36:21 +0100 Subject: [PATCH 4/4] arm64: dts: qcom: x1e80100: Drop unused passive thermal trip points for CPU Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250219-x1e80100-thermal-fixes-v1-4-d110e44ac3f9@linaro.org> References: <20250219-x1e80100-thermal-fixes-v1-0-d110e44ac3f9@linaro.org> In-Reply-To: <20250219-x1e80100-thermal-fixes-v1-0-d110e44ac3f9@linaro.org> To: Bjorn Andersson , Konrad Dybcio Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Rajendra Nayak , Akhil P Oommen , Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.2 There are currently two passive trip points defined for the CPU, but no cooling devices are attached to the thermal zones. We don't have support for cpufreq upstream yet, but actually this is redundant anyway because the CPU is throttled automatically when reaching high temperatures. Drop the passive trip points and keep just the critical shutdown as safety measure in case the throttling fails. Signed-off-by: Stephan Gerhold Reviewed-by: Johan Hovold Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/x1e80100.dtsi | 372 -----------------------------= ---- 1 file changed, 372 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/q= com/x1e80100.dtsi index a0d4be29a489618a152f79d15a847338271f12d4..53512e7a413ddcd8cb53996a04c= 27d9094d8d4c0 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi @@ -8466,23 +8466,9 @@ aoss0-critical { }; =20 cpu0-0-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens0 1>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8492,23 +8478,9 @@ cpu-critical { }; =20 cpu0-0-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens0 2>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8518,23 +8490,9 @@ cpu-critical { }; =20 cpu0-1-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens0 3>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8544,23 +8502,9 @@ cpu-critical { }; =20 cpu0-1-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens0 4>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8570,23 +8514,9 @@ cpu-critical { }; =20 cpu0-2-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens0 5>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8596,23 +8526,9 @@ cpu-critical { }; =20 cpu0-2-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens0 6>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8622,23 +8538,9 @@ cpu-critical { }; =20 cpu0-3-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens0 7>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8648,23 +8550,9 @@ cpu-critical { }; =20 cpu0-3-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens0 8>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8677,12 +8565,6 @@ cpuss0-top-thermal { thermal-sensors =3D <&tsens0 9>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "hot"; - }; - cpuss2-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8695,12 +8577,6 @@ cpuss0-btm-thermal { thermal-sensors =3D <&tsens0 10>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "hot"; - }; - cpuss2-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8764,23 +8640,9 @@ aoss0-critical { }; =20 cpu1-0-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens1 1>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8790,23 +8652,9 @@ cpu-critical { }; =20 cpu1-0-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens1 2>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8816,23 +8664,9 @@ cpu-critical { }; =20 cpu1-1-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens1 3>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8842,23 +8676,9 @@ cpu-critical { }; =20 cpu1-1-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens1 4>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8868,23 +8688,9 @@ cpu-critical { }; =20 cpu1-2-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens1 5>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8894,23 +8700,9 @@ cpu-critical { }; =20 cpu1-2-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens1 6>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8920,23 +8712,9 @@ cpu-critical { }; =20 cpu1-3-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens1 7>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8946,23 +8724,9 @@ cpu-critical { }; =20 cpu1-3-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens1 8>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8975,12 +8739,6 @@ cpuss1-top-thermal { thermal-sensors =3D <&tsens1 9>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "hot"; - }; - cpuss2-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -8993,12 +8751,6 @@ cpuss1-btm-thermal { thermal-sensors =3D <&tsens1 10>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "hot"; - }; - cpuss2-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -9026,23 +8778,9 @@ aoss0-critical { }; =20 cpu2-0-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens2 1>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -9052,23 +8790,9 @@ cpu-critical { }; =20 cpu2-0-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens2 2>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -9078,23 +8802,9 @@ cpu-critical { }; =20 cpu2-1-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens2 3>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -9104,23 +8814,9 @@ cpu-critical { }; =20 cpu2-1-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens2 4>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -9130,23 +8826,9 @@ cpu-critical { }; =20 cpu2-2-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens2 5>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -9156,23 +8838,9 @@ cpu-critical { }; =20 cpu2-2-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens2 6>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -9182,23 +8850,9 @@ cpu-critical { }; =20 cpu2-3-top-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens2 7>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -9208,23 +8862,9 @@ cpu-critical { }; =20 cpu2-3-btm-thermal { - polling-delay-passive =3D <250>; - thermal-sensors =3D <&tsens2 8>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - - trip-point1 { - temperature =3D <95000>; - hysteresis =3D <2000>; - type =3D "passive"; - }; - cpu-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -9237,12 +8877,6 @@ cpuss2-top-thermal { thermal-sensors =3D <&tsens2 9>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "hot"; - }; - cpuss2-critical { temperature =3D <115000>; hysteresis =3D <1000>; @@ -9255,12 +8889,6 @@ cpuss2-btm-thermal { thermal-sensors =3D <&tsens2 10>; =20 trips { - trip-point0 { - temperature =3D <90000>; - hysteresis =3D <2000>; - type =3D "hot"; - }; - cpuss2-critical { temperature =3D <115000>; hysteresis =3D <1000>; --=20 2.47.2