Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp984475lqt; Tue, 19 Mar 2024 09:22:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUdlG0S4V6NPbpVaWegqTxYeKTmDCOygj7xkrhHe2tjw4iZo8+DE+IR2x7pjki7gPRubIcJFT1mofN71R7YEtj3VlDEbgtC3hId+5VufQ== X-Google-Smtp-Source: AGHT+IGmcjtkl3MYzhb78cc/VEPb17SN6+k5Hq7CBcfnVavnvaFg59xbJ3IFogjqduvhH69Ql03z X-Received: by 2002:a17:902:654b:b0:1e0:1b8c:96bb with SMTP id d11-20020a170902654b00b001e01b8c96bbmr6239055pln.3.1710865358351; Tue, 19 Mar 2024 09:22:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710865358; cv=pass; d=google.com; s=arc-20160816; b=G9Y2bMvkd2asWdwnF+hlmVqLDB7rzJV8/B7f2nM9uE0N8F0HoK8qvkqyvOHZ9B2X5h 1MS1INnKHGJ1sMP6hrXhx7UYYe077MM39fkjImWEYunJLALK4OBL+3t/2NrWAUbB5sKT 2zUkrlcdJ2TdxEQi5omHhnlGEjIx7UsMmPhqGQ10QeICorHveqNKK6bKrx3cJidNTAiL IBwcFZIosvopkGCm9Jkfnt786XYeAiFNIz1XBNeYqVsc72L8Hy3qwkThzTSGxW5ia2Nl MZTkZgcaar7IgGKSEOLLZM6AcavVcGdx6D+DNLf6VHzuR1CODngSNDU733vOtM0cwAfg YDjQ== 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=gVOjsRMRBg/iht2+2tLbAZFzfh1YTouYAMGPzwwP3vE=; fh=3p1R7ALmPPGunmT+ZozUFuPWUuk4PNN1R82nQC1GqCA=; b=P2s7rVRJufD79OsO2P/q+o8KNtcpU7x5mVqaZmXZanQ7W/KSFcFbr2pvnX63pp5YtU vmDynPR6fKwXUndDWVdr+GOBf/dvldCWpXw0kzsiYhP1JxhwBPSuwvWu217SmLLF3vPq RARJN+wm6ZZR0NHzZvNI7SZ7iZZ5XYcC0xwni6NzH2lZygdprcLgbf32LwrznGu6hzp2 Q8u9d7zvlPVOva1RTF5xJYU/h+H5VR3CNoAIQ2x17XXqz9VhTT1g8+vZU4D9mfCmUtPb ofEjikYCfJiFAmIzTZ+HYbl4qEUCscau7B9aqJdNU2/Cu+o3na8oqOgKqoFHUwEwlVtu /VJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JNLYWvDZ; 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-107801-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p6-20020a170902e74600b001dee9e1e0c5si10113197plf.219.2024.03.19.09.22.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:22:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107801-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JNLYWvDZ; 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-107801-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107801-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id F357AB249AC for ; Tue, 19 Mar 2024 16:18:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42F2C85957; Tue, 19 Mar 2024 16:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JNLYWvDZ" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 675C085645 for ; Tue, 19 Mar 2024 16:13:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864841; cv=none; b=D4oL/VH9DrxdKzYWeq1fzmXE1UQV6JdwZhrEkLx9pY6/JENCaNVy0r1ElLk6IPlo9H7xCm0ENA62aWKoOdcvlLHcjcND4OAq8b0T4mFPuvWW7acI0Lpuw+XmKIjb3WwVsqvhr+EyK8UPMGyUfBtj4/fFsaVN+3yiTO2sN8a8X38= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864841; c=relaxed/simple; bh=Pym46qMvyaBMeluBErICeXf56DkeoKFLyK79WkEUGgo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Dz0YcS6uiG5gIk+9TmxJbwQfNCw0Ojkwf0KSToNXCLoYvzDkEcEqNoWFN94KVwBrCdBWVp5EiUGm/5xLH0PL9huAsh8XoRJ4zDypAZokHSrfABxuQTJMf0f6swphmzsG4Ule7iWolcZI2+GuUQm+VFs3W3TErRbZBgbbFNNhz80= 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=JNLYWvDZ; arc=none smtp.client-ip=209.85.167.43 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-f43.google.com with SMTP id 2adb3069b0e04-512e4f4e463so6489518e87.1 for ; Tue, 19 Mar 2024 09:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864838; x=1711469638; 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=gVOjsRMRBg/iht2+2tLbAZFzfh1YTouYAMGPzwwP3vE=; b=JNLYWvDZLynDEwL62pAaAjP4MIzjVwsXqlUSsor/TsyYDPjPH0WGHh/kYv67i7zI40 2LGna5DvgOF7JhqwRLC/QwkxF+3Dx4EV77bacXdBqLc3019H46i8CeI6q0nZaX37ipiz yck4O4JTdlUszeIW2Pm7JDkh0MGO87tyzVD4Igi/YFUqev1Ryrk+LypM0byVkuEMMEJV E2pVZ2qMWPcz9lr8zahCM+4yXY3WsL+dez8a1RfpdaSAWFDS7EJebr1VUznjNA6LHZyX KeJvCUUB9KW+bR/yyAmdrWWOi7Y9pc8E8KpKbDeIQK/acHZoORSr0nGaIFdRpkaUuhDa Impg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864838; x=1711469638; 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=gVOjsRMRBg/iht2+2tLbAZFzfh1YTouYAMGPzwwP3vE=; b=oebOz+YohzSgBWKLvK4mK2GgQQLlcg9/yu6KaA27W6ee9d/5Q9pi6jPjr7y8yrukmW 5YAEs/Vn/Jxi6XQnc0WL0ew7Y0Cbs4A3A/UEamdXS3sRp6vRszUlYv8z/rBrawZYzsjT UWYCI6XaBHAl6LV9aQuiSdkLKScxlIbynlwL8g15fVpedU2Z0GHMkcacXUavkpn+dCfa lDrq4Sle5vpE6+MJhYPmX4JDkVwW4VQqPG2/AaJYMzaLa86exQJsQXilPfbISvvleCGT hmccUg8CzHPBdOzCF5a27vXAkFRNO8r8heSTds8OvpB+1k1RCQmolRH8+pbzJRCW+SWb kY4g== X-Forwarded-Encrypted: i=1; AJvYcCVUDlSbCHub/yFBd6W7RAORYiv9DvzOwcP6G9EPWuIJtUr1RrjVUGKjGCdSC5lkKpwRDkhhs0nuo07H/IANO5zMnOhpfYzuk+n8+n6f X-Gm-Message-State: AOJu0YyTeoZzHEfMdotlFfIE0sK3QEMVh757a/pdRDjKOkrQA208y82w IVb+hcBY3I5lkl3XqgT8HvBjZMw66tMlJUUmeR57Eh9zddjZlEr24gZ2wz9EUQo= X-Received: by 2002:a05:6512:619:b0:513:dd23:7a02 with SMTP id b25-20020a056512061900b00513dd237a02mr7815593lfe.26.1710864837754; Tue, 19 Mar 2024 09:13:57 -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.13.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:57 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:48 +0100 Subject: [PATCH 18/31] arm64: dts: qcom: sc8180x-*: 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-18-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/sc8180x-pmics.dtsi | 6 --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 78 ----------------------------- 2 files changed, 84 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi index ddc84282f142..e88e7fd832fe 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x-pmics.dtsi @@ -12,9 +12,6 @@ / { thermal-zones { pmc8180-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pmc8180_temp>; trips { @@ -39,9 +36,6 @@ trip2 { }; pmc8180c-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pmc8180c_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index 32afc78d5b76..010afc39895e 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -3729,9 +3729,6 @@ wifi: wifi@18800000 { thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 1>; trips { @@ -3744,9 +3741,6 @@ cpu-crit { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 2>; trips { @@ -3759,9 +3753,6 @@ cpu-crit { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 3>; trips { @@ -3774,9 +3765,6 @@ cpu-crit { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 4>; trips { @@ -3789,9 +3777,6 @@ cpu-crit { }; cpu4-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 7>; trips { @@ -3804,9 +3789,6 @@ cpu-crit { }; cpu5-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 8>; trips { @@ -3819,9 +3801,6 @@ cpu-crit { }; cpu6-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 9>; trips { @@ -3834,9 +3813,6 @@ cpu-crit { }; cpu7-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 10>; trips { @@ -3849,9 +3825,6 @@ cpu-crit { }; cpu4-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 11>; trips { @@ -3864,9 +3837,6 @@ cpu-crit { }; cpu5-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 12>; trips { @@ -3879,9 +3849,6 @@ cpu-crit { }; cpu6-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 13>; trips { @@ -3894,9 +3861,6 @@ cpu-crit { }; cpu7-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 14>; trips { @@ -3909,9 +3873,6 @@ cpu-crit { }; aoss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 0>; trips { @@ -3924,9 +3885,6 @@ trip-point0 { }; cluster0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 5>; trips { @@ -3939,9 +3897,6 @@ cluster-crit { }; cluster1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 6>; trips { @@ -3954,9 +3909,6 @@ cluster-crit { }; gpu-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 15>; cooling-maps { @@ -3976,9 +3928,6 @@ gpu_top_alert0: trip-point0 { }; aoss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 0>; trips { @@ -3991,9 +3940,6 @@ trip-point0 { }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 1>; trips { @@ -4006,9 +3952,6 @@ trip-point0 { }; video-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 2>; trips { @@ -4021,9 +3964,6 @@ trip-point0 { }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 3>; trips { @@ -4036,9 +3976,6 @@ trip-point0 { }; q6-hvx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 4>; trips { @@ -4051,9 +3988,6 @@ trip-point0 { }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 5>; trips { @@ -4066,9 +4000,6 @@ trip-point0 { }; compute-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 6>; trips { @@ -4081,9 +4012,6 @@ trip-point0 { }; mdm-dsp-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 7>; trips { @@ -4096,9 +4024,6 @@ trip-point0 { }; npu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 8>; trips { @@ -4111,9 +4036,6 @@ trip-point0 { }; gpu-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 11>; cooling-maps { -- 2.40.1