Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp982499lqt; Tue, 19 Mar 2024 09:19:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWInUI9NNeDtPFkA0IErPM2XVJVg3o+Gs6nzhQVyTU+iIBoivuPghVWigSeTHA9rT6IYmF813UXmbUvGTGWMuxwQuw1uflD/m8hxl9VYg== X-Google-Smtp-Source: AGHT+IGQpOZT0hnImj8fmb+u4zq7i56qcRb5hQL76XFT5bv+HS3XRHVKA4FalXwa0u1pU25KJBqk X-Received: by 2002:a17:907:7f87:b0:a46:a9db:1471 with SMTP id qk7-20020a1709077f8700b00a46a9db1471mr6945703ejc.16.1710865162393; Tue, 19 Mar 2024 09:19:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710865162; cv=pass; d=google.com; s=arc-20160816; b=WVXTP1zgcA+6VY4y5z/rfmhne5JChMpTiKALZP+FtFUQZGzCn2B6/PQkwWg3gxD/94 oIzBHk5gz+KjCBnzcCPDmtQRV6mMRbBBBw62J3uXaeirzHgazP4dSovIZnqkjUR0Mtat 11omTXBJOuHyv6hrqDnLocxb2Ql2ubKFbvdCozycvR3G6Y533yp5tOIx3reEF8fWrFoc WTaY3RldeT1UxSVtRNXDDAszrk94E2Nv9aGErkOKbmFmzedK6GWMGSXZdtD2cuXbQ2mZ 0XLd0EMuyvxv97rzRLgam7dKhBJi1ry9JV+EmtXuSMHBPFz/hKn124xDQRsvQrPV+dcr WHSg== 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=UUin3oci0fFi0rj9oRXbvvL87KWcWHkvEUupVOm/N6A=; fh=sMcau03qpLPxBIsvugvkzPmEZ95RyZYDCxLQqhSDV8k=; b=LS1p7VwrV6sFUL5yQdwN7FsjRqlPQw9xtd7919R4an/ULRKNEp8SPQyYupKLOCwxUR VcOPiJW/a+w6VTVHTO0UX0I/1soQWiH4zsh3RNvf8CoFquPQCf+C7+gNkuTJdLLurmGg RYt2/HqQ/8oNHzxiZUVqQC1P2evXsKArgeREaI+5DzcJG8uiNMqlSzMOHkVAINVmw0if EWZOdij1i38zSGsb7++ETJgP74O3ed1Yd0WFhSL+lWOkwCr6guxgsC8DSDIktUVwsaaf y+WWbNPE3pawV7BplGELIXKPK+vOIoiEM7E5MzJLhIGtwu7QkIgXArXZJ1dIPFtfy8i2 fPnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y4mtqUeL; 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-107804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bh5-20020a170906a0c500b00a465b43dd6dsi5302670ejb.827.2024.03.19.09.19.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:19:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y4mtqUeL; 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-107804-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107804-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E8BC61F23256 for ; Tue, 19 Mar 2024 16:19:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A89986277; Tue, 19 Mar 2024 16:14:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="y4mtqUeL" Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 88C2C85945 for ; Tue, 19 Mar 2024 16:14:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864845; cv=none; b=l/poZeZ9ktjKF5iu2MDhJM3z4YQST4yvsQslcNdZmi+eMqOr1kgf4hEhgAhtreA6CHKAgd/sHNfH6Zw7OcXhzPsHRzVreJJDF0Umb3iJTe1k313I/ZUSn+4u1rbS8XUWRyKIQluvQ08dqEm8gB5dlsC0wIioxIjp4U/mJ4Um26k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864845; c=relaxed/simple; bh=CyTy0OiFU+Nfk1dsdjAmqIKr/Ix2mPrqSyyV6yCRfCg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ibOeCj8jXTWvq2CVv3i9ubQYdWclDZWZ4U/e7I2qaMn6djeWu9rEI1NgsRaB1LTjgLd39ObCyOMLr6ezYfbmed++4GcrYOQJ0sW6NrSKLtycUm8SVMtsIgYolczNgAzN5+euIrvRhHKUf/Z0NPppLR7hoLZz+kRF7sZTahpEB1s= 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=y4mtqUeL; arc=none smtp.client-ip=209.85.208.182 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-lj1-f182.google.com with SMTP id 38308e7fff4ca-2d288bac3caso72861731fa.2 for ; Tue, 19 Mar 2024 09:14:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864841; x=1711469641; 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=UUin3oci0fFi0rj9oRXbvvL87KWcWHkvEUupVOm/N6A=; b=y4mtqUeLSjscXgzmk7j3q9nkganFza1YYJWDd9yVd8B5/sDzPCIfWdkiipqrV6Yokb BQxNgErVyoAoFQmOe8kk1L/mAc45ijzevM6E1nYyBg93A2d2yeB2+fapsHIvBuS3OWRx QFQ9M+tSc5+gPSVdMxb2avACZtfPzwvTeFojVS/hFppD9wPTk50K+PQtuhxdfsDHjb2L 0iOU326FGO+mgwMYEHL2atsinZyDZMTF6g9KUKP77Bk6KKkIdVeCm/Z1qwCoIwF8ZgUR v+zJiS/SRlyHTRU8J1ScM6f2NvcZinQV+mCyr3xatrnCIVzdpZFd7WxuZTnpAIRGXR/B ggbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864841; x=1711469641; 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=UUin3oci0fFi0rj9oRXbvvL87KWcWHkvEUupVOm/N6A=; b=w4NBpmFY9eU6QmT7rT7+Ni61Uqxf2oXzXj0CHN4RdBWnbnw8sqGRcNhbgSPaVhLNyr 4oTEDiOJN7rFhnjfvBHv43UkgKBcI3WyyUTuE9MqMCtLZEnfAg1CnMpkNZj4/By5uZr3 l7NaSy+niAr5SMsDdKfyFMfBkWbs8RVeEX2M9/jSFKb3ZF0/fY9ZnhtrvxAH+svIt/JA NqP8Q5x66WzOdgY2klUdO72BQ6ltY9XyTKJ+FWSrrTlnzNZxsZTR0xxR30EDvPE54RuX RQigsmtTaxVVcV2aJd9+Mwhg3fbF4R3oVx48IeTVrgTY0KiPbmOGdwWT8wyexw6UGCK4 YU3Q== X-Forwarded-Encrypted: i=1; AJvYcCU9OXJijz5hGZM/HH4Ly69Q9BAcUGZm4YewcchDDZFDkD68bUdYXRPnlJRpH5DcbfwxlFiiOW4zSDSyok0y083VLiUtZDo5bHm0XrXI X-Gm-Message-State: AOJu0YwVKwVJEkkiCPbtDRnYuarMCAIrzvBgpbVYgyts1wUsS6hf8KGP Uh8CD5iQhTV10pUw9B4280Ih61xiXvl3d1ZiiIjUI0WuOq7+CXJKhq4sgoWfTNQ= X-Received: by 2002:a05:6512:102a:b0:513:c28e:8215 with SMTP id r10-20020a056512102a00b00513c28e8215mr9542879lfr.64.1710864840842; Tue, 19 Mar 2024 09:14:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:00 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:51 +0100 Subject: [PATCH 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: <20240319-topic-msm-polling-cleanup-v1-21-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/sdm845-mtp.dts | 12 ------- arch/arm64/boot/dts/qcom/sdm845.dtsi | 63 --------------------------------- 2 files changed, 75 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 2f20be99ee7e..ef05e3506d54 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -5337,9 +5337,6 @@ sound: sound { thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 1>; trips { @@ -5364,9 +5361,6 @@ cpu0_crit: cpu-crit { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 2>; trips { @@ -5391,9 +5385,6 @@ cpu1_crit: cpu-crit { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 3>; trips { @@ -5418,9 +5409,6 @@ cpu2_crit: cpu-crit { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 4>; trips { @@ -5445,9 +5433,6 @@ cpu3_crit: cpu-crit { }; cpu4-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 7>; trips { @@ -5472,9 +5457,6 @@ cpu4_crit: cpu-crit { }; cpu5-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 8>; trips { @@ -5499,9 +5481,6 @@ cpu5_crit: cpu-crit { }; cpu6-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 9>; trips { @@ -5526,9 +5505,6 @@ cpu6_crit: cpu-crit { }; cpu7-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 10>; trips { @@ -5553,9 +5529,6 @@ cpu7_crit: cpu-crit { }; aoss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 0>; trips { @@ -5568,9 +5541,6 @@ aoss0_alert0: trip-point0 { }; cluster0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 5>; trips { @@ -5588,9 +5558,6 @@ cluster0_crit: cluster0-crit { }; cluster1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 6>; trips { @@ -5608,9 +5575,6 @@ cluster1_crit: cluster1-crit { }; gpu-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 11>; cooling-maps { @@ -5630,9 +5594,6 @@ gpu_top_alert0: trip-point0 { }; gpu-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 12>; cooling-maps { @@ -5652,9 +5613,6 @@ gpu_bottom_alert0: trip-point0 { }; aoss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 0>; trips { @@ -5667,9 +5625,6 @@ aoss1_alert0: trip-point0 { }; q6-modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 1>; trips { @@ -5682,9 +5637,6 @@ q6_modem_alert0: trip-point0 { }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 2>; trips { @@ -5697,9 +5649,6 @@ mem_alert0: trip-point0 { }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 3>; trips { @@ -5712,9 +5661,6 @@ wlan_alert0: trip-point0 { }; q6-hvx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 4>; trips { @@ -5727,9 +5673,6 @@ q6_hvx_alert0: trip-point0 { }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 5>; trips { @@ -5742,9 +5685,6 @@ camera_alert0: trip-point0 { }; video-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 6>; trips { @@ -5757,9 +5697,6 @@ video_alert0: trip-point0 { }; modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 7>; trips { -- 2.40.1