From mboxrd@z Thu Jan 1 00:00:00 1970 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 DE01231A57D 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 (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 58AAFFm5031300 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-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 491t3803m0-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-f200.google.com with SMTP id d2e1a72fcca58-77278d3789cso14328357b3a.1 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=Ma2/KwSzi9kDpBoxbUQIe1kFj1qqPSeB28uhQepXNUKATYWmuvmgOPOJykBW5ZGVuh MHHPJboUcnlW2hSm4RFu3V/aBU2mhtFBCbWL29IGFqysqObuXjkVIadG3OuqpnK7UX5g mdNVwURzSxR5ivAuz5sCV9ocRrdvovBwcVrBMMFWWJb0lcl0eB5fzJYh+3pN8cAaCS3T dH9BbEOOLhoveh1a3luyvgkcSI0/RKDgSSCNrzWtXP9byDKYm01CMFWjomKabsKN0kff Exl9d27YnpKeKGoHbXmceSrErXm0M3z5VOyDa8yDl6+2AZk1mea/kICf4/Jrfi5KVbVb VXfw== X-Forwarded-Encrypted: i=1; AJvYcCWKsbzVdHec8zFeoPxFQKrK5vnVA9m/gsidPXaSLMUp0DIdXloGS/5SF7PIM7zMBLPmmkv7CrKsl9M4xtnH@vger.kernel.org X-Gm-Message-State: AOJu0YzjthHnlo3RSEK+01qQlHWxGP0ltVEPXPK/mbMt99fVTDdrZGLR 1ZNuAOxceFBb1R/HGg5rzU9cqRoKH0KVuBU41IrktXtu8gZf8VJ7svb2RYUIYTRMEXXrNdKTQUn wltYct4B2r2EhJVT51h+8zj07U1u0YwtRZNC8yAx5JK4M4lfYVoNomOZFSaxJUoU1TdzN X-Gm-Gg: ASbGncv2g9tsUCJDjAXhxulxdA8x5pccdd35cWIrKwU9JnRL4U+bKy/UseUdaUqQvtY K7dOMGydr4Q9H4f4KLJM0NK2fDabMSSUGDIib5m1lkL99Gl/avNEZxh5qHuHRl9H5yaxDC2TkeU xORL8IqvaUzIkIvUU8Y3piu6XIjwIxW36O+mx7BC/SOqd4jBbKStIIyVSig1c9YgY1sAIoI+NoF p+wOSg3kjBCWp2gRbn+pGbOInGBwziJ7Qnxc/nZuk56kxR+ElZGBciNyZ9O4bqtG6901kOWFRT0 Vu4D8A2yYzETxrc/yxH/zWeCKeQg6v5wAgJPP0WtMXTuehO1AXuLha+cCCU+FNc7 X-Received: by 2002:a05:6a00:2316:b0:771:e8fd:a82a with SMTP id d2e1a72fcca58-7742df20736mr18098104b3a.23.1757503590185; 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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-Proofpoint-ORIG-GUID: mvVjedckw7zwxNuV1j20YqLjvsOoVnmc X-Proofpoint-GUID: mvVjedckw7zwxNuV1j20YqLjvsOoVnmc X-Authority-Analysis: v=2.4 cv=NdLm13D4 c=1 sm=1 tr=0 ts=68c16067 cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==: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=zc0IvFSfCIW2DFIPzwfm:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwOTA4MDA2NiBTYWx0ZWRfX4PVSbmAAuTGM xpeOLMpU5f1pdUittU6BkfPp0r1DKuSzGOCm7w9ISAont4Pd7DQkHmSJ6NHbqRaEeyuCgWrUZjy gmdKy/uuHvfCLkPOTWenkZA77iW4RDunZh76d1jqOnCm5NFx/vQ+VbxjQjq5+0W0U8M8i6l9Bxj 0sJKvV+ZozsXukvTWbdq3kQ6Wewr/uwB1mlMT1owYQkkHlgA03T1+NGq3K6fmLCz/7G8YAPss4E 3S5+9GEtEL+oOyHBcEnlJ3fn0R+AE9yRN2TonXVI6jJ/38fOj4s/nTikQ3KdIBG7d/SX/KoJzBq 0UWVh/Jd7Yb5NCo6VgYFEJRuVFCnRFD1Ffodi+GG6RyPskZ7KkfkStDJBYXmGsBPkFb9jgXJmED /r7w+2WH 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 adultscore=0 suspectscore=0 phishscore=0 clxscore=1015 impostorscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2509080066 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°C. 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/qcom/lemans.dtsi index bffce5a5d465b6360397290aa3d948268a254e41..ffd9869cb4579a9a7c6a29ec596126296a5af7e9 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 / { interrupt-parent = <&intc>; @@ -6824,8 +6825,15 @@ gpuss-0-thermal { thermal-sensors = <&tsens0 5>; + cooling-maps { + map0 { + trip = <&gpuss0_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss0_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive"; @@ -6844,8 +6852,15 @@ gpuss-1-thermal { thermal-sensors = <&tsens0 6>; + cooling-maps { + map0 { + trip = <&gpuss1_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss1_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive"; @@ -6864,8 +6879,15 @@ gpuss-2-thermal { thermal-sensors = <&tsens0 7>; + cooling-maps { + map0 { + trip = <&gpuss2_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss2_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive"; @@ -7054,8 +7076,15 @@ gpuss-3-thermal { thermal-sensors = <&tsens1 5>; + cooling-maps { + map0 { + trip = <&gpuss3_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss3_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive"; @@ -7074,8 +7103,15 @@ gpuss-4-thermal { thermal-sensors = <&tsens1 6>; + cooling-maps { + map0 { + trip = <&gpuss4_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss4_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive"; @@ -7094,8 +7130,15 @@ gpuss-5-thermal { thermal-sensors = <&tsens1 7>; + cooling-maps { + map0 { + trip = <&gpuss5_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { - trip-point0 { + gpuss5_alert0: trip-point0 { temperature = <105000>; hysteresis = <5000>; type = "passive"; -- 2.50.1