From nobody Sat Oct 4 01:45:00 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 8B3C73451CC for ; Thu, 21 Aug 2025 18:56:39 +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=1755802601; cv=none; b=U9HaqJAg29j8d8S8p2IReCuJNIfmB0CvPflqKM8WzB37JaVXh9VUE021VylqnKUPzNMXZnJc9sQDV1mOEF7XvlxWzCd+VkIK17HpvqFxDOsaUX0Gd5S+DaQ+KG+tdtCSFDdqAHyjhSBmsvHi0hmVJsQvdKbp2Zj00igWvyyZ3Zc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755802601; c=relaxed/simple; bh=Gb/7Iudk9FJPTsVmWc9NeElBKhH31zjLWtd6PFE43fU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RCaRQ9sPRYQlsnduGn4da0xP9Hh4lSluVkoSFDH5IHuheqLIAPkwgYLpJN4gk7WzjAp5jD/LqMAmhV06Hro0r+Gh9ZAN5Zg//WREMkDdIiFFBhDiIbGVnP5jY6vaKCz+svBYIB8MhhpRKocYzWLiUvQoeaUO46HKUABr77TUmqA= 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=i4k0DPqa; 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="i4k0DPqa" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 57LI94nf029800 for ; Thu, 21 Aug 2025 18:56:38 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= uCiVz/zM6eCSXhCxGTh6Gbw0PH5ybtYshudhhtAkWDk=; b=i4k0DPqa6SEj78m+ KEjyKteGdmOwoSeJZJrUd+8MabTB+H+4XsNseQDPZOboSmAyBctDQaIJUaHGCUhR UsphKsSdCj2IVBWBUGMfQ6z0B81MVu2aoFLJ/+HM8v4TWjQyC+LQj/cZ3Q4Wnd2l y9txa5SLrwee5XwAKNJMBwCzcnizDD8C3UvymH27W8Zg8xapLef2ffv8treq/rFY 9jIxB6FgH4giA5Wig+/6lsMAIIQh8aPtBdBw3ModBbS4hhPtfPFTlh/Da2FA2PwM m75b07bxrxncYLbNXGljvwYTPCmL+W3Jt/fG0rkUu4uEqfbfmk5BipjTHRWw1eut xyLYoQ== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48n52a6mm1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 21 Aug 2025 18:56:38 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-76e2e8bb2d2so1373110b3a.1 for ; Thu, 21 Aug 2025 11:56:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755802597; x=1756407397; 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=uCiVz/zM6eCSXhCxGTh6Gbw0PH5ybtYshudhhtAkWDk=; b=OKcubpbRYCvUT0Pl2yloqKoGTYIqHzYdwHJBLMFAhtD93ZrnPLwmga9uzkbeK6HP0p Kqen5K5A8nqd2+tvSIOAlgHKNmRSyEAD/myj/l+PGJ8tHKg2dv0Pb8zPX5oXEJOp9/MH pUM9hScHJT8Q+NWVh/BzIGkZApWF8elSmT2y1KIjFIcog2bwIXlyHhf4wi3ekIJ99qLb QyVvy+dWl2okMiMZDDf7o1m7A0hoDRbs79NkZgceEXHwrjpUzIQsQDkZGhb7O81opZAS GGH+qq7wM0POhxZItTepa6z6QrMAFntCSRJv3CQ7Bf8RwdnMguBnG26d0pJTHIFoWHCb FWwQ== X-Forwarded-Encrypted: i=1; AJvYcCWoP08eZW8i7x1oVlOyFUMUN5Jrp4fWTtDKKstB9PUiQkkOe7iL4oqczeSzLk5ATY1iUXaISsMs7OAJC30=@vger.kernel.org X-Gm-Message-State: AOJu0YwZe5yllLdAh2sKcVkPZd0NvL5jx4GKeDTDGA7LD4Hn22VXUZAL PS605V8DDruEpXe9hDHJXBKeLH46HoK+q0fUGcJ12+9dBZRuOx3fTWssuJsnp0JkxSPXd0UqqQD +1OKJQ047KxRXuTfUfr9agoQI6wUdoykUNiYDrh5dlSMKnMuu+gcxJXGiZRGBqTVwhks= X-Gm-Gg: ASbGncv+bYiYRgYnyGUsC2oye08E6hEkLzj1B+o88kdmTldRVFLPPEeHzjbx1xvpzhx yyCRjK6NypGyq6cLidofJK0Z8wyZDscKPln/ctkHJh5MnRjs2cAcECNrPgqQ5i328rJ6ZN2tKWF YdY+jDgOYDfXhlsYgWFjGVa57rZdnjPYP0p4cQVSUQAdSn+iXi8j1ts6yX/eL1luWgzN1F19zl3 pVTLTcFEJAcUvqLgeoDWrztpI3tuhu0VO0fayy6RaVjRAVsLjOX67zkhzaa2fN4/B4GLlIQODI2 RL2TfvKz8OtPtAg9sWG8yd2DJVsxaNc5KXTNfjC3t7u3Vhagr9O739ozye9U6KSl X-Received: by 2002:a05:6a20:5493:b0:240:1b13:45a0 with SMTP id adf61e73a8af0-24340acc9cemr358050637.2.1755802597489; Thu, 21 Aug 2025 11:56:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9vKMYrMsGc/yz6qfgqZd3fzJRBHQv+esspB+E8W3hqgkJfFk8r7z9RArSzZ+ihqeZMXb5cQ== X-Received: by 2002:a05:6a20:5493:b0:240:1b13:45a0 with SMTP id adf61e73a8af0-24340acc9cemr357992637.2.1755802596982; Thu, 21 Aug 2025 11:56:36 -0700 (PDT) Received: from hu-akhilpo-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b4764090b0esm2106977a12.37.2025.08.21.11.56.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Aug 2025 11:56:36 -0700 (PDT) From: Akhil P Oommen Date: Fri, 22 Aug 2025 00:25:29 +0530 Subject: [PATCH v4 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: <20250822-a663-gpu-support-v4-4-97d26bb2144e@oss.qualcomm.com> References: <20250822-a663-gpu-support-v4-0-97d26bb2144e@oss.qualcomm.com> In-Reply-To: <20250822-a663-gpu-support-v4-0-97d26bb2144e@oss.qualcomm.com> To: Sean Paul , Konrad Dybcio , Abhinav Kumar , 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 X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1755802565; l=3939; i=akhilpo@oss.qualcomm.com; s=20240726; h=from:subject:message-id; bh=3VQznur+3xYt9Fe0EWhXJS8SYw8qMf3aItqAFr+fB5g=; b=Ok3JUUHmwn3kmoPssXn0r3Zo6MqD4g7gXv3kqJv0v0HijYzISTAZdNTqWrSdmluI+DYtuoML/ AIaHut49XkKB9ZJe5MhGtUkDNHyXqyHzBW1ssjZn/UMP3EkyauVWsxN X-Developer-Key: i=akhilpo@oss.qualcomm.com; a=ed25519; pk=lmVtttSHmAUYFnJsQHX80IIRmYmXA4+CzpGcWOOsfKA= X-Authority-Analysis: v=2.4 cv=feD0C0QF c=1 sm=1 tr=0 ts=68a76be6 cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=2OwXVqhp2XgA:10 a=COk6AnOGAAAA:8 a=EUspDBNiAAAA:8 a=WQ4zR0kUUHxS2nCRhxYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-ORIG-GUID: XXtJlO_hztmJmGEPU9XBJoAhtrREk3g0 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODIwMDAxMyBTYWx0ZWRfX03dl3IBlMgHZ et2QVRxvFleYq+kswfUrjlduotj+HuDryoF+V4PDGLDQnl5+4qjatVxaUkHDvvA1DWRAxDvhsPJ P5KzFaGcYQ1UhndV2d7Jj12xaYQjKpZ6N/COwyM0DoxF8yKcK1umkFMDXR5N9sz03RL8hQ5Zlak dTuMD4MLGypG1i1xymzTsXdI72hZJldAse6V12ajZUU0sD3wmLKly7vu5MylleQfp0cmDziNrLc pSGe1v0swSx8GrmkPzNkCSiGVHpf+F6USA5THE/r7PUfyof+hVJKWoinNrvfuiJGVKEOV1rLLox Nr6kydojV2l5DepDRzRmEuaKNxNrvuPmMl55EmwfXbbwgn0V+aYaZ0w3Oam/2YmeFrNdT1+Av+4 fLgDt3gWzHz770zG+rHgrwt/W1ENag== X-Proofpoint-GUID: XXtJlO_hztmJmGEPU9XBJoAhtrREk3g0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-08-21_03,2025-08-20_03,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 phishscore=0 adultscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 suspectscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2508110000 definitions=main-2508200013 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 --- arch/arm64/boot/dts/qcom/lemans.dtsi | 67 +++++++++++++++++++++++++++++---= ---- 1 file changed, 55 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/lemans.dtsi b/arch/arm64/boot/dts/qco= m/lemans.dtsi index 8eac8d4719db9230105ad93ac22287850b6b007c..b5d4d07b2fd9c14a6f1cc462c69= 5e864394cade2 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>; @@ -6816,13 +6817,20 @@ trip-point1 { }; }; =20 - gpuss-0-thermal { + gpuss0_thermal: gpuss-0-thermal { polling-delay-passive =3D <10>; =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"; @@ -6836,13 +6844,20 @@ trip-point1 { }; }; =20 - gpuss-1-thermal { + gpuss1_thermal: gpuss-1-thermal { polling-delay-passive =3D <10>; =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"; @@ -6856,13 +6871,20 @@ trip-point1 { }; }; =20 - gpuss-2-thermal { + gpuss2_thermal: gpuss-2-thermal { polling-delay-passive =3D <10>; =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"; @@ -7046,13 +7068,20 @@ trip-point1 { }; }; =20 - gpuss-3-thermal { + gpuss3_thermal: gpuss-3-thermal { polling-delay-passive =3D <10>; =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"; @@ -7066,13 +7095,20 @@ trip-point1 { }; }; =20 - gpuss-4-thermal { + gpuss4_thermal: gpuss-4-thermal { polling-delay-passive =3D <10>; =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"; @@ -7086,13 +7122,20 @@ trip-point1 { }; }; =20 - gpuss-5-thermal { + gpuss5_thermal: gpuss-5-thermal { polling-delay-passive =3D <10>; =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