From nobody Fri Jul 24 21:53:42 2026 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 9FD963B5854 for ; Fri, 24 Jul 2026 07:50:45 +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=1784879448; cv=none; b=le2ShxsdonANMySSME21BUMRfHEUePD9N/bZ4LhnuPeoQW9h9K6Y5A4Lp7hlUItRNtuRP0DszVtSiqS2Tap2GwwBq6hOUaHx5dW/RrSI8CI7fAYmU10h2SV8QaW95zZiF5AVffrlzkoTn9ujEDPijFEYGrJ62rT/r9cYUTvTt6I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784879448; c=relaxed/simple; bh=SW5MMRu4oubNMWNTisVS6oiIDLl9Nd75IPB1/2CfQpg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=p37LahvXGk/gAoD15vx0noRQ8RtFXHev5Zj6DEt1dpn3s+5GZ46eUf7On5/rNC+TymSPx5+RmKUQQWm8IvgtaHUV85leEtY64tsifNK3Rx5ziNrWBl0vMmQ4Fzg+qmXqFskRcTbxZsmYw5XOibkZhl904wsG3l2tdA9UsxRDYhE= 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=N0n/lm++; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=KxwX1DLV; 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="N0n/lm++"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="KxwX1DLV" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66O4lEpF3139548 for ; Fri, 24 Jul 2026 07:50:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=26Jfdfk5PR90yRYa9qEek4 o1mxMwXFZq3fPnw+9hh6I=; b=N0n/lm++qPGV4E1dbbucUQxnrLuiQfsozG4FsN 8zxK5LYGHTVigk8t7zt50/sNGfxA3S6v2ktAZ/qzD8cBcDuNP5gMiyYF6zBp819L y6Q8Y3Eoii+CmH/JnLeXbhpQbEMHIbStSPh1FDiWqwy7rY1P1tGmzf1Pd4RJNQoo QPCGS3QvfGkEbGNjJjfSxjPGvuYCRi5ws02JCQubqXK/Zzb75RDrkMqTjJOmokLL dr475xpkoQu3lR4/wdpdvZJXqha3I5uPOp8GxfKzhYVZMTbH9wPBsfEyjYRJD4Zx 5i5dDWU90C/YxVrU/e7I7r8Il/c9c2zuAlKTRBv9SOf3j7Gw== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fkn9a3ese-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 24 Jul 2026 07:50:43 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-51c1a9764f0so2696371cf.1 for ; Fri, 24 Jul 2026 00:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784879443; x=1785484243; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:content-type :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=26Jfdfk5PR90yRYa9qEek4o1mxMwXFZq3fPnw+9hh6I=; b=KxwX1DLVHLEw9zJBt/jYobMzJPGcI/9hzSsqVpZMwkv/5P6bFMvUdrBSvaFUk/ieW+ mZNozOq+og/ldHKxcxbNRlVCWBr7Uo1gSLv3A4mrC/+JPnKcNzx5q8huegEDxUDRC3kt LM6YWDIXKlG16Xq5M4iK6iXQiEQVfs7AliOGLDcz+00PhqdDTtGDYHLh2soyGpyWFb7f qOkcUr6K+cwt45xY/UIBoAo0kktEY/heYbIIvBB3rO0IvtFnkP0zBm4Qiqh8xaB3nyq9 E0152lWjSL3/+wFKcHoGfYsU1YK4tYIufJpVjIvTgNUTGHsKTZsvAfcxoEpRk20tW0Mz mtRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784879443; x=1785484243; h=cc:to: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=26Jfdfk5PR90yRYa9qEek4o1mxMwXFZq3fPnw+9hh6I=; b=J4BqZ5PeArQ8JVcO35x9EJQdGr4Aof3/ftpn1oxMvemDAS2S5vFGinRm8d64G4476d mH4FRQt21QmjNFuf3C4qMsHTeG0a9mLC6hrz/SaUqe8iXRMrU6UKOlzQwYKm/OWWZiJx j5QKY9ifq++FjI+rppwHdsPWnzoEqNCzhy58hM9rC/z9W1VmF+0hSwUruS6X+ZHPiibM QLFrbBMwPkBtYNoZ6Lhm8Cog8soYoKZ2u+VtwNLJTu7o320WdS7nq4UIJqT2UxDBpbPp 9UnHHG8gWx/dbIn298CnHjToQpx9mNRBYeL17AZRLPFkixClNTisHhbSGA9iG4o8Xlco MHhQ== X-Forwarded-Encrypted: i=1; AHgh+RqWcRoCTigbL8Tf1hwG/YqCLD7mfVPZEvWWGdrBq9O8pcn6F+vC4e9Y3w+bf1mXGwhrL48Yv5eOf7MFVY0=@vger.kernel.org X-Gm-Message-State: AOJu0Yw9LSbpMaxflq9wFuj+NXacpZP6TE2R60sN3pJO7GeWe9wi3jFG aHXKthTpaVBSwwOMCHK5Sksrg1KeP4/GKP9H6rJZ/vYw9v9l8ufWS05Zq2rdbBjlCfRzSc1D+wB ZW92dvISceeBoYpsptmB43UkSx0/xAj0X73Fh+B/pNiIStZerxpJcmpKlEi69/EAwXh8= X-Gm-Gg: AR+sD13Ej/X+wuXessWDW6r2ePQ6AsSwPBu4CziU+vx5nhRYuf9dG5asWtocKVEhh2P UzH131o8NtqZI4kEpUlwmeIfS42EBTUHdgEb5MaDWZWA99SALodD5946EtyPu6Vrp/l47GkB1rN QYT283iHaMciomxmxu7QE8n75X6uMWmHlNtKRPNRuF1NNKyvrsBrphSEkwD7amhmAvMVc5UaOYD 7sEaelIypkR4NmARckzZyVAwVDfvfnqgcR5V4Qsajox58AjCi0FchFec53akdajAf9ZoY/ncXSR eTGDg9/rasQWCVsO/w9dpGvYkL9uzGdo/COs8n5Lybd9un48Oz8k4BAXbx8HrqKLzP3bCJU9UaE dLmCxBNJJzRP7ozWf4gl6zJhnkKNVNRN/f9peqvkK88iWXoIecmKFV+V/0B0VdI8aqRMC+7M2Ib eUfwFOL+jkQkWcohqoNZ7t4EAM58pWth3PwDqrhVRK9KWRlqKhhQ== X-Received: by 2002:a05:622a:1e19:b0:51a:8f3a:13b9 with SMTP id d75a77b69052e-5283ddb181emr64593791cf.16.1784879442743; Fri, 24 Jul 2026 00:50:42 -0700 (PDT) X-Received: by 2002:a05:622a:1e19:b0:51a:8f3a:13b9 with SMTP id d75a77b69052e-5283ddb181emr64593661cf.16.1784879442339; Fri, 24 Jul 2026 00:50:42 -0700 (PDT) Received: from QCOM-eG0v1AUPpu.na.qualcomm.com ([2a01:e0a:830:450:48e:a2cc:6c4:c92a]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-69f34f1b610sm2799260a12.15.2026.07.24.00.50.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2026 00:50:40 -0700 (PDT) From: Loic Poulain Date: Fri, 24 Jul 2026 09:50:38 +0200 Subject: [PATCH] arm64: dts: qcom: monaco-arduino-monza: Rework fan cooling map 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: <20260724-fix-fan-monza-v1-1-d1c5be947329@oss.qualcomm.com> X-B4-Tracking: v=1; b=H4sIAE0ZY2oC/x2MQQqAIBAAvyJ7bsE2Segr0UFsrT2koRBR+Pek4 8DMvFA4CxeY1AuZLymSYoO+U+B3FzdGWRsDaRq1JcIgNwYX8UjxcWg9WaNNYMsDtObM3IT/Ny+ 1fmBk5fBfAAAA X-Change-ID: 20260722-fix-fan-monza-7c27404fe7e3 To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Loic Poulain X-Mailer: b4 0.14.2 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI0MDA2OSBTYWx0ZWRfX72GZqOz95piH 2m6ieCmAinVezBlSi8oqEIOhiuQajNdgk+3nLHous8/Rhav0G6eSNav0cxDeVzjItHij7juCcO7 xjlEloaG93a9rHNU2Pwz0y92kejpk1i3Yq0En0zwePzDn1/9MyBUfX0Tkas0BQeBzoLHCOw/Fvd fYLkBsyWCf0GuvrboFh1PNaOoeEzAdeB0GrZEnIJ1P+8+BAxEijP6GtOMgcO9hx4M0beg9PDWkB rDRlq3pqgC59CpOTZ82O9QuFbOsUNQweH+X4XoXfqkA6OB6tNCiq1wJYway/DUEjrVmTbvYqOjB igM/GOHJB7ZdsiKfpsGY7qjO0XRsdVyh5DTZzW6sCaPAvkNgU11rW7/z73Fdg1VSRHloKQ3dP06 Fj+O/u7tqFo3ikP+iGA8k8OdDDQoqPUKeRmN8jox2dd5tiRBRpOS6f0MBBccsQUuOCMWEniru9q TDdNSyirrSxk+ZLGW7A== X-Proofpoint-ORIG-GUID: OuAwBP2rFGyGVzS11WcDqwNqYW42u25Q X-Proofpoint-GUID: OuAwBP2rFGyGVzS11WcDqwNqYW42u25Q X-Authority-Analysis: v=2.4 cv=WOdPmHsR c=1 sm=1 tr=0 ts=6a631953 cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=JAcnC0gH-uw2M1I5ggsA:9 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI0MDA2OSBTYWx0ZWRfX7LJUmM5+Tqbm Mgd3GscKdmAtwyaWZhrqdJVxQpO1k6qnj1LCCnMjoxleOK/9clzmJ1tVAUv9Fo52VGGsUO7JE12 A7u8cnQevUG+f7RiXA1UdzJl3mMPKyo= 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-24_01,2026-07-22_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 impostorscore=0 bulkscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607240069 The fan thermal zone previously had a single "active" trip at 32C mapped to the fan over the full cooling range (<&fan 0 THERMAL_NO_LIMIT>). With the default step_wise governor this only ramps the fan one step per poll according to the thermal trend, so the fan speed tracked whether the temperature was rising or falling rather than the temperature itself. A visible consequence is at boot/reboot: if the board comes up already hot but thermally stable (temperature above the trip but not rising), step_wise sees no upward trend and leaves the fan at a low or zero cooling state, so the fan stays slow despite the high temperature. Replace it with a ladder of active trips that each pin the fan to a fixed cooling state (lower =3D=3D upper in the cooling-maps), turning the fan spe= ed into a function of the actual temperature band. The multiple trips also give the tsens hardware several thresholds to raise an interrupt on, so the fan is re-evaluated whenever the temperature crosses a band boundary instead of only when leaving the single operating point. The zone is now purely interrupt driven, so the polling-delay is dropped. This also shifts fan enablement to a higher starting point: the fan now first engages at 50C rather than 32C as the fan was spinning almost all the time at such low threshold. The values are picked based on empirical board testing. Signed-off-by: Loic Poulain --- arch/arm64/boot/dts/qcom/monaco-arduino-monza.dts | 47 +++++++++++++++++++= ---- 1 file changed, 39 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/monaco-arduino-monza.dts b/arch/arm64= /boot/dts/qcom/monaco-arduino-monza.dts index d1346ca5dd4ef75072b09afd78e914e3f6b12534..40470286eaf98a0f08ede191957= c7f0668077685 100644 --- a/arch/arm64/boot/dts/qcom/monaco-arduino-monza.dts +++ b/arch/arm64/boot/dts/qcom/monaco-arduino-monza.dts @@ -452,20 +452,51 @@ &pcieport1 { =20 &thermal_zones { cpuss-0-0-thermal { - polling-delay =3D <2000>; - trips { - cpuss0_active: cpuss-active { - temperature =3D <32000>; - hysteresis =3D <2000>; + cpuss0_active0: cpuss-active0 { + temperature =3D <50000>; + hysteresis =3D <4000>; + type =3D "active"; + }; + + cpuss0_active1: cpuss-active1 { + temperature =3D <60000>; + hysteresis =3D <4000>; + type =3D "active"; + }; + + cpuss0_active2: cpuss-active2 { + temperature =3D <70000>; + hysteresis =3D <4000>; + type =3D "active"; + }; + + cpuss0_active3: cpuss-active3 { + temperature =3D <80000>; + hysteresis =3D <4000>; type =3D "active"; }; }; =20 cooling-maps { - map-active { - trip =3D <&cpuss0_active>; - cooling-device =3D <&fan 0 THERMAL_NO_LIMIT>; + map-active0 { + trip =3D <&cpuss0_active0>; + cooling-device =3D <&fan 4 4>; + }; + + map-active1 { + trip =3D <&cpuss0_active1>; + cooling-device =3D <&fan 6 6>; + }; + + map-active2 { + trip =3D <&cpuss0_active2>; + cooling-device =3D <&fan 8 8>; + }; + + map-active3 { + trip =3D <&cpuss0_active3>; + cooling-device =3D <&fan 10 10>; }; }; }; --- base-commit: 2edbea82d8edbddb2a235b8f988f17b86f075476 change-id: 20260722-fix-fan-monza-7c27404fe7e3 Best regards, --=20 Loic Poulain