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 01/12] arm64: dts: qcom: msm8916: Hook up GPU cooling device
Date: Tue, 02 Jan 2024 14:34:05 +0100	[thread overview]
Message-ID: <20240102-topic-gpu_cooling-v1-1-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.

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

diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index 7f8327b0dbdb..31ceb1df550a 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -1794,6 +1794,8 @@ gpu: gpu@1c00000 {
 			power-domains = <&gcc OXILI_GDSC>;
 			operating-points-v2 = <&gpu_opp_table>;
 			iommus = <&gpu_iommu 1>, <&gpu_iommu 2>;
+			#cooling-cells = <2>;
+
 			status = "disabled";
 
 			gpu_opp_table: opp-table {
@@ -2697,6 +2699,13 @@ gpu-thermal {
 
 			thermal-sensors = <&tsens 2>;
 
+			cooling-maps {
+				map0 {
+					trip = <&gpu_alert0>;
+					cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
+
 			trips {
 				gpu_alert0: trip-point0 {
 					temperature = <75000>;

-- 
2.43.0


  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 ` Konrad Dybcio [this message]
2024-01-03  1:04   ` [PATCH 01/12] arm64: dts: qcom: msm8916: Hook up GPU cooling device 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 ` [PATCH 09/12] arm64: dts: qcom: sm8350: " Konrad Dybcio
2024-01-03  1:07   ` 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-1-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).