From nobody Fri Oct 2 08:26:27 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 03AF4390C9F for ; Mon, 3 Aug 2026 11:56:01 +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=1785758163; cv=none; b=N7V2iVMeALKnJFGQZ6442TF2Jp24M9H8hHW6SpFwvnCeeeuVwfNw0dRD0Vp0dxpiSyBpEiAVbxj5hKfSAiMlv+5l9APo4uIeuZXsA4oFkknuRpy0y0oRmIABloyir1CHlsXYsl6yvJMUtr/aojSCYWjtsxi1/OPjB8Crg6m4y6w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785758163; c=relaxed/simple; bh=bRrLTMffcvoYHBgHrJtYZhy0j2dedZjfoX1PcIWNlr0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=fuhdzI0Vf5uRBppzY8v7eZ2j4s4b8toFzAOJrkqojHlTyR6z4stEXls36hHt9EEQBTU58l5W2RbioMyN3Xw4VV8OH438m54TrSEPLlekCBhmEXencL4CXM7tVXL96pM2hP1vS+Zu5i0Hp9Khqu5fSEF0JsqJ9ZgWnGw+151kuQw= 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=iSfvaq9a; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=J5FlP99c; 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="iSfvaq9a"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="J5FlP99c" 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 673BLxDU3960468 for ; Mon, 3 Aug 2026 11:56:01 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=C7zsaqbLAQClWrl6NyZtJ4 +4d798DT3UraoO8skV1l4=; b=iSfvaq9asaIMeKaCKoPg4s8KNhj4i974k51/Ja Td5rXBSbBdXeGOEycco0eSV4OZOlFAVW+aRInTjE5dHFo4EN6t+NIXHf0SloSMXn TKTjc7/mnS2+4lTWqHJqdOZ35MHsVYNGirxcpZpu5cWIXAE1X9gzH22/FlHV8S4J gFemS2mYZcbjp/gjRjdKr07NCep9Ueh4o8vkGXK6gDoeiY2SpVQVeGU7fLIqVf1j S76LbZAC73EQeo6qlWrKEZszRyUjBZOKQwx0NBcDa0K4IdsJMMw3dsNaihUBqMGO 7Iw18S65DMvofbUYo+qaeHXET1cS/cv5i7YyDzODM9FcEupA== Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ft9fak1ny-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 03 Aug 2026 11:56:01 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-51c1eb52e1fso58497981cf.0 for ; Mon, 03 Aug 2026 04:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785758160; x=1786362960; 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=C7zsaqbLAQClWrl6NyZtJ4+4d798DT3UraoO8skV1l4=; b=J5FlP99cz0r0hYwRPre4dNaorRfKOBoZ0eU/9pbDCB2rScVoCDQRCi5qiLpDkmQ4ag SqvR9664bIyi1Qk9X3KCC+CJ7VHipsvquBnmYdabqptPTjGklLLxGt5ttTQozMnXRyGX BVB3OL5nvV2sA+Zx4TKAP6iPX9bPtrKTDU9kyyMF33mJSj+wdgtp7hMQ0iiIP/O09agW 2Wt9T/OKN+ynoNiqVvchzkfGQmxsxjppmmwfMYl5EFHxQ11PlG99/Tf+okiyF8Apbd5w Jl+bnnHCQ/vfGY6BptNOxXlkZhfL158iFpBuhU8NCj77Wis7Z6zwyfkQ1jeCWcjMbKbk ODDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785758160; x=1786362960; 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=C7zsaqbLAQClWrl6NyZtJ4+4d798DT3UraoO8skV1l4=; b=IlSJhkSgVs7CiT53wmfpqiyCvG17oUVideOXSopBy6r+64SMSZS1pmoVUn6ZNfAkEj 5OQeaeS6spbu24wskgKjZWgpzbXH9MVx2TpzebYFGJSXLBefHR41EgUWm97gKcuLBW/0 0Vcyl7VuOoO+8XiKCgh15sPjO+/inMTikvtNKKshClQ56dGlz9jzdlnDbzpGxz3N6xOq HO/RNbf1WQyGXeyXzi0vyRRVUzonWn6WD0rLFv2KoWnJaMCZCl0zRj1tqmnq6kh2YZF+ XvW56cKx1ZzYO5zQqBcjSS8wL0pyW2UrzCDOB6yRwX6HvjVRf75H88AmsPeW+KASf1bY k2ZA== X-Forwarded-Encrypted: i=1; AHgh+RpmSTmyMn/9ilwLr63pu8KSRpGk5IkOcINfWtdyZOq/GyRf2Db4kwxSg4rX0dBvFCTgB5dKIClZsONktWg=@vger.kernel.org X-Gm-Message-State: AOJu0Yyuuw9BXdA8jMEbjSgUMr/G5JZY/DUixFyyq2rCAX7ejuQ8zXmU LfquJhyA1PZrNTPzVy0pWinV0E+JagFw3W2I0sPwOi4c708qWvf7zX0gxkOMVnin2uq9LTE+Lce 5gcavym+OeBvr4DSMfpeQfPu4mi2j4jyily54+5LXQTanuiqyd/ZbxSZvwJtlvLe9qNM= X-Gm-Gg: AR+sD13KGGCKI7wIivYACMsEyFBHtYujGrZuTQ0akilUWiAji1QgcVI1rzd6VB72hAi ptoPIclWv3L5KiEtiKB0ML1cIGJtBS2lLHZpQaTcoua3PK/1Igj3ekhMRGmRnAmNe/vbjwvdt61 ZW2LKvo323j/tJCHzhkcT8xRcwAr1lbQF8J/pTCPruzwGuDzj+yfP4TDSyZUDpiFd8e6jSktDwZ 2QDrEWdotwaMZp00KRheV3xMDA5qh3jghYHvvEt0gclCk3IazcOfkfOkLqqWop4IjmEYj5w2hIv TjEoxdEc4peebfgaolxyszdDlTmKQyA3tEpjlTxiQMDmkRTGG6BtQ15GY64evbBZmR1IgQWGD3i 5+yS1QljX28FIwqSSKLdKGuUpnBPz5LqHc4nSCrFkpuyLqti1pRl9oJ+CWPplcH5AbbnamdZUYY 3T0Cyl5HWId8G7LGFAzTVR/Fcy9Wkle3UPSWgXaFQaK1Yh689ZL39AWmR7+mVfiIUfmvaAgac2A 0EsAs1Nvt51jjeA X-Received: by 2002:a05:622a:412:b0:51c:a8e2:57a3 with SMTP id d75a77b69052e-52b5674b4ddmr183497101cf.28.1785758160112; Mon, 03 Aug 2026 04:56:00 -0700 (PDT) X-Received: by 2002:a05:622a:412:b0:51c:a8e2:57a3 with SMTP id d75a77b69052e-52b5674b4ddmr183496861cf.28.1785758159633; Mon, 03 Aug 2026 04:55:59 -0700 (PDT) Received: from QCOM-eG0v1AUPpu.na.qualcomm.com (246-12-141-79.reverse.alphalink.fr. [79.141.12.246]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c1fd3c5ae9fsm544778766b.7.2026.08.03.04.55.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2026 04:55:58 -0700 (PDT) From: Loic Poulain Date: Mon, 03 Aug 2026 13:55:57 +0200 Subject: [PATCH v2] 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: <20260803-fix-fan-monza-v2-1-c10af16c552c@oss.qualcomm.com> X-B4-Tracking: v=1; b=H4sIAMyBcGoC/12MwQrCMBBEf6Xs2S3NNhrqyf+QHmK6sQGTaKJFL f13Y8GLl4E3zLwZMifHGfbVDIknl10MBWhTgRl1ODO6oTBQQ7tGEaF1T7Q6oI/hrVEZUrKRlhW 3UD7XxGWw+o594dHle0yvVT+Jb/szyT/TJFDgIMz2xJ1ULXWHmHN9e+iLid7XJaBfluUD6pHKX bEAAAA= 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-Authority-Analysis: v=2.4 cv=PZPPQChd c=1 sm=1 tr=0 ts=6a7081d1 cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=pYL1VdZWigrwMn98IZiABg==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=JAcnC0gH-uw2M1I5ggsA:9 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 X-Proofpoint-GUID: Oj6xYeWzStagsDp6FwRL7Jc9uvRWFGOf X-Proofpoint-Spam-Info: AW1haW4tMjYwODAzMDEwNiBTYWx0ZWRfX3vWttbIZyrMz xErYejPX7fUlwkf+GabUSZTfaU/bP27k8VEle0o1QPqlzZvrkiT6O3lMAQ0Ln2LfzcCL0fgT1MS txXMIkGQU3j2MGCgkclnFLI3PXsQYAk= X-Proofpoint-ORIG-GUID: Oj6xYeWzStagsDp6FwRL7Jc9uvRWFGOf X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODAzMDEwNiBTYWx0ZWRfX0ase+04P7WnD k9LaDrguArqHsYb7Li54BmjB7ih1yZ7eh1UGagFDGpm7mxkW+m3aQNYwilWysIIc3lmsyvfOtUP rBTs4FvIOuqh5HFygOQ5Sg+rS71Q4ElHp5XBb6fRqo72024MINBu0cgz/IQjEkD26ptP5blcCDO 7J1SB54dMVFcI8S6W6GgiEWrJ9bQni4tYxfjH1ZbgUhyZ/pFgFO0BW+et7RESzejvxoqFWK2pKk Ca97DIICUR4bY98RijTru39Y2ojtoEASPbl+g3zC2Sfizj4Y4njoV21qCrG6GcoZfwiKQo0NRqg THmbnd+55W6vexBQtx4g6O3Tcf9fj61VCd90vEVFmNJn5o85CryIuseKaXH+chJLGq9WSkydvsj hz04wd5g07LvMRBxYk99uqPiXR3OvOq/VZG4tw7aEco0j00i/0qlldpadteuLgr+nioTXsvj/JT ZK9mfvh/PqRWAe/J/gQ== 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-08-02_06,2026-07-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 spamscore=0 clxscore=1015 adultscore=0 suspectscore=0 malwarescore=0 impostorscore=0 bulkscore=0 phishscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608030106 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 Reviewed-by: Konrad Dybcio --- Changes in v2: - Use THERMAL_NO_LIMIT as terminator for the latest operating point (Konrad) - Link to v1: https://lore.kernel.org/r/20260724-fix-fan-monza-v1-1-d1c5be9= 47329@oss.qualcomm.com --- 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..4179c6088494b8d4fafd97cb962= 3fdf1bb9a4309 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 THERMAL_NO_LIMIT>; }; }; }; --- base-commit: 2edbea82d8edbddb2a235b8f988f17b86f075476 change-id: 20260722-fix-fan-monza-7c27404fe7e3 Best regards, --=20 Loic Poulain