From nobody Mon Feb 9 14:03:12 2026 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JNLYWvDZ" 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-Google-Smtp-Source: AGHT+IEymQE2R/LPuSMOAm9qmiinQ4oyVDBn5+RUKhwWE3x96afumU2CeKD9X+VyStQdVL0uKRpw9w== 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: quoted-printable 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 =3D <100>; - polling-delay =3D <0>; - thermal-sensors =3D <&pmc8180_temp>; =20 trips { @@ -39,9 +36,6 @@ trip2 { }; =20 pmc8180c-thermal { - polling-delay-passive =3D <100>; - polling-delay =3D <0>; - thermal-sensors =3D <&pmc8180c_temp>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qc= om/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 { =20 thermal-zones { cpu0-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 1>; =20 trips { @@ -3744,9 +3741,6 @@ cpu-crit { }; =20 cpu1-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 2>; =20 trips { @@ -3759,9 +3753,6 @@ cpu-crit { }; =20 cpu2-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 3>; =20 trips { @@ -3774,9 +3765,6 @@ cpu-crit { }; =20 cpu3-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 4>; =20 trips { @@ -3789,9 +3777,6 @@ cpu-crit { }; =20 cpu4-top-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 7>; =20 trips { @@ -3804,9 +3789,6 @@ cpu-crit { }; =20 cpu5-top-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -3819,9 +3801,6 @@ cpu-crit { }; =20 cpu6-top-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -3834,9 +3813,6 @@ cpu-crit { }; =20 cpu7-top-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -3849,9 +3825,6 @@ cpu-crit { }; =20 cpu4-bottom-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -3864,9 +3837,6 @@ cpu-crit { }; =20 cpu5-bottom-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 12>; =20 trips { @@ -3879,9 +3849,6 @@ cpu-crit { }; =20 cpu6-bottom-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 13>; =20 trips { @@ -3894,9 +3861,6 @@ cpu-crit { }; =20 cpu7-bottom-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 14>; =20 trips { @@ -3909,9 +3873,6 @@ cpu-crit { }; =20 aoss0-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -3924,9 +3885,6 @@ trip-point0 { }; =20 cluster0-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 5>; =20 trips { @@ -3939,9 +3897,6 @@ cluster-crit { }; =20 cluster1-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 6>; =20 trips { @@ -3954,9 +3909,6 @@ cluster-crit { }; =20 gpu-top-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens0 15>; =20 cooling-maps { @@ -3976,9 +3928,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 { @@ -3991,9 +3940,6 @@ trip-point0 { }; =20 wlan-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 1>; =20 trips { @@ -4006,9 +3952,6 @@ trip-point0 { }; =20 video-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 2>; =20 trips { @@ -4021,9 +3964,6 @@ trip-point0 { }; =20 mem-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 3>; =20 trips { @@ -4036,9 +3976,6 @@ trip-point0 { }; =20 q6-hvx-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 4>; =20 trips { @@ -4051,9 +3988,6 @@ trip-point0 { }; =20 camera-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 5>; =20 trips { @@ -4066,9 +4000,6 @@ trip-point0 { }; =20 compute-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 6>; =20 trips { @@ -4081,9 +4012,6 @@ trip-point0 { }; =20 mdm-dsp-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 7>; =20 trips { @@ -4096,9 +4024,6 @@ trip-point0 { }; =20 npu-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 8>; =20 trips { @@ -4111,9 +4036,6 @@ trip-point0 { }; =20 gpu-bottom-thermal { - polling-delay-passive =3D <250>; - polling-delay =3D <1000>; - thermal-sensors =3D <&tsens1 11>; =20 cooling-maps { --=20 2.40.1