Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp445915lqo; Fri, 10 May 2024 05:05:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVev3wBYJSOSce7JIoTDXnrs2uzUn0/5Zh+jPiESMwAMWlz6QHmnPZVlavQCq4UfqOOZRxMNTSgoGpx0Zbu8nET9tkbiu00wZTpF2nRyw== X-Google-Smtp-Source: AGHT+IHY0mNP2dQDATMD1ytzc6tm00TnUj51Temp5YmzVEt9xs7FMeyVx3DUFBmmUfLN88JhLsXd X-Received: by 2002:a05:6214:53c9:b0:6a0:c162:2a2a with SMTP id 6a1803df08f44-6a16816a5e3mr25404296d6.21.1715342727914; Fri, 10 May 2024 05:05:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715342727; cv=pass; d=google.com; s=arc-20160816; b=0c8lUngcWFdp3nTKu4y4SHZnD+4VDiDO6YR3MVD7B9R71xehJ2iKMS15QVARqlaOVH JcsjZulcwMB+WmbElHK9JTEkRlviSJzGTHYQtUG5iDVIYbHR0i6ZIkDGgRaLzZixDA++ V72kR70UK4wzLeTADE0UXgettIvU1WwzMRDoO2kZWtNd4tumCQvzPtZhgUi1QFes7nWY LBfKf4k3OHgGvapDchckm9tdS5kC0SsUmVXWmW1T3zyX38Thuh/AQ8wQb7z8YgRfBCUI VzKXaQV8Tm/tdCg80z54kQrmz8yAtlxpEZqWOmKIscpPISflOvn3XZFVsyNJv6Zq/erV 5zCg== 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=rLNTyk4X9fC3GC8MPmd2z/cegf9V5wRXHvil6Eq3ejM=; fh=0BZtw9WkM7CfQAinGJEaN/Ackm3bN+ZtuEvbSoxFf24=; b=sw7Va66B0EICYic6M0k99zP37ZoTA8KOKVKp48W5R1oGhmbeXlJyj90cOSZxfCG1G+ m98V6M2QA6Gwba27TcOMcWO5KYfgatL9dmqx9r5OBiumBExnfeMReaJi0mIelfuKl9cE 18nRl0TwfllIRhUETrbEQMgb+ikMyPiACry2xZR6PLH91kKK5kez8Lo3af9R2ZeuFo1L dCOqOAXoEFFggDyeNm0/LvvSc7lgna99cO2SnmrHJSq0DIISx4xuMO0OWSxEFwd0uK8i B9jWFwbggNoFQFPf9yWMVn+HfSsRrkB9agHEKfAxCoiXRNaBEIB2ujINsjfucyiyOTYi Jxew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aaauLdqc; 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-175746-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175746-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f1d745csi35679696d6.49.2024.05.10.05.05.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:05:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175746-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aaauLdqc; 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-175746-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175746-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4D65B1C23507 for ; Fri, 10 May 2024 12:04:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E354317EB9B; Fri, 10 May 2024 12:00:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aaauLdqc" 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 EA38B17BB15 for ; Fri, 10 May 2024 12:00:04 +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=1715342406; cv=none; b=McPfOROKDtlyPVENVZ0jnqMc7wXhE2qr7GYbhH3qsTnwfyvqJsCv8h6NG7YOzx09zDn/FE74EJk62Dz1rzkGwanYAQz7kLhmN6yEWjI5v4RIVRE8E4g4NJ1/V0f3hRbta1UqipxSQRlmVYE+ObHe/h9H68t7MZ3IHIdxGJiyc7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342406; c=relaxed/simple; bh=8bUEbq+oRJxkRBqPHpqaLWyrSKKIG6Sx+NAi7BQ/W74=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ClD+z6BF95jRa2S1ODxqoi8vpBxEG/qhkV1oMRd8UPMUghuX7fVguAloA2j4KfAIO+t5sIrSP49c2H8Ar3qylCYB2d4+25WGJGywuXUzQE+cYKhC3QTH6/9lrCLYt9GTGxDWtxy5aI0Yy/f416q+9SEOLSB5NUZl+hk/y5MiL3s= 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=aaauLdqc; 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 Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a59b81d087aso483389166b.3 for ; Fri, 10 May 2024 05:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342403; x=1715947203; 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=rLNTyk4X9fC3GC8MPmd2z/cegf9V5wRXHvil6Eq3ejM=; b=aaauLdqcuri8CArY0oA5L+MkTh7hzk2LgyRCLP/88ny9z1K6I4RDudMePeSPQ44a57 VHM+ADk9j99h2ERH1iK4e61eRd/w3UgaYJvFmkJtzVyjTJFGp8W/Hc0hvxEC4VcNRffw 8r5LR/92HF4C4X3JjnAT+dgupn54yBydS/MvireVvw3PQ/EioqiYahyyylV50E6nJct3 PBgxpGe8rD88c/MXHi8HpjxNb8IaKsXwhCF5zMFQTL5ajVuaOKXbJa3ifJgLqWZt8nwA CUO1rW4IWnRJI99MKtFIBC9heORgkqazPt7f7IG9fiHgHbnaBy2842v2drTUQiIRaGcB f2PA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342403; x=1715947203; 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=rLNTyk4X9fC3GC8MPmd2z/cegf9V5wRXHvil6Eq3ejM=; b=b/uaPMbQze6m3oqE3xnyc5A7keuroCoaiT8OhOs2qdb5BWVCWxUyjGR88KdsGh/2Sl Stsy1nyajNuhgOQDt38gPg246dphaogbR/TNr3vqgYsMn7Kf9y0VgLQpOhtzQ/M4WmJj mizBvONdlxveWb5PhDLIUCGhu6MgGJlRDRhuwRrIODVfrJgWSyVg61ydAKgwTDdhpCjo j9pqIqDpcouU+uitDwuEDJMidNiaVM7Go15XDsMfDaEL9Lopx2DB5fR9VsE33tlIIlsd 4GbrgtXLWXmBaeH4Cq2kS3U/mEw6MnK8Dtb8uId9fQNZCxxPZCE5IAe1JQUe0kZP/rU3 OIdw== X-Forwarded-Encrypted: i=1; AJvYcCWjPa4ffcJsYgDjLSOfV5k34d1ZYoPf4RKetXgJeeMGLXkU01LL4CBLJPxb8+zns/PlUqzG0atvvRCEl+CoAh6QoQT1lKDNeQ+12Lwv X-Gm-Message-State: AOJu0YwhzS6fzi3CWA7Ko3O+MLuWwwB666EW6MJFH7WKykKTu8oYhigD oEGyTIvJxeecxrF2IHLH7DW0z1Ih7Z0LajMzpzEzu5ZLru2M49zWoDN5EBTImlc= X-Received: by 2002:a17:906:f296:b0:a59:cb29:3fa8 with SMTP id a640c23a62f3a-a5a2d53adbbmr256281866b.14.1715342403343; Fri, 10 May 2024 05:00:03 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:00:03 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:44 +0200 Subject: [PATCH v2 21/31] arm64: dts: qcom: sdm845-*: 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: <20240510-topic-msm-polling-cleanup-v2-21-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/sdm845-mtp.dts | 12 ------------ arch/arm64/boot/dts/qcom/sdm845.dtsi | 21 --------------------- 2 files changed, 33 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index 76bfa786612c..2391f842c903 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -51,9 +51,6 @@ vreg_s4a_1p8: pm8998-smps4 { thermal-zones { xo_thermal: xo-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&pm8998_adc_tm 1>; trips { @@ -66,9 +63,6 @@ trip-point { }; msm_thermal: msm-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&pm8998_adc_tm 2>; trips { @@ -81,9 +75,6 @@ trip-point { }; pa_thermal: pa-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&pm8998_adc_tm 3>; trips { @@ -96,9 +87,6 @@ trip-point { }; quiet_thermal: quiet-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&pm8998_adc_tm 4>; trips { diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 10de2bd46ffc..57507d6ec918 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -5358,7 +5358,6 @@ sound: sound { thermal-zones { cpu0-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 1>; @@ -5385,7 +5384,6 @@ cpu0_crit: cpu-crit { cpu1-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 2>; @@ -5412,7 +5410,6 @@ cpu1_crit: cpu-crit { cpu2-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 3>; @@ -5439,7 +5436,6 @@ cpu2_crit: cpu-crit { cpu3-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 4>; @@ -5466,7 +5462,6 @@ cpu3_crit: cpu-crit { cpu4-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 7>; @@ -5493,7 +5488,6 @@ cpu4_crit: cpu-crit { cpu5-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 8>; @@ -5520,7 +5514,6 @@ cpu5_crit: cpu-crit { cpu6-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 9>; @@ -5547,7 +5540,6 @@ cpu6_crit: cpu-crit { cpu7-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 10>; @@ -5574,7 +5566,6 @@ cpu7_crit: cpu-crit { aoss0-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 0>; @@ -5589,7 +5580,6 @@ aoss0_alert0: trip-point0 { cluster0-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 5>; @@ -5609,7 +5599,6 @@ cluster0_crit: cluster0-crit { cluster1-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 6>; @@ -5629,7 +5618,6 @@ cluster1_crit: cluster1-crit { gpu-top-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 11>; @@ -5651,7 +5639,6 @@ gpu_top_alert0: trip-point0 { gpu-bottom-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 12>; @@ -5673,7 +5660,6 @@ gpu_bottom_alert0: trip-point0 { aoss1-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens1 0>; @@ -5688,7 +5674,6 @@ aoss1_alert0: trip-point0 { q6-modem-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens1 1>; @@ -5703,7 +5688,6 @@ q6_modem_alert0: trip-point0 { mem-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens1 2>; @@ -5718,7 +5702,6 @@ mem_alert0: trip-point0 { wlan-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens1 3>; @@ -5733,7 +5716,6 @@ wlan_alert0: trip-point0 { q6-hvx-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens1 4>; @@ -5748,7 +5730,6 @@ q6_hvx_alert0: trip-point0 { camera-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens1 5>; @@ -5763,7 +5744,6 @@ camera_alert0: trip-point0 { video-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens1 6>; @@ -5778,7 +5758,6 @@ video_alert0: trip-point0 { modem-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens1 7>; -- 2.40.1