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 03/12] arm64: dts: qcom: sc8180x: Hook up GPU cooling device
Date: Tue, 02 Jan 2024 14:34:07 +0100 [thread overview]
Message-ID: <20240102-topic-gpu_cooling-v1-3-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/sc8180x.dtsi | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
index 0430d99091e3..b1227e04429c 100644
--- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi
+++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi
@@ -2173,6 +2173,8 @@ gpu: gpu@2c00000 {
interconnect-names = "gfx-mem";
qcom,gmu = <&gmu>;
+ #cooling-cells = <2>;
+
status = "disabled";
gpu_opp_table: opp-table {
@@ -3880,8 +3882,15 @@ gpu-top-thermal {
thermal-sensors = <&tsens0 15>;
+ cooling-maps {
+ map0 {
+ trip = <&gpu_top_alert0>;
+ cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
+
trips {
- trip-point0 {
+ gpu_top_alert0: trip-point0 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
@@ -4030,8 +4039,15 @@ gpu-bottom-thermal {
thermal-sensors = <&tsens1 11>;
+ cooling-maps {
+ map0 {
+ trip = <&gpu_bottom_alert0>;
+ cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
+
trips {
- trip-point0 {
+ gpu_bottom_alert0: trip-point0 {
temperature = <90000>;
hysteresis = <2000>;
type = "hot";
--
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 ` Konrad Dybcio [this message]
2024-01-03 1:05 ` [PATCH 03/12] arm64: dts: qcom: sc8180x: " 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-3-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).