From nobody Thu Oct 2 23:01:05 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDF1A313526 for ; Wed, 10 Sep 2025 11:26:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757503593; cv=none; b=Exp+pA0s/6N8ZQLQ+bGkQhQ5FJei4cB1RjJiB8f01BeHxC1Fa5R4jC14QqTuV3HioTsnXnaiJqMGC/K2wqh+SiQeKJdj5lidJRmXIrbtxW46erBpkubnZ/G2v7odr8TFCA3BczBT3FyRB0TfV6mFRErpssl5XydAWscphXMMlLo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757503593; c=relaxed/simple; bh=dOTe+NeCnTnd66K7xI4iX89kuGwD47bRsdTt9/aYExo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BZluI2/3ist3jQNJyLORqnboNQ/Tm2SBQJExMTSBHatCvjft/C5U1cAaLJouYhdoAozwSVd0BiAPqAopqXeNVWu2hYMGBzpI8zVS1RRk3UBho8rgoftZFACq7f9Cw9+KVolC4TBleuEUSjLUSjdRrJcKiRLeunkSgH0B8aUeEgI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=LlqRBcLk; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="LlqRBcLk" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 58AAFVfC021994 for ; Wed, 10 Sep 2025 11:26:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ItLhiyodgTeP1sZ/6PcQUw2zlY/QcYa0Nupckl0eQLc=; b=LlqRBcLkU0vRc4D5 ifQUNQiL3m4ArNySj1acUu1rY82IiFkQQYf+IdHLUgpxVvHCAXCEryErQkbBNJpy 4OD8f86UDR6+0TqjPOpAf8Vyt0CCLctspdv9k0FmCZJU2SMSp4MHP/R0/mYTiSiX ETereEqGOEbiRsmGaQsYctFgcbebM/Er/+ahQQH3cJvsjZJmbALhIal1Rb3x1FF2 AHHJR5WDkK8EWBkrkVsCkoNncpSWgeqRiG4KupbSnYfCVZywySKMnVSjMy9HQR/K fsiVu/BxjfzWPnSPGD2dXhgArazoC/+0CsReI7Hm0IwJTYK2x7hO8bXbZHIYxVrH c29VQQ== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 490e8abjgk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 10 Sep 2025 11:26:31 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-772299b3405so13609365b3a.2 for ; Wed, 10 Sep 2025 04:26:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757503590; x=1758108390; 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=ItLhiyodgTeP1sZ/6PcQUw2zlY/QcYa0Nupckl0eQLc=; b=sZg0w17ASvCl/owImGM5neSMR7KErHsoZdPw5djKRixikfj/hs5TUrURz3pJo7rYLm X9BAVKbjgG3eiremgJwJGOG8cXbKUsTFD5UNNQY02L+siiI7yPmu6hamp7S2nGcRDGdG 7+WsO3XBocxU2q95ZDocjAE2UbYfB/vtypNAE8IP+y2bdLjjC/DfcWkDJsXdNCgZiNQ3 Z7ACIWGjIftuzdMGV71IAItA+hxuTvMfHGGVpMY6YnWq9jNHHJ2cjqwhGLlohminAA9y ympH+YRdLMv8tUezvk9fGJB29sinVA7RZGztI/Bl3KUfY5u69OscrzAM004j/limvhzU A3tw== X-Forwarded-Encrypted: i=1; AJvYcCWXGh7H3Kz2EoHKoYfGw1kZp/NNB+nAOxnTDCfMPRGgzDTySX/QdF2wZx/bqkKIjf6INYZHyCFR3wohyok=@vger.kernel.org X-Gm-Message-State: AOJu0Yytvu7GdGYLuil3sZBko0ZzUnAYEn+ScH5e/GxmPXB5hfddLhdK 5CnnYqBScN0TuGLXg8c1Hs+T8YEivSb+RG3e1NmE365v3CzETQ2W5yBYJRnSTNJgjaRKx2q13Gq sCY45HGjLdOBu3lW6vjYhzP+vv0mAb49gC6ZR+IevhmL9DC74UPdsjd8huyNq9GUT7qo= X-Gm-Gg: ASbGnctzhy7pk19BN/9hc1JqD8iJ3Vr9cOciI0AVc1hImmAJPpKziO89QNkhA0NJR5w XYXrtQBX4aGeWstFxCpfz6fo+YcyuOm5cR5O1HYTu3LQquJmE31A04+SRD+UDgNFO5mGVJ9iYhD nRvlF37NNm6Oll+JtmZbsUGK6MBeVfD8IImF4h/HNoe/KqkAXd69qM8KoPDJ7Gl2KnD4O1B5SPn 8U6VoEjyeRi/ZTXti0Gd9KTs7jgyf4J4MTJTcZrOkD0C6iIkrt7udYZVZHe2+eG1SXP20K1Kifj Zx0oSe5HruQ4GinY26gvwmNz4bi9FFJJ77NSmIPIuhrM+ypmzDDECgfORwzNos8u X-Received: by 2002:a05:6a00:2316:b0:771:e8fd:a82a with SMTP id d2e1a72fcca58-7742df20736mr18098106b3a.23.1757503590186; Wed, 10 Sep 2025 04:26:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3J8x62G4seX1p9NFkixWLQX1lFKU2WgY90wZyTmN1FLYB+oO8Bqo7Pu/0KMpDEix/eWDYhw== X-Received: by 2002:a05:6a00:2316:b0:771:e8fd:a82a with SMTP id d2e1a72fcca58-7742df20736mr18098063b3a.23.1757503589677; Wed, 10 Sep 2025 04:26:29 -0700 (PDT) Received: from hu-akhilpo-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-774662c7384sm4862260b3a.76.2025.09.10.04.26.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Sep 2025 04:26:29 -0700 (PDT) From: Akhil P Oommen Date: Wed, 10 Sep 2025 16:55:24 +0530 Subject: [PATCH v6 4/6] arm64: dts: qcom: lemans: Add GPU cooling 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: <20250910-a663-gpu-support-v6-4-5da15827b249@oss.qualcomm.com> References: <20250910-a663-gpu-support-v6-0-5da15827b249@oss.qualcomm.com> In-Reply-To: <20250910-a663-gpu-support-v6-0-5da15827b249@oss.qualcomm.com> To: Sean Paul , Konrad Dybcio , Marijn Suijten , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Connor Abbott , Srinivas Kandagatla , Rob Clark , Dmitry Baryshkov Cc: Gaurav Kohli , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Akhil P Oommen , Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1757503556; l=3339; i=akhilpo@oss.qualcomm.com; s=20240726; h=from:subject:message-id; bh=BT2bEOOj1VdnrLSDgfG9mGOBt17PRs5hzWArlKzjxw0=; b=y7YtaxeWU40iOFan1dzZVankzZNL4sBpuQofugyhnB6d1UwMcUMairlaBb6SNeGa1A6CIBe2u OTbFKENIEYiCCO9Mt/HQFokGvWVY06UspfiBsX8m2pszA2hUHCXQuNf X-Developer-Key: i=akhilpo@oss.qualcomm.com; a=ed25519; pk=lmVtttSHmAUYFnJsQHX80IIRmYmXA4+CzpGcWOOsfKA= X-Authority-Analysis: v=2.4 cv=H7Dbw/Yi c=1 sm=1 tr=0 ts=68c16067 cx=c_pps a=rEQLjTOiSrHUhVqRoksmgQ==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=yJojWOMRYYMA:10 a=COk6AnOGAAAA:8 a=EUspDBNiAAAA:8 a=e3DMr3DmCBmV6l14PKUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=2VI0MkxyNR6bbpdq8BZq:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-GUID: KBnBqbT5SIdH2eaVv1XsYWXkCNo6pV5W X-Proofpoint-ORIG-GUID: KBnBqbT5SIdH2eaVv1XsYWXkCNo6pV5W X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTA2MDAzOSBTYWx0ZWRfX0aZh2bl8i+7W 0j8eyidEHqbkzeXkR40H/NyD+s36YBZdHmQf6SdKGfAeajdH8eWaDMS2DbzAsvpUb9Zd1+lJY8J SK6tSc/wgZQyBf8f9ZEOkNKy1gI6yvnBquEoYDA0sY4QfN0QMjdAWaVFCohgQsLry7e0XHlV8Ak EIlstDd0gTjAYPfinzbaL/a5SBMaz4YwNrFr0ndmcP+rAfMpLj6ywWVLMItnzGBGHVdr1LHRrT8 gX0HmGtEAuTy9ZsVn4z5e9CebP6T72w/EbLSDsXXxYb/9/xQWyjju0nSj7ABgDmepAgPXIAlgyC RHv9FTwwK4Jn5Fcl1aLIkcJCelk0I8CebWmJYM4lsITSJQxW1TBlTE+CW3Y2zFVJUdry0VKEPMl Sl/GrrDA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-10_01,2025-09-10_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 impostorscore=0 adultscore=0 phishscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2509060039 From: Gaurav Kohli Unlike the CPU, the GPU does not throttle its speed automatically when it reaches high temperatures. Set up GPU cooling by throttling the GPU speed when reaching 105=C2=B0C. Signed-off-by: Gaurav Kohli Signed-off-by: Akhil P Oommen Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/lemans.dtsi | 55 ++++++++++++++++++++++++++++++++= ---- 1 file changed, 49 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/lemans.dtsi b/arch/arm64/boot/dts/qco= m/lemans.dtsi index bffce5a5d465b6360397290aa3d948268a254e41..ffd9869cb4579a9a7c6a29ec596= 126296a5af7e9 100644 --- a/arch/arm64/boot/dts/qcom/lemans.dtsi +++ b/arch/arm64/boot/dts/qcom/lemans.dtsi @@ -20,6 +20,7 @@ #include #include #include +#include =20 / { interrupt-parent =3D <&intc>; @@ -6824,8 +6825,15 @@ gpuss-0-thermal { =20 thermal-sensors =3D <&tsens0 5>; =20 + cooling-maps { + map0 { + trip =3D <&gpuss0_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss0_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -6844,8 +6852,15 @@ gpuss-1-thermal { =20 thermal-sensors =3D <&tsens0 6>; =20 + cooling-maps { + map0 { + trip =3D <&gpuss1_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss1_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -6864,8 +6879,15 @@ gpuss-2-thermal { =20 thermal-sensors =3D <&tsens0 7>; =20 + cooling-maps { + map0 { + trip =3D <&gpuss2_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss2_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -7054,8 +7076,15 @@ gpuss-3-thermal { =20 thermal-sensors =3D <&tsens1 5>; =20 + cooling-maps { + map0 { + trip =3D <&gpuss3_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss3_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -7074,8 +7103,15 @@ gpuss-4-thermal { =20 thermal-sensors =3D <&tsens1 6>; =20 + cooling-maps { + map0 { + trip =3D <&gpuss4_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss4_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; @@ -7094,8 +7130,15 @@ gpuss-5-thermal { =20 thermal-sensors =3D <&tsens1 7>; =20 + cooling-maps { + map0 { + trip =3D <&gpuss5_alert0>; + cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss5_alert0: trip-point0 { temperature =3D <105000>; hysteresis =3D <5000>; type =3D "passive"; --=20 2.50.1