From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 BB610388393 for ; Mon, 27 Jul 2026 14:24:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785162256; cv=none; b=GFUjnY8ssC9/AHVBu4yxd7vwY34RGyfTJlx78HnUvKkpCcAGXiEWYLp9JagQg5IZ0bk5eK6WdBkPJxqmZEmmQqGp52OPL/UtTisCHP2td3dCeABnEBmP0l6LKJj1CR1HsPE05e9pOzlddgvrpbzTgqHJ9oJlL0prswXwJhP+mmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785162256; c=relaxed/simple; bh=jIQfZLMSJBzSK/iT0gE1OL6tn5ICoQylSUCAFTgngWA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tWFu2ls0ltOMcFESSphJ8Qy7TbQoVSLANls6PH8DfgOccpL5yA2dr8l+Han47z2doggkvKRwDi/GKwuqebSEAkdOFU+0QGOYBeN5O2Era9EP2/FRk4gqioTgAxYOW16lhcHzq2IOiMRppgTz4TeIfRbPG4WlIJikYg9N1phVkHI= 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=QUgQR1M2; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ILu0FTve; arc=none smtp.client-ip=205.220.180.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="QUgQR1M2"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ILu0FTve" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66RDm0Km3787583 for ; Mon, 27 Jul 2026 14:24:10 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= SxnXnJP+PJkcwf4BBFHK6cKCPrcBW1oXNVhH0XSA4z8=; b=QUgQR1M2q1mVbrMg BySwJPkUeOUQJVRXBrS0JBARpZjrTcMjds3Bq37bi7R06rLQcfYvAQt8iZXzqlOr OBUGADZfQOG4HDk0QhSO/MD+PyTkbXUNSsK+if/XJ0XS+gT81tr2JyZkiKLSuX7g E3ZtJ5zKF8ReBHMI6ysjfPF/Wkmj9yz1DaQDsm6HarWUo1T4wBaO/BLgd/Nr0+Sp sPx8+cn3/tIIXXusTxmWwRRHfyi3V1Vuh0kEGr1jMAFnlfZVeiLxwKxVknMtRWSi mJmKgRmin+tts1ZovrBh3A4SMAh+Rgcnc/G/4hX1cs5+ioA1dHcafWXVe3xhpdfM OIVyyg== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fp3v2hbta-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 27 Jul 2026 14:24:10 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2ccb687f82eso39733545ad.3 for ; Mon, 27 Jul 2026 07:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785162249; x=1785767049; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=SxnXnJP+PJkcwf4BBFHK6cKCPrcBW1oXNVhH0XSA4z8=; b=ILu0FTvePaP/a81i7bfOK3MpSL2YskWWKbnG4BLxpvxdFSYPAfNAkaOPVbBFUjA4Kn 08iXnaknNpTuXzeyN5gHl1QH0gIN+/DOAIMfNPAsQVhlUJky94/iym/NoO1ZHhtt5i// BaFHF/E4IAs/4kkbW43as2BUxyQp1Y8EpclDIM3Yzyamxq0iIrvyp5ogMC0rbQ9uZ8EC QRlTJjLXFziMxhKumJg7c74pZL2CNlTIuc9Vd3kIlkZ6c08apvh5A4ZPEGnYkxobcdO4 Oi4e2qSkC3Ym1crLnKk8X/m1Q/xMzP7LucwiFZwNEtTgAAoCLqmeQ1TkMzm+LWq/0/GG 6BEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785162249; x=1785767049; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=SxnXnJP+PJkcwf4BBFHK6cKCPrcBW1oXNVhH0XSA4z8=; b=Hw90ncbqNl6EfcVl3GqyyjOq6tq3EQZHhEvc0aVDQdxJvjLGkvVtspmbdVnXAUOfIK NDK1mELvwJ+O8ZKUGu0LTm9Nwjc6nnNUzzmixOJEGucfRTucWfGlxhU1ZSsjmL3FsqPI Al/Z3S3D7l9kg2sntmwC4R4Qq2/pF5nBQYe2UFJHYAg1iRYwtL3uFkfOKkUCBAlk/AMv xAsMMc1QbJPTHQ370V8oOfsZCEakBZbexMrpIDF1TcHqnseah72irYGqdY9Q521dBkrO YlxxY8sO/NfGqeTyXIwJg+96fD0Q8uEp1dNG4yWBLHbGX1565jlNC57ecuUnGdHLgF7m XZKQ== X-Forwarded-Encrypted: i=1; AHgh+RqEXHnzN3/nono4ov1pDS4/igqv5xHLuxN3JSJCP6GxpRy08vt8SM6xJrTosZEZ46+0bVkRnLRGqxb9W6s=@vger.kernel.org X-Gm-Message-State: AOJu0YzeZ49fa4H/2jgWdaf0MY+yjYPBgnyfIRlCjZgifFzuFC23Mxag LhVpDo18U+8oDGwtsSsSDNX9uxs/xkLf2D9KlwEdXcXdK6Tdq78RhPIYXnWKk7b2vAlmTV1EkBG WX9+i5R6Ps3RYBuvlToUQ8+QP7nskrCW5tTu1CACSlnCDmaL+fGvXfY75wK06eumZjHA= X-Gm-Gg: AR+sD12KW+FXyktarHZKCErtzd+cdO25B7eFPAa8v/WS4EVRiE33KmR9t4CNxc/6Bgi ktY1e1f2XP6A/f/E/ijFr4pDSUeIgy8jzpbatUvoFFU8I2um8kdn32Edw2LUmz+l9SwQjfH7SBC oXj+fPXiE2k5e84YUqWuxxJT6+vlDqyyOTJMPaN6+7Jb9ArxW/Fk8nK2KD3G8CSwi9JUo04bqaP Znkh6snINQ59cBT8w/RvxMKzpZqa1GXCoA8sSyS/hhw3qUPBuySIuZ3DEqMsZUEiUF8/WahkvA0 OtTJ5bElD+tjjP5uHhwE9RlvUzghfAw9OfDawfbPaIIcMRdYvSGXDgqWV5YkHwY+SO8HdWG7SXR nAmYCzaocOfvwvN5lpQBb3Q29jiiekg== X-Received: by 2002:a17:903:fa3:b0:2ca:e9dc:7357 with SMTP id d9443c01a7336-2cfde795b79mr79412895ad.9.1785162249237; Mon, 27 Jul 2026 07:24:09 -0700 (PDT) X-Received: by 2002:a17:903:fa3:b0:2ca:e9dc:7357 with SMTP id d9443c01a7336-2cfde795b79mr79412435ad.9.1785162248644; Mon, 27 Jul 2026 07:24:08 -0700 (PDT) Received: from hu-gkohli-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cfde81d7f5sm36608755ad.83.2026.07.27.07.24.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2026 07:24:08 -0700 (PDT) From: Gaurav Kohli Date: Mon, 27 Jul 2026 19:52:26 +0530 Subject: [PATCH v6 9/9] arm64: dts: qcom: hamoa: Enable CDSP 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: 8bit Message-Id: <20260727-b4-qmi-tmd-v6-9-973cd3a226af@oss.qualcomm.com> References: <20260727-b4-qmi-tmd-v6-0-973cd3a226af@oss.qualcomm.com> In-Reply-To: <20260727-b4-qmi-tmd-v6-0-973cd3a226af@oss.qualcomm.com> To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Daniel Lezcano , Amit Kucheria , Konrad Dybcio , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Manivannan Sadhasivam , Gaurav Kohli , Kees Cook , "Gustavo A. R. Silva" , cros-qcom-dts-watchers@chromium.org Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-hardening@vger.kernel.org, manaf.pallikunhi@oss.qualcomm.com, Dipa Ramesh Mantre , Dmitry Baryshkov X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1785162177; l=4870; i=gaurav.kohli@oss.qualcomm.com; s=20260302; h=from:subject:message-id; bh=nMWjqE9gYPP4NRs2/TABP+g2MZuRidiDIRPtjcqunkI=; b=DgrzZ8hAzRKF14a5SEFAe1US5PjxLhbcECKfFtFavD3UVHyYFqK4sGlveVDNk/BxMmHD9i0lB +ZsWZA/kzYjBTnwf5znnfKgAFK5ePO44FbeNbwUKdhbyvQ/IKi447Dm X-Developer-Key: i=gaurav.kohli@oss.qualcomm.com; a=ed25519; pk=IdNsqe8rWsF6dbpGHfwPEH9zM0nbOdRH72HxUT9qPak= X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI3MDEzNiBTYWx0ZWRfX/nL1vd/pu0CS IjAOCZGMoDsC2OnWFUSNu9jL+lgm7IvGKGHmBzksY/9hzFJ8dVi/nj8g8HVZ1jj2u0J+XOEa7JX eazlQhrKWL74h+aSiWj+a3NhQWVc+ag= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI3MDEzNiBTYWx0ZWRfX3PiLnr6/O9Gl xn93sv/yFyustoA9lU3ne7P280z8E3IYvZIp0pRTpea/wvNS7L/56pHDxag1LvA81rb7tXSqTSe FxBEd3xOvLTZP4LOIvqhsakDsVH6wiYZNSFTU2pKby4+SbQCSF5hWkSvqrxdVG/4xUP5QGv1Rr7 X2prh+fHLrIm0E4XD6Ma8CpOBBRVfZUkzqiT19MXYDBMmQQ7S32YrAUNHvmuxZrl4CitD4ADsw5 70MZZU7CbtFkSOhOs/ssgX5Up0TOhNuJvOof9dKg3JLIaVOCLg2eZlPPDG/m3lfuQeJgBVryNbM vS5Za5q66TkAhD08hfUeW21LqxIe5wEoPO8tuI9D7yL/ufc8eBp9XXi6VPpBQIq0I6MiFP/j8vT LuGC8Pf8Tat7j8d9mfsTA1cO3mwyRUrZ9j0UqLcxk0CS15DJ0L4D5GWanUzkCK88CL6Ytbr7crM TgxRjxAcGOJthi7c26Q== X-Proofpoint-GUID: SC5B9DMitqYqkbDag5A90l6lD8-mM24H X-Authority-Analysis: v=2.4 cv=KJ9qylFo c=1 sm=1 tr=0 ts=6a676a0a cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=ND7YSEQ52W-Uskv0B9cA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 X-Proofpoint-ORIG-GUID: SC5B9DMitqYqkbDag5A90l6lD8-mM24H X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-27_04,2026-07-24_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607270136 From: Dipa Ramesh Mantre Unlike the CPU, the CDSP does not throttle its speed automatically when it reaches high temperatures in hamoa. Set up CDSP cooling for both instances by throttling the cdsp, when it reaches 95°C. Add polling-delay-passive so the governor periodically evaluates the zone during passive cooling and steps up cooling levels when temperature stabilizes below the next trip. Signed-off-by: Dipa Ramesh Mantre Reviewed-by: Dmitry Baryshkov Signed-off-by: Gaurav Kohli --- arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts | 32 +++++++++++++++ arch/arm64/boot/dts/qcom/hamoa.dtsi | 63 ++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts b/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts index 9fa86bb6438e..a146be1cb5fb 100644 --- a/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts +++ b/arch/arm64/boot/dts/qcom/hamoa-iot-evk.dts @@ -1684,4 +1684,36 @@ trip-point0 { }; }; }; + + nsp0-thermal { + trips { + trip-point1 { + temperature = <105000>; + }; + }; + }; + + nsp1-thermal { + trips { + trip-point1 { + temperature = <105000>; + }; + }; + }; + + nsp2-thermal { + trips { + trip-point1 { + temperature = <105000>; + }; + }; + }; + + nsp3-thermal { + trips { + trip-point1 { + temperature = <105000>; + }; + }; + }; }; diff --git a/arch/arm64/boot/dts/qcom/hamoa.dtsi b/arch/arm64/boot/dts/qcom/hamoa.dtsi index 09527dcf9576..ba453c8ca80d 100644 --- a/arch/arm64/boot/dts/qcom/hamoa.dtsi +++ b/arch/arm64/boot/dts/qcom/hamoa.dtsi @@ -23,6 +23,7 @@ #include #include #include +#include #include / { @@ -8971,6 +8972,8 @@ remoteproc_cdsp: remoteproc@32300000 { status = "disabled"; + #cooling-cells = <3>; + glink-edge { interrupts-extended = <&ipcc IPCC_CLIENT_CDSP IPCC_MPROC_SIGNAL_GLINK_QMP @@ -9558,6 +9561,7 @@ aoss0-critical { }; thermal_nsp0: nsp0-thermal { + polling-delay-passive = <200>; thermal-sensors = <&tsens3 1>; trips { @@ -9567,15 +9571,30 @@ trip-point0 { type = "hot"; }; + nsp0_alert0: trip-point1 { + temperature = <95000>; + hysteresis = <5000>; + type = "passive"; + }; + nsp0-critical { temperature = <115000>; hysteresis = <1000>; type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&nsp0_alert0>; + cooling-device = <&remoteproc_cdsp QCOM_TMD_CDSP_SW + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; thermal_nsp1: nsp1-thermal { + polling-delay-passive = <200>; thermal-sensors = <&tsens3 2>; trips { @@ -9585,15 +9604,30 @@ trip-point0 { type = "hot"; }; + nsp1_alert0: trip-point1 { + temperature = <95000>; + hysteresis = <5000>; + type = "passive"; + }; + nsp1-critical { temperature = <115000>; hysteresis = <1000>; type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&nsp1_alert0>; + cooling-device = <&remoteproc_cdsp QCOM_TMD_CDSP_SW + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; thermal_nsp2: nsp2-thermal { + polling-delay-passive = <200>; thermal-sensors = <&tsens3 3>; trips { @@ -9603,15 +9637,30 @@ trip-point0 { type = "hot"; }; + nsp2_alert0: trip-point1 { + temperature = <95000>; + hysteresis = <5000>; + type = "passive"; + }; + nsp2-critical { temperature = <115000>; hysteresis = <1000>; type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&nsp2_alert0>; + cooling-device = <&remoteproc_cdsp QCOM_TMD_CDSP_SW + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; thermal_nsp3: nsp3-thermal { + polling-delay-passive = <200>; thermal-sensors = <&tsens3 4>; trips { @@ -9621,12 +9670,26 @@ trip-point0 { type = "hot"; }; + nsp3_alert0: trip-point1 { + temperature = <95000>; + hysteresis = <5000>; + type = "passive"; + }; + nsp3-critical { temperature = <115000>; hysteresis = <1000>; type = "critical"; }; }; + + cooling-maps { + map0 { + trip = <&nsp3_alert0>; + cooling-device = <&remoteproc_cdsp QCOM_TMD_CDSP_SW + THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; }; thermal_gpuss_0: gpuss-0-thermal { -- 2.34.1