From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 8C85B127E02 for ; Fri, 10 May 2024 12:58:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345920; cv=none; b=JJOm15aARN06RtkrpvPUqaHU6ifQxUJakvBPzduhsN7E1+IXO/qKh7cekXvMLgz6ElRqbAbB6wIKjkoRIV9RbBZshFXTX9YWDyDLajL436/I3woto2VzN8EVGRsN06QlW1+0EozMJfs3+80pJYNqJsJSJcl9yCmPwLaq9ynrbOg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345920; c=relaxed/simple; bh=+hBO09VnCHm9VUUEnYGXn9/ohn2w2P5q3w4yWPS3JP0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qgo3yj/CQRPqZsNFLI7kUGlEbv/FfgW4shoIytB9Zhh7TKiTytSKeKJBStUQ1ExTyph60gPft1xk/jJkZjpR5HgdV1EPRIUAqpEqv5HzxZX/+l3Xp+HbCy0eWBF1vP6fQO5DX4u0/i+mF9AedWwZzwFSXS2kWvHxuDtUHwyxJXE= 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=Gq2yq+Ns; arc=none smtp.client-ip=209.85.218.43 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="Gq2yq+Ns" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a599a298990so487999766b.2 for ; Fri, 10 May 2024 05:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345917; x=1715950717; 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=RtTo5y6kM/M1KKRuZY68F19Ec5TCfP5qx4+TJLYsHpE=; b=Gq2yq+Ns76zT+lvSfvzr8HzDCMrZTvMZJNNLIu/v58TW6KViKou9cXnjEXurnUpnq7 OdAJv6i9HMzKQrpmvzrjSn//uPnMDO7ZpL7F3iA4T/+DTTZDR4qJU8Py9LY9o/M61gwK o2z7ctgHiUWY+pg50rdNWK70mvp59D6cuqWYeA08Tf+OlLOW/mrTiR5J26myBzEMEsZL C/kp4qyVsdgdV9j4TpuFzOesiRKKdarlExvqw+r23EA+l0SVIInsu7qXJKofQjT57asY Uiaalrw3o1eGkfKQJLs/ZZAcgr6HAaQsePqVUhSAMgySj1sDcvajd6w7MhiaklZojZEz 8B7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345917; x=1715950717; 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=RtTo5y6kM/M1KKRuZY68F19Ec5TCfP5qx4+TJLYsHpE=; b=kT27X5v6X8yLcxYul/kASZZ7jL0frrZDX8lIVvhMW7csATG6Sxi4aGBHBD6p/XXLYs UZjnsO8j64H5BmJGK+A3yNcACG8me6scuwbPeVil/mg9WSZnurUw0j/vgfKfjMNNFm/a 4DS+qJuHZg6SM2/Ca0JVmgsV/LN8+7Ued7564k5OMRokO4g0lxJx8KfbyobivPrM5Vaa 44Z6xQmHCe6PxVns6v4TOk/JAEcGd7E719Sf4BLu7c3X+dx4E8/K9+pB83YCjfixsdvo kFPyfiysGw0wiDIza4B3rwyrkP6BHZVJs7rtsQa4GO01UDzpCFXp8x7oVcOzt4qvC2fG E7Nw== X-Forwarded-Encrypted: i=1; AJvYcCU8Odrxbl5mpcAKnSyXY32LMvxrfRn8DppOsSA9j7Q8I+x1OkEJUbQRCyLGcwRm+gtf/bPuhEAcoAJwRvUbhCtYdfngpw4C04OQ9Ni3 X-Gm-Message-State: AOJu0YzttUJAeUnD1mcVKwrzh58ShRpXoYJf4Dhcs0dCzXNI/T6IIM49 QxczUpf+8XFsxw+azt3kjw9cM/hM0WqERqXXCMkWPVXn6MTTnWo+vv4Za3vD/vQ= X-Google-Smtp-Source: AGHT+IEEqYn9/tuFqFQ1H1nKhLJKHexkeLgg3g5zX7HsfbpiPvw3TUSny57aso1INzM/xI8+sDhsmg== X-Received: by 2002:a17:907:7b8a:b0:a59:9b8e:aa61 with SMTP id a640c23a62f3a-a5a2d5c9303mr195736266b.35.1715345916998; Fri, 10 May 2024 05:58:36 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:36 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:30 +0200 Subject: [PATCH 01/12] arm64: dts: qcom: sc8180x: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-1-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point to ensure the thermal framework takes sufficient action to prevent reaching junction temperature and a 110C critical point to help avoid hw damage. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/sc8180x.dtsi index aedf2e7db038..699f377e94d3 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -3993,10 +3993,22 @@ map0 { =20 trips { gpu_top_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; =20 @@ -4140,10 +4152,22 @@ map0 { =20 trips { gpu_bottom_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; }; --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.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 E6D2E128386 for ; Fri, 10 May 2024 12:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345921; cv=none; b=HjPPS+diyBY4OGP+ss+DH5f062IO1VK1Hgg4ACPFzZEAiv436pjpyHvZ/11hInby/WCmpwBlnMZ/M/0GRzMmavf39hUJGQ29CCcgY+7k7Sg3026UxOSPLnJkPPsUlSnfuK/tXcAAx+U/iTkxETs/1apAlbbN+5ziSPVliB/3mus= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345921; c=relaxed/simple; bh=U1sZM6crvXzNr36TY4xzkTtToIbdblQozjw2mMpBGo8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WWkyTZKOw8oXAkwQsW9a86YDQfGb5GT3zhTykZrZ/aB+RJK1MlaB7otMGBcTMNpDB/FwZ7ZDLWq0HPTvkIabX0kXgQZs9dT3pq79r5rk2PG7uY6j6rSJmhsSArQ84jjJlVTnJrAM4udNq17Mp6w5xf3Y2XIUvnvvZRqerbKnOJo= 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=BmHre4/r; arc=none smtp.client-ip=209.85.218.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="BmHre4/r" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a59a17fcc6bso483007666b.1 for ; Fri, 10 May 2024 05:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345918; x=1715950718; 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=UviVANTDt/5uiKFqzI1mLhTEEii7CuMYYu8FBGQXpBM=; b=BmHre4/rsGV/BTj4++sBLtAHnj/KrXw2W3dk2k7Mm/KRWb9lJjgmCwcAbCWLIUy30G kdZovKYJCcYtiQnxEmMJGiHQXVDQVBYZZMJY0942YAJdxXnEHEinjrAAgwttt3SFgPD4 yXGhBx65lJ7p8ZlGkbEfGPVO62JXbm5v4xXZG+fKRpL3frA9qVeepcWhp0QhvNnhzx/j 13WgDseb+v+TV4GjUGJxWR5jZqPIGhtib4rqqlW6Op7zaWSlUjMT1ap5AQ6JKNVAoOuK bKzgTszggMcMajFaEVLMyYmRPA3MXhTzOFD2wYfSodSbu5Q+tTSqY0kk30+mnxigyM96 Ykpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345918; x=1715950718; 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=UviVANTDt/5uiKFqzI1mLhTEEii7CuMYYu8FBGQXpBM=; b=t3/SgCgp2Wz2zc/qfnsfB12UdGXmVJgwbZHot6x8m5xCDfVoSoFnT9uyJnxiX+Ns1m AHcweVoDxt1fg1mzYZJOi8pE4j7NOX9zxCUQJ0IkSwS+qjyY/S3zQjKjuL9pxzE6WUKb 8O1qRpLJE/xJnIUb9302qz9pANBjhcNSX+IMsZN+NL+qzM+LperuCJ9NkbKHpbVmrUKa fe8sadiFZn5cMn4JuZ0Oy/YzCaxbs15cBhDXw3b+sHCMrSUn1wlh3ujhkzWWzdHRYgW6 dX8j0L15Zgik8s12b2wB8J2e+NJuOxy+k6N+Jfb59kGXV5us2jDMfAsgPJjAfEZYRzpO G1WA== X-Forwarded-Encrypted: i=1; AJvYcCWU2jg5K3aCHLwlFADknj9ZgzyilyISPNF+OK69OhNMBIAMjOb8dtLnKPcvr9sS40avOl07+Oeo8YjDJMGFE1wEbMs6Op9ZkzFKCqiP X-Gm-Message-State: AOJu0YyEl9DPec0Przj2nokJOK6faJzzoHHocIA3MtGCO5VlrpK8mabI 5mGbjpbODqVmbI8ieZNbznQVXd+Gce+3MeVLjGydemSg2+n1NiFiPF2MjOjK9OJUt+F6FC3VlAz dRz0= X-Google-Smtp-Source: AGHT+IFftFdwrJV56gfgsr34xjkjx+Jjl7MXGjKOYrjcpGmW0lfjcSGDIRBYjrCWQu4RRSyGcWCE6Q== X-Received: by 2002:a17:906:194a:b0:a59:9b75:b90 with SMTP id a640c23a62f3a-a5a2d53ad53mr177181566b.2.1715345918269; Fri, 10 May 2024 05:58:38 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:37 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:31 +0200 Subject: [PATCH 02/12] arm64: dts: qcom: sc8280xp: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-2-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point with 1C of hysteresis to ensure the thermal framework takes sufficient action to prevent reaching junction temperature. Also, add passive polling to ensure more than one temperature change event is recorded. Fixes: 014bbc990e27 ("arm64: dts: qcom: sc8280xp: Introduce additional tsen= s instances") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/q= com/sc8280xp.dtsi index f63951186a5b..65c444cce00c 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -5956,10 +5956,25 @@ cpu-crit { }; =20 gpu-thermal { + polling-delay-passive =3D <250>; + thermal-sensors =3D <&tsens2 2>; =20 + cooling-maps { + map0 { + trip =3D <&gpu_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - gpu-crit { + gpu_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <110000>; hysteresis =3D <1000>; type =3D "critical"; --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 65D8212C46E for ; Fri, 10 May 2024 12:58:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345923; cv=none; b=X+lcHXEhWXSRwaB7e/Pk33HiqgbjiIKKcFXMflnZ/zUa8nKP60L/d65VIoCF7Aq3C9x5YK9FVVV6ohjbLTCXJY9oBPRTviR5Ad6uDyCjOFupts3/ci2e5XCCN/ifKXp5548/hkW4HMOfq1RyBy98lpjVfOZas3MDdHFKDlqetmM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345923; c=relaxed/simple; bh=xVhNv64UVnKsgiv5jGfQjveKNiXOY36HNZeDOAduTEQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sttwVY5I82h19dbxJLTnCUSrtDcPqy/z6sLO07kmV95hqQ9Cd+W5s+dxc/rz8m7sZM1S6IKbS08jtew7WMbJH0UANpTs/SGqTMEUQQ3dC/w2wEp3j9X5Xr8g71Dhu1M2R3jKE08zC8caA8LKSGzbTs7OXFBceHM4fxzhMbDA7NY= 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=PvrJTpeL; arc=none smtp.client-ip=209.85.218.51 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="PvrJTpeL" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a59ce1e8609so531533066b.0 for ; Fri, 10 May 2024 05:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345920; x=1715950720; 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=omxBI0Bjh6xff6OPmVoFkepIHS+IMVrSRXQYKvKXjaE=; b=PvrJTpeLluf8xx3uvHv7x8bFwliFB6K8br4b/Wcq3idr+9eE97IMZV0PbJ7YPnJ2rH IRMzHRova5OCXDTbCQvdD799/qmqnzeWMLQBsalNSTrMthirsukdw65Z8PdZeTRIVsE0 lDqOILK9irljJpG+YqCyFPc2RMI7TWwsXq1wgVk0SqQW71qsZs/khMaJAKdbipdZoSmX eptQmexRKtP5PzHO5w6LFa/hqqLRagwkDuv6S3c0CM+YYkKZDiljvdGSglNS+jLXqiW1 mu2sgU4QQhJGCN2Lye7FkyorLU6Y3pcAAMGjIU+cqKi8P1ZZMgDYrLl2zXqAQHWxLhyU Pwzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345920; x=1715950720; 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=omxBI0Bjh6xff6OPmVoFkepIHS+IMVrSRXQYKvKXjaE=; b=Jr9mdzfUb4OCYMyko8QIS+eHyzUol3YmR0shgrbxE8UBaV9ARfjMUJNmWOARmg0tkL eJW6e47VLz2k1OWEhoxcOH2zOvB43iAeLYpDFdpflc37i2bS2Rxhy+WJASJk3bVq2e+A 2pdDtUdLdPc0jGp8YDBg3K+1JZ4mjFe0+ZqDXkkqbF7hVj2zRY3k10h3YOht4rOLi3jp AVp4aTGXLZX5S93rXVKWsBwnD05m0JaXt5XlpBMF0RkWyVcdtOJAng9kw5cnXJ2lBkuD 9/12VGmrDKLQi8A0IbYckkDLtUD6+ldd74yst5HIbYx6LHzyoR+P2EZMU/SysX189Ysa hkrg== X-Forwarded-Encrypted: i=1; AJvYcCXzgJQFHhWUG31oMjO7NECdycOm5Ht+gOEsnHrvEN9T7gnE/WC/YgdhLZqU+X5gGlYggzJgoFUFsijUsPcQbOQFjelU2HYA1q7gGbpX X-Gm-Message-State: AOJu0YxMMblypA2T+ypvPOQLaNu4wYWTLJca0e/ICU5ZJiQS1GpLgHu2 loZgplSvYjAwUOCbORJnr1hAh87C9OslE3fxBe0TYqtXIaMGLlK0jYXWavsg07o= X-Google-Smtp-Source: AGHT+IGBZ81PpSvhLXWY35xj34kyxu+JRHRYjscx0vV2EGlV3rjYr9X26CLoLN8bvTWU6iwx3PT1bw== X-Received: by 2002:a17:906:f116:b0:a59:9a42:b7de with SMTP id a640c23a62f3a-a5a2d31702emr209323766b.36.1715345919812; Fri, 10 May 2024 05:58:39 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:39 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:32 +0200 Subject: [PATCH 03/12] arm64: dts: qcom: sdm630: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-3-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point to ensure the thermal framework takes sufficient action to prevent reaching junction temperature and a 110C critical point to help avoid hw damage. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qco= m/sdm630.dtsi index 7702d42e82c1..a46dbe725e54 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -2582,10 +2582,22 @@ map0 { =20 trips { gpu_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; }; --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 DA05212C538 for ; Fri, 10 May 2024 12:58:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345924; cv=none; b=XqtVcJpYU2YAtGDf5Mn4GCKYWfGfbxCFNkOzeayy+KbnLC2EPgt9cwP6FTTcR87YM4DEmqIMdf7B6ykYZqRS9ouEvpNV7btCcuY4N+mvwXJtj6E6QnNUPxY8j/FOQxkMRyXlYAg4bCK4bm7xR6H+yvCGJkT0qNXn8wqznbtI55k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345924; c=relaxed/simple; bh=EFzj6Tk43N52U4aEkFUoO8lDb10sw/xNa2mWF4RskUM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BGvseTPvVsn6An52V4eFqCBVucpStE+6EIeS2tY2A4qxAVTW04SZppIihXk6wAjmFfvcafVAfSOqIUgzYByDbflvFzOJwKdSIVaOWI5n9QGfb+VOpeF4DZODkciLM6EwB6AIhqBvB3lUldJKaqf/GP8F+qSn6OumJOmAFeleWow= 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=OGBywj3E; arc=none smtp.client-ip=209.85.218.52 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="OGBywj3E" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a59a64db066so516674766b.3 for ; Fri, 10 May 2024 05:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345921; x=1715950721; 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=e8IcYMn2rhQRDvyV2qRDEDnniamQy74klUO7ny02ivo=; b=OGBywj3E8P75pvoytHTaTwcv4YNZ8EGUuPM0p6K9AvZrCP+XcEoKtzvOJQANRlAHFv 1kXlO0FGb4pFn6QzSYKPMtBMDy/P9X2o97uwz8x3cXPcophLbe1nPeesWPTDO9+zQoL0 CyTENni/yk9UrQQ6Tv8mveDhhQiFx/jMPCGscTYLzrns05NbF1iv3TcaEHBCRRxfRxbI CvSV2E1Nie5fBKaEDjPzXNKf3+gPdBInqZlt3h9kQ/sb/ttXazfMKn21KDm5Yq0qAQi+ ZbEANfgCDPlTejUTiZ0If5ducVhxjKSbFT9sqsX6/007s/SRt45bwRdGRjiuC1H5NZCN ARSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345921; x=1715950721; 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=e8IcYMn2rhQRDvyV2qRDEDnniamQy74klUO7ny02ivo=; b=uLKMgb6k3NgDVoyncV18TPbCKXBE9vP/rOD5+kFJBFtd/I47WvUh8u0RiT7HHcsaiT 4/ZMDgC3pIovHsQGNFwEMT325r7hObVbRpsTCQMh0vWvz5P5Ql9YXin6qml+DiON09dM t4TQmklXy8vSBNvisKj7KXvttlWv+3zXxKEN0UWPb3Xl54MZcM7oSVTdD0AEgokoaTnk CWVqacs3tvLIgHZf8gg12XmbzonUbvaMzncCHOS4WZk8NWDVLizpPoQ+QMseJUQBgGwb uJ2CwxMGYHOGy/llYyfOerQDqQhQ0+aHN8+1twFPMJpF1d0xLT4FRiM95QmDEBc4atr2 FZ3g== X-Forwarded-Encrypted: i=1; AJvYcCUoN4g8MPEk4xTn0tyH+14YYUryGjosZq2BQANOcyWBoP0suqR7LkdwzVgt7rGLdy1+PB5uEZdcIwIcMi4Yg+Kb5HpPb1Af7domXKRx X-Gm-Message-State: AOJu0Yz/U75mj/f1kiA7ChCc3TOKZQO2qjA34F1hgnkDxMl7cvaRc+qe 0QiaccBdB6WGTd+oVA8LatjcV6yItbCwOna2Y+ZMV935QrCBTohuNAPYVOBHcGE= X-Google-Smtp-Source: AGHT+IGbaZNwZ9rvGa7Fk+utzQGGqR12rPtV/31n/eaZ6Cr3MEIihnlCx86RwFxBR9LOXfahie7Oew== X-Received: by 2002:a17:906:6415:b0:a59:adf8:a6d5 with SMTP id a640c23a62f3a-a5a2d6786fbmr169034066b.72.1715345921227; Fri, 10 May 2024 05:58:41 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:40 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:33 +0200 Subject: [PATCH 04/12] arm64: dts: qcom: sdm845: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-4-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point to ensure the thermal framework takes sufficient action to prevent reaching junction temperature and a 110C critical point to help avoid hw damage. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qco= m/sdm845.dtsi index 57507d6ec918..52eda2bb6b09 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -5630,10 +5630,22 @@ map0 { =20 trips { gpu_top_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; =20 @@ -5651,10 +5663,22 @@ map0 { =20 trips { gpu_bottom_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; =20 --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 68BD912CD98 for ; Fri, 10 May 2024 12:58:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345926; cv=none; b=j11qTVqRi5f7bJ6tzM3FqFiDfFRJU1IQef/Mxf6VyMy2U+YJzcdVDSLVwFX2s455fJiVy8UmcgICgwQgZIMMTT/PvNFRMnGztCuBqIZQTg5Is3lnSU6vV3gFr4E9QjnOGVcxGt5iLLROYDv0WTorSKctPj87/DJkSB0Tawk5AAA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345926; c=relaxed/simple; bh=xr4WOE90b0yFT70mlWTOrZUkB4FzmYThMvJB/hOW8og=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ItN2FT4d/+aD6yoAxULod2oVpPP1DqDWyAppHZrkgSboySZCIJsxerPoJ8f84ytKtU0HedtLz9+6vmQ6qR3MwTpJXaYxXdn1J0L2RdCy6/bo/XkBhC6ivzfzy8m16eSXxs2704+tXOKCotq8h+t97Hg39/otiTLuvz1rs/Ct190= 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=DUV9Yfud; arc=none smtp.client-ip=209.85.167.46 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="DUV9Yfud" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-51fea3031c3so2749502e87.0 for ; Fri, 10 May 2024 05:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345923; x=1715950723; 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=OCBtongGKMs+efoOjSpIIFMYyV9OANLuyMGYx1s4Pl8=; b=DUV9Yfud8E0o1IPy9ww7n1kge1KStCDFJEXjML469Yu5FTDxm0i/x7uGd+39GGQ9QZ T6sAX2rnzLM4Sl/tnyBgGRlSaGJXpdpKqr57G+IvDb0ZprNLj5OYhlOmTYGN2OtoA50i trdBpux0MNVi9ubugp2gHQyWUxIC8kts0CxBfbH0YRB72cXDErW69kUWGKxlHR1fNcES DHSI8lcpPwacyv7JAl7adkfhcZobWc/GCaBwme5qiZ6XYVcy3nNF/3USdrZyk6s62dIC 2YE6D1GhYho3a6yEVJ857DuFrxP3okPGrYaVZO9UxGhb9IhG0Xs0ESGamdyOhyv/DWdL Y8mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345923; x=1715950723; 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=OCBtongGKMs+efoOjSpIIFMYyV9OANLuyMGYx1s4Pl8=; b=DACZwTBu/2TPX1ksnN0WwV71vrFp+3x5q9LXxpj4FKRBs6rdjZ8DHB3UQRUcnuPptI oaKKEkH2jbL71ckdBitLFJr9umRVGl/CuCSA5T3PQ5QD0WpaX8YdiaTSdJ0ZCJywEKTj lezgtqk46ObC1/ZOzl62xq5pSaHr6HStwSTCS9o4o5MsGqMKBvjeY6F16aeOgeRlWKlE hPIkudkwrC2dxqbwFzdhQC76NOSaYOAdyUmcF8dfaOoObLbOlK90d2f6AbXom7UNTFRV 5uPCFtpZ9eia7SU95lkelSDap8+v+AL8CJSQEXNB+ZOKlLdfV7pUfhxbAN9U11+Mbk9E AhVg== X-Forwarded-Encrypted: i=1; AJvYcCXz52eUbACtHhEDpMhp6Yno9etLlMM8Ytw8/+nPCCCqS6Pt81zEifDgh82tW8X03t6gftdzsVjeikMg8VZSiI/7j03RpVuA+5TSFNLq X-Gm-Message-State: AOJu0YxQrpnz5FV4mtoI4bttnMiz57i7iWcaB41RcavRR35okS9hZfGG dYPtg3mowGAZyq2pqa8axwkspX1NPeLq8bRnzqLSLcpTOL6vYbEJ3o3fwDpQ6B8= X-Google-Smtp-Source: AGHT+IH+YN13W0D8aUVsryu7SpYiRt5r1DezyR4hziV4BMefqRfWNCNwspAQXdw4tb+xT2vetrmyhA== X-Received: by 2002:ac2:4c50:0:b0:51c:d1ac:c450 with SMTP id 2adb3069b0e04-5220fc7c5camr2948565e87.10.1715345922740; Fri, 10 May 2024 05:58:42 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:42 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:34 +0200 Subject: [PATCH 05/12] arm64: dts: qcom: sm6115: Update GPU thermal zone settings 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: <20240510-topic-gpus_are_cool_now-v1-5-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Lower the thresholds to something more reasonable and introduce a passive polling delay to make sure more than one "passive" thermal point is taken into account when throttling. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qco= m/sm6115.dtsi index 0a0bb5310849..afa08dd0dd69 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -3323,6 +3323,8 @@ trip-point1 { }; =20 gpu-thermal { + polling-delay-passive =3D <250>; + thermal-sensors =3D <&tsens0 15>; =20 cooling-maps { @@ -3334,13 +3336,13 @@ map0 { =20 trips { gpu_alert0: trip-point0 { - temperature =3D <115000>; - hysteresis =3D <5000>; + temperature =3D <85000>; + hysteresis =3D <1000>; type =3D "passive"; }; =20 trip-point1 { - temperature =3D <125000>; + temperature =3D <110000>; hysteresis =3D <1000>; type =3D "critical"; }; --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (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 1B1231311B9 for ; Fri, 10 May 2024 12:58:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345927; cv=none; b=t8PdJdUxgQ/wXwYGheR3dI8UEKpXcUpi+Tzs9I6OKN98FkzAaWiRDptEcBrDQedOO5qNiJy2RsCDwqVgvLK6msZqxIee1+kMS9i1oEzj6PSJInrBYR7hyZw2suaUUAUiaFxRwFLDcV9ssbivK6b1/8SMvQvOLDVqNWvDvKXHXmk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345927; c=relaxed/simple; bh=bRUdpwvsxjVEA+bEIQiwaB+/SrBiEO/590bU96RlLgI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hFdc2vjameUQ0iebK8Wv09UN+tqzWSt/t/RxzjLAp9Tp1eumWpFobWanGptisssXGI5NYupQizaUj96dKHSfFOQpyKFwROL6ml6aXkCsgDWJGXLjBCjuBoV2JqalclKaK7exjZnTzIbo8Z5MahV9+9OXZ1xyhsJn/4utkaoWdb4= 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=bRh6CPD4; arc=none smtp.client-ip=209.85.218.42 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="bRh6CPD4" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a59b097b202so467324866b.0 for ; Fri, 10 May 2024 05:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345924; x=1715950724; 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=Tv5Or4RfPJ0awNc1s7KQ9nHBJpQAMX0v2SVx0hn6YRI=; b=bRh6CPD4nhn8Q+FjDTxNcSuUg1zKmgfSdqStowhgu0YH9MPfXu+Av8EhcaZKxlwTU9 ZVcSs1GBIVP8fYcyv0cTGvhMORTymYbz0PDLaNsRGqIRtZFMgy/NQ+ZXfz/ab5fDeNmx iogriMiCGMszOJlOnA5aSdtuEl5F90nN24/82pgeiNMFZ/ayONV5L7CsnVMn5Lqg5flU vCxOzGfg2NagcMktkdws0r9wtQ76a4ozOt8vHtyoDraH+v0xZOoqbAL0zWfpEwBoMsZT kwiKtT6fTkFVxyqSaf6bSTYUlK3EErEbcqWKvcbbe4c+dX4RJ097gfZgpwNGpRfiApud rlYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345924; x=1715950724; 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=Tv5Or4RfPJ0awNc1s7KQ9nHBJpQAMX0v2SVx0hn6YRI=; b=UICbubH9b9FCWfaQBjofqIWPxriVQDE1qlHfykO3/V2UQhBvoTPbEba9QIV+XcWE1P wax9T8qI8spTurXck2PaHpnGy+M8xqT7uc939r4dGLskmcgV/wiTXldhnwqsHnysxAsT OlE+Nzb5yEABtUfqSFL5/1jg4NM5PrsslN5Uvo1qOBZr/RRkPdt3xdzsn/mDTAm/AOyN jXNXmLxL2PPQZNfNFr8oYF0Faib1w1Pelgbg2HYO7h8fCCVxXP8jv9U5qvaaQ/ItNxnl GcN2NVXBV+nbFJ1iAbj0kuzYuXlb5eZ7gJK0FHK+nM1W9rwPI4BULFWGdE66sgoKTY0J 4AEA== X-Forwarded-Encrypted: i=1; AJvYcCXevt0Tm2z2wF5TNa1mGZ56UBfVYq3Rz8zYzzFIWGkBeIZ/y0eQz0los7lncY0yoW3fouROw732gbzWkioFf2Hj4cjWSXQJFyqAZll8 X-Gm-Message-State: AOJu0YwVAPETGdrfiAb+ZqingaPsvRnW2xRWJYO7DRj1TgxObGGorPiP a/GMZ7mnGGvb5px+0iiXZL0VmF+9zLQ8eTCVUEy9TweD9XoQcygaOnNJn0KQjRizd+eW8ikvpJZ TZgQ= X-Google-Smtp-Source: AGHT+IHD0lGCCIKmW6BWOHjW9Nj61cGVsLD6S57fVLRbgBMQdAoeu+mJwyfD2wrtNtlC6lofYf/JBQ== X-Received: by 2002:a17:907:7f94:b0:a59:ab57:741e with SMTP id a640c23a62f3a-a5a2d675779mr221351466b.76.1715345924587; Fri, 10 May 2024 05:58:44 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:44 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:35 +0200 Subject: [PATCH 06/12] arm64: dts: qcom: sm6350: Update GPU thermal zone settings 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: <20240510-topic-gpus_are_cool_now-v1-6-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Lower the thresholds to something more reasonable and introduce a passive polling delay to make sure more than one "passive" thermal point is taken into account when throttling. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qco= m/sm6350.dtsi index abfaa1178a39..99813f380df0 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -3177,18 +3177,20 @@ ddr-crit { }; =20 gpuss0-thermal { + polling-delay-passive =3D <250>; + thermal-sensors =3D <&tsens0 13>; =20 trips { gpuss0_alert0: trip-point0 { - temperature =3D <95000>; + temperature =3D <85000>; hysteresis =3D <2000>; type =3D "passive"; }; =20 gpuss0-crit { - temperature =3D <115000>; - hysteresis =3D <0>; + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -3202,18 +3204,20 @@ map0 { }; =20 gpuss1-thermal { + polling-delay-passive =3D <250>; + thermal-sensors =3D <&tsens0 14>; =20 trips { gpuss1_alert0: trip-point0 { - temperature =3D <95000>; + temperature =3D <85000>; hysteresis =3D <2000>; type =3D "passive"; }; =20 gpuss1-crit { - temperature =3D <115000>; - hysteresis =3D <0>; + temperature =3D <110000>; + hysteresis =3D <1000>; type =3D "critical"; }; }; --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 54A8816F8E9 for ; Fri, 10 May 2024 12:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345928; cv=none; b=dYEiTLh2mGrYehbq9/dV9HVy8dHzATWtZNxYUl1ZLjlZv0FisLEGX5sj3CSxqUii/oWYGCRYzVK5XZ8nKukhzRtl8DVpMYUidkk3TTQce0GyzjBc+xnOOKKbqZ2QIrcFHHBMBPXzXY/PdvKKQ/gqthqtngPfxvF8diJBQ8lwa4Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345928; c=relaxed/simple; bh=N7Z1UTqSXat0Px8O9Bf8HVTVlZ48y7r+JK1PVbiHrJU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lfrzKHkPsT7W0v1Q9xU0R/bU3jSzwZ/ue4V2j8c3gqzwksIpe3RgZWvKyAv80k2rTWpKN93ZBb1oT3NZ3doBPjsfeSSFk1+dnJ090QTZDsADOxOmZKbiJUkmvGI80bsaOEkrBlfvD2EZjzV43XUnmZM1C+HCSDOC2NXj0zxSh1o= 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=d9eMkWgt; arc=none smtp.client-ip=209.85.218.45 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="d9eMkWgt" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a5a1054cf61so506313966b.1 for ; Fri, 10 May 2024 05:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345926; x=1715950726; 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=+kvJ0NjI9lgZVfze2m0LNfaiMKZki2itDXIFFMMddwA=; b=d9eMkWgtaoLPS6D8rTcxMY2AykfIJ2xWB6ndeQ/srWHyVgzmO3oNdQljJOfdL7uPZy RkylE7JqD4Z/gFS3AixhvLxpRSE6gs26gPdFyKb6djl+Oz2V7T1eWlUxMCpGYluRcNgQ Q8IFtiYXsM8kLwlmKbKwnW4ihyXr9vbwL8DDXcSgvGxhx5iqLLmxRAi3yzEY8uv4m7D9 bvZo1LfD9VyRg4QLJXuvmX1Pt7Q4anR0LkpY4F2HZHg9b2Qa+mLrjva1Q+qoWS0BuSm4 fvDcP+FRErRyUXvet91/dGDcjymLrcNloclZc16vJxigbCkANHKwUP9GBwMwG4Ifz0Em iluQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345926; x=1715950726; 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=+kvJ0NjI9lgZVfze2m0LNfaiMKZki2itDXIFFMMddwA=; b=cG9NPHIArzxVtYn9L5NmIH88rSCQ48bhhOumcMGnhjj8mup5OpoHIj9uMUZUoKl/Sm g2IKAspwRZ8PeePQpXhgFZzUHewUfn0hbFDPFsRRzURWzdGZr+GsEH3ua53NFnJImkpx snhtCrhQGBZxoW6T3nVkIFLXgxc7UKxa9Hm3ZMTJMtY2JhbrLwqp1BQY4CQ6OhokUC42 zVrc39HcSQcAdB0KO/MCFJBf+Ny6h8uZWDd1UXkLG6zJyf3s2qiPUXn0Bdh3I4V/cBYy G2NmuoFHWGeL9+0lMJ3DpUiV4FtbC5LPsrFp7K1gucZzuscN22CCmxA+H8bjEG5SsWaH ix8w== X-Forwarded-Encrypted: i=1; AJvYcCVwSmVvFCYE5OZFwr2+oDpoZZVsaRqu080g0yK3QJRxhvzguPirVUgv8gL0Tw4uoapFmxViWifg6ZE9Ev9sdJq3Y4XXda1lBCVbJFVw X-Gm-Message-State: AOJu0YwaPeaPbluspVCoCVpmJrb4zDx7FIDrP2x6sQ133k5VL9+l4VHI R7bUHgSnDQcxRV7r18k4XmdmjoCHYNczSH+E2ZzJ9P2DxrNlj6Mi0R7xHAOY7VA= X-Google-Smtp-Source: AGHT+IGalolyTJ0z7eOceIS7ntIwx3MY/OTBAactA6M5X3a/KbMMqJ+6bB9q1BJKjSHRmADdQNoQBA== X-Received: by 2002:a17:906:1992:b0:a5a:15f6:157e with SMTP id a640c23a62f3a-a5a2d53adcamr235167766b.11.1715345925757; Fri, 10 May 2024 05:58:45 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:45 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:36 +0200 Subject: [PATCH 07/12] arm64: dts: qcom: sm8150: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-7-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point to ensure the thermal framework takes sufficient action to prevent reaching junction temperature and a 110C critical point to help avoid hw damage. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qco= m/sm8150.dtsi index 1f597f03107b..8e9194051283 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -5157,10 +5157,22 @@ map0 { =20 trips { gpu_top_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; =20 @@ -5332,10 +5344,22 @@ map0 { =20 trips { gpu_bottom_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; }; --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.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 6B88D170846 for ; Fri, 10 May 2024 12:58:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345930; cv=none; b=TaV5Syarhzn7OOHYeR5nUS6lw5Z5F4TuBp8p/9KmjxLLnMjUGM05RbG/a49GJUrdxcKG68N2iPQLgG3OK/YaTJS0Yi1BORHEJ4NndM86ugkRdW5v3oV8lGR43T2pFYqphHl5BoJUzTFIVOZGnE0CuzZoia/NbFBmK2sUJu0n5FM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345930; c=relaxed/simple; bh=Q/00BRJkklPf9s3fO8pNKrRKTd5/TRA3QyfrOoaysZM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KTKIBBYPHYaIpBC1zEjVXxULge1XdlfhP5YB+kEvEqGX7gA55TB6bn9HyqNhhDk58GMuHdLeRj7OYNMo1OmaYfrbkuI87gdkGLGRyitkGiorlKTxkjihLbQis9wY1vUyPoxcG5Kq7dqM7vtdbDms+MR4wo532X7FyEE9kBzwx2c= 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=Gh0cfRgv; arc=none smtp.client-ip=209.85.218.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="Gh0cfRgv" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a59a8f0d941so483017866b.2 for ; Fri, 10 May 2024 05:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345927; x=1715950727; 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=2C/n3zrsGQEl/w7MYTYQqZ44jS2ToMDUKr4rl0zMck8=; b=Gh0cfRgvoDc51AgDGh47O4xreRJOUCfsWbOFbdN0tP4moabCxlN9ju1+PGvmnM/SuA jTIWNMygZBZj+Sze0WghWdvNPbKHYxc4n7Aso4SvRsUlnnKKzKJ/4BmAFkSSy2pds3hh /r/Lni8dfOzbtcSL13S9jQdAlg8TSFyQPj2HBHy7MZ6O3nGA+L9+9oeyOIOU6vPqk8CY A8z/NIHStS0ipluegbXnh+p75JnJ8mOwgaj0wSP1tsoPgrq/lIknfdPcjHAPQ5TxZZDy 5n5fJ8TBLsE2csF0ZHsyIW1rdq45SiVG/xlWrOiYqnhmP+2CQyxuAM00S9qwziFsPrC4 wfdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345927; x=1715950727; 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=2C/n3zrsGQEl/w7MYTYQqZ44jS2ToMDUKr4rl0zMck8=; b=L7JBu9xBZjUL0Vu/AeNsVXSgtvXoHAAks4Irdd3Z/E2wk1K+9aiiswLM3BEJkUWqQj 9ig/VMWgZb5YtEFkUTMfZUF+BAa2wleCXEsRviFX233bcLvWy/Rnn2m2B5cu/lMFY+0+ R/HmpCC2R2ktrt6hlvsyfL0lYzDXQN/sGcSWj/H2ow8cwfPvX8B65ZU4fkVKXeVH5iDt +yLzkPu32kNUXI7e6FvSPQeBDLBXEXySvj+ErKJBfC58BLeDQsXzSyZxE1Cy/ERzi2Yg iZBRUN1GS0/dXfOeW9mttxMFRm/YerFLqIH0LDPfDy2QwskPziddlpy0aRysOxfO9IZe SDow== X-Forwarded-Encrypted: i=1; AJvYcCVMa4fd06IlU4RpzwnzOrPM1N4MynzlYf6SXAz7Rpn4uCbX+Sv9owgNm9Eb+r9FYEefZhDinz1xDL7FXnPKpyudI3sOoNMI/xiKFx4p X-Gm-Message-State: AOJu0YyrTQjKdy/3rfGtVyGKZsUVg/3/Z5lURY/iEyanrRrvtUhf6klv c7YgQT/60LeY5XGemxBlBSmMOfz6jN3TjgdTTsSib+k4KWDceJ6bktUHoRGVrGc= X-Google-Smtp-Source: AGHT+IHSz4PmItWjK52t+PowWobXv69T8rGUTfx3gdtmyvYhvgC4+6C2HVB2d8UAWyDzcLKOOLBcKA== X-Received: by 2002:a17:907:1b0d:b0:a59:cbb5:e09f with SMTP id a640c23a62f3a-a5a2d65f230mr198156666b.53.1715345926982; Fri, 10 May 2024 05:58:46 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:46 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:37 +0200 Subject: [PATCH 08/12] arm64: dts: qcom: sm8250: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-8-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point to ensure the thermal framework takes sufficient action to prevent reaching junction temperature and a 110C critical point to help avoid hw damage. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qco= m/sm8250.dtsi index 1a1202bdd915..b734aa13fd2e 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -6855,10 +6855,22 @@ map0 { =20 trips { gpu_top_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; =20 @@ -6988,10 +7000,22 @@ map0 { =20 trips { gpu_bottom_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; }; --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 98BD0170899 for ; Fri, 10 May 2024 12:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345931; cv=none; b=R5uhZWApJjNms8cVC6GYKBjOjtaAT6x7Ote51o+oAwB+QFkx7eWJ2oC1iYvPl04FjxsTBhP/DfQzDaqy8jncBYsFLiTxVh8npF/BPOkE60nW4RxpSTcCDg17IjRM+kGAokIJGXl4URythiYcpMpzMt13jBfpBgtiTXdB3s8Hw9Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345931; c=relaxed/simple; bh=M8G2mN4TaffnfNOqtxWoho4eYoLY7YRmtFMMoVV0Cck=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ttg7BNHVTNAo1oUo5LOLYP2gNPJRJWgzdFqjF3Ps6V/+ZQPhIOAYEZj0b/p3vQ66LtNgudaeidxWNCcIxbfazb+fS9vqaApmrpDnctDAL6Mi2vCy2ERiIzwqM4igmYV20xVp+g0oy5+OlR8YpJ5kLad4nnCbR38oLmRlAivoy5Q= 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=wLqRh2Zw; arc=none smtp.client-ip=209.85.218.43 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="wLqRh2Zw" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a59ab4f60a6so443829766b.0 for ; Fri, 10 May 2024 05:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345928; x=1715950728; 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=REOe2/rSmMpWIuGPFH1QLzss9p7iDlF03Wz1gvDMeLQ=; b=wLqRh2Zwo5rAoi6K76+WiC37pSaDINzFaw2m6kbOMtsu5MHXlVqrJcLuo90hzPunNs +Rk9dpmda4lGaM2EkLJNQXBgS5GjZ+abmp3l85FPJy1D3mLl+P7W3saMUj/zOiWOR2MB 5lvgVz5ROxMGhAhF+lILDbjRNTexWSEc2lHkGWrNmKFZx71wqdj6MqXAW3zS8VVrVkA2 H19z78kgG6cKnm9bUEGmfI2HgxWX5IlFcCEfVUlN6mv48m/7yB9SwMqMKdYEm4tsprOk DHOJ6HMEr4lQt3x4HKcf85OxUJRBZ97EDwEnu3tUOrXuFCMsIHvgaBgeK1ARuLA4Kk2w Zfrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345928; x=1715950728; 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=REOe2/rSmMpWIuGPFH1QLzss9p7iDlF03Wz1gvDMeLQ=; b=X8DlFtYxUgENE0ALsIGWDwHeOVrqL34UPQy7S8sEUmC549i3XzSCrUIqlsZ9yGQ2yi 0PejNZTdbNrf0JHfR6cUeT4dzNaP55daiLwtOWKULsARaxd1HUbcxRmZJNg+fiJ0J35o o7GHUeebDynerfVFjn7Qvi4FYLDmK9JfNBvWmcPTEE3MBC/ne+yPEbstr6I0uVfLgZAk EBa237FKxXQlqxiEdVnSyX4z8wR99YlMdQC3B9ObKhYM96h+VkoF+2qoqQ4sdZzrJYAN sjI8x387dZr0QiRiVO7eGymlFGYnTd9xaUxDOy/wduMsZWQHFnPjirj/ICx3aVrImB3T 7SCw== X-Forwarded-Encrypted: i=1; AJvYcCWSOsfkUDDK9C2nMdpFs126upAzSyZiTrwf5h8Qeyb89rjAjvnU4FVeF3CQu99CNx+FNbjO0JJP7q8pkZYl5+eJw8RuLoTKp97AHMWG X-Gm-Message-State: AOJu0YzXLwXlqpiEyrUvDa38s34rkLan5iL3Zq2gNY2YzmuDitD/wQI9 FqZaYIL0Es6QzHKg86lOPB6x9LO09pYIpifT7uU8ksFdsuprMWzqXV1eBYUrWRo= X-Google-Smtp-Source: AGHT+IGmtosNKiZsmXipclDdUMX5B1eUzYiRvXVU4iJIo/8nky814hTE0SkCNKwjjcTbgLPK0VkdqQ== X-Received: by 2002:a17:906:1992:b0:a5a:15f6:157e with SMTP id a640c23a62f3a-a5a2d53adcamr235180366b.11.1715345928254; Fri, 10 May 2024 05:58:48 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:47 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:38 +0200 Subject: [PATCH 09/12] arm64: dts: qcom: sm8350: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-9-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point to ensure the thermal framework takes sufficient action to prevent reaching junction temperature and a 110C critical point to help avoid hw damage. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qco= m/sm8350.dtsi index 526d3c92eae8..94782180bce7 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -4259,10 +4259,22 @@ map0 { =20 trips { gpu_top_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; =20 @@ -4280,10 +4292,22 @@ map0 { =20 trips { gpu_bottom_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; hysteresis =3D <1000>; type =3D "hot"; }; + + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; + }; }; }; =20 --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 09F7E17108A for ; Fri, 10 May 2024 12:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345933; cv=none; b=DrFsRLnfnBBojS1ibA3w+1NMGkNZsSh0j6Q3iVAf9iFlJSbjTXfyff2peeTpNtzdmBLXd96xYL7TfUVYJVK/CjOIvEfnowuCgScwbZKlcJC+OhymH5OejDflj/ivrOD1rHpH8IpTo2ZEqk+kYev5F9dWR6IEJ0TpvwQyq3f20YQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345933; c=relaxed/simple; bh=ahnPT653i4P3yBKIsubPh2pxiiWDa4+WxBcxEAxXX1M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OBr0lHkn67r02Vv2mLqnuoO8tfHqO0AP+TVy50OBo6O02y1uVbBaxDt268E/xNTo1rlrcpyzV6+F/Vzy50doaBG24AtgSHPfBU2UxZcMNxJihbFHhvvRchWso4OTbpxfC8gxgAddSbe0ZBhMiWopfCUqmLaGRIAKF7FZYj6sSrM= 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=C+NSkcVY; arc=none smtp.client-ip=209.85.218.41 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="C+NSkcVY" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a59b178b75bso410861266b.0 for ; Fri, 10 May 2024 05:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345929; x=1715950729; 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=lK/7BWX9Y0nvD7QdHzfYOrPNJBMxWT+Wj9Jc9yOJ7ow=; b=C+NSkcVYRw1yU6u8Qrmp9jkbWC//3TcCiCyvGIemh9q9plKZqJZjYeMDIQJur2/IME QTkBADHuy/l1VN2+ybubn+JDJOgBHD0esUPSwswgRaMZkregdsSb2+eruQ2CTAwp8CFc oVjhY0mpAnGiAhR3w7Egk6wQ8YEUkfWD+t4sO5817kpzTbc8ya/pC/H2Cg8ElyFN76Qj ab2v0ZznSsVuPDYXXUxT0fEMA4UQUlrSntfNC2Gh78VKdfs6Dpy4b5cy2joNrucsHJYS VTX2KkpG87m3RSw2/UwBK4QCFnkCJ3gttjmyzkw4pZlgqbYHVMcg8uhfyVNRAqwHK7HB yAXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345929; x=1715950729; 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=lK/7BWX9Y0nvD7QdHzfYOrPNJBMxWT+Wj9Jc9yOJ7ow=; b=FYaGLaE7keboj8EdAH0qNnVDmnZwfNJdyzlDRbdxRE/o1giyrqJInNNSn75TecvVIZ FSEjDNwHkOOqSJaQatSh3EeXJoHbhsCQhIAZo8oNZc9O4WQmZ/xH4yzX8fSvzHdMsQNM fH1JX9fBGh5eBzC6swYjCngqZe/CvKKoQgfj6y0tEUPR0ibRP9U5CcTRGl5YJrJtr03c E8ixY/tVLEJarmAEBB/jh5c+dYMBKhNPBmRz9cHhl5Uw4R1AZOkUaXs2mJS/LM0kiu26 KNiXtNRAT4jvT6YEqSW4jybrxlrnhwt0ediUY/YCfUmkpvycOOf9rYBlVV4wxasTBxnp eigA== X-Forwarded-Encrypted: i=1; AJvYcCWWqXrI65wz8JFlZlNbywLabRM0ZXu8Ocy3ZOSFmEmbs9iPdLsICbh5QMws79ptZGHmeX2Pc2H3l454oxIfWzakCMh0OBqKJBuIKloC X-Gm-Message-State: AOJu0Yyv2Wly3Cn8btNSYB5Gs3jkegi8lHqqnzgEDaTJXaIUSfGaBowd s//ubrqbRYTXKXolLSpvHKaCi/LAt7yJy0In3p2dguZTPb7kkZsiExomk+NNfIk= X-Google-Smtp-Source: AGHT+IHKOpovGI5VphV3uLsVQmzdZyHyTEMnWFhb29n1MWn9SfqDm/GS+pvSKWIWCe5hMFJVhvUzgA== X-Received: by 2002:a17:906:4ed0:b0:a59:c8bf:1269 with SMTP id a640c23a62f3a-a5a2d5eebf4mr178676766b.37.1715345929554; Fri, 10 May 2024 05:58:49 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:49 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:39 +0200 Subject: [PATCH 10/12] arm64: dts: qcom: sm8450: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-10-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point to ensure the thermal framework takes sufficient action to prevent reaching junction temperature and a 110C critical point to help avoid hw damage. Remove the copypasta-from-downstream userspace governor entries while at it. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 48 ++++++++++++++------------------= ---- 1 file changed, 18 insertions(+), 30 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qco= m/sm8450.dtsi index ee60fd257efe..38e8d3e9dd43 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4928,28 +4928,22 @@ map0 { }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu_top_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-cfg { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu_top_alert0: trip-point0 { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -4967,28 +4961,22 @@ map0 { }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu_bottom_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-cfg { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu_bottom_alert0: trip-point0 { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.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 B9AC9171E48 for ; Fri, 10 May 2024 12:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345934; cv=none; b=GP+9Pp/uvwj3JmssI+pkYkrXZuVS5hbA2B7J1Fw4ifU3lXSGviWyLNAnsZaAZkhVKywtFwQHfUpc5GYQ6Al/T9NS2KpAfp54jnkH9aoyO19s1PFPdos1jGCI08wsTOxDNf5//9eGrkjUDXuJolEmBlsCKxPXMYe18Kn1QVBE1fA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345934; c=relaxed/simple; bh=mpXEdYIGFNmeTr/UviAkCq3TuhB6htqAviYK4ZRdST4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Q0pTVi0Dblkj1bM5jkkHi+oK7KIYN2RfBECo6hxjLuUvA4B8GIe/OJgG5jKjeqHlariI9Py67ox9ZyAe7aBpo/VTu2bFd+D7Fi/+nUDPGovizTaiUlglv/PeWuh2tuYeiw92OeC4kJrMC5aZY0jiQIip2v0zQFifez8lA9eUDmQ= 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=j3jLTrDQ; arc=none smtp.client-ip=209.85.218.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="j3jLTrDQ" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a59a17fcc6bso483048666b.1 for ; Fri, 10 May 2024 05:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345931; x=1715950731; 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=O4LbWL7pMtjLjzOImlyCMR2kJQmPr8y/+o1GWcjQzcY=; b=j3jLTrDQe6VOuAuCGCEoheWGCXxCGtTVffDaxhsFqer6Lm6bMLf0EoSqLxUo01frxc VqD3OUb7zQxVYPbIUKGPWrkpZ3veaMjAuihExhQIdH0A/VcjwsnBTu2JzTtz2RRfJKFw MFecPqzuWabJw9ICaXKwzfI9AdJzQBnV4OPtpjRTSTyfJQbj7tlcAw4jWtlgrUDwAdJr xyeZiOXeLvvjXkxCHR/DLftgqZkF0EM50gzT2rPpSscCSiFmDgO46SeQ/ymJSfySePEr zSKu4eZBXQE/xQlECCzscBlvsVPrLsHD7R706WzhGjHaC25j49fn3EUsJtzDc1er17Zh 1vhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345931; x=1715950731; 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=O4LbWL7pMtjLjzOImlyCMR2kJQmPr8y/+o1GWcjQzcY=; b=KwVaIRPLHsd7sma95yThWD0VomtuTCoROf4yL6VW1aOzKcCZyHlxt7wO/NbJzJLfnZ AOAW1IfVNokwwlN6H2lm+iDSBSHPXMWrKraITCrx2Uipicf6IQE4ILGa/3uSXVbhF9Pv 5Kc7Boxfid+Io6e7Y2368vAGEYGTGC9XF+5+J8PDUjfvO+9ksjy4YtFdtG1uJYjdePEX cuZlTBZBeIYc6PCsjqG4jsd3J3GFkVi91UYQg+g/b8UsNW0upjQoNxdxfcYALe/yX8tr dZV6ARAaoe7PcjwwYqdxC9ian49REvyoQBrSabHVRLMJn3yqAcm84ubUAFNu7SxLGC2s SBfQ== X-Forwarded-Encrypted: i=1; AJvYcCW5ksIpZEtcAuQaKF1CRr/N4CVro3MJ8TcJgwMdlSXMTm1O4knC7hMuFRiB0EeaklBJOXu+fnq8eTWra/NboPcCJ+Ih4y/Yf1w1oqoS X-Gm-Message-State: AOJu0YwfrdfS7rrxWVzLIgDlHuJJDCn20jmpmxPvfBLTtX4B7X0azZ7x jag+UL6IBsCApCig+kZ7PWf7d0Qd2HA36Sd4IhJVpLCm0pYWY7juX62Srjs2h074dh+6IpZ9iSe JZIk= X-Google-Smtp-Source: AGHT+IGI57Bi1n2fSWaj3BnGu8+gLQ7UsRwbt8jtGmiWAX79UoN00c+v4fztEghOnN7ro8+Vzsqeag== X-Received: by 2002:a17:907:77c3:b0:a59:9db6:535d with SMTP id a640c23a62f3a-a5a2d67862amr168929466b.65.1715345931104; Fri, 10 May 2024 05:58:51 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:50 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:40 +0200 Subject: [PATCH 11/12] arm64: dts: qcom: sm8550: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-11-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point to ensure the thermal framework takes sufficient action to prevent reaching junction temperature and a 110C critical point to help avoid hw damage. Remove the copypasta-from-downstream userspace governor entries while at it. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 208 ++++++++++++++-----------------= ---- 1 file changed, 80 insertions(+), 128 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qco= m/sm8550.dtsi index 51c547872438..23f769a5b1d4 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -5367,34 +5367,28 @@ gpuss-0-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu0_junction_config>; + trip =3D <&gpu0_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu0_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu0_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5406,34 +5400,28 @@ gpuss-1-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu1_junction_config>; + trip =3D <&gpu1_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu1_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu1_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5445,34 +5433,28 @@ gpuss-2-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu2_junction_config>; + trip =3D <&gpu2_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu2_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu2_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5484,34 +5466,28 @@ gpuss-3-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu3_junction_config>; + trip =3D <&gpu3_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu3_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu3_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5523,34 +5499,28 @@ gpuss-4-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu4_junction_config>; + trip =3D <&gpu4_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu4_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu4_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5562,34 +5532,28 @@ gpuss-5-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu5_junction_config>; + trip =3D <&gpu5_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu5_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu5_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5601,34 +5565,28 @@ gpuss-6-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu6_junction_config>; + trip =3D <&gpu6_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu6_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu6_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; @@ -5640,34 +5598,28 @@ gpuss-7-thermal { =20 cooling-maps { map0 { - trip =3D <&gpu7_junction_config>; + trip =3D <&gpu7_alert0>; cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; =20 trips { - thermal-engine-config { - temperature =3D <125000>; + gpu7_alert0: trip-point0 { + temperature =3D <85000>; hysteresis =3D <1000>; type =3D "passive"; }; =20 - thermal-hal-config { - temperature =3D <125000>; + trip-point1 { + temperature =3D <90000>; hysteresis =3D <1000>; - type =3D "passive"; - }; - - reset-mon-config { - temperature =3D <115000>; - hysteresis =3D <5000>; - type =3D "passive"; + type =3D "hot"; }; =20 - gpu7_junction_config: junction-config { - temperature =3D <95000>; - hysteresis =3D <5000>; - type =3D "passive"; + trip-point2 { + temperature =3D <110000>; + hysteresis =3D <1000>; + type =3D "critical"; }; }; }; --=20 2.40.1 From nobody Sun Dec 14 19:13:30 2025 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 8D2D5172764 for ; Fri, 10 May 2024 12:58:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345936; cv=none; b=Q3qq3LvheDd8C/PBeax5ejsu1UDIRfDNz86PClNy7i6mzhZSJJnexiFFbig6QE7riWzHMQBWYOatrL8byztNf6GlA/MSGtMD6XymTGRSOoke03RJ7wIlpbqqGPWEFahoL71aUuscZycbg219yVBPubLws8YxlCje2vUEprjkx9g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715345936; c=relaxed/simple; bh=Cl7BuIrFlAl4aD4Z00HnjW4zAP6QqudUQ1OzmOr+xi0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nipGedVlVWcQqczZEHY8oKxxQJwLiHXuVgEpJ5RK0Tcprsqq3XVsWcOh93MzcLGdikTTtfVgm0ifXEUyNROC2u6d6Bj/6evn7NgKZOxt1av2dXksev59vBH+z+aXCpsytqHgLQIqD6Guw/e6gZciFlBH/E9xHrDlKnVGZzwIg0c= 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=aCXSgKdJ; arc=none smtp.client-ip=209.85.218.49 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="aCXSgKdJ" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a59a0168c75so524252966b.1 for ; Fri, 10 May 2024 05:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715345933; x=1715950733; 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=GzNgccEjJJ10l5IzhJDmyxwX1t0d4Nd8C8K0mQGyahA=; b=aCXSgKdJRS4C4o80IYRwlowg/iIz138wZ7jcqt/AM0R8vw26yutPcjoVzyDnUsn7AX ETlNJEiSLSRLdYHWxqWOzQfbysg5JrZcACZ0CSsxApmRIIry2JjM7c7RsBlwX0rgQSpW Fql2Y7QAl1tHRQ9IYYUJqT6YujSns/sS2Kh/Mt7ROKQDckKKY1c/EgALXkP8DdMmDNz4 BDWbcluzE8PHAs4hdlHu7KVJLxiufLY8nrOcalbKbW8eAfO4R8IYXUQ1zDv40SDXLV1R 3nbTasOXCBvaDhri4pgs2/916LXAZmsnxj0ZipEkIfE6IhafsYGbC0Fm7Y+Bpuy52+tr FjhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715345933; x=1715950733; 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=GzNgccEjJJ10l5IzhJDmyxwX1t0d4Nd8C8K0mQGyahA=; b=iog2Qb0Yft2MLe/ue/4yXrUEEJ2zqLmQJAN1S/46tjLkebUPdcFq0CMa4SBMilyxxu wzWXvfBRPHJfX3PfSpgU2Yk6UUh6k2RQ+LTYqRcAD0N9ihT8VcPz1eNdZAIHk6no/GZX JJZOi2R9Qac+UZ4JChsmxLg3Lunnsto9XN9wLEjo2Jfa78sWjUi2gId+xPkd0p8fFBrM OcrL96JCWrzVY4sRhK2C7cTz3XAFx2bgZhJSMQzkDHmN+qVCRz/fmRlDGpBlHG/rCk0h 0vaxGUVL87rHm7pALosy0UN/oWln7ddXBW6h7bvAOkTYAi/PCxu3U6xQGmr0IWRwMDD0 QccQ== X-Forwarded-Encrypted: i=1; AJvYcCX5AYjc/4qsS9AXgo9v5OE7eCEV8WmGcUEcjJkSGjzhc6duAo6Fig+1fcYBR9G3fwiC8r2RYUAdBxEYAxWTmq4RckpjF8oOFZfrd9OJ X-Gm-Message-State: AOJu0Ywq5/pzXF7u09ktriy9bzNqLB2rfn414cmQufSX36kogTpilx60 VMVisBDIRpW94H2CbjcsF37+vVYQtDPYarOPdIEeFr3ZInbfkfXwnMWiNXfp4GM= X-Google-Smtp-Source: AGHT+IGz49EaXDJIZQ+dIlV387Idl3kbEJONmp6R+FnxXMvoNEpPp9bR6PYBM3a5UI0kgiLKhPl3Mg== X-Received: by 2002:a17:906:194a:b0:a58:e8c7:c0b8 with SMTP id a640c23a62f3a-a5a2d53ad9amr179754066b.7.1715345933040; Fri, 10 May 2024 05:58:53 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d6bfsm181857366b.31.2024.05.10.05.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:58:52 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 14:58:41 +0200 Subject: [PATCH 12/12] arm64: dts: qcom: sm8650: Throttle the GPU when overheating 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: <20240510-topic-gpus_are_cool_now-v1-12-ababc269a438@linaro.org> References: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> In-Reply-To: <20240510-topic-gpus_are_cool_now-v1-0-ababc269a438@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Konrad Dybcio X-Mailer: b4 0.14-dev Add an 85C passive trip point to ensure the thermal framework takes sufficient action to prevent reaching junction temperature and a 110C critical point to help avoid hw damage. Also, register the GPU as a cooling device and hook it up to the right thermal zones. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 169 ++++++++++++++++++++++++++++---= ---- 1 file changed, 137 insertions(+), 32 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qco= m/sm8650.dtsi index 39e789b21acc..1b20d0fcd3ef 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2626,6 +2626,7 @@ gpu: gpu@3d00000 { operating-points-v2 =3D <&gpu_opp_table>; =20 qcom,gmu =3D <&gmu>; + #cooling-cells =3D <2>; =20 status =3D "disabled"; =20 @@ -6014,16 +6015,29 @@ gpuss0-thermal { =20 thermal-sensors =3D <&tsens2 1>; =20 + cooling-maps { + map0 { + trip =3D <&gpu0_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpu0_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 - gpuss0-critical { + trip-point2 { temperature =3D <110000>; - hysteresis =3D <0>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -6034,16 +6048,29 @@ gpuss1-thermal { =20 thermal-sensors =3D <&tsens2 2>; =20 + cooling-maps { + map0 { + trip =3D <&gpu1_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpu1_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 - gpuss1-critical { + trip-point2 { temperature =3D <110000>; - hysteresis =3D <0>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -6054,16 +6081,29 @@ gpuss2-thermal { =20 thermal-sensors =3D <&tsens2 3>; =20 + cooling-maps { + map0 { + trip =3D <&gpu2_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpu2_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 - gpuss2-critical { + trip-point2 { temperature =3D <110000>; - hysteresis =3D <0>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -6074,16 +6114,29 @@ gpuss3-thermal { =20 thermal-sensors =3D <&tsens2 4>; =20 + cooling-maps { + map0 { + trip =3D <&gpu3_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpu3_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 - gpuss3-critical { + trip-point2 { temperature =3D <110000>; - hysteresis =3D <0>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -6094,16 +6147,29 @@ gpuss4-thermal { =20 thermal-sensors =3D <&tsens2 5>; =20 + cooling-maps { + map0 { + trip =3D <&gpu4_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpu4_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 - gpuss4-critical { + trip-point2 { temperature =3D <110000>; - hysteresis =3D <0>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -6114,16 +6180,29 @@ gpuss5-thermal { =20 thermal-sensors =3D <&tsens2 6>; =20 + cooling-maps { + map0 { + trip =3D <&gpu5_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpu5_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 - gpuss5-critical { + trip-point2 { temperature =3D <110000>; - hysteresis =3D <0>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -6134,16 +6213,29 @@ gpuss6-thermal { =20 thermal-sensors =3D <&tsens2 7>; =20 + cooling-maps { + map0 { + trip =3D <&gpu6_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpu6_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 - gpuss6-critical { + trip-point2 { temperature =3D <110000>; - hysteresis =3D <0>; + hysteresis =3D <1000>; type =3D "critical"; }; }; @@ -6154,16 +6246,29 @@ gpuss7-thermal { =20 thermal-sensors =3D <&tsens2 8>; =20 + cooling-maps { + map0 { + trip =3D <&gpu7_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpu7_alert0: trip-point0 { + temperature =3D <85000>; + hysteresis =3D <1000>; + type =3D "passive"; + }; + + trip-point1 { temperature =3D <90000>; - hysteresis =3D <2000>; + hysteresis =3D <1000>; type =3D "hot"; }; =20 - gpuss7-critical { + trip-point2 { temperature =3D <110000>; - hysteresis =3D <0>; + hysteresis =3D <1000>; type =3D "critical"; }; }; --=20 2.40.1