Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp988852lqt; Tue, 19 Mar 2024 09:30:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9znxQxGyOWhKM7jGPfO9aMT9Q1BzLk5AAsADLWrFIHCdquWQKuZb4clcOn1ff6miXCGKzkfdYL+rK58SdREtMOJibI8PekO9iqE5O3w== X-Google-Smtp-Source: AGHT+IEgfW5uIdMdVtqch8X8WwQCAfGR8CVaccKN5fIzp0dM360tmfXeGv1IwbPyYmz9WYYIN39S X-Received: by 2002:a05:6358:5e81:b0:17c:1e6c:14c0 with SMTP id z1-20020a0563585e8100b0017c1e6c14c0mr2821488rwn.16.1710865804729; Tue, 19 Mar 2024 09:30:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710865804; cv=pass; d=google.com; s=arc-20160816; b=JCoNHy4wAtyprxIZg4363y9z1ru+axwgDKuQBACTio6JpMKEuIqotdTahtaPIk2L3t NX1V1IMcmonSxKJSd1WWzT/MMlVY4iAkLrMU3FtfoHDwknC2tID65hBTrSvnbcFGoTZg uPJu0rIdFLnzwh6TVKUPNHxn0SLrYc712qpndfS0ommtmlMRBc/ZWbNwAPcHBo5QwK7G rvWFEKpjZ8b7tMZ6smnK8n8WtP4z82bFe0mwpYIe7XNCgMSnbGzyEfANcATB4Sq8bpLk DW9vHKDZ9ysZW1Ww5HeMEyT+nbMJCFEN7zm8+Wpd4jLMXPsR8VcbtrLGt4efXkoNgH9g nO2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=yTraggok76PURW3wh7p9AIEGOGIaFqWcV70ApHtUPps=; fh=Un3zVnpyV14f6soas1fnUSQZbkyP07h/rfYfr79+sLs=; b=dQ4LjBXkexR24D05g97UtLasn3BHXUk//VYGZlULw+CgYXjcj51ixZAMlTkxz4YajG z/Br/IFEq+LnllPa3IIBZ6XxgGUV1UxpctZW2seAQziTtuwZja2yNPJLrsy3SpuQh5kS qIq+kqWqo0Lq4k84fHXbfQwAllxu/lqaH31ksSIKr4XuroPB7bebSLhv1mqi8AsfgzT8 yeQXzfQ3D6JG3M+Fxp9Uh9NwfKFb0HkRKjmc/kHHskTroLYVB+qYTxcTP/enH2p7SyyJ LSBqmc2kHm1svkYjyljovMD0/F/zYwXztTmlpby53GP+Cy4XLBDDRdJKYKLPe60GFPBi Ba0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n6bpnMdn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-107811-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107811-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w31-20020a63475f000000b005dc4b7ae767si10318633pgk.459.2024.03.19.09.30.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:30:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107811-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n6bpnMdn; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-107811-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107811-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1D5DE289026 for ; Tue, 19 Mar 2024 16:21:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A801D127B47; Tue, 19 Mar 2024 16:14:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n6bpnMdn" 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 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-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: 7bit 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 { thermal-zones { conn-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150b_adc_tm 0>; trips { @@ -124,8 +122,6 @@ active-config0 { }; pm8150l-pcb-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150l_adc_tm 1>; trips { @@ -138,8 +134,6 @@ active-config0 { }; skin-msm-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150l_adc_tm 0>; trips { @@ -152,8 +146,6 @@ active-config0 { }; wifi-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150_adc_tm 1>; trips { @@ -166,8 +158,6 @@ active-config0 { }; xo-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150_adc_tm 0>; 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 { thermal-zones { camera-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150l_adc_tm 0>; trips { @@ -67,8 +65,6 @@ active-config0 { }; conn-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150b_adc_tm 0>; trips { @@ -81,8 +77,6 @@ active-config0 { }; mmw-pa1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150_adc_tm 2>; trips { @@ -95,8 +89,6 @@ active-config0 { }; mmw-pa2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150l_adc_tm 2>; trips { @@ -109,8 +101,6 @@ active-config0 { }; skin-msm-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150l_adc_tm 1>; trips { @@ -123,8 +113,6 @@ active-config0 { }; skin-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150_adc_tm 1>; trips { @@ -137,8 +125,6 @@ active-config0 { }; xo-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150_adc_tm 0>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/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 { thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 1>; trips { @@ -6288,9 +6285,6 @@ map1 { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 2>; trips { @@ -6332,9 +6326,6 @@ map1 { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 3>; trips { @@ -6376,9 +6367,6 @@ map1 { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 4>; trips { @@ -6420,9 +6408,6 @@ map1 { }; cpu4-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 7>; trips { @@ -6464,9 +6449,6 @@ map1 { }; cpu5-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 8>; trips { @@ -6508,9 +6490,6 @@ map1 { }; cpu6-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 9>; trips { @@ -6552,9 +6531,6 @@ map1 { }; cpu7-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 10>; trips { @@ -6596,9 +6572,6 @@ map1 { }; cpu4-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 11>; trips { @@ -6640,9 +6613,6 @@ map1 { }; cpu5-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 12>; trips { @@ -6684,9 +6654,6 @@ map1 { }; cpu6-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 13>; trips { @@ -6728,9 +6695,6 @@ map1 { }; cpu7-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 14>; trips { @@ -6772,9 +6736,6 @@ map1 { }; aoss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 0>; trips { @@ -6787,9 +6748,6 @@ aoss0_alert0: trip-point0 { }; cluster0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 5>; trips { @@ -6807,9 +6765,6 @@ cluster0_crit: cluster0-crit { }; cluster1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 6>; trips { @@ -6827,9 +6782,6 @@ cluster1_crit: cluster1-crit { }; gpu-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 15>; cooling-maps { @@ -6849,9 +6801,6 @@ gpu_top_alert0: trip-point0 { }; aoss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 0>; trips { @@ -6864,9 +6813,6 @@ aoss1_alert0: trip-point0 { }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 1>; trips { @@ -6879,9 +6825,6 @@ wlan_alert0: trip-point0 { }; video-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 2>; trips { @@ -6894,9 +6837,6 @@ video_alert0: trip-point0 { }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 3>; trips { @@ -6909,9 +6849,6 @@ mem_alert0: trip-point0 { }; q6-hvx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 4>; trips { @@ -6924,9 +6861,6 @@ q6_hvx_alert0: trip-point0 { }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 5>; trips { @@ -6939,9 +6873,6 @@ camera_alert0: trip-point0 { }; compute-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 6>; trips { @@ -6954,9 +6885,6 @@ compute_alert0: trip-point0 { }; npu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 7>; trips { @@ -6969,9 +6897,6 @@ npu_alert0: trip-point0 { }; gpu-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 8>; cooling-maps { -- 2.40.1