devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Bjorn Andersson <andersson@kernel.org>,
	 Rob Herring <robh+dt@kernel.org>,
	 Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	 Conor Dooley <conor+dt@kernel.org>
Cc: Marijn Suijten <marijn.suijten@somainline.org>,
	 linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	Konrad Dybcio <konrad.dybcio@linaro.org>
Subject: [PATCH 09/12] arm64: dts: qcom: sm8350: Hook up GPU cooling device
Date: Tue, 02 Jan 2024 14:34:13 +0100	[thread overview]
Message-ID: <20240102-topic-gpu_cooling-v1-9-fda30c57e353@linaro.org> (raw)
In-Reply-To: <20240102-topic-gpu_cooling-v1-0-fda30c57e353@linaro.org>

In order to allow for throttling the GPU, hook up the cooling device
to the respective thermal zones. Also, update the trip point label
to be more telling, while at it.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
 arch/arm64/boot/dts/qcom/sm8350.dtsi | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi
index e78c83a897c2..1c6f80b14d09 100644
--- a/arch/arm64/boot/dts/qcom/sm8350.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi
@@ -1847,6 +1847,7 @@ gpu: gpu@3d00000 {
 			operating-points-v2 = <&gpu_opp_table>;
 
 			qcom,gmu = <&gmu>;
+			#cooling-cells = <2>;
 
 			status = "disabled";
 
@@ -4214,8 +4215,15 @@ gpu-top-thermal {
 
 			thermal-sensors = <&tsens1 1>;
 
+			cooling-maps {
+				map0 {
+					trip = <&gpu_top_alert0>;
+					cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
+
 			trips {
-				gpu1_alert0: trip-point0 {
+				gpu_top_alert0: trip-point0 {
 					temperature = <90000>;
 					hysteresis = <1000>;
 					type = "hot";
@@ -4229,8 +4237,15 @@ gpu-bottom-thermal {
 
 			thermal-sensors = <&tsens1 2>;
 
+			cooling-maps {
+				map0 {
+					trip = <&gpu_bottom_alert0>;
+					cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
+
 			trips {
-				gpu2_alert0: trip-point0 {
+				gpu_bottom_alert0: trip-point0 {
 					temperature = <90000>;
 					hysteresis = <1000>;
 					type = "hot";

-- 
2.43.0


  parent reply	other threads:[~2024-01-02 13:34 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-02 13:34 [PATCH 00/12] Hook up GPU cooling on most qcom arm64 platforms Konrad Dybcio
2024-01-02 13:34 ` [PATCH 01/12] arm64: dts: qcom: msm8916: Hook up GPU cooling device Konrad Dybcio
2024-01-03  1:04   ` Dmitry Baryshkov
2024-01-02 13:34 ` [PATCH 02/12] arm64: dts: qcom: msm8939: " Konrad Dybcio
2024-01-03  1:05   ` Dmitry Baryshkov
2024-01-02 13:34 ` [PATCH 03/12] arm64: dts: qcom: sc8180x: " Konrad Dybcio
2024-01-03  1:05   ` Dmitry Baryshkov
2024-01-02 13:34 ` [PATCH 04/12] arm64: dts: qcom: sdm845: " Konrad Dybcio
2024-01-03  1:05   ` Dmitry Baryshkov
2024-01-02 13:34 ` [PATCH 05/12] arm64: dts: qcom: sm6115: " Konrad Dybcio
2024-01-03  1:06   ` Dmitry Baryshkov
2024-01-02 13:34 ` [PATCH 06/12] arm64: dts: qcom: sm6115: Mark GPU @ 125C critical Konrad Dybcio
2024-01-03  1:06   ` Dmitry Baryshkov
2024-01-02 13:34 ` [PATCH 07/12] arm64: dts: qcom: sm8150: Hook up GPU cooling device Konrad Dybcio
2024-01-03  1:07   ` Dmitry Baryshkov
2024-01-02 13:34 ` [PATCH 08/12] arm64: dts: qcom: sm8250: " Konrad Dybcio
2024-01-03  1:07   ` Dmitry Baryshkov
2024-01-02 13:34 ` Konrad Dybcio [this message]
2024-01-03  1:07   ` [PATCH 09/12] arm64: dts: qcom: sm8350: " Dmitry Baryshkov
2024-01-02 13:34 ` [PATCH 10/12] arm64: dts: qcom: sm8450: " Konrad Dybcio
2024-01-03  1:07   ` Dmitry Baryshkov
2024-01-02 13:34 ` [PATCH 11/12] arm64: dts: qcom: sm8550: " Konrad Dybcio
2024-01-03  1:08   ` Dmitry Baryshkov
2024-01-02 13:34 ` [PATCH 12/12] arm64: dts: qcom: sdm630: " Konrad Dybcio
2024-01-03  1:08   ` Dmitry Baryshkov
2024-01-28  2:17 ` [PATCH 00/12] Hook up GPU cooling on most qcom arm64 platforms Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240102-topic-gpu_cooling-v1-9-fda30c57e353@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marijn.suijten@somainline.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).