From nobody Mon Feb 9 09:09:13 2026 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 8D4F086AD4 for ; Tue, 19 Mar 2024 16:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864851; cv=none; b=QKJQKV+8T0xuD4Pwu/phzolx0hIL5P3nZw4+EIjfjOzi6l6Mvnj4MgBPgFlC0l6YkYnhGyoapeiVRgScvjV9qj4XeWG8gHsrObD8K2ZlbZ9xuwsePg7jQ4RvQE8HnDqRbkD010eKt5U8rnRb9lK5At8+t41IMJGlL/U4rzwE6aU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864851; c=relaxed/simple; bh=icuuXSqjatxpixxLqT1V6W9fC72HVgbLSz3h8APncwQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V093EjLYBPm3zkjZLiDuUpaz+o/KLixsno26Aai5M2mY7EfrJVp1m0aLj9Ysj7XqA1fRblqSPYKTFSfWHtgIWkjGHWolrWSqL6/4Hz4UFkGuxp8ddn/0PawFYoPXi2L2g0KWg2X/8pIKyizuTgIbNHioXUZwlFEYH4k9Tu/qTco= 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=n6bpnMdn; arc=none smtp.client-ip=209.85.167.53 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="n6bpnMdn" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-513cfc93f4eso6503556e87.3 for ; Tue, 19 Mar 2024 09:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864846; x=1711469646; 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=yTraggok76PURW3wh7p9AIEGOGIaFqWcV70ApHtUPps=; b=n6bpnMdnfeDsvGoE1r0YWSrOB3Mj2ZSDl/ArMo5adIRYdETYKuSQD+R87csVXIFYkM WkF9jKyetTnyz25VUN5XJEDmkNNGgu+O4ydS2N57TVReLzln69GugxBHuyRV0x5C6TT/ W7UiuGIbLkRWHi/Ey2m3FRYug9kPhpTu6dXYUI2BdFznfPmXs6QupEzCnDsiRXJq0pHd urhtYww2o9mZ4MSbxho3VVB0wPOk9rfFEPeygvJ/NKt0XCoPP2nYD47Ostnb0DhnkiRO fXo6V3RV8Rwttmxo7LDXe6mc4RETxQkyYiKKBfuU9/GtXwQ/09xtWMl+24pnaLWz8yq8 IkbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864846; x=1711469646; 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=yTraggok76PURW3wh7p9AIEGOGIaFqWcV70ApHtUPps=; b=XLi9nVCotR6lJEE7lDeQrXb5WlnzYHLrt4SAAy/kwQoTe42QgyQwO/j13aVmtDZnay 6kIA6kju0P38vs8pxKUTlWchY9CssyIQFC/F3v3sokorraI18Vot3k/JmYfwbRVz8FKE QHK5BLv1gqREpqcA2jTqd6WNhJPkwQ4LbdfAw9tCuL7S8rS8qgSHs7KGl8tjy5MjH/aU ZfMJtbpo3rpNg6vDWB/qa1FwFXottvUF8xQ9nWxXEaUDKJ+Wyqehj9Zogt36/59milUO MnAD64e1MPzb8eqorVZOfT/k/4zAzzNZznJAEyBWXdM0j003AlSuYAvJiG+0Yl2LGxT2 b4Lw== X-Forwarded-Encrypted: i=1; AJvYcCUbTilaKsrnVARFwim3tFBGUV1DFOXamMsDAWT2wmsJS5zz1p+EyMA6FbpFpfkT1/B74O0jb5bgSqaY4tRTToeE59xl3qFsN0H73TE+ X-Gm-Message-State: AOJu0YwHcNrkysfLY4Jrum9m5Bo0B9lUcnYRYuDqlsitXVHsgrzDJq88 +lAS8Tpe6SmMJQlCh72lU1q9FzfjoO7q3bngtDL1FmDRiVlB9sIClOvhbnz+jqg= X-Google-Smtp-Source: AGHT+IHbsJDRjHFQvm/ZDq0oQX0UJDG+6JCb+tgPHLTjbTVZij5uEhzqf3ObDNd12cpRfz/vEyH1CQ== X-Received: by 2002:a19:ca51:0:b0:513:5a7b:1093 with SMTP id h17-20020a19ca51000000b005135a7b1093mr10395007lfj.21.1710864846628; Tue, 19 Mar 2024 09:14:06 -0700 (PDT) Received: from [127.0.1.1] (netpanel-87-246-222-29.pol.akademiki.lublin.pl. [87.246.222.29]) by smtp.gmail.com with ESMTPSA id dx9-20020a0565122c0900b00513ee207982sm607686lfb.198.2024.03.19.09.14.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:06 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:57 +0100 Subject: [PATCH 27/31] arm64: dts: qcom: sm8250-*: 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: <20240319-topic-msm-polling-cleanup-v1-27-e0aee1dbcd78@linaro.org> References: <20240319-topic-msm-polling-cleanup-v1-0-e0aee1dbcd78@linaro.org> In-Reply-To: <20240319-topic-msm-polling-cleanup-v1-0-e0aee1dbcd78@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.13-dev-0438c 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/qrb5165-rb5.dts | 10 ----- arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 14 ------ arch/arm64/boot/dts/qcom/sm8250.dtsi | 75 ----------------------------= ---- 3 files changed, 99 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts= /qcom/qrb5165-rb5.dts index cd0db4f31d4a..ce13fdfb0797 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -110,8 +110,6 @@ lt9611_3v3: lt9611-3v3 { =20 thermal-zones { conn-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150b_adc_tm 0>; =20 trips { @@ -124,8 +122,6 @@ active-config0 { }; =20 pm8150l-pcb-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150l_adc_tm 1>; =20 trips { @@ -138,8 +134,6 @@ active-config0 { }; =20 skin-msm-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150l_adc_tm 0>; =20 trips { @@ -152,8 +146,6 @@ active-config0 { }; =20 wifi-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150_adc_tm 1>; =20 trips { @@ -166,8 +158,6 @@ active-config0 { }; =20 xo-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150_adc_tm 0>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts b/arch/arm64/boot/dts/= qcom/sm8250-mtp.dts index 7ef99038cb37..21b2ca1def83 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts @@ -53,8 +53,6 @@ chosen { =20 thermal-zones { camera-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150l_adc_tm 0>; =20 trips { @@ -67,8 +65,6 @@ active-config0 { }; =20 conn-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150b_adc_tm 0>; =20 trips { @@ -81,8 +77,6 @@ active-config0 { }; =20 mmw-pa1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150_adc_tm 2>; =20 trips { @@ -95,8 +89,6 @@ active-config0 { }; =20 mmw-pa2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150l_adc_tm 2>; =20 trips { @@ -109,8 +101,6 @@ active-config0 { }; =20 skin-msm-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150l_adc_tm 1>; =20 trips { @@ -123,8 +113,6 @@ active-config0 { }; =20 skin-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150_adc_tm 1>; =20 trips { @@ -137,8 +125,6 @@ active-config0 { }; =20 xo-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; thermal-sensors =3D <&pm8150_adc_tm 0>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qco= m/sm8250.dtsi index 39bd8f0eba1e..c8d4aaacb00a 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -6244,9 +6244,6 @@ timer { =20 thermal-zones { cpu0-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 1>; =20 trips { @@ -6288,9 +6285,6 @@ map1 { }; =20 cpu1-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 2>; =20 trips { @@ -6332,9 +6326,6 @@ map1 { }; =20 cpu2-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 3>; =20 trips { @@ -6376,9 +6367,6 @@ map1 { }; =20 cpu3-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 4>; =20 trips { @@ -6420,9 +6408,6 @@ map1 { }; =20 cpu4-top-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 7>; =20 trips { @@ -6464,9 +6449,6 @@ map1 { }; =20 cpu5-top-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -6508,9 +6490,6 @@ map1 { }; =20 cpu6-top-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -6552,9 +6531,6 @@ map1 { }; =20 cpu7-top-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -6596,9 +6572,6 @@ map1 { }; =20 cpu4-bottom-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -6640,9 +6613,6 @@ map1 { }; =20 cpu5-bottom-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 12>; =20 trips { @@ -6684,9 +6654,6 @@ map1 { }; =20 cpu6-bottom-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 13>; =20 trips { @@ -6728,9 +6695,6 @@ map1 { }; =20 cpu7-bottom-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 14>; =20 trips { @@ -6772,9 +6736,6 @@ map1 { }; =20 aoss0-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -6787,9 +6748,6 @@ aoss0_alert0: trip-point0 { }; =20 cluster0-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 5>; =20 trips { @@ -6807,9 +6765,6 @@ cluster0_crit: cluster0-crit { }; =20 cluster1-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 6>; =20 trips { @@ -6827,9 +6782,6 @@ cluster1_crit: cluster1-crit { }; =20 gpu-top-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 15>; =20 cooling-maps { @@ -6849,9 +6801,6 @@ gpu_top_alert0: trip-point0 { }; =20 aoss1-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 0>; =20 trips { @@ -6864,9 +6813,6 @@ aoss1_alert0: trip-point0 { }; =20 wlan-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 1>; =20 trips { @@ -6879,9 +6825,6 @@ wlan_alert0: trip-point0 { }; =20 video-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 2>; =20 trips { @@ -6894,9 +6837,6 @@ video_alert0: trip-point0 { }; =20 mem-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 3>; =20 trips { @@ -6909,9 +6849,6 @@ mem_alert0: trip-point0 { }; =20 q6-hvx-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 4>; =20 trips { @@ -6924,9 +6861,6 @@ q6_hvx_alert0: trip-point0 { }; =20 camera-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 5>; =20 trips { @@ -6939,9 +6873,6 @@ camera_alert0: trip-point0 { }; =20 compute-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 6>; =20 trips { @@ -6954,9 +6885,6 @@ compute_alert0: trip-point0 { }; =20 npu-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 7>; =20 trips { @@ -6969,9 +6897,6 @@ npu_alert0: trip-point0 { }; =20 gpu-bottom-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 8>; =20 cooling-maps { --=20 2.40.1