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 05/12] arm64: dts: qcom: sm6115: Hook up GPU cooling device
Date: Tue, 02 Jan 2024 14:34:09 +0100 [thread overview]
Message-ID: <20240102-topic-gpu_cooling-v1-5-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/sm6115.dtsi | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi
index 160e098f1075..a8c819d53104 100644
--- a/arch/arm64/boot/dts/qcom/sm6115.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi
@@ -14,6 +14,7 @@
#include <dt-bindings/interconnect/qcom,sm6115.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/qcom-rpmpd.h>
+#include <dt-bindings/thermal/thermal.h>
/ {
interrupt-parent = <&intc>;
@@ -1646,6 +1647,7 @@ gpu: gpu@5900000 {
nvmem-cells = <&gpu_speed_bin>;
nvmem-cell-names = "speed_bin";
+ #cooling-cells = <2>;
status = "disabled";
@@ -3294,8 +3296,15 @@ gpu-thermal {
polling-delay = <0>;
thermal-sensors = <&tsens0 15>;
+ cooling-maps {
+ map0 {
+ trip = <&gpu_alert0>;
+ cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
+
trips {
- trip-point0 {
+ gpu_alert0: trip-point0 {
temperature = <115000>;
hysteresis = <5000>;
type = "passive";
--
2.43.0
next prev 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 ` Konrad Dybcio [this message]
2024-01-03 1:06 ` [PATCH 05/12] arm64: dts: qcom: sm6115: " 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-5-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).