From nobody Tue Feb 10 16:27:11 2026 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.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 83466176FCE for ; Fri, 10 May 2024 11:59:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342397; cv=none; b=jnF7/NdoZVRE21g74YKNvM724QjrSrJa/c2bOs2jmeZhB8kUTyoEsgliifPAKKcJREcqmt7kUtpDkPrYQuxzQvauzOMaQuJNHHrrQhjIWfPSCduMqNGF9Uy+rSAIDVKqYBxVwUmjR0OOVCcwzEcRLLsRU7VLMWt2gjgEb/L8/b8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342397; c=relaxed/simple; bh=jiSIFGimpDX4+TwGvHqqAHsi+AK4AelGNP3BI22A2Wk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KaY+49cd1GVzC3vLbO0VzGjrnYUKzPSjjpktIapfmGD72XOONowkU/QTL/6CGciY3G0Xz2HJbTD/WUlKsYMOFUjtzx0OmPw43BbAD3jNvSBtE8AYwIoIeeCxAZ2Wb3qAyC0wm5M8pXm9fW7DFHkPIyiQ0NnL5Sc9wxS24wI/TkU= 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=V4aiO1im; arc=none smtp.client-ip=209.85.218.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="V4aiO1im" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a59a64db066so497487866b.3 for ; Fri, 10 May 2024 04:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342394; x=1715947194; 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=kmDoRiq5HIm03yKcCt0UtU9zsedBUjpQuaReVJnLfEQ=; b=V4aiO1imDrWl9IZkghSAwdtK7Ya3QimpPbMRuf2vCZ09vy4kWH+z7WILDTaU0rgXGR bSp8ztZbAGLaAI/ecgtO27hu8uTKDAwzihOGXTKhE0SI5EyRlBrRG8DJeoDw+8qZrYWh q/dv6N9VWA4fnY29mF5/gpuA8jp1k9UjcchxF/r+JzCvXRINdckRsqqQKw4s2Et2Prcl T6yvahLVdyY/X/2z4I5OLMWyQlYELTYNq1gFzJExg0+iBORGft4hPm81Ja0xcycKuTXo cFhA4Hy8t7pc7GllXeUVISeUG70Cf40txAjFW6hmFeSZDZLkWpDCBJT2RAsmmOWMweJj H5ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342394; x=1715947194; 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=kmDoRiq5HIm03yKcCt0UtU9zsedBUjpQuaReVJnLfEQ=; b=UKMcQLsjzxk69ShjfPKvFBTYCk3yQgaq/+M+pSAKLLmmVavZO7UOEtFzxldhECksfl G9yyw1U++mGCCAWKSSTUM1aTEpLTdJv+P6oCZrRNYzQR2dQz1oFPsq3a1XKLLb1vu/MI zVB2owXd6qPBQuo06rYiD9b2FhDnaijyKjXVaOGCGKq6CjlYG2l5y0PE6qXMmdX4GMag W/QMbsiwWyeSD7S/6Gi2PZMdOCp8rrpfP757hNTalgL8qZpMfhdKj51N/F8kCcQAGCW5 8VyZ3q2zmw1H+5O0uT2S01RiJxG2DfzE+5K/xpdfyko1JjTCmaRcAS2U/94JXYKDjqXk N29Q== X-Forwarded-Encrypted: i=1; AJvYcCWU3OBL9/Yie/aV0llN85UK0dbwOhwkZYayIaPQDqfzgieFEAW0RAn8Dm4rLfWKuLkXBZUhBHXY1QfP6KrcdZL4XVTD5wTjtJ2ompES X-Gm-Message-State: AOJu0Yy8E9ADquTgEHQOU29qbx4SF4TD3YQeNFghNAk3lKtJuj9gka/3 y2lm1okaB3YPocB4lv6uvbV3W3ZOov5zNs/jWdrcyQgkwld72EUpV8PVwrX2pio= X-Google-Smtp-Source: AGHT+IEydhm75fvryvEOacr129Cn9qwvJsTOcUo2SLkpzevrgzZVTWEzxZExgDJecGb/y/cZ2Bms6Q== X-Received: by 2002:a17:906:3d0:b0:a59:bfab:b25a with SMTP id a640c23a62f3a-a5a2d678063mr155538866b.63.1715342394140; Fri, 10 May 2024 04:59:54 -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.04.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:53 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:38 +0200 Subject: [PATCH v2 15/31] arm64: dts: qcom: sa8775p-*: 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: <20240510-topic-msm-polling-cleanup-v2-15-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/sa8775p-pmics.dtsi | 8 +-- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 82 -------------------------= ---- 2 files changed, 4 insertions(+), 86 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/= dts/qcom/sa8775p-pmics.dtsi index eaa43f022a65..1369c3d43f86 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -10,7 +10,7 @@ / { thermal-zones { pmm8654au_0_thermal: pm8775-0-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmm8654au_0_temp_alarm>; =20 trips { @@ -30,7 +30,7 @@ trip1 { =20 pmm8654au_1_thermal: pm8775-1-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmm8654au_1_temp_alarm>; =20 trips { @@ -50,7 +50,7 @@ trip1 { =20 pmm8654au_2_thermal: pm8775-2-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmm8654au_2_temp_alarm>; =20 trips { @@ -70,7 +70,7 @@ trip1 { =20 pmm8654au_3_thermal: pm8775-3-thermal { polling-delay-passive =3D <100>; - polling-delay =3D <0>; + thermal-sensors =3D <&pmm8654au_3_temp_alarm>; =20 trips { diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qc= om/sa8775p.dtsi index 31de73594839..045d36c15b5c 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -2550,9 +2550,6 @@ ethernet0: ethernet@23040000 { =20 thermal-zones { aoss-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 0>; =20 trips { @@ -2572,7 +2569,6 @@ trip-point1 { =20 cpu-0-0-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 1>; =20 @@ -2593,7 +2589,6 @@ trip-point1 { =20 cpu-0-1-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 2>; =20 @@ -2614,7 +2609,6 @@ trip-point1 { =20 cpu-0-2-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 3>; =20 @@ -2635,7 +2629,6 @@ trip-point1 { =20 cpu-0-3-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 4>; =20 @@ -2656,7 +2649,6 @@ trip-point1 { =20 gpuss-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 5>; =20 @@ -2677,7 +2669,6 @@ trip-point1 { =20 gpuss-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 6>; =20 @@ -2698,7 +2689,6 @@ trip-point1 { =20 gpuss-2-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens0 7>; =20 @@ -2718,9 +2708,6 @@ trip-point1 { }; =20 audio-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 8>; =20 trips { @@ -2739,9 +2726,6 @@ trip-point1 { }; =20 camss-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 9>; =20 trips { @@ -2760,9 +2744,6 @@ trip-point1 { }; =20 pcie-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 10>; =20 trips { @@ -2781,9 +2762,6 @@ trip-point1 { }; =20 cpuss-0-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens0 11>; =20 trips { @@ -2802,9 +2780,6 @@ trip-point1 { }; =20 aoss-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 0>; =20 trips { @@ -2824,7 +2799,6 @@ trip-point1 { =20 cpu-0-0-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 1>; =20 @@ -2845,7 +2819,6 @@ trip-point1 { =20 cpu-0-1-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 2>; =20 @@ -2866,7 +2839,6 @@ trip-point1 { =20 cpu-0-2-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 3>; =20 @@ -2887,7 +2859,6 @@ trip-point1 { =20 cpu-0-3-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 4>; =20 @@ -2908,7 +2879,6 @@ trip-point1 { =20 gpuss-3-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 5>; =20 @@ -2929,7 +2899,6 @@ trip-point1 { =20 gpuss-4-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 6>; =20 @@ -2950,7 +2919,6 @@ trip-point1 { =20 gpuss-5-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens1 7>; =20 @@ -2970,9 +2938,6 @@ trip-point1 { }; =20 video-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 8>; =20 trips { @@ -2991,9 +2956,6 @@ trip-point1 { }; =20 camss-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 9>; =20 trips { @@ -3012,9 +2974,6 @@ trip-point1 { }; =20 pcie-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 10>; =20 trips { @@ -3033,9 +2992,6 @@ trip-point1 { }; =20 cpuss-0-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens1 11>; =20 trips { @@ -3054,9 +3010,6 @@ trip-point1 { }; =20 aoss-2-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens2 0>; =20 trips { @@ -3076,7 +3029,6 @@ trip-point1 { =20 cpu-1-0-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 1>; =20 @@ -3097,7 +3049,6 @@ trip-point1 { =20 cpu-1-1-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 2>; =20 @@ -3118,7 +3069,6 @@ trip-point1 { =20 cpu-1-2-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 3>; =20 @@ -3139,7 +3089,6 @@ trip-point1 { =20 cpu-1-3-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 4>; =20 @@ -3160,7 +3109,6 @@ trip-point1 { =20 nsp-0-0-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 5>; =20 @@ -3181,7 +3129,6 @@ trip-point1 { =20 nsp-0-1-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 6>; =20 @@ -3202,7 +3149,6 @@ trip-point1 { =20 nsp-0-2-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 7>; =20 @@ -3223,7 +3169,6 @@ trip-point1 { =20 nsp-1-0-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 8>; =20 @@ -3244,7 +3189,6 @@ trip-point1 { =20 nsp-1-1-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 9>; =20 @@ -3265,7 +3209,6 @@ trip-point1 { =20 nsp-1-2-0-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens2 10>; =20 @@ -3285,9 +3228,6 @@ trip-point1 { }; =20 ddrss-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens2 11>; =20 trips { @@ -3306,9 +3246,6 @@ trip-point1 { }; =20 cpuss-1-0-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens2 12>; =20 trips { @@ -3327,9 +3264,6 @@ trip-point1 { }; =20 aoss-3-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens3 0>; =20 trips { @@ -3349,7 +3283,6 @@ trip-point1 { =20 cpu-1-0-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 1>; =20 @@ -3370,7 +3303,6 @@ trip-point1 { =20 cpu-1-1-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 2>; =20 @@ -3391,7 +3323,6 @@ trip-point1 { =20 cpu-1-2-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 3>; =20 @@ -3412,7 +3343,6 @@ trip-point1 { =20 cpu-1-3-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 4>; =20 @@ -3433,7 +3363,6 @@ trip-point1 { =20 nsp-0-0-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 5>; =20 @@ -3454,7 +3383,6 @@ trip-point1 { =20 nsp-0-1-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 6>; =20 @@ -3475,7 +3403,6 @@ trip-point1 { =20 nsp-0-2-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 7>; =20 @@ -3496,7 +3423,6 @@ trip-point1 { =20 nsp-1-0-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 8>; =20 @@ -3517,7 +3443,6 @@ trip-point1 { =20 nsp-1-1-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 9>; =20 @@ -3538,7 +3463,6 @@ trip-point1 { =20 nsp-1-2-1-thermal { polling-delay-passive =3D <10>; - polling-delay =3D <0>; =20 thermal-sensors =3D <&tsens3 10>; =20 @@ -3558,9 +3482,6 @@ trip-point1 { }; =20 ddrss-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens3 11>; =20 trips { @@ -3579,9 +3500,6 @@ trip-point1 { }; =20 cpuss-1-1-thermal { - polling-delay-passive =3D <0>; - polling-delay =3D <0>; - thermal-sensors =3D <&tsens3 12>; =20 trips { --=20 2.40.1