From nobody Tue Dec 16 00:22:14 2025 Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30E80180A91 for ; Fri, 10 May 2024 12:00:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342419; cv=none; b=CTY1sbhx2ZfAsN/H/DdBajdNk1fvemIU229l4G0fcaqTquGBejGu/FmgbVMxrnKaN0FcvPRGgiUpEAssvry5PTlYcxiPuwjboYOi9QApyYHI9TBFBCx8K0vwp2aArNemmmpBCAAKwhHyrvxqfJX5Zuo5AGnjMf6CN6nRHEvnxUc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342419; c=relaxed/simple; bh=WsEg8exRfc0/pJm1n1kQRHGck94wqFc0YqydjjlEEbY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H6tISZI/2euRlzgi4wEfRcYY/3H0pH1eDiyuBYxSao0Yb59xGxTbI9qbKOent7p3x1C9gPJEovM8d6Fo9lyT+3PEKcWPFXxJV00Wlg4si/shPY41Pw0ysEv62vzR02RlBoXgVJaUmpLsGCUO8PR8Gen68kLLhnnXtkha3+sNfKQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=m4SWEuvr; arc=none smtp.client-ip=209.85.218.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="m4SWEuvr" Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a59b49162aeso463660866b.3 for ; Fri, 10 May 2024 05:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342415; x=1715947215; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vr5d9ufG+ZHCGxE9GxEqTnSNJcFNwQq/i9Dw49zdab0=; b=m4SWEuvradj6p5JsZ0peR3e84v7t2MNzv2t+07sTV+td4l1rcJcmy+cxbOGy3G7+yR +TJAtyopwyS21rC8kCquZyXOA+qX3hhiK8dbmQQAkRZs/cjUgg64ZNZFZ/aaURj+hjF5 gVDYPX7o/sx3U47kU+IElne1rVtTZOnYvA9SARQ0k576wLsvUEM961RBtYkpv8eV6187 6u0FVbjN4LvD8AvtO1btlOzVfRtH/I5RykxIuc3/mpeVogGaZIlmoR7v/MGINxZKNCX+ sH9wtg1EI/8TqA0cPHHcMSSVBuMgzpOqn2iz3O96MYePL+cPNODeVCrnQg3JRm0vu1e/ JzZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342415; x=1715947215; 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=vr5d9ufG+ZHCGxE9GxEqTnSNJcFNwQq/i9Dw49zdab0=; b=EGcEQda/PBsavYTQk5H/qM9l+nZQgMudhIMFpMj1lFV3mlxulPJERsLjiaImSsMxyl 3Knu/5Dl0NywUaNas+MjHoPOpTH6An6+P1rtN/+JVi8snB5QG62MT74QM4CXPc1/6xkB hSDgDtVKpvi2ZstmXtt9KBix3kgXqjns/jfK5vq5C8gtNV+Iu6fJD0aVQPMd/WPB45FN +P8ISNpp66KfHCGhAfTaMVS5LU3/+u+lfwBvxI1BjqKErmz6bo03kkdj+xll0fXURMQ6 45Fb6kmM2mCu+2rfRLNfbWQ5GsMcolrCkNMWtVSJgV/5mv4WEge3sDGaqD+Sub9LttgW JTfw== X-Forwarded-Encrypted: i=1; AJvYcCXYXQGunvlVMHWUjj3XnvYl3S0ZSzjNi/7mI8MaOFYera+AXUcBp26lxCe3iZBfALV/s+VnpAJlmjatd7r+5uTlpf0Mzq2CF1hwPhrG X-Gm-Message-State: AOJu0YzGbDKybXz2MZh1SQCispadhsrr5ygonM9eYrEHfDgSGs9+QOQJ 6M3Lp5J2LAvUBR+Uy4P/2ehzy071BdH4w83WwOPS726aBekCWJKYaWHkLntnIV4= X-Google-Smtp-Source: AGHT+IGD1I/n+QJj+tye1pIOExZ6QeUqWASMVZyOf6mOcmsoW1vQJ2U3fZOwl2iJK6ga4Cf7TjEqXw== X-Received: by 2002:a17:906:235b:b0:a59:a532:ed58 with SMTP id a640c23a62f3a-a5a2d55ac04mr151336566b.28.1715342414836; Fri, 10 May 2024 05:00:14 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.05.00.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:14 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:52 +0200 Subject: [PATCH v2 29/31] arm64: dts: qcom: sm8450-*: Remove thermal zone polling delays 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: <20240510-topic-msm-polling-cleanup-v2-29-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8450.dtsi | 1 - arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 16 ++++----- arch/arm64/boot/dts/qcom/sm8450.dtsi | 64 ++++-------------------------= ---- 3 files changed, 13 insertions(+), 68 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8450.dtsi b/arch/arm64/boot/dts/qco= m/pm8450.dtsi index ae5bce3cf46e..decb8809fd36 100644 --- a/arch/arm64/boot/dts/qcom/pm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8450.dtsi @@ -10,7 +10,6 @@ / { thermal-zones { pm8450-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&pm8450_temp_alarm>; =20 diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/= qcom/sm8450-hdk.dts index 3be46b56c723..27b80f52d5bf 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -138,7 +138,7 @@ pmic_glink_sbu: endpoint { thermal-zones { camera-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 2>; =20 trips { @@ -152,7 +152,7 @@ active-config0 { =20 rear-tof-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 5>; =20 trips { @@ -166,7 +166,7 @@ active-config0 { =20 skin-msm-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 1>; =20 trips { @@ -180,7 +180,7 @@ active-config0 { =20 therm1-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 3>; =20 trips { @@ -194,7 +194,7 @@ active-config0 { =20 therm2-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 6>; =20 trips { @@ -208,7 +208,7 @@ active-config0 { =20 usb-conn-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 7>; =20 trips { @@ -222,7 +222,7 @@ active-config0 { =20 wide-rfc-thermal { polling-delay-passive =3D <250>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmk8350_adc_tm 4>; =20 trips { @@ -235,8 +235,6 @@ active-config0 { }; =20 xo-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pmk8350_adc_tm 0>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qco= m/sm8450.dtsi index 616461fcbab9..ee60fd257efe 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4610,8 +4610,6 @@ sound: sound { =20 thermal-zones { aoss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -4630,8 +4628,6 @@ reset-mon-cfg { }; =20 cpuss0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 1>; =20 trips { @@ -4650,8 +4646,6 @@ reset-mon-cfg { }; =20 cpuss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 2>; =20 trips { @@ -4670,8 +4664,6 @@ reset-mon-cfg { }; =20 cpuss3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 3>; =20 trips { @@ -4690,8 +4682,6 @@ reset-mon-cfg { }; =20 cpuss4-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 4>; =20 trips { @@ -4710,8 +4700,6 @@ reset-mon-cfg { }; =20 cpu4-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 5>; =20 trips { @@ -4736,8 +4724,6 @@ cpu4_top_crit: cpu-crit { }; =20 cpu4-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 6>; =20 trips { @@ -4762,8 +4748,6 @@ cpu4_bottom_crit: cpu-crit { }; =20 cpu5-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 7>; =20 trips { @@ -4788,8 +4772,6 @@ cpu5_top_crit: cpu-crit { }; =20 cpu5-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -4814,8 +4796,6 @@ cpu5_bottom_crit: cpu-crit { }; =20 cpu6-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -4840,8 +4820,6 @@ cpu6_top_crit: cpu-crit { }; =20 cpu6-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -4866,8 +4844,6 @@ cpu6_bottom_crit: cpu-crit { }; =20 cpu7-top-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -4892,8 +4868,6 @@ cpu7_top_crit: cpu-crit { }; =20 cpu7-middle-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 12>; =20 trips { @@ -4918,8 +4892,6 @@ cpu7_middle_crit: cpu-crit { }; =20 cpu7-bottom-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens0 13>; =20 trips { @@ -4945,7 +4917,7 @@ cpu7_bottom_crit: cpu-crit { =20 gpu-top-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens0 14>; =20 cooling-maps { @@ -4984,7 +4956,7 @@ gpu_top_alert0: trip-point0 { =20 gpu-bottom-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens0 15>; =20 cooling-maps { @@ -5022,8 +4994,6 @@ gpu_bottom_alert0: trip-point0 { }; =20 aoss1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 0>; =20 trips { @@ -5042,8 +5012,6 @@ reset-mon-cfg { }; =20 cpu0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 1>; =20 trips { @@ -5068,8 +5036,6 @@ cpu0_crit: cpu-crit { }; =20 cpu1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 2>; =20 trips { @@ -5094,8 +5060,6 @@ cpu1_crit: cpu-crit { }; =20 cpu2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 3>; =20 trips { @@ -5120,8 +5084,6 @@ cpu2_crit: cpu-crit { }; =20 cpu3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 4>; =20 trips { @@ -5147,7 +5109,7 @@ cpu3_crit: cpu-crit { =20 cdsp0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 5>; =20 trips { @@ -5179,7 +5141,7 @@ cdsp_0_config: junction-config { =20 cdsp1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 6>; =20 trips { @@ -5211,7 +5173,7 @@ cdsp_1_config: junction-config { =20 cdsp2-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 7>; =20 trips { @@ -5242,8 +5204,6 @@ cdsp_2_config: junction-config { }; =20 video-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 8>; =20 trips { @@ -5263,7 +5223,7 @@ reset-mon-cfg { =20 mem-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; + thermal-sensors =3D <&tsens1 9>; =20 trips { @@ -5288,8 +5248,6 @@ reset-mon-cfg { }; =20 modem0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 10>; =20 trips { @@ -5320,8 +5278,6 @@ reset-mon-cfg { }; =20 modem1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 11>; =20 trips { @@ -5352,8 +5308,6 @@ reset-mon-cfg { }; =20 modem2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 12>; =20 trips { @@ -5384,8 +5338,6 @@ reset-mon-cfg { }; =20 modem3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 13>; =20 trips { @@ -5416,8 +5368,6 @@ reset-mon-cfg { }; =20 camera0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 14>; =20 trips { @@ -5436,8 +5386,6 @@ reset-mon-cfg { }; =20 camera1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&tsens1 15>; =20 trips { --=20 2.40.1