From patchwork Tue Mar 19 16:13:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596850 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 740A081AA7 for ; Tue, 19 Mar 2024 16:13:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864824; cv=none; b=E/R1LSBK/pqetq/dPqMFZ7DKl/M2+TGAJjAGnlkXojLrO4SHn03+XAKfKharcjpQNraegV4RGL7+EL6pIdpv610iIqAJzg7krOE45tpFVF9aJ4Qa3pxM4gYNIelzhfDSNsL2bNiUgDckcObWQFtrs5XsROChFTsTuV2aRGKOkZk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864824; c=relaxed/simple; bh=k8lnyjg65wL5etJQYY5aU0Vd22mGTE1lhYSWDl+Scgc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RNI0Qgf/QgKLIbFEOs3a4Qrzr5nR8dSx6aHYSOUA3qRXKbuWz6Ouq6ttUEXo6VWlnG1/T5K5vFULUfj/YaZxecDWaNe8aMLJbtt80VsANnvsd4jIi/YTyk0AILv6qaat736xP0GaG8943w62NwvUk3v69P8yi6fcP+BhNMvf1qQ= 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=brvYlci3; arc=none smtp.client-ip=209.85.167.48 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="brvYlci3" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-5148ea935b8so2193210e87.1 for ; Tue, 19 Mar 2024 09:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864820; x=1711469620; 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=5OicwjZjP5RidZKnqT+PRFlgcMM+RvFHnxHBQjXeoNE=; b=brvYlci3zCiHWMpu6XhPUSTyRLJ59r8BqwJK3r0Gn/QHd97MeHN/hBIk4pE4heAgRi zYSq/d6mc3YwVvzkOVkjLIUnU8GKxpuVLcj4MBYvqazazuwj+vWUkkpXr/h90uRhRqYa iJ3bLNy8EQf1pFsqju1ugwfQzP1aEUamFkdpyEgAGiSmnOJgq7BczFLJIdLXlpL/Y9lP qDPhT6tfmmf32SKgnfSqdoXAZkr8+LMW07iJ3Y0IXsRAM8vT6zzCFmbQIrbRSFMYH7jr E/8O+rl2Zdp5TyrquUKrYzZdI6zHrew7UeY54/Sv33Bb1L5CbtppFqNdukMoFK0aXxbO RpxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864820; x=1711469620; 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=5OicwjZjP5RidZKnqT+PRFlgcMM+RvFHnxHBQjXeoNE=; b=k2ab/p48T39cFIsdKCFvC76RUJ+BzanOnhYlEdbL8HufNLU86ayRaiWeJ5xsbcQtU4 CsThTMqeKJYSa3bk94BmTHVrAEjJyUPxiI0GImHzpglfQCQa9WizVTh1evv4d1wV+VFt yWHz96sVXqKaxnOH9wGBDmQDdqTyHY21g1Z+Xjh09MqArw5iMq6jQGqqrre0b4Aso2M1 8yaeLGeeg3VFCNJpHBGtsQSb/JivNjh1k8RKAWAPlGtDwcmqxCdogQ/hTBz1SF/9vssU Kv6wd00ivp/aOmjkMtaon8BmWiUyPRuym0kSHAsIhoW1A4weDHDreq5ZDcAqsF/T3J1P ewwA== X-Gm-Message-State: AOJu0YyziYGMcMqL3C+14fTIom4nsATwU083LOqsXfHdDZj5/OGK1R6l aSP4fHYJWiF2VBKFHGXiYxSmTUEzJHzX44AwisMPV2Ff64GPPu5Wz36KekvP3M0= X-Google-Smtp-Source: AGHT+IGV+ykXLPbUP4WJZLNYwONutSZZLeV4SkkuFmnHc91t7astVEHOtCiyymAmSNisXXVQDSxKmQ== X-Received: by 2002:a05:6512:360d:b0:513:8a39:e0d9 with SMTP id f13-20020a056512360d00b005138a39e0d9mr2067139lfs.64.1710864819662; Tue, 19 Mar 2024 09:13:39 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:39 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:31 +0100 Subject: [PATCH 01/31] arm64: dts: qcom: ipq6018-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-1-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/ipq6018.dtsi | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 4e29adea570a..cd0ee133964d 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -912,8 +912,6 @@ pcie0: pcie@20000000 { thermal-zones { nss-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 4>; trips { @@ -926,8 +924,6 @@ nss-top-critical { }; nss-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 5>; trips { @@ -940,8 +936,6 @@ nss-critical { }; wcss-phya0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 7>; trips { @@ -954,8 +948,6 @@ wcss-phya0-critical { }; wcss-phya1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 8>; trips { @@ -968,8 +960,6 @@ wcss-phya1-critical { }; cpu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 13>; trips { @@ -998,8 +988,6 @@ map0 { }; lpass-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 14>; trips { @@ -1012,8 +1000,6 @@ lpass-critical { }; ddrss-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 15>; trips { From patchwork Tue Mar 19 16:13:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596849 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 6BA4D81AB4 for ; Tue, 19 Mar 2024 16:13:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864824; cv=none; b=PRWbeBX4HGpTOOZkcPoFYJg33IJksZC8Pcsj3WO39MKfSHhxgtwSc/xJULOa3dW0xlmP5hMRu7jdOCIc9ZkrdZORFUtxhvhaEBxdtWbJMe0F9WvVpSiM9G3avfPiEgO5JmR9R9uF6Nct8NwD3KZCROTcH2SMRg7wx7+rcFfy4QM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864824; c=relaxed/simple; bh=53rfcs6wPcUFJBxFhOnzU59sjBsZn8dZASabRE5EfFs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mm+yJZcqKOmXZevsCztlCMJcCswKPnjtly9fn4+3sFD7L6HL9c199jBTs1a52Rtr8e+97FPCR8EQOQ3GSY5HuPv9EGx0NaJdw1RNDSpB7qC9Jv8lw4yIq+5mXjqT4Uwgh/4azZjP89JNmWEyIC3cGbEArPi9DkTPxYK8izYh04M= 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=pCNuOEFc; arc=none smtp.client-ip=209.85.167.49 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="pCNuOEFc" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-513d3746950so7101909e87.1 for ; Tue, 19 Mar 2024 09:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864820; x=1711469620; 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=dKhk60UIiAqlpRk16jVKRzKgNE6SdDJ//RGq9EU9euk=; b=pCNuOEFcz9UHAqLDtbSRAR0ZFgaLEWiy7bL0JOpdXb1+Bt6c82xnN7bDivw8BalMC+ K4kbXHjloJeCJwOUhI7GrKHLND+ZtE89fhuXMmyfF04nOVqUpi+rdJ3RRVXCJm85nlgE LgydoQQUQOtXae3bCZIybwhYhmz4SF+gMceNOB7E9Hfo/QVdu9L6QIW4+smWGO/orJYi TrC4lIJW0W27KdUKwBV1NA1z6YNb2hB2LeZNLB/SzClHQTd65iyb3w96Rkpo1zw3ABHe DOr5uLcNFf434ooxYTnj4SzbPHO32A0Gco6WVXg9FvafhTplo+Wwwoik7BHgsxmi/51H qwCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864820; x=1711469620; 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=dKhk60UIiAqlpRk16jVKRzKgNE6SdDJ//RGq9EU9euk=; b=VflLsvp7/x9L9UuigZNDVEAviCmiBzOrwyUgKw7EhlV1dbk+AfA03vVxlkhEwYI8bR 6MnvDjmCrRTNcY52s8Dw8PENu+JCfOaWtvCGqSNuCwTh0LVqlJP6QQgDOPFn+6qeONij SpAxikZ3YiT+muTQVTBS8wKx8q63XB/gmUZoEjqog9zDbwXcT8kcbk8uTJPcG/aH5Rzu fqUpwGlJSp3IKYc7H4FtWcKFWaxbTcDKWDZCEDqgXexnBJ1pOqGW6s0IDPdSAo26LFEm 9u559Sep4akiIqtkBZ6rVaMalRJ1n5FQt6/0LwdrJSvDbnQmpuIBcscb1yiZ/+faCj54 CkGg== X-Gm-Message-State: AOJu0YyF1v942dv8yFzqq4R6jkpE3auHzpXN68L8xRKlUCI59Su9Gep9 l+dPEfx3bI8yU+0ho+VUYeVVGfNaTsqF21JvmsB6Hg8hHLfiO0K8UM7kaAyYSAs= X-Google-Smtp-Source: AGHT+IH6aNVKYcARt+lJ+X5dNVRSQXSHI9p8pOvhyEOLbX/nKridsjACQUtxdYhIW+jNSEVbE+si7w== X-Received: by 2002:a05:6512:473:b0:513:da61:9b46 with SMTP id x19-20020a056512047300b00513da619b46mr8573736lfd.53.1710864820716; Tue, 19 Mar 2024 09:13:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:40 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:32 +0100 Subject: [PATCH 02/31] arm64: dts: qcom: ipq8074-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-2-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/ipq8074.dtsi | 36 ----------------------------------- 1 file changed, 36 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index e5b89753aa5c..75641175dbfb 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -942,9 +942,6 @@ timer { thermal-zones { nss-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 4>; trips { @@ -957,9 +954,6 @@ nss-top-crit { }; nss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 5>; trips { @@ -972,9 +966,6 @@ nss-0-crit { }; nss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 6>; trips { @@ -987,9 +978,6 @@ nss-1-crit { }; wcss-phya0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 7>; trips { @@ -1002,9 +990,6 @@ wcss-phya0-crit { }; wcss-phya1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 8>; trips { @@ -1017,9 +1002,6 @@ wcss-phya1-crit { }; cpu0_thermal: cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 9>; trips { @@ -1032,9 +1014,6 @@ cpu0-crit { }; cpu1_thermal: cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 10>; trips { @@ -1047,9 +1026,6 @@ cpu1-crit { }; cpu2_thermal: cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 11>; trips { @@ -1062,9 +1038,6 @@ cpu2-crit { }; cpu3_thermal: cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 12>; trips { @@ -1077,9 +1050,6 @@ cpu3-crit { }; cluster_thermal: cluster-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 13>; trips { @@ -1092,9 +1062,6 @@ cluster-crit { }; wcss-phyb0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 14>; trips { @@ -1107,9 +1074,6 @@ wcss-phyb0-crit { }; wcss-phyb1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 15>; trips { From patchwork Tue Mar 19 16:13:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596851 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 8469981ADC for ; Tue, 19 Mar 2024 16:13:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864825; cv=none; b=qnJcjBYEpRcdt1WGK5LQJp3N/OHGnHaPB6cuoXdbxXg/3+t8FAystQe+p1CflXyRgsNJSmynmd/XKxj98UzGt3k4Lf1JGjJOSrI9LzurrlYbEKm1e+SHnbaPHHJGQOJ4Ta8/U4L5h8t96dBEkA/b3vQkLHWXvYfVnkCjAubCwPk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864825; c=relaxed/simple; bh=AI/6GDzleNINtkezjfAEmbDXxNIt1iLgs6smOMt1BtY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FNLApXlyU7ZrNZRpb6AWKdyrJnfAjV6wxclP8+6innVKCgqcMKAHYhsFe8IwGZKRW7+W1FWtcTSEuSq8/EPEhkAdCsPcuRVFUjpmaJP4Zw+uNiUYnBqKQC6njo3aVzSZLXTB3ghwEbxRIfyP9TlV41U4oD+LLIg7LEeYNQp0/Cg= 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=ozFW/VoO; arc=none smtp.client-ip=209.85.167.51 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="ozFW/VoO" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-515830dc79cso757380e87.1 for ; Tue, 19 Mar 2024 09:13:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864822; x=1711469622; 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=cK/DjygM8+bO8NZk8MSB3Ko2HzSfu+tnWhQWu8DehZc=; b=ozFW/VoOBKXQeUN5+MmsNMk+xzgS/xe2wt90gXKcbpvD/6UH0iPhESuGZbkLlOOkMJ 18vwuTzxV+SSPKkoeBnQPzMdVIZubObW2i0pBPNwNMGp2CTvpZPBjGqxw9ho6PtTKf8k 6PlTPxnQ88I8Vg7KnjybhQzrhXrTXlroR9TZfPrIQsqjmfFAVhc0oVvnryXa2eCoT9od lor1u0dkUinBnehZNR5rx8M7m5P72egVzusy7ASQnJTYs/M9w57Pv4/Vvahzr/qqquqG jh1i1Nr2v3t0030W9zBEjcNzXc5uNqWTkx1pKQJXfz8wLd1LTakoEiMPH2noLRcRSpNI U+dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864822; x=1711469622; 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=cK/DjygM8+bO8NZk8MSB3Ko2HzSfu+tnWhQWu8DehZc=; b=Pd3vw5vPcM38oONy23rj5qF9Nt8aUFglkUSq7YcFrRXffB945LQPtAC6DRr8JDCMcS KHLSrTGcoRu2yBTUQiQi/L90fNDCpLThUsNW2bWFg+nQF1mbaBfFbcBaYVIJ7pMyfpvS rMofEcy84qegSCZ9y/iIo6jf1xcWs2ZwEQAFhdmeHDoLdkPEiPai2futBVWFe9voS7+E vhAjXWb6ay5uBZG2RCMarZHyHKuIb+d1NWamS8xKNa850oDSnQGNny92V1RD4o2c71Xr dGiw3sYThFA1ZJtSY9Up2XpRR3mFqEjOtVdLv1/Z3aQVUP7jXc8jO3aAdSgBcaox8mpB qmPw== X-Gm-Message-State: AOJu0Yx2DDEziAKvcyxAAx7CPfYz6sP8PRz2bfVbVXo86ZO64QP0h2iE 4P2h5B5HS0Z6h/TeZcyt8oUoVHhpUbUAyCRkDTopi+PWPWFUAOlPhXJylonwfb4= X-Google-Smtp-Source: AGHT+IGXpqTMMqMQtoD8GlYkET93+vUVl53lsGT3mijIE32aVUr82o7PSkzaLdW1uxZRxDx/280DBA== X-Received: by 2002:ac2:5b84:0:b0:513:58a1:f4fd with SMTP id o4-20020ac25b84000000b0051358a1f4fdmr9833316lfn.25.1710864821702; Tue, 19 Mar 2024 09:13:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:41 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:33 +0100 Subject: [PATCH 03/31] arm64: dts: qcom: ipq9574-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-3-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 Reviewed-by: Varadarajan Narayanan --- arch/arm64/boot/dts/qcom/ipq9574.dtsi | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/ipq9574.dtsi b/arch/arm64/boot/dts/qcom/ipq9574.dtsi index 7f2e5cbf3bbb..98c5623f4391 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574.dtsi @@ -749,8 +749,6 @@ frame@b128000 { thermal-zones { nss-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 3>; trips { @@ -763,8 +761,6 @@ nss-top-critical { }; ubi-0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 4>; trips { @@ -777,8 +773,6 @@ ubi_0-critical { }; ubi-1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 5>; trips { @@ -791,8 +785,6 @@ ubi_1-critical { }; ubi-2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 6>; trips { @@ -805,8 +797,6 @@ ubi_2-critical { }; ubi-3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 7>; trips { @@ -819,8 +809,6 @@ ubi_3-critical { }; cpuss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 8>; trips { @@ -833,8 +821,6 @@ cpu-critical { }; cpuss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 9>; trips { @@ -847,8 +833,6 @@ cpu-critical { }; cpu0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 10>; trips { @@ -877,8 +861,6 @@ map0 { }; cpu1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 11>; trips { @@ -907,8 +889,6 @@ map0 { }; cpu2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 12>; trips { @@ -937,8 +917,6 @@ map0 { }; cpu3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 13>; trips { @@ -967,8 +945,6 @@ map0 { }; wcss-phyb-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 14>; trips { @@ -981,8 +957,6 @@ wcss_phyb-critical { }; top-glue-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens 15>; trips { From patchwork Tue Mar 19 16:13:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596852 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (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 87916823C3 for ; Tue, 19 Mar 2024 16:13:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864826; cv=none; b=rL5tvDZmmdx1FZ0q+3aprER2bXT/tikTf+B9tt/OuZVVetqFk3NtWVOjeLgSBHbgquzH4FIVmh+1uvDGt/fbb5Kw0B7IuQUcLuPY/q78zA1DfnTDGxahqXEamHy4YjT2S//LeFdewI1cb2zBKuakjFK3C67gK09VqUb/K91udJk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864826; c=relaxed/simple; bh=czTRD0cUdTrGZWHnHZMrrONd+Cum7+20Z5L2jGpatJE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RMtv1n1imVoLxSXMP7tXYS8ue5q9vxD4qHyisyULKgjykq/vUPIkTicc2EXS9vue5Yk9dVJzjS5BdtStGaG3cKP+2GRTleCO4gAf1YcOK/R4Fq3fP+MiPhJZDnUOTLyi9KjNXlziGuoxhkIVBJms64wUCLQNADFUDwcIXglz06I= 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=E9JtSYDv; arc=none smtp.client-ip=209.85.167.44 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="E9JtSYDv" Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-513a08f2263so5940758e87.3 for ; Tue, 19 Mar 2024 09:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864823; x=1711469623; 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=ZA0m8KVEeSJZj3NTvXTSBRFxE/GChVc+fNT8dQ6LCt0=; b=E9JtSYDvHTNxtnJHqThOEiNARbA7uLC9iJNXJKDsVEvJfpwCGWV3anU8HSQyFkiBBT 17+P6xjyf/MzIt8UevUNY2HJeozH1S9ZQwIrE97PVBB6FZ3TIYHP0BnSK20ZZe7f2shc 4k50dGErFz8tnN/l+Bg7YK82wceWo4704qiuVdEGr9nImZlovIibBYxlcikD3K7BlyWz uLkoes5pfLdffeU1OdsiyoMTYR8j4UkBToUYEoOKIfFsS2pDQj2QouzbepO0wkq/lkU5 J3puO5zijGBKx/GbLJwl6Yp9y2TdeORF8P8pwq1FXSLjx4iCdrmxTZKy/fajVpjVv8Pl 2W5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864823; x=1711469623; 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=ZA0m8KVEeSJZj3NTvXTSBRFxE/GChVc+fNT8dQ6LCt0=; b=jaVUs3AC99ShL9/BPSnFdABXMuuuvu6PnEwDSLPh01bHkVhglHkwM5PVWhBOIGN2SG tGxY9gm/K9JifsyRlF6B0KWRZ91y2bWwRsqqT/fxiTfO+tgHy58MkxtSH3WkX/I+JNTJ LRRGszmM8BEq8jQ0lt3NZ8Wa5pN6YMZoOzMu/PFX+7RLWEdvCGLw8HoD1aachaFvGydL MWxdlJSR9ZfCPAMQynRKSURmRfBrttGSOd34Jrlr3JskGPPsRwTOmZIq6Zr+Linvuez8 ab8Ni3VlBkv0Nmm2qNutPQzPw/7GJb9zCkXxyO/PF492/q8534X+g+dG+xL+vuktcCwn 5yHA== X-Gm-Message-State: AOJu0YzKOW89be2Ma2BJnoGJ8BQYuZDweASMl2symrD9bfFXoiTlKCcz 0fycjAStDm5QViw4SiS3DyQb/NI3A8oA+JkhGb6lCm1QTd03pKtegvC2tqsTGnI= X-Google-Smtp-Source: AGHT+IEnLqsL+mnvRm5BhPySVvFgWyrF3dVRV3cHETxw8yRb1MFx+VO3GtW1/TFf5InmJGNaXfieEQ== X-Received: by 2002:a19:5e12:0:b0:513:cd70:8d94 with SMTP id s18-20020a195e12000000b00513cd708d94mr2295022lfb.14.1710864822862; Tue, 19 Mar 2024 09:13:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:42 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:34 +0100 Subject: [PATCH 04/31] arm64: dts: qcom: msm8916-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-4-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/msm8916.dtsi | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index cedff4166bfb..e95800f8258f 100644 --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi @@ -2625,9 +2625,6 @@ cpu3_saw: power-manager@b0b9000 { thermal-zones { cpu0-1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 5>; trips { @@ -2655,9 +2652,6 @@ map0 { }; cpu2-3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 4>; trips { @@ -2685,9 +2679,6 @@ map0 { }; gpu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 2>; cooling-maps { @@ -2712,9 +2703,6 @@ gpu_crit: gpu-crit { }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 1>; trips { @@ -2727,9 +2715,6 @@ cam_alert0: trip-point0 { }; modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 0>; trips { From patchwork Tue Mar 19 16:13:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596853 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 89CF68286A for ; Tue, 19 Mar 2024 16:13:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864827; cv=none; b=Euye8kX9pZVRO8N1fWTn5bGZkyQmgGWLIA+KGXUtlnvtddKhcCs2p7jqVK7RZ+cP7lVO8CAax/uu3xhaWzqcJYWQs2dy6SUjvXMeEiFqwGR+WPXwfPccDrxsrsobenbAkrYfwrOBUIrJJj/6ZGD7vz51OY/W7WqmqOPvy8wKauM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864827; c=relaxed/simple; bh=DbBjX4DIiuCNjj3JhLbWIrKqfrFfqGS03QX0BIULxbA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PWRFKzlUU+y0bzJbzQJWBUa+TXM5BVh8rG6bnQVQWWUyUqN7pVtOQgnUrdFxZBXFX+WKMZ56zRXEo0/BxlxxBeQ5a3Mko+NaEn2PKgbJX4/X6pFqb3MQJB5urlVTaibh2lH+avuklTvQ1Zw0YWD65Fhmu7pMDqXz3cq8XE91R00= 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=KNNT/yNN; arc=none smtp.client-ip=209.85.167.46 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="KNNT/yNN" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-513a08f2263so5940782e87.3 for ; Tue, 19 Mar 2024 09:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864824; x=1711469624; 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=r4U5+kdqeP777KP8JmcZQhYQROmx+V53PtnamLYp1ng=; b=KNNT/yNN2oRVvu9Tew/UrrLTeRM2Qdx3IUSRwFEkM1v+3LKt02O27cOWBsAZSFJtwF Rsp3BxMDixQoosiYbIB5yCbjpGQOflK2mgfh6vOlSs0wDa7Z+NuDXLMCGf02ZOOFUYyj hs5GKBhPLTt6RBNhGFu38CZEq/LVwtGFmyH+ZCBU9GHcS5TzKTqDuw44wHnKadEwXLYC QbrDM/5sKQC/BVzB1BqCzktrCg549HybTRmvtlYwFVE0NKYTBg9EgV5OCVl3WdgPjD/Q eCByMLO92vIeO0d6dx5NXf0Z3/zSVrrxauSkQhle+QMv1d+9ewLYcXtHjN/BQPKZ44Df Zf1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864824; x=1711469624; 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=r4U5+kdqeP777KP8JmcZQhYQROmx+V53PtnamLYp1ng=; b=MHDfO2EwL2V6e4llB0kj006G3vYrCnXxFM1MTTp1hhoJwMWoBxpoSTf9rutgXKzukB azLWvFqbptBC++1odp2hPDQ3EgPm3adhFLydGr2PvD1bRwd2TF1QSeTRR0RlKVjdlnXt olOT939YvARhDgz+Ns+co3+5RQgkDlP5FRA4MmO2l0EXiyLJRkTFAfYZIphYADAz4znq sfc5dWr8kIVIX3GSelv68GhLNTwV7A1KXJvKt5j1tm1oWm0/J+z69+QCOE/4Hb/CzAni xo+CXIq4KvpXjzigHDZu4Dd/RuWrY6SkrcaFhRMSeDHZp+xIiDesNp3F0+QOFIQM069v lKUA== X-Gm-Message-State: AOJu0YwAqwUVzhulQl0eaLrOh97iWGVm2aIBUgaLySaouYDWIJYe2OnK qqycNGElqz01OA838qFx/QEmazwjRYEjzgOzwfAAktB/F1NsdcXJIsvt1rhwPza0fpYCK4hcWyV c+Aw= X-Google-Smtp-Source: AGHT+IH3IoYWQxwcFXVcO05zaViq2XKBO5jhW6naBXXxyUbEelGzFLhanXgDvzukc/mr4Qo9YZbPMg== X-Received: by 2002:a19:e00f:0:b0:513:c54d:7bd1 with SMTP id x15-20020a19e00f000000b00513c54d7bd1mr2226551lfg.35.1710864823932; Tue, 19 Mar 2024 09:13:43 -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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:43 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:35 +0100 Subject: [PATCH 05/31] arm64: dts: qcom: msm8939-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-5-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/msm8939.dtsi | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8939.dtsi b/arch/arm64/boot/dts/qcom/msm8939.dtsi index dd45975682b2..43c0335b2be2 100644 --- a/arch/arm64/boot/dts/qcom/msm8939.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8939.dtsi @@ -2298,9 +2298,6 @@ apcs2: mailbox@b1d1000 { thermal_zones: thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 5>; trips { @@ -2329,9 +2326,6 @@ map0 { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 6>; trips { @@ -2360,9 +2354,6 @@ map0 { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 7>; trips { @@ -2391,9 +2382,6 @@ map0 { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 8>; trips { @@ -2422,9 +2410,6 @@ map0 { }; cpu4567-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 9>; trips { @@ -2453,9 +2438,6 @@ map0 { }; gpu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 3>; cooling-maps { @@ -2481,9 +2463,6 @@ gpu_crit: gpu-crit { }; modem1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 0>; trips { @@ -2496,9 +2475,6 @@ modem1_alert0: trip-point0 { }; modem2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 2>; trips { @@ -2511,9 +2487,6 @@ modem2_alert0: trip-point0 { }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 1>; trips { From patchwork Tue Mar 19 16:13:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596854 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 C7A8082C76 for ; Tue, 19 Mar 2024 16:13:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864828; cv=none; b=mTi8IiLSSKUVGSe89RAwnfK6HW+99zKVs4K/9epbQOet/vRU3Q7avvJx0iwcwOzo4msYCUpDT3XbkQANuhw+xdSZRDKEKKttMyTdTOIhNPVwkY1B2w4SR6yOb2mN3i26PiUNPWguLK1qbAUFU4NAHdjn4AmDwDnMixWg/CosfoU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864828; c=relaxed/simple; bh=SfPqDJQhOWdHozWKeZBtjuPf0esW3AKFUGrf2WUgQEw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hD16r8TV5y3OUYDEMUEoqxVqo4489tpGvFUw4sOmp1oSuJ4LxaAuQDsYpJgYWVl/nmOFIrqYb94skbmR887FQ7glO1rW+lawTBVgzhT9koWKlJGbfhaosVqkK+4gr4kyFkBZAxsC3+00QBDxpCAYX/XN7LGBwdnFbi8+9vWYrJ4= 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=RLb3xpLj; arc=none smtp.client-ip=209.85.167.46 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="RLb3xpLj" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-512f892500cso6433766e87.3 for ; Tue, 19 Mar 2024 09:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864825; x=1711469625; 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=JE5DV75rtGU2KZG98kvu1+83FeCFnCvttAQ6DWMQmbM=; b=RLb3xpLj10O8rivS2nehc5aJxABoMCcaxrBEt+yFQTbBTu+rOwj2IK9vkR2cCy5Q7G 42IQOVu9CNA3Rbca7Rd2md6QSR6bYSdchJWhGiOVqBG4duqMT/3i+Q6IrzxQGOrPvX9s uhaO7KPNdQvtd4hSg7WBWoOC4mxJIVjMRr59tMQMVDTmqyCYt5TDHoaG2TF1gDwMpkWI AlSCdCqtNNUpje0hiRwaHG6tWEBCH+SW5d9flov19po6uo9gKmpeoYWqellUeGNYSqTz 1wplJZIzzPvzwMg/lOKvND9Ztg5REyADC3zPfFD3SeXjZ6OXKm71ZBjSJ1yipVAeNuE3 CpBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864825; x=1711469625; 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=JE5DV75rtGU2KZG98kvu1+83FeCFnCvttAQ6DWMQmbM=; b=IwARnaieAN/6/Vj/6kuUQ4GWEpbewTkyQ+syQIdqK9dUKoiw7a822DLtyrxzSTGuOL PK/twTSnGgqoMvDHFLGHdFq1VXFSgaj+Md6H84SjMAmnakmrVzwQHTSal8VmDLTLHOw3 rukyXKJAmeKwLKFdYrPMPY+z7Vbcl11UkPfpl1gm5TQb0GFut7B0V7WltXRJvLWv6THh 4Zly/CCXou3btDfdkXIrtcRDDyM0ES1QjeKMaGKCEEZtzp2ez3DUDgjO2CZ11nCBTfv/ Al9pz+Tmabn0yivxMrh45fJV+UYvPGACCWm6MWueMT8KZNMkxrNAoLAO/IOT9TBtBt/3 oCaw== X-Gm-Message-State: AOJu0YyBKkblZA8Qzw9LF965lL7MQazJz/SOPEtYYvOJz513PCI/kWVm Nd/iUqHWzijC76Uly/8bPm4AhhZw1zzAhWnE2kiZTugeh10/hfRmugmLOx0iJ6s= X-Google-Smtp-Source: AGHT+IFcyBzfaTP1g339erTfOUUblPYAamGEaifNUd5xLAOw6PtTY0a0M6q5/7zz74sfVo/yjEXkvQ== X-Received: by 2002:a19:6907:0:b0:514:b450:99b4 with SMTP id e7-20020a196907000000b00514b45099b4mr4007765lfc.65.1710864825102; Tue, 19 Mar 2024 09:13:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:44 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:36 +0100 Subject: [PATCH 06/31] arm64: dts: qcom: msm8953-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-6-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/msm8953.dtsi | 18 ------------------ arch/arm64/boot/dts/qcom/pm8953.dtsi | 3 --- 2 files changed, 21 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index f1011bb641c6..73e52cc54236 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -1953,8 +1953,6 @@ q6routing: routing { thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 9>; trips { cpu0_alert: trip-point0 { @@ -1976,8 +1974,6 @@ map0 { }; }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 10>; trips { cpu1_alert: trip-point0 { @@ -1999,8 +1995,6 @@ map0 { }; }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 11>; trips { cpu2_alert: trip-point0 { @@ -2022,8 +2016,6 @@ map0 { }; }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 12>; trips { cpu3_alert: trip-point0 { @@ -2045,8 +2037,6 @@ map0 { }; }; cpu4-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 4>; trips { cpu4_alert: trip-point0 { @@ -2068,8 +2058,6 @@ map0 { }; }; cpu5-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 5>; trips { cpu5_alert: trip-point0 { @@ -2091,8 +2079,6 @@ map0 { }; }; cpu6-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 6>; trips { cpu6_alert: trip-point0 { @@ -2114,8 +2100,6 @@ map0 { }; }; cpu7-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 7>; trips { cpu7_alert: trip-point0 { @@ -2138,8 +2122,6 @@ map0 { }; gpu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 15>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8953.dtsi b/arch/arm64/boot/dts/qcom/pm8953.dtsi index 1067e141be6c..64258505f9ba 100644 --- a/arch/arm64/boot/dts/qcom/pm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8953.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm8953-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&pm8953_temp>; trips { From patchwork Tue Mar 19 16:13:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596855 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 9D72982D7A for ; Tue, 19 Mar 2024 16:13:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864829; cv=none; b=je4wnVNxXCK7vtYXROOt6Ru2m3DAXHY1+o5Kk6JeWHUEqzGdhOJ3f61PD2pmRlZFmGgb5vVX+J5IGSFgQErwWYt3QMsWvtRBPkE53lqSC5ZvCfZ8SWuMim45068hhjeDHidxcHLDr4chYiFBQDcfqZLeqDTivvbT63rgKNT3gM8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864829; c=relaxed/simple; bh=PFYMK6VYlsNGq0yT2mzUkiCLZovHcDvfCBSf9J4E7w8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PV4l4plSRel1xEyNvt4OI6uO41HuABvI6Io0p8BJ7sbBfjuWGJTt52krsFiU09aJj0GS6SyfpKIXr7tuysL7W4kPbb2yxD9Eia31LntBNpCUiI/ooJy7kKFotG+eSFXUxxkt4UDKbrUL0ZjTs+1NudTasmsToihVJBC7XaMdvPw= 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=flJxft6Q; arc=none smtp.client-ip=209.85.167.48 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="flJxft6Q" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-513ccc70a6dso9874572e87.1 for ; Tue, 19 Mar 2024 09:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864826; x=1711469626; 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=5zjX2LvJZoTkKgrNigxF1JXeIkRgZu7NU8ImcW2GIeo=; b=flJxft6Qx/sLfL08fCzLeilXx4jeuhO52LEJ1wFqXPnA9rGStX8zrdnD6woN8U0X7A WM7ClmDewfd5dGA0swmYvUZPD4YGLShtLpFU28P1rqDDyxkFRXcBGkkJzgg0EmVC2K9k eJ/UOzyHYoXyuDeNbIa2yfR9Blxkq7I1KROC/HCZUSb4OgfoKzJOYjGc9zmTtHBK1zkW 7u+yy4Lihn/AzLtsBTlkUi4IHbjbSGH1o3JgSILN45k63oN/3vKDfSsls1SZb08i/m2E +AIZgJD6DWLNW4omSjYYW3jdewFVn/3UW4anq8M/adhISC/fD63w+yaXh0miMwwUhYMt Ue/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864826; x=1711469626; 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=5zjX2LvJZoTkKgrNigxF1JXeIkRgZu7NU8ImcW2GIeo=; b=u2TAudQNTYIIzZxRhcA8WDtVghdWjL+IsEvTzBRA39l1ZYm9/SAtfc+czX7246FKJK rp7jkwoCXJdO00xlSViKVvCKm+6WtozW2Bqhr+IKWrBWhZl5tOn+tCH4JYXzv6RYavnF uhkcocSfPPrm7w/VEkqIH+du/6OwHQ+hZf48IjAFMu6A31t7djc663UL86jIohLLzLyS DZC+/YldTRCx56u8izj9BwIirlt+I6nOvYota6/vfdrp/+ZJ6kHwwLF6l8DE4E+JTag2 dogK33WI+sC/aTMFb6sUpCvc53A6g6PQOAbqOwjjsmIfTLYdGlfymQTSDrT51yvm2Mvf VaQw== X-Gm-Message-State: AOJu0Yz1d5+5LMSYJBTTXpXpsvkoaXD4PqoW+fyUouYJwma6/3QAlrIo 1oUpLHyTWF46QegioLNhheLsmtR/4etiI/Rqqb05KWlYkzok8VsTJN8WMxNRSuQ= X-Google-Smtp-Source: AGHT+IEl06sVnPcghkVNp49cEc/4CH7lfCC+t3lCR6sd/PvrNoUINkJMCmtaDs7RzkSG1YYm3FInlw== X-Received: by 2002:a05:6512:b9e:b0:513:ed17:af03 with SMTP id b30-20020a0565120b9e00b00513ed17af03mr5570583lfv.59.1710864826155; Tue, 19 Mar 2024 09:13:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:45 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:37 +0100 Subject: [PATCH 07/31] arm64: dts: qcom: msm8976-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-7-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/msm8976.dtsi | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi index d2bb1ada361a..09cb8cbceb6e 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -1123,9 +1123,6 @@ pil-reloc@94c { thermal-zones { aoss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 0>; trips { @@ -1138,9 +1135,6 @@ aoss0_alert0: trip-point0 { }; modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 1>; trips { modem_alert0: trip-point0 { @@ -1152,9 +1146,6 @@ modem_alert0: trip-point0 { }; qdsp-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 2>; trips { qdsp_alert0: trip-point0 { @@ -1166,9 +1157,6 @@ qdsp_alert0: trip-point0 { }; cam-isp-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 3>; trips { cam_isp_alert0: trip-point0 { @@ -1180,8 +1168,6 @@ cam_isp_alert0: trip-point0 { }; cpu4-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 4>; trips { @@ -1204,8 +1190,6 @@ cpu4_crit: cpu-crit { }; cpu5-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 5>; trips { @@ -1228,8 +1212,6 @@ cpu5_crit: cpu-crit { }; cpu6-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 6>; trips { @@ -1252,8 +1234,6 @@ cpu6_crit: cpu-crit { }; cpu7-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 7>; trips { @@ -1276,8 +1256,6 @@ cpu7_crit: cpu-crit { }; big-l2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 8>; trips { @@ -1300,8 +1278,6 @@ l2_crit: l2-crit { }; cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 9>; trips { @@ -1324,8 +1300,6 @@ cpu0_crit: cpu-crit { }; gpu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens 10>; trips { From patchwork Tue Mar 19 16:13:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596856 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 C7CEA839E5 for ; Tue, 19 Mar 2024 16:13:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864830; cv=none; b=ff+2b1bKnOgGd8MZ2DDmCLDMNvrcLHFgPNtpiXlJJJ6XEvU9r1Shjt7BJyfsMSRzRcv7hvdBBYwNftYACflV/WwaVWsqq2hAgMDjnDp9PJ68uXhiOqRzF90Ovo5EBm3zRx8kSrSCiKyLFtqtGr7pvI6HeOvvlIdpR39vUPR7rcA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864830; c=relaxed/simple; bh=ntEzv7JUf504zBFx8ko8UQ8SN8E+dPkcW+Y+1IK8KYw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WkbanU+wnsFEBU8ZHAYGetjwO/25ftDvbAjUSDqvfG5jVYLUQo0uB01FK3YTT5ZV7FJT65fw/8vdfM97QuFrCe2PWF6uLUtLI4TmlN/lPgRS/2THsu66QZZTALjEpQOsWXxsMgUD/yCRhRQKfQNaNrO3UQ3j4OvEGGqMp5Moww8= 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=cdmnIy1b; arc=none smtp.client-ip=209.85.167.42 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="cdmnIy1b" Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-513d212f818so6868208e87.2 for ; Tue, 19 Mar 2024 09:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864827; x=1711469627; 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=df+WHj6OG+fCGtrjahW0jOLoRL02ELOpM+SchJRRtic=; b=cdmnIy1bC2j8JiwOUUNx4c51ruP03/tiwqXhhAjLFlWOLk4VJ0eNnQ85zQQoXb82FF 8orFXI1OcHiyOgJUb1LLqDjMyMZPbnI+wvlRL+bmaYHUGhm+oGYR468XlaLqLhaz9q84 srMxybgnGjYCQI0M0gyg1btkMYKzXTWS2BxZCjCWGfWPvZBueLFlgCgbNhZC74ba3WTW yDloEgz1pqIzs5hF0eR2O+VhgNdePx6njaNN91RsdmSyz9P4neUXHsx00yP6cKbhfD1Q sZDuP7P8FWWqnjFQGLHX493F2gJW1QPFjT5Y5fV4Zs2YQO++0AfgwjbPPV34Tw0oFSAU 4LqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864827; x=1711469627; 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=df+WHj6OG+fCGtrjahW0jOLoRL02ELOpM+SchJRRtic=; b=pboTbxLbomUOn9i4sSBP4XGEcCy9LbxyBSowe2VSPnvRK0ZvyG+FDij7sOxij6pjDT RviAhoHOipG/ILzdGSAFctSLOC5nWmWBXZVHhq/zvZd34y/QP/xHfbQsB9GE0QvbFbNX nZD/EILFEpYP+uEWDwpI4l6GwQirPxQ/j9Obve9Jlgksjsm3FfBc232pg+6uVs1FMdfD 3VZQurPB3tHqkwGEWgLOyXkCY/mwfn+z4/40QfdW5uul7ULIyeZg5sB1YDNU/kP6c80t jDeA3T5Fm3qEUiyeI/Y3GPi6km3j9cPsffo+ARFSqkSjkRAsI3vL59Ymw+5W6NKRtR5l qOUg== X-Gm-Message-State: AOJu0YxFTSc0QIxk30nflTAirYkOtQPk+Hl74UfFQFhatcudBxVzUJor /avEvX09o2heegSRahcs/Q95pTE070lXEptgsFD43PavnDZk9Inj6vRoW5/1ENs= X-Google-Smtp-Source: AGHT+IGLBFDYYMt6SCH5SAKCAYsBLDhyRVoB2Lyl6Z3fTL8nyAbUIXbE0ZWBLpKryfgUmub+0AbOvQ== X-Received: by 2002:a19:8c1e:0:b0:513:9b96:a948 with SMTP id o30-20020a198c1e000000b005139b96a948mr9587328lfd.6.1710864827163; Tue, 19 Mar 2024 09:13:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:46 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:38 +0100 Subject: [PATCH 08/31] arm64: dts: qcom: msm8996-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-8-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/msm8996.dtsi | 42 ----------------------------------- arch/arm64/boot/dts/qcom/pm8994.dtsi | 3 --- 2 files changed, 45 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 1601e46549e7..f9bdf09a91d1 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -3623,9 +3623,6 @@ sound: sound { thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 3>; trips { @@ -3644,9 +3641,6 @@ cpu0_crit: cpu-crit { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 5>; trips { @@ -3665,9 +3659,6 @@ cpu1_crit: cpu-crit { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 8>; trips { @@ -3686,9 +3677,6 @@ cpu2_crit: cpu-crit { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 10>; trips { @@ -3707,9 +3695,6 @@ cpu3_crit: cpu-crit { }; gpu-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 6>; trips { @@ -3729,9 +3714,6 @@ map0 { }; gpu-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 7>; trips { @@ -3751,9 +3733,6 @@ map0 { }; m4m-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 1>; trips { @@ -3766,9 +3745,6 @@ m4m_alert0: trip-point0 { }; l3-or-venus-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 2>; trips { @@ -3781,9 +3757,6 @@ l3_or_venus_alert0: trip-point0 { }; cluster0-l2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 7>; trips { @@ -3796,9 +3769,6 @@ cluster0_l2_alert0: trip-point0 { }; cluster1-l2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 12>; trips { @@ -3811,9 +3781,6 @@ cluster1_l2_alert0: trip-point0 { }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 1>; trips { @@ -3826,9 +3793,6 @@ camera_alert0: trip-point0 { }; q6-dsp-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 2>; trips { @@ -3841,9 +3805,6 @@ q6_dsp_alert0: trip-point0 { }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 3>; trips { @@ -3856,9 +3817,6 @@ mem_alert0: trip-point0 { }; modemtx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 4>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index d44a95caf04a..68629dc1bf69 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -7,9 +7,6 @@ / { thermal-zones { pm8994-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&pm8994_temp>; trips { From patchwork Tue Mar 19 16:13:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596858 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 BD26F83A01 for ; Tue, 19 Mar 2024 16:13:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864832; cv=none; b=XitPDNNgQx6bLcgN8hJmNVv7jb6UgYVMjQqOyFPCSFKCBk/2D2Eu11tzxRweVQRH/FSvwRtuR7McC7poIKXH4pW0HyfF5fujks0GwPQ4BCOubnfktjw3ZQldCMN7n0RQFn+71gpaSrBgW+o82OSOSb0O0rP4s+fIuwBVdj6VluU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864832; c=relaxed/simple; bh=Dx4eKRKD7RSI0UXacL9tWgAfAMYTeDCaf8UjZrFGLoY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YO/x47YawVCxSyzg6Ol527Xh3QcY10sSHvYL04GBj4pKfNguJ9+ihDAS3kxmqACqLC6Ygv+GUjC/h/JSivXN4QeU7TGtvzBWH/d5FBGU90zoWDjpV+eyV1sFIlTcQzPdBAFNgggyScTS8M2d4l/d5gjPFtLuV/WNr/2Bx2KUGmE= 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=stIKvLOX; arc=none smtp.client-ip=209.85.167.47 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="stIKvLOX" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-513dc99b709so5118431e87.1 for ; Tue, 19 Mar 2024 09:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864828; x=1711469628; 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=YYS0OchrGD9kAwkYnjOpoqJceeaOYGfSJc+i+MfcuTY=; b=stIKvLOXV4FwdZO7WH6FWnFusAJKtz2NVmp0w8amhXPLaZ4GK82+UXcBNiOJ2zwviY z5eeeulPy0jKOGtcwD8GLNUkrbjOGsiyDmIFKeUv4rL3uobDkchancusC3UVuZBTfiCD XG6LszYdZB3n+pkCti6ImTT5rg6RTIKwVFJZSS3pmW2nyhCGUaaME3gIKTTVL3wPdZ77 /D9RauUHNAQ3fd5bI3D1SnfWAQJNCzojjQFRYfeI3slwxrt6ifogXUGbwrM9Lrjxl1+F BWj6HZfvztucmGhtZyyKxnhi9SSr92RImgBHNTwMxn0QaKLvZV3NPqkp/Wi0TktE8p8y /hBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864828; x=1711469628; 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=YYS0OchrGD9kAwkYnjOpoqJceeaOYGfSJc+i+MfcuTY=; b=B7lOb4j7VIESNtyNnGYxD/Y5uhHR3K9NRVzGfoYAP1k+C1v/XZymhNh325EFGjl4Sj jtgwk/eyBykolGggo6GwffSfg5oljz3GeuuvrWBgOcXki2E+4dbnoNcD2KvAM35fbN6V vSXQdLVtlfXBNGdPCo1efQLtF9KB17HsEUZ0cktUrTHseYntFFgvXS1uYU7+cq10eSTo EQVxrb94vUrWditMwEfIDZTbUveWlM2OeN4+SiD2pHIg9eCrr6my93ryUWL5r/M2sJ9b sxvPLQrtBDzDdm0JTjYusFvfItrFsG28lUr/AUDY4NazkhqYoqcO/dMs6PZLcv9fR/rb OBgw== X-Gm-Message-State: AOJu0Yy/ab2XSMrSzVUUvbzqr2qPv0cziFnc7JYjbmbFu/MavQL3YJ3U Kx5buo6fm11g9wSBTIS21lU3pYZelp90TuJlf6B5KcmriIezkvtIHMHpRMhlnr0= X-Google-Smtp-Source: AGHT+IGHSLoi1cSJEsqg639BDjMBa+TvC4cTijSihrY3DOfEJjf/m6Xb8qxLx6DnMmOh6MXVY5BkHQ== X-Received: by 2002:ac2:505c:0:b0:513:2ead:4f86 with SMTP id a28-20020ac2505c000000b005132ead4f86mr2074188lfm.12.1710864828150; Tue, 19 Mar 2024 09:13:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:47 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:39 +0100 Subject: [PATCH 09/31] arm64: dts: qcom: msm8998-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-9-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/msm8998.dtsi | 57 ----------------------------------- arch/arm64/boot/dts/qcom/pm8998.dtsi | 3 -- 2 files changed, 60 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 4dfe2d09ac28..8f5a92f1b863 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -487,9 +487,6 @@ slpi_smp2p_in: slave-kernel { thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 1>; trips { @@ -508,9 +505,6 @@ cpu0_crit: cpu-crit { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 2>; trips { @@ -529,9 +523,6 @@ cpu1_crit: cpu-crit { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 3>; trips { @@ -550,9 +541,6 @@ cpu2_crit: cpu-crit { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 4>; trips { @@ -571,9 +559,6 @@ cpu3_crit: cpu-crit { }; cpu4-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 7>; trips { @@ -592,9 +577,6 @@ cpu4_crit: cpu-crit { }; cpu5-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 8>; trips { @@ -613,9 +595,6 @@ cpu5_crit: cpu-crit { }; cpu6-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 9>; trips { @@ -634,9 +613,6 @@ cpu6_crit: cpu-crit { }; cpu7-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 10>; trips { @@ -655,9 +631,6 @@ cpu7_crit: cpu-crit { }; gpu-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 12>; trips { @@ -670,9 +643,6 @@ gpu1_alert0: trip-point0 { }; gpu-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 13>; trips { @@ -685,9 +655,6 @@ gpu2_alert0: trip-point0 { }; clust0-mhm-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 5>; trips { @@ -700,9 +667,6 @@ cluster0_mhm_alert0: trip-point0 { }; clust1-mhm-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 6>; trips { @@ -715,9 +679,6 @@ cluster1_mhm_alert0: trip-point0 { }; cluster1-l2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 11>; trips { @@ -730,9 +691,6 @@ cluster1_l2_alert0: trip-point0 { }; modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 1>; trips { @@ -745,9 +703,6 @@ modem_alert0: trip-point0 { }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 2>; trips { @@ -760,9 +715,6 @@ mem_alert0: trip-point0 { }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 3>; trips { @@ -775,9 +727,6 @@ wlan_alert0: trip-point0 { }; q6-dsp-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 4>; trips { @@ -790,9 +739,6 @@ q6_dsp_alert0: trip-point0 { }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 5>; trips { @@ -805,9 +751,6 @@ camera_alert0: trip-point0 { }; multimedia-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 6>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qcom/pm8998.dtsi index 3f82715392c6..157feef07b03 100644 --- a/arch/arm64/boot/dts/qcom/pm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8998.dtsi @@ -10,9 +10,6 @@ / { thermal-zones { pm8998-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&pm8998_temp>; trips { From patchwork Tue Mar 19 16:13:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596857 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 C032981AD4 for ; Tue, 19 Mar 2024 16:13:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864832; cv=none; b=QhT58x2rk7RK9PjimqTpUAIDNqB62PHcrCJMxdRbTWcseGOKJei/QKnq+COOC9xxqgvNI9gbsYDEE8eazLTnEiaEW1fqF+YOQAu2a0HiGEu7J07gP9WG7xEA2plGZNeLOBT6R1d0nrKkuVpDaScaYoVFPwWgZ0D3Zx1ZWA/n8Hg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864832; c=relaxed/simple; bh=rqTT2LFE/EriY/sI55NVs82+QuhEPrh1quGlno/eeng=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=duJgxdjjmRGIVRO83rmFMZwtTfF81PavbQ2mC9uFIzCinh3vYVVRF03fyFnrAkS1Dj5nQ7JIjXsN6hemSXp2pquN/drM2rvN1aTPvs0ltlDAtJ5oafHSyuNmhCgR/+e/4pQelb521h2+o2RZCcJpqm0TVusDBVOHT7ZDSI3CjUY= 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=Tnb9Cit5; arc=none smtp.client-ip=209.85.167.49 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="Tnb9Cit5" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-513edc88d3cso2322999e87.0 for ; Tue, 19 Mar 2024 09:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864829; x=1711469629; 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=CaO4eTXrc8bS0xtP0sgmAWvsE/xaS0w0srPaY2mNrgU=; b=Tnb9Cit5A1+0LGRYXHFNbMuPQ3FANcLt1pEyXbEcL5t3RK/jBtTnWdbOK700Pq1gow ULOoGlLOdkiSJmQiBMpwBz45uWOb+Rcsca6Rjn8I3JAXUr2Hixjz1CSCsGKCbeFWjk/v 7kpidzXVml4+U10rzFTDi+JGueyh7lxPI66qikcuEnhnjY7aWPKvNqbHkNRtOp8DUncS +M2odqCDnGFp2M13KsZPGl2KzTnyoWWvZy+d6SJLYiYF5voc/mWh/TD8NhOz/6mnfE/P m5PUIKXKxGd3yI92G6c0tD7i9M5RrjRvpp99radzs9XFsUJ6ZLeYu0xIgPRQ7E8eZ06b YSGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864829; x=1711469629; 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=CaO4eTXrc8bS0xtP0sgmAWvsE/xaS0w0srPaY2mNrgU=; b=KSpvgVAPXebKYIqu/UBkCh1R4t3JcT27rhjjCJxyKBztm5Iv/Y7Jr0APDBKCh5eLsu CY09m926olIvaca98AcxD6Av2V1TlYZh/yj5YERWbCxzKaa5aET7jNMvgpssdqQl5LmO ajKMztpMJUhTVEYpqA9kcF8Ocrsa0gJgw7xWMce/L/MKlYgsd1pvo/3cSRwofUAeqpkG bGi3WHHdtgwuVd4WFmZ1ssNyicYLLAJ+V81OkYdmHOsK3aYwzpJV67O0Nzp45ZBAcrrK o7iUhVDZJ2tPzSbMl5GYSvIhmm09uLlY8UT/4yjPtnRwXexfafDRTGVVgzywswn7JqCi AfIA== X-Gm-Message-State: AOJu0Yw6PVwfoz0ze+8JvNEg/SgPQC0otZDX9AZtYEQniRJ3EDj+m10m kTskMAa+c/mD6WW9lR/Bfwvncd4ROL3AQDOR15+IFb41u2D8ekXsUIg3ma+exiY= X-Google-Smtp-Source: AGHT+IEpdYlptaBm4VHg/aEwjg5gYcaCyCqLlerLuNKxFlHCamxxx7hc+yN5zx7MrQiLGznoqGSQzQ== X-Received: by 2002:ac2:4d91:0:b0:513:c53b:90db with SMTP id g17-20020ac24d91000000b00513c53b90dbmr10684237lfe.8.1710864829101; Tue, 19 Mar 2024 09:13:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:48 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:40 +0100 Subject: [PATCH 10/31] arm64: dts: qcom: pm7550ba: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-10-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/pm7550ba.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm7550ba.dtsi b/arch/arm64/boot/dts/qcom/pm7550ba.dtsi index 8b00ece987d1..05fcd8591367 100644 --- a/arch/arm64/boot/dts/qcom/pm7550ba.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7550ba.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm7550ba-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm7550ba_temp_alarm>; trips { From patchwork Tue Mar 19 16:13:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596859 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 B819B83CC2 for ; Tue, 19 Mar 2024 16:13:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864833; cv=none; b=mmoufzk8Fo4mYUQJRmingd3u0iGNOER1cijykcY2owazOG6rSlN3LH4ZnDXTpBUhpBQXBygvF9otOpA5XVw7Seak54ZYZlggIKiEfrfKZVVbno1J7Mw+nc+sLELLAHGf8D39Y70m3a3U3Kn2fVvLr+gzB5cdJLeSQFatOqxfMUc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864833; c=relaxed/simple; bh=u2xT7Esby1J3RKYeYjNslw3blgBjT8SrllnP1vANh1g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=W92f2i0T7wBE/KQEfAJPYM7MPgKCftAMY9sfzswFrt0NVV2dFTb04CQARQm4R0ehJmUi5rCDwPPVNzdxXY0E6XwgBnz69my4NfJ/EFhox9fgff+6GszKDYSb+OGUzFkVgY0CDrms2KA/Oq5jtuGM3vn6qSmOcmPh1Xx3yDX1Ys4= 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=PoVgTN7g; arc=none smtp.client-ip=209.85.167.51 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="PoVgTN7g" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-51381021af1so8368794e87.0 for ; Tue, 19 Mar 2024 09:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864830; x=1711469630; 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=3s72ROV1TY9FQ/rR1vBGeAP8Yy4vPnMBh3DjvW5n6Dc=; b=PoVgTN7gLvPTvkmKiGX8HGjMFMT16ZNOqLfHC5SogxN5vRvcElJFfXtfKetMUlhPhR HFX8/e1BUsqVHoGrFUBqEWGuZueeWmgsGUnAOHJJeUK9N5/6RoVlQtF1Hy+/LP8CxWWI qJRBH6WRd6dXGELE+g+/93nOEDAqOA3OGxr1LGn9b93scTkInp1iCXNcTD50KdvlkXpK 0kIKwergdnwcPwpEV6v22gxZNZSuEfeD+X0xsUIlnevN+zvajk6pkH2FbEZFmUczkgac i+fR0wn6O4u9T5Tp8T9LpHqVool7TdO2JG5UPWMmsR9J9RRo+kELX9msL6BeDeqWVkdD iU6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864830; x=1711469630; 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=3s72ROV1TY9FQ/rR1vBGeAP8Yy4vPnMBh3DjvW5n6Dc=; b=VsoK/G6nuxI+Zk9VxtMquPqp7VrutyNSDS8BkRmHscSgpM3Jp+3bEfPPIxN0r0jJqw 4ahC1s/lzLu8B2ROcHoCyxIXGSoXX5dWGrtHNt9yzT5VBHTpmW80boK+T7jVmv1EXlGh +I5U7fD4pEdmxAXKpPhwedilmV/9ubLXruZpS6VQnz+kbUy6lBaMEBzBGgMoLplQAW0r YejAXwZPXvndvLe1HL6C4sMSdYwMcWgTsMay6RxCF/S9snYnaoYW4KtW03QS3Rzq4VsH K9Q3nkFTuXhNEkJK0rCL23n0L9NMXQjtgxWTUH+H9CXyP2jr5XGLgmOk0N0laXxzprrp 3V4g== X-Gm-Message-State: AOJu0YwGg981eQcOqm+Amf23Jr577yCR76edFE1LLjn44HSRhBJl4hKn Q8ozpR4deY+lVr+rxkG4+uRGv6C4M+dM0K8xXxQfM63dxuWFUjuJ2wPEBw7vtRE= X-Google-Smtp-Source: AGHT+IG2XU3dXTL/HMZ0wjyShkm3yq6aj6ltXYMlCGV82MQ6syYCRqDz2EHkP3M7StASoKKBNwcBjQ== X-Received: by 2002:a19:8c56:0:b0:515:7686:6068 with SMTP id i22-20020a198c56000000b0051576866068mr1917610lfj.55.1710864830033; Tue, 19 Mar 2024 09:13:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:49 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:41 +0100 Subject: [PATCH 11/31] arm64: dts: qcom: pms405: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-11-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/pms405.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi index 461ad97032f7..afa3bb469870 100644 --- a/arch/arm64/boot/dts/qcom/pms405.dtsi +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi @@ -11,9 +11,6 @@ / { thermal-zones { pms405-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&pms405_temp>; trips { From patchwork Tue Mar 19 16:13:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596860 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 9145483CDB for ; Tue, 19 Mar 2024 16:13:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864834; cv=none; b=GMTbHtBDS5N0vrYFxDKyhhffHnkIS4b3FWj8NW7vZvJvS/PPmOSSdUvhFFa9kh2k9qInBHfkL9ANMnou66CAZmy9FgB3AJPu3Y0ekm0mRYbYa9BDo0mXJpjEWKpkGBtvV5oNI++YWFP1Q0YGgz645NkWBxng7fVbyFoSazcEfMY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864834; c=relaxed/simple; bh=u1ZVG1vb251umGVVGSjsqNgaJ0s0mxnhyWZRF2dWthk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YnraDbVIASO4edeanIOpqVyMlLFKojoq65QE8B0K1ya4YYtF0HgFRQbTngKSUnQSHsRLgVIgVviEqPiH5zPKuIzWex85E3ZlnhOcbHrukZDyYxXPQ+tW7EDvhZnsFHVSp0eBMBa0K+T+9wfR/0AmepBwRs02pOk+ilgwAGHSsDs= 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=mM19I7B0; arc=none smtp.client-ip=209.85.167.41 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="mM19I7B0" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-513dc99b709so5118525e87.1 for ; Tue, 19 Mar 2024 09:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864831; x=1711469631; 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=YSt/QwsSNK6R88wyvHQPMXYPOqcm9u8wO8J+pd+6N3Y=; b=mM19I7B0q0hXTIUsgFerSzUk9fQPB4mC1XSQ1NqhGZgPHDzOToDi2/Zo8hq78KFkn0 6UyZPg2kgEfHYuvXm5fhpD9FWTVM4a4urljEB0kBq+NxsQy9cyvSJHjfzX0qau1NAlbi BAoJmpVCAZ6TVAyREkaFy2NtwDxbsdInQoeV8qWYx0vOyGMrh7AdeM8f8Fp21WuYyiYU eAtBjZvOxPBQF4ztHvUJgjdG4kQ5z0uRzRaAamjCm5Fi6/0+pP8UGN3WGBo5fgMplONj p6LBtaJ6TbXcwJOynXmKXemmtqEj/xyY84ufgenN8S+O9+s1TzGC9SfjlmmUn18IEw8Q ibAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864831; x=1711469631; 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=YSt/QwsSNK6R88wyvHQPMXYPOqcm9u8wO8J+pd+6N3Y=; b=EmIJ58IHmkPSS7jPt1cSrUrZaX5HvMp++fO/lWr4ItLg7x/Bt7k/nwOuRCOa4OtT7x 9yKGak8cfLSJE93riK4bTuLP79DF24xpykNeWQoj6mTHX1u1ZaMW8TKzCdkMTfiCFqbu SfOOoPrYbSCs5RQipvep/n8axy+nQcHMg+kgHdt0Joj9fiTYIrSklr0oiffq4ntW1hs8 7dPSO4P0zwxtoYoNChm5eUeet0rgByFpFAiPz8Jz5v3hcyV2Qn4Yc0RQv+LLqt71EDUh p66N7pFO3fVpb9Lqw1g8SmDY3DmpZq8TRX+fPeWOWv2KIyJb0WHOHEqzc41V64Hlkw92 vlwA== X-Gm-Message-State: AOJu0Yz23NZLayOVlAOVSJPtk9+sLOUlMHw5WZK8uZrecXuuN8cRMZBs A+8aaPO5g3SLHI6mdLpXYn7uTweh42jyTP8CEV54BJ47dgEaeHlXgaW6IX6RRg4= X-Google-Smtp-Source: AGHT+IF+gHowUPvuwqfFEqeYtKZsfqBiTFk0t57xPZBp0c4tjgfIDIPrN5OVTWWxzpe9nwtqlz1ErA== X-Received: by 2002:ac2:5e3a:0:b0:513:de14:b66b with SMTP id o26-20020ac25e3a000000b00513de14b66bmr1955439lfg.24.1710864830880; Tue, 19 Mar 2024 09:13:50 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:50 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:42 +0100 Subject: [PATCH 12/31] arm64: dts: qcom: pmx75: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-12-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/pmx75.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pmx75.dtsi b/arch/arm64/boot/dts/qcom/pmx75.dtsi index 373e45f63dff..84ea94e3b394 100644 --- a/arch/arm64/boot/dts/qcom/pmx75.dtsi +++ b/arch/arm64/boot/dts/qcom/pmx75.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pmx75-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pmx75_temp_alarm>; trips { From patchwork Tue Mar 19 16:13:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596861 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 83BD383A01 for ; Tue, 19 Mar 2024 16:13:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864835; cv=none; b=qHd2CQVHwNgMsskUc3LVQFSEBUetjPqQZ1csUF861oJvjULFjzWohF55EWkMdLdkAUFsLscfFEGha6TKKV+AM6DOC6hGofsGPSlyXdka5NZbE7H5FpW47BNwylnklicds0Rf7mcw2J5IvPMV6J9MBRiN7YPxLDgZfblCyAEJM/U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864835; c=relaxed/simple; bh=0/k1OG8zIp9FMg8VdY+lmNOtRCz0TLzyGKYijhkIjTo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=b47dqpT0QVvxH/ZfNk7JNnOY+VAzpWcIAmfAahdrMERdp3E7IFpiDpvwv1iX+QCPCebLmrUHmR6kOmLQeK3s/EKAoBoREJ4bb6QgHcB5iD/riwG9qCpDGvOgkEHUEiUjMVo9qH7uHHg1vvWRcGJgUFBrdRw1unu3mZ5mdJHksaU= 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=v6L734cM; arc=none smtp.client-ip=209.85.167.49 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="v6L734cM" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-513dc99b709so5118551e87.1 for ; Tue, 19 Mar 2024 09:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864832; x=1711469632; 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=CnnzTjYGMYdvVMtijUR117h7wwCsVG1+77vBOY60uzM=; b=v6L734cMTxW2Eejvl/1EpxONpDbGWqm/fOnLabUIDQOaOX4pWvEEyczEvw76GHts+y 42yb171d7qsqkNAOUajT0NSiXkBjQLcPwci8wJGHeBMc0SImWrQgqVaeDXrFcgHrx93t pZdfdNGBiDXyG63DuCHjoNfvteA8YGIofj5gMHugu7XD+Rb72XflWfccj27g+h5Ep6wK bFPe7u1fy3hcSUBPOCnAuGJkmdynSG5i2gPOxEFYP08lE8yZ8NHR9Q4MrvWcAbFMqPaU ZwdAaT8C68llOMacq9hJ0mAL9gBLrqyf37YpS4lmbxGtCA9X7YmauDNQSD5tOdQTLx3r yAUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864832; x=1711469632; 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=CnnzTjYGMYdvVMtijUR117h7wwCsVG1+77vBOY60uzM=; b=OeeJjWi3f1rHtyhPvm/iT8OC4DQfZDTPBn7GXjeaiVBBBeRZlqFYrgpGtqAFHrGOZx JeS9DT31WAHFGl+RongpiEIx21VdVXPJ0CGezf5MYYphs/BWFXcaPH50nrK486DxBgLz Jezh4QekMEIZDYEvfXtGSL1WAM1u1l1FLsz3k0sA57f3+XCEhJ50jTi0p5Pi4fpGRex/ wzHphdOkpec8DbrtzW4oDg4ymW2LPYnT6Q0dugEYhRYdaZGnJBmq8jQvbyGyYc4o76BI Q3uul1GvFo+oKc3XkgW9J4ER30FQVpd9QQOnmktyuqZkIQy5I2Ll6i9ZiKYu2UqSld6L g1uw== X-Gm-Message-State: AOJu0Yy52ZV7IffVWIhz+h8g4jKJYjuBnqfsMAnUMD4aVwUc0SLsBoKN QWRnsDJK2ogAZMDmeK8VF8wm1qmIYMLwNztuwPGPVmb3LChKwwrEZw3B/ek0t6k= X-Google-Smtp-Source: AGHT+IH9sfgGnrDzwU543lAC82msqrPzdaGnPwcC2+ew+N4WAUzGLZoh1nEIF2YHhSYiwBYkdFUK7g== X-Received: by 2002:a19:9103:0:b0:513:2b35:2520 with SMTP id t3-20020a199103000000b005132b352520mr2283451lfd.58.1710864831891; Tue, 19 Mar 2024 09:13:51 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:51 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:43 +0100 Subject: [PATCH 13/31] arm64: dts: qcom: qcm2290-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-13-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/qcm2290.dtsi | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qcom/qcm2290.dtsi index 89beac833d43..c439ad5a16ae 100644 --- a/arch/arm64/boot/dts/qcom/qcm2290.dtsi +++ b/arch/arm64/boot/dts/qcom/qcm2290.dtsi @@ -1870,9 +1870,6 @@ cpufreq_hw: cpufreq@f521000 { thermal-zones { mapss-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 0>; trips { @@ -1897,9 +1894,6 @@ mapss_crit: mapss-crit { }; video-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 1>; trips { @@ -1924,9 +1918,6 @@ video_crit: video-crit { }; wlan-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 2>; trips { @@ -1951,9 +1942,6 @@ wlan_crit: wlan-crit { }; cpuss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 3>; trips { @@ -1978,9 +1966,6 @@ cpuss0_crit: cpuss0-crit { }; cpuss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 4>; trips { @@ -2005,9 +1990,6 @@ cpuss1_crit: cpuss1-crit { }; mdm0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 5>; trips { @@ -2032,9 +2014,6 @@ mdm0_crit: mdm0-crit { }; mdm1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 6>; trips { @@ -2059,9 +2038,6 @@ mdm1_crit: mdm1-crit { }; gpu-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 7>; trips { @@ -2086,9 +2062,6 @@ gpu_crit: gpu-crit { }; hm-center-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 8>; trips { @@ -2113,9 +2086,6 @@ hm_center_crit: hm-center-crit { }; camera-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 9>; trips { From patchwork Tue Mar 19 16:13:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596862 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 726BE84A54 for ; Tue, 19 Mar 2024 16:13:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864836; cv=none; b=Rl3TcLysC9AlK5npQiGLueyZY4Mbds61KQ+x7zDv1UbWRAKscOPW05gjWvEU+4QoDKE7RcLPAlXM1fIPtOAe6Et2I4GPy/a+hHZLg0Lrl1H2mGINFUeX8ybrXVflyg6ALIstg2fcAdGxqsSlPMgLmqacahkysa+owtHfszPzXdo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864836; c=relaxed/simple; bh=lUckpy7ysAP8KSlLQaJ0KH/EmjxeXgdV5P+mSMqn7kU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Rq3RG+mNDBKEoWx7Zaj2cL8QFg52ayNGuCwc8Lp0HNp8NrRlS7421oERxRInI/4ZmFxgQilue9UcrmYR+JG3eiS5ZcDAONE3ItGm0k22aCfZ8T0wMQNSCy0mcodpp1Fpjx6GnkZYHm6k/AZpLKtvG2ZRuUPRWC0L/25Z3WR/Hms= 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=lmIrkll9; arc=none smtp.client-ip=209.85.167.51 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="lmIrkll9" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-513dc99b709so5118577e87.1 for ; Tue, 19 Mar 2024 09:13:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864833; x=1711469633; 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=C35V0j48KRJzj+MbmIEByOb9R1hjafjYDuf4YisORVg=; b=lmIrkll92BA3wswdcG0/gUKpasl4bJ+ehYZjbPkMhsfTJ5ZRayh0AW6LhXkqu4Tgxs kBcR8JyD69GZGdQXwHAy04q3CisnhyUheesqPLtpqLVadthn5ANApKr0hIykw85NceG2 PCJajswkGjIZ8aU5+IKNbGaHlekwOHXQ8tePClGdRgOIay74YFjpElI9hhMekPQHg2aD oTkhaUg0vHQwJRaZOw1JsXYYElbMrDeRXG6DIutzDRD6EVi15lL2l52g+C/+vJQDiA6s GG3Cw29e3C1Uy29gFoG8dkP42AnGnzXhBgZTCKeEqr+mNAmWlCdZolWaDMDTIkL+EKm9 NBwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864833; x=1711469633; 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=C35V0j48KRJzj+MbmIEByOb9R1hjafjYDuf4YisORVg=; b=HrYw9+5T4OlKdSIOcu0rThFPtWYQIxULfkwjkcGA/EpOmJAn6bPUoBXSq19rBYSOgn UjSyDWXgqOn2Wl7u8HJlecLJ0Dd7cW5GjyiGxme/whq6cxBI77Qjf2GdB1XQTZbOAtef xYlFDyrOav54Zdx69n4Skj5bcaXMp4/Bvjj5vUoLkpe5rg+vMZkmbYKN2HomNPnp+evZ BBnD4wDnpI3Udh7LYtIo7lZOWLArP0iXTnEYaz3c7wxoZFeF9xjYJpblKur4JZgp5pq3 DAIFtj2QGGbAWYOGqvNNoImryXu3crh9EupgkTbFEDpaUKhysvdgqABB6k0KpEXNgfUJ FrwQ== X-Gm-Message-State: AOJu0Yxy166Jtv/rNQMjjUQkOmw7YI+7tJQ4RffhZwI0rfEZtAYPSH4v XJKVkCDuXiB+QFRciyhH/d/109VVjeN8eoCCHaQd2JouRFJpPJ8ci7XLmfd+Ofo= X-Google-Smtp-Source: AGHT+IHzUqhQVgP9CzXIlbPiGEwMEgfHjaWnAeko5lQYNQHKMT93kosdcJ3OoRKmZUqkU4cVkSG5ew== X-Received: by 2002:a19:914d:0:b0:515:852c:ed8d with SMTP id y13-20020a19914d000000b00515852ced8dmr989361lfj.25.1710864832848; Tue, 19 Mar 2024 09:13:52 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:52 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:44 +0100 Subject: [PATCH 14/31] arm64: dts: qcom: qcs404-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-14-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/qcs404.dtsi | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index a05d0234f7fc..ad109b38199e 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -1589,9 +1589,6 @@ wcss_smp2p_in: slave-kernel { thermal-zones { aoss-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 0>; trips { @@ -1604,9 +1601,6 @@ aoss_alert0: trip-point0 { }; q6-hvx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 1>; trips { @@ -1619,9 +1613,6 @@ q6_hvx_alert0: trip-point0 { }; lpass-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 2>; trips { @@ -1634,9 +1625,6 @@ lpass_alert0: trip-point0 { }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 3>; trips { @@ -1649,9 +1637,6 @@ wlan_alert0: trip-point0 { }; cluster-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 4>; trips { @@ -1683,9 +1668,6 @@ map0 { }; cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 5>; trips { @@ -1717,9 +1699,6 @@ map0 { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 6>; trips { @@ -1751,9 +1730,6 @@ map0 { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 7>; trips { @@ -1785,9 +1761,6 @@ map0 { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 8>; trips { @@ -1819,9 +1792,6 @@ map0 { }; gpu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 9>; trips { From patchwork Tue Mar 19 16:13:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596863 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 A7F5F84FD5 for ; Tue, 19 Mar 2024 16:13:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864838; cv=none; b=sgs8HKv2Y8nwZHzPjFUdY2YLwirdDufIl37ut+yqj13aJ3mnf7mWsK/ccCkLyjCVjwfeIX0wLkJ56ommK3i/tbXh05QngBQw/iyPreaCQGio4Fs2BhNy3iV56LgdC8gcu1Uti7iyc7Hbxl26u6/mZyOVyq8RVYfb818Hms41LhI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864838; c=relaxed/simple; bh=UPpmjMlmBKk2/udod9kMX5V3IsyI/+xirDIA9F4xpAg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uk5BiqLkH0JqykiiHKVevdNRDPcp/xIOf2as0H+BvPkQTj3E6X0jVhhfVcc2XGX8DfOmjEBRifhLTs9LcC3XwYWkbkiI8EdwP58w0JACMkQFNFiWsUp+0jxawpmeH+DTZXSBEo3KaN3QpEKfGxufMUrRc0+moUSS8XWVIwfmBoQ= 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=lYpJxIHR; arc=none smtp.client-ip=209.85.167.48 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="lYpJxIHR" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-513d4559fb4so6996332e87.3 for ; Tue, 19 Mar 2024 09:13:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864834; x=1711469634; 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=n8vHp34wYH0eBavZgf2d5N2sDGNWZk3dOCjl6ar2I9w=; b=lYpJxIHRA8SH5PcyQPF5DuRZ/Mlz7ZiRWiXG2gqvPlbDyTPICukppdPesWinFZWB9U pYXydBTd2+8CKg97BgPJjHdpX/80vsCTtsif5QffCRk8N5qJKV0q+1Q7EzcDJaM1u1jf ukbbodHEWKtdtPs6Fz8fU6PdcbCWy/csKPCz/n4c3N0PDsHhsHftMcwUNGkpOW9jnExX ooOA1fyO2qy8c26gWy/MqrnJwhA5GBCa3zvwKaveWT6LWCRF7dLPbHQrMWpHwBGLvDEh KQtdW07ltytixBAlDN0eaD/gF2BnKJnMex8FyUsz6Bd58LC4KMkp7oYZoSvO9vtxYWoQ ZPeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864834; x=1711469634; 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=n8vHp34wYH0eBavZgf2d5N2sDGNWZk3dOCjl6ar2I9w=; b=m8O6VWvQjAoP+bbvFgaWQqcgnwdIkNfZHiRkoiqWZcEr0+/iqhEvWNsK5U0SO4yKbT 4BHlXvImOGTPgQDPK+1eXkNTn5MB1dZAGFrp14y8dkV7OVy8wcWoZ5uPX3VTcpfu6lmk IoWyqicMXXvKWKoeCYpAWoviERBUTc+XgU3HS21JaskkYyTIGoKvvnUhoeZ2JG329cI3 gzhvU+CKxDK6Fl0JMPybxMoaVIhMNiFRV1yykZiEdVoV+AmPF7OgWShGXshUZn9mzSvP oF7uCz4gQwKY+cPULFsM8cpAGa8oTOmy0qiRFBR63dVmmzrbDjcIW26VNLJ2EEKQ8/K0 XV/w== X-Gm-Message-State: AOJu0YynNtu/aLn8r9M9LuKnmVIsg5JNLumuBQNoVRf1LTXK09Ty75CN tTLzItFFNFrdryHScOie3GzYvChjG2UjNfOywzZyxYjofmQLBpQAtwEYFaoDoYA= X-Google-Smtp-Source: AGHT+IHf19K1aDBaNbed6jLjYNWWlcBcPonDZ+aWjWxbYBFSfheHBGtR67+lTUxtGCrZLUboZzpezg== X-Received: by 2002:ac2:5f89:0:b0:513:c9a6:46ce with SMTP id r9-20020ac25f89000000b00513c9a646cemr2227507lfe.9.1710864833949; Tue, 19 Mar 2024 09:13:53 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:53 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:45 +0100 Subject: [PATCH 15/31] arm64: dts: qcom: sa8775p-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-15-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/sa8775p-pmics.dtsi | 8 -- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 150 ---------------------------- 2 files changed, 158 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index eaa43f022a65..f23a99729d9b 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -9,8 +9,6 @@ / { thermal-zones { pmm8654au_0_thermal: pm8775-0-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pmm8654au_0_temp_alarm>; trips { @@ -29,8 +27,6 @@ trip1 { }; pmm8654au_1_thermal: pm8775-1-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pmm8654au_1_temp_alarm>; trips { @@ -49,8 +45,6 @@ trip1 { }; pmm8654au_2_thermal: pm8775-2-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pmm8654au_2_temp_alarm>; trips { @@ -69,8 +63,6 @@ trip1 { }; pmm8654au_3_thermal: pm8775-3-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pmm8654au_3_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index 231cea1f0fa8..45e6443c9dc9 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -2550,9 +2550,6 @@ ethernet0: ethernet@23040000 { thermal-zones { aoss-0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 0>; trips { @@ -2571,9 +2568,6 @@ trip-point1 { }; cpu-0-0-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens0 1>; trips { @@ -2592,9 +2586,6 @@ trip-point1 { }; cpu-0-1-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens0 2>; trips { @@ -2613,9 +2604,6 @@ trip-point1 { }; cpu-0-2-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens0 3>; trips { @@ -2634,9 +2622,6 @@ trip-point1 { }; cpu-0-3-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens0 4>; trips { @@ -2655,9 +2640,6 @@ trip-point1 { }; gpuss-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens0 5>; trips { @@ -2676,9 +2658,6 @@ trip-point1 { }; gpuss-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens0 6>; trips { @@ -2697,9 +2676,6 @@ trip-point1 { }; gpuss-2-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens0 7>; trips { @@ -2718,9 +2694,6 @@ trip-point1 { }; audio-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 8>; trips { @@ -2739,9 +2712,6 @@ trip-point1 { }; camss-0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 9>; trips { @@ -2760,9 +2730,6 @@ trip-point1 { }; pcie-0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 10>; trips { @@ -2781,9 +2748,6 @@ trip-point1 { }; cpuss-0-0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 11>; trips { @@ -2802,9 +2766,6 @@ trip-point1 { }; aoss-1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 0>; trips { @@ -2823,9 +2784,6 @@ trip-point1 { }; cpu-0-0-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens1 1>; trips { @@ -2844,9 +2802,6 @@ trip-point1 { }; cpu-0-1-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens1 2>; trips { @@ -2865,9 +2820,6 @@ trip-point1 { }; cpu-0-2-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens1 3>; trips { @@ -2886,9 +2838,6 @@ trip-point1 { }; cpu-0-3-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens1 4>; trips { @@ -2907,9 +2856,6 @@ trip-point1 { }; gpuss-3-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens1 5>; trips { @@ -2928,9 +2874,6 @@ trip-point1 { }; gpuss-4-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens1 6>; trips { @@ -2949,9 +2892,6 @@ trip-point1 { }; gpuss-5-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens1 7>; trips { @@ -2970,9 +2910,6 @@ trip-point1 { }; video-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 8>; trips { @@ -2991,9 +2928,6 @@ trip-point1 { }; camss-1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 9>; trips { @@ -3012,9 +2946,6 @@ trip-point1 { }; pcie-1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 10>; trips { @@ -3033,9 +2964,6 @@ trip-point1 { }; cpuss-0-1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 11>; trips { @@ -3054,9 +2982,6 @@ trip-point1 { }; aoss-2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens2 0>; trips { @@ -3075,9 +3000,6 @@ trip-point1 { }; cpu-1-0-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens2 1>; trips { @@ -3096,9 +3018,6 @@ trip-point1 { }; cpu-1-1-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens2 2>; trips { @@ -3117,9 +3036,6 @@ trip-point1 { }; cpu-1-2-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens2 3>; trips { @@ -3138,9 +3054,6 @@ trip-point1 { }; cpu-1-3-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens2 4>; trips { @@ -3159,9 +3072,6 @@ trip-point1 { }; nsp-0-0-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens2 5>; trips { @@ -3180,9 +3090,6 @@ trip-point1 { }; nsp-0-1-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens2 6>; trips { @@ -3201,9 +3108,6 @@ trip-point1 { }; nsp-0-2-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens2 7>; trips { @@ -3222,9 +3126,6 @@ trip-point1 { }; nsp-1-0-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens2 8>; trips { @@ -3243,9 +3144,6 @@ trip-point1 { }; nsp-1-1-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens2 9>; trips { @@ -3264,9 +3162,6 @@ trip-point1 { }; nsp-1-2-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens2 10>; trips { @@ -3285,9 +3180,6 @@ trip-point1 { }; ddrss-0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens2 11>; trips { @@ -3306,9 +3198,6 @@ trip-point1 { }; cpuss-1-0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens2 12>; trips { @@ -3327,9 +3216,6 @@ trip-point1 { }; aoss-3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens3 0>; trips { @@ -3348,9 +3234,6 @@ trip-point1 { }; cpu-1-0-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens3 1>; trips { @@ -3369,9 +3252,6 @@ trip-point1 { }; cpu-1-1-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens3 2>; trips { @@ -3390,9 +3270,6 @@ trip-point1 { }; cpu-1-2-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens3 3>; trips { @@ -3411,9 +3288,6 @@ trip-point1 { }; cpu-1-3-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens3 4>; trips { @@ -3432,9 +3306,6 @@ trip-point1 { }; nsp-0-0-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens3 5>; trips { @@ -3453,9 +3324,6 @@ trip-point1 { }; nsp-0-1-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens3 6>; trips { @@ -3474,9 +3342,6 @@ trip-point1 { }; nsp-0-2-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens3 7>; trips { @@ -3495,9 +3360,6 @@ trip-point1 { }; nsp-1-0-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens3 8>; trips { @@ -3516,9 +3378,6 @@ trip-point1 { }; nsp-1-1-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens3 9>; trips { @@ -3537,9 +3396,6 @@ trip-point1 { }; nsp-1-2-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; - thermal-sensors = <&tsens3 10>; trips { @@ -3558,9 +3414,6 @@ trip-point1 { }; ddrss-1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens3 11>; trips { @@ -3579,9 +3432,6 @@ trip-point1 { }; cpuss-1-1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens3 12>; trips { From patchwork Tue Mar 19 16:13:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596864 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 5687A823AE for ; Tue, 19 Mar 2024 16:13:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864839; cv=none; b=Zu9TFmmaLVICR4xt6AUgnyuw2vFSDpRgvkbmdIGhHnA8AsmO3OXtpP/mucpwwqXTjAenZZ6D6SEyXRkLJ0qOgp0jjxRgAWZe9fyyeOQIr7ehSdq5osVCvx6M2Wv93a6v5aS8mmxbOMj+u62OAX5r+lDxSWwCJwD4O4wYSmDAzPk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864839; c=relaxed/simple; bh=EYOEa0uVYp0vYfKNVrRpWVnmRsG7n3juvC+eylZ7ENw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SbCTDWaSfQHEvoShPIEnvEuf7GVin519a0g1uio2PcnEw70s5PXEplxgI3hsFxJAw2nSKN1TCYuufWf3ppxX7hi1/tKofOiM7w/ZPl358fhRse0Ks7rHGb5/jmQnTUO0LElDFLqQTXkjFx2+podAuCz4i3wxPjGMxSaGtI1Gih4= 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=UuGLQSqX; arc=none smtp.client-ip=209.85.167.46 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="UuGLQSqX" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-512bde3d197so4709120e87.0 for ; Tue, 19 Mar 2024 09:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864835; x=1711469635; 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=yshrbrRqv1mNDaYKhbz7spWFrVefLfnoM8iQyT0aqAU=; b=UuGLQSqXAizr4l8yW1/RlwbtYJNOst9EgJk8//4UOVTgsliHm7e5Awf4lDpgRHAg14 5i3FZZKpT4k7HUumnCDUnZR17BTHb75t30catZhNQR/O5vhsVP8yLv4zs+hKckfuCAgV omhj2zADnxkuxHLq38deHEyyfeusSgf+r/IoTzqd0bjeo+RrIzi1QflGdWxAimPbmupN 1Op/tJlqEx6LaH5LCu43nsnfAyrF4eQIWAurKjKBBVSjTmWVh/80Zo8lla/rraCnwUya hGpjhERGzomL4g1OZT1sORwqcJPeDl/U1V3L9YMKAt997VpMqVP7/fM3k9eHmo1ZWelU ehpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864835; x=1711469635; 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=yshrbrRqv1mNDaYKhbz7spWFrVefLfnoM8iQyT0aqAU=; b=MeqyKrVzATuHdAKf4XsWDcOUR7nE2IEjyDZwhZkpJ82hu+gs30BbPNyk3sSTvmaS3J 8Ei6msKcki91BTc4k2XfcwFbwRDOhFP96x6QnIB671QsCo4i7M1SWOmn+dEn0lIQsEH2 71/+ZeR10lzlrsDcqbjEb9hLRMoaPDY2xn3rMkXKaLnD8xglhKg+n3RaGFTRMhGv6bLu VY43KqjQ4RoQOkQWh0+Fhfx1AGc5lRZac4TUxi40yQ1Hl7ma97mLj3Ir7iiJC9nqVynT yaBcB0sFSfYfQZLb/ZP71gp6ZBRDAKh5UeXnB7kl3Nqcto2t/v3TUqxLsP/hNwCF/4e4 5nmA== X-Gm-Message-State: AOJu0YxbveAKMVovkfy8IHmdJPkNKWxDptl9SeyBujZ2ymmWRMAmcSdO ZIfLvdPX4NQgWF3ztI54bTququBShGINDff66jn3VaG4l0qO74sJeZfCocnLSg8= X-Google-Smtp-Source: AGHT+IE5fk5J4YPttQCGqL4rGXiVuyuUObxgdbsNNHCn0IESQPWQF1UUvgMovCGO1tfo7E27XpIThg== X-Received: by 2002:a05:6512:358c:b0:513:c9f5:cbf2 with SMTP id m12-20020a056512358c00b00513c9f5cbf2mr2266989lfr.59.1710864835674; Tue, 19 Mar 2024 09:13:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:54 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:46 +0100 Subject: [PATCH 16/31] arm64: dts: qcom: sc7180-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-16-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/pm6150.dtsi | 2 - arch/arm64/boot/dts/qcom/pm6150l.dtsi | 3 - .../arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 3 - .../boot/dts/qcom/sc7180-trogdor-homestar.dtsi | 3 - .../arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi | 3 - .../boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi | 3 - arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 3 - arch/arm64/boot/dts/qcom/sc7180.dtsi | 75 ---------------------- 8 files changed, 95 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm6150.dtsi b/arch/arm64/boot/dts/qcom/pm6150.dtsi index 11158c2bd524..78acad023e62 100644 --- a/arch/arm64/boot/dts/qcom/pm6150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6150.dtsi @@ -12,8 +12,6 @@ / { thermal-zones { pm6150_thermal: pm6150-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pm6150_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm6150l.dtsi b/arch/arm64/boot/dts/qcom/pm6150l.dtsi index d13a1ab7c20b..a20e9b9993b2 100644 --- a/arch/arm64/boot/dts/qcom/pm6150l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6150l.dtsi @@ -10,9 +10,6 @@ / { thermal-zones { pm6150l-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&pm6150l_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi index 7765c8f64905..80fa40cdebd5 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi @@ -24,9 +24,6 @@ adau7002: audio-codec-1 { thermal-zones { skin_temp_thermal: skin-temp-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&pm6150_adc_tm 1>; sustainable-power = <965>; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi index 2ba3bbf3b9ad..385eba9e142d 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-homestar.dtsi @@ -44,9 +44,6 @@ pp3300_touch: pp3300-touch-regulator { thermal-zones { skin_temp_thermal: skin-temp-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&pm6150_adc_tm 1>; sustainable-power = <965>; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi index 067813f5f437..026d0845d78b 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi @@ -14,9 +14,6 @@ / { thermal-zones { 5v-choke-thermal { - polling-delay-passive = <0>; - polling-delay = <250>; - thermal-sensors = <&pm6150_adc_tm 1>; trips { diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi index 305ad127246e..1bf313a3c59c 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler.dtsi @@ -49,9 +49,6 @@ v1p8_mipi: v1p8-mipi-regulator { thermal-zones { skin_temp_thermal: skin-temp-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&pm6150_adc_tm 1>; sustainable-power = <574>; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi index f3a6da8b2890..8a8a5ca0e568 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -21,9 +21,6 @@ / { thermal-zones { charger_thermal: charger-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&pm6150_adc_tm 0>; trips { diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index 2b481e20ae38..54e0ab1c8580 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -4031,9 +4031,6 @@ lpass_hm: clock-controller@63000000 { thermal-zones { cpu0_thermal: cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 1>; sustainable-power = <1052>; @@ -4080,9 +4077,6 @@ map1 { }; cpu1_thermal: cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 2>; sustainable-power = <1052>; @@ -4129,9 +4123,6 @@ map1 { }; cpu2_thermal: cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 3>; sustainable-power = <1052>; @@ -4178,9 +4169,6 @@ map1 { }; cpu3_thermal: cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 4>; sustainable-power = <1052>; @@ -4227,9 +4215,6 @@ map1 { }; cpu4_thermal: cpu4-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 5>; sustainable-power = <1052>; @@ -4276,9 +4261,6 @@ map1 { }; cpu5_thermal: cpu5-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 6>; sustainable-power = <1052>; @@ -4325,9 +4307,6 @@ map1 { }; cpu6_thermal: cpu6-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 9>; sustainable-power = <1425>; @@ -4366,9 +4345,6 @@ map1 { }; cpu7_thermal: cpu7-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 10>; sustainable-power = <1425>; @@ -4407,9 +4383,6 @@ map1 { }; cpu8_thermal: cpu8-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 11>; sustainable-power = <1425>; @@ -4448,9 +4421,6 @@ map1 { }; cpu9_thermal: cpu9-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 12>; sustainable-power = <1425>; @@ -4489,9 +4459,6 @@ map1 { }; aoss0-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 0>; trips { @@ -4510,9 +4477,6 @@ aoss0_crit: aoss0-crit { }; cpuss0-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 7>; trips { @@ -4530,9 +4494,6 @@ cpuss0_crit: cluster0-crit { }; cpuss1-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 8>; trips { @@ -4550,9 +4511,6 @@ cpuss1_crit: cluster0-crit { }; gpuss0-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 13>; trips { @@ -4578,9 +4536,6 @@ map0 { }; gpuss1-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 14>; trips { @@ -4606,9 +4561,6 @@ map0 { }; aoss1-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens1 0>; trips { @@ -4627,9 +4579,6 @@ aoss1_crit: aoss1-crit { }; cwlan-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens1 1>; trips { @@ -4648,9 +4597,6 @@ cwlan_crit: cwlan-crit { }; audio-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens1 2>; trips { @@ -4669,9 +4615,6 @@ audio_crit: audio-crit { }; ddr-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens1 3>; trips { @@ -4690,9 +4633,6 @@ ddr_crit: ddr-crit { }; q6-hvx-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens1 4>; trips { @@ -4711,9 +4651,6 @@ q6_hvx_crit: q6-hvx-crit { }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens1 5>; trips { @@ -4732,9 +4669,6 @@ camera_crit: camera-crit { }; mdm-core-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens1 6>; trips { @@ -4753,9 +4687,6 @@ mdm_crit: mdm-crit { }; mdm-dsp-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens1 7>; trips { @@ -4774,9 +4705,6 @@ mdm_dsp_crit: mdm-dsp-crit { }; npu-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens1 8>; trips { @@ -4795,9 +4723,6 @@ npu_crit: npu-crit { }; video-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens1 9>; trips { From patchwork Tue Mar 19 16:13:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596866 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 7964C81AC9 for ; Tue, 19 Mar 2024 16:13:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864841; cv=none; b=Ycl4yJdNg0pX3ewM0Gsmo/gin60ybyXBS+4RjOo/P3u7ZLOJBoDBDFTmLhuebl50oxq5scTqwRU0NUZtmYQRKMMCqr58lKm6EJHYMymxMpBhLuoVoDsK+BYZ1tTpyU4vXTvdKtBVTalW1MO9xfTHyOOE7fr8FJiygiyELFIWtCc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864841; c=relaxed/simple; bh=r63AdtT4GVZ7zZXIKR+NEiJ7S/HPxGoyuJWtUf4y+jo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VCfq8cV9LjFrkh8hqS89YFeBRJIK8lPN+DuTJV6JG32R1Mb7tuoh7TzltuPLCaauOKUVaeIJWq8c2SwC2ydvYBTTJN+1GHo15aCwggqAhZCeEvv56SDpysft29kE5nIBjWAVD95FFydRmwQI7mgU2T1BSLlvADwXzDzxvtIGyFk= 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=erW6ab4R; arc=none smtp.client-ip=209.85.167.49 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="erW6ab4R" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5148ea935b8so2193580e87.1 for ; Tue, 19 Mar 2024 09:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864837; x=1711469637; 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=OB3PcUCPufS9ZcD95Yf/HAHsA+W7OOJ/3I2gdHjfGlc=; b=erW6ab4RAhNstlH+7diaZgjlQdI3nlQnmDaHn6987NWEbUfDnA1yPplfKBwsI+yymW XLBB0p1pVEZ92B84Ne7l97MoLuUVW9Lw9utWSseuUxUwFaPaBZ5wdPbYluMxDdpFFReE +aRBQ/9kMaSOF912XjvHOqp6VYbmkljqELGNNgnDW8VGqODh4ihY0L9ogVITZ8Ibx1AM az+ap7TB/BvcNDmiWLIeVrVrbyHtHfTfg/NRHcECdJnvFqNWMDkvE75kcXJD+lr4kbr/ PTp0qOXv3PNNj4W5O/wPc2z6SPRk+fZKdLlndY8rOSojxxZTFvN2/f0HJ4TjCgIlmUeh 8gQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864837; x=1711469637; 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=OB3PcUCPufS9ZcD95Yf/HAHsA+W7OOJ/3I2gdHjfGlc=; b=kiUY5WYC/8lZSZgixkxqTM7D6XA6jcqGK9GVKV/A5l7Sym1DZFQ90nGP7XeNWTrTiu dqHy57jGPalIUHRuZrQAeuuBTbqAtAiVslzFklSJHONy0RRkhU2W5P5CuxiqAib0M2XX mWYSgh5XnHW3b+9aOW3gK68BHGlbodO9fBUBSUKBLX38zKcFAbd20s/Auy89X+dqv3RG 0KvHIrtgx0GK4EO3e70cXsPRJRw/4cMhvm0Xir85mjuwEm+nWT7ajfIJAE7+dQstY5wg +j05bYnqwHC+nk9Ij6xKokOuYCP1r6DsILsGlF6tyU2VDFA1pbG/Ppfg2TFtXHIEOrfw fNiA== X-Gm-Message-State: AOJu0YyGF/EBy+JMO3Gui//iqHARlbb75fwwLSWeGg2rj59Hx2ycyXN9 cEd2ripQAS3YVZkP19+LZaSKqKgt+2garH2u+TxZvN5RhONPwPdlOjkLpwedZaI= X-Google-Smtp-Source: AGHT+IH53t86LWw3WY/febzezecdPoEWe/w9djLV1EKb/35WONffId6x0wGKP1w9qREOVMC5qjO2Uw== X-Received: by 2002:a19:3854:0:b0:513:c632:24bc with SMTP id d20-20020a193854000000b00513c63224bcmr2060824lfj.35.1710864836795; Tue, 19 Mar 2024 09:13:56 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:56 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:47 +0100 Subject: [PATCH 17/31] arm64: dts: qcom: sc7280-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-17-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/pm7250b.dtsi | 3 - arch/arm64/boot/dts/qcom/pm7325.dtsi | 2 - arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 14 ---- arch/arm64/boot/dts/qcom/sc7280.dtsi | 81 ---------------------- 4 files changed, 100 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boot/dts/qcom/pm7250b.dtsi index 3bf7cf5d1700..48eb8d9a5ac3 100644 --- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi @@ -10,9 +10,6 @@ / { thermal-zones { pm7250b-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm7250b_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm7325.dtsi b/arch/arm64/boot/dts/qcom/pm7325.dtsi index d1c5476af5ee..a25f6f65e416 100644 --- a/arch/arm64/boot/dts/qcom/pm7325.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7325.dtsi @@ -34,8 +34,6 @@ pm7325_gpios: gpio@8800 { &thermal_zones { pm7325_thermal: pm7325-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pm7325_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts index 4ff9fc24e50e..e4882b94d103 100644 --- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts +++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts @@ -164,8 +164,6 @@ afvdd_2p8: regulator-afvdd-2p8 { thermal-zones { camera-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 2>; trips { @@ -178,8 +176,6 @@ active-config0 { }; chg-skin-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm7250b_adc_tm 0>; trips { @@ -192,8 +188,6 @@ active-config0 { }; conn-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm7250b_adc_tm 1>; trips { @@ -206,8 +200,6 @@ active-config0 { }; quiet-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 1>; trips { @@ -220,8 +212,6 @@ active-config0 { }; rear-cam-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 4>; trips { @@ -234,8 +224,6 @@ active-config0 { }; sdm-skin-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 3>; trips { @@ -248,8 +236,6 @@ active-config0 { }; xo-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 0>; trips { diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 7e7f0f0fb41b..ef60a511a69f 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -5969,9 +5969,6 @@ cpufreq_hw: cpufreq@18591000 { thermal_zones: thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 1>; trips { @@ -6013,9 +6010,6 @@ map1 { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 2>; trips { @@ -6057,9 +6051,6 @@ map1 { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 3>; trips { @@ -6101,9 +6092,6 @@ map1 { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 4>; trips { @@ -6145,9 +6133,6 @@ map1 { }; cpu4-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 7>; trips { @@ -6189,9 +6174,6 @@ map1 { }; cpu5-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 8>; trips { @@ -6233,9 +6215,6 @@ map1 { }; cpu6-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 9>; trips { @@ -6277,9 +6256,6 @@ map1 { }; cpu7-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 10>; trips { @@ -6321,9 +6297,6 @@ map1 { }; cpu8-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 11>; trips { @@ -6365,9 +6338,6 @@ map1 { }; cpu9-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 12>; trips { @@ -6409,9 +6379,6 @@ map1 { }; cpu10-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 13>; trips { @@ -6453,9 +6420,6 @@ map1 { }; cpu11-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; - thermal-sensors = <&tsens0 14>; trips { @@ -6497,9 +6461,6 @@ map1 { }; aoss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 0>; trips { @@ -6518,9 +6479,6 @@ aoss0_crit: aoss0-crit { }; aoss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 0>; trips { @@ -6539,9 +6497,6 @@ aoss1_crit: aoss1-crit { }; cpuss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 5>; trips { @@ -6559,9 +6514,6 @@ cpuss0_crit: cluster0-crit { }; cpuss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 6>; trips { @@ -6579,9 +6531,6 @@ cpuss1_crit: cluster0-crit { }; gpuss0-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&tsens1 1>; trips { @@ -6607,9 +6556,6 @@ map0 { }; gpuss1-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&tsens1 2>; trips { @@ -6635,9 +6581,6 @@ map0 { }; nspss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 3>; trips { @@ -6656,9 +6599,6 @@ nspss0_crit: nspss0-crit { }; nspss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 4>; trips { @@ -6677,9 +6617,6 @@ nspss1_crit: nspss1-crit { }; video-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 5>; trips { @@ -6698,9 +6635,6 @@ video_crit: video-crit { }; ddr-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 6>; trips { @@ -6719,9 +6653,6 @@ ddr_crit: ddr-crit { }; mdmss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 7>; trips { @@ -6740,9 +6671,6 @@ mdmss0_crit: mdmss0-crit { }; mdmss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 8>; trips { @@ -6761,9 +6689,6 @@ mdmss1_crit: mdmss1-crit { }; mdmss2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 9>; trips { @@ -6782,9 +6707,6 @@ mdmss2_crit: mdmss2-crit { }; mdmss3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 10>; trips { @@ -6803,9 +6725,6 @@ mdmss3_crit: mdmss3-crit { }; camera0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 11>; trips { From patchwork Tue Mar 19 16:13:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596865 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 8BD7B85649 for ; Tue, 19 Mar 2024 16:13:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864841; cv=none; b=QJJVyBjw7Kuw1hkp/WX+vt7o52L7DwhcyOKdTAWsvTL3kD9D694n3zP5GuOwEbalFyu+z+zk1FG5+HZk+eHoeMNu1GRaxwW0hGT9yQc+/pXarQCBfwRKqUPPAeLsTP/rSk70D0zbqTtcXaQOdfQK79YPQ1uEfbeLlmg0oe4+Wjs= 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.52 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-f52.google.com with SMTP id 2adb3069b0e04-513cfc93f4eso6503342e87.3 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=UlXL1sSmpisQSFaB06xe9YueoHaMUlB9ITQvCs45d4mzxI6k3iTnDf5wONi7UwWKnI joVU8w9IKnRtLGQI4hz2Af2bUHUSgg38bEGKD82fXQP5bf5Afp0Ht4AY3v0IxS9Jba1l P6Z2SiLFgTkVw2SNo8DRUSVVMOYqByqUTi2prFExvwkme3ajtHvsvIV242rRTDtG8Lr/ nKVOjkAwf1CehIT1DlppXk46osLw0znX/kugeEJJcAjO7zRqRU76XF8ebiu4+cPPQBw6 v1ckTG/FJ/FNMqs+FQFLKlIVSu3FlZl8WJZEh3LmIhXIJcCu9lmVjDtg0BEnHKX0PDOV 8OzQ== X-Gm-Message-State: AOJu0Yxu5UDyt/7mB7Z+OJi+lD70EotRFhg3jBMn1Tczt7dKiDkcJ/We RcsdfS4yw8uqgTix/HeVqywI+p7FKGDSHnoZzbFNtQxK0Rx8ph7pQCT+CzPMAd8= 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 { From patchwork Tue Mar 19 16:13:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596867 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 5078785659 for ; Tue, 19 Mar 2024 16:14:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864843; cv=none; b=bOjXNWdONweWxQdT96PWGTeowpySgotdER4bW8TRAvr2wrReP2+msLO6mIIH2XkKbDA9figyq/oFc8tkW7xqdV7mxD2VBAjlNpmpn0+2rRQRrSG0G89bKZx9/9d2TSQid/yjMiPyFrioD0j0jFqwOk2zjq2Q5Y57j7ZXppWvufk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864843; c=relaxed/simple; bh=WvPyzZfNQUrQySxckVP5QXfPEr3BylcrJTFZjJRL61g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AjWFyhiKCOG9LF7Eu0jCSxlofPH/YRdsh0aMTtNCkeaM2EXVhtOSozlVFMu5Es7AMK2sFbMA4P/2axspvb1kkH7pk4/RUAN/oxlVhBNpClpo2zotrhsJGJ1VhKqsBR3Q2Waj513jQkYkwBn/YMfRufPIYtjDxBpMk1JK9lo05y4= 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=QDVXop/L; arc=none smtp.client-ip=209.85.167.42 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="QDVXop/L" Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-513d4559fb4so6996467e87.3 for ; Tue, 19 Mar 2024 09:14:00 -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=INVlAMS/JfEb8n+Ryd4uQ5TKLO8ePn6L/ZZbKVUldII=; b=QDVXop/LRZ24TtAcm0/l7AOfrinN4v3n3GL7w/ixXGSY3ps+kFZDkS/W3+IEWVagGI WYnADkh37tbVlq5dcYmr3B6/TZADRS9oFMm3T8c7MpemTIrz9R2caJcAjqEmHRw2Z8dj cQLB4ucsbmbs05yN+tGM5REdJV0AGmVVnggvACK/kYfJc1348XzSaLPWcgvzdWATB6T6 9QPabHuhc+2mUL/XmaJ4nWtF1hAuDSWxkR8UUckMlDt1sOmgAQ3D/gubBRNfEA/KySqA SqUnY2dZNVnaY4IstMU4adxKkiLtocH1DVV12yYeLVw+azUiwtHNLBwMCzZKUlplthHk QQ5w== 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=INVlAMS/JfEb8n+Ryd4uQ5TKLO8ePn6L/ZZbKVUldII=; b=ovhYHe02G/Mz5K25+8SYno/cVSnA3AM5CAdQYLny6/aIKMYWo4t/Hb7cfdHPdgGdEi No6PfWDrb95NpAvitXkgYv4t23tjSnlBFCZpwYjGa1nkOKXlQMsTPmbso7WGBISQQpoS fZtIRkcIWHOzm2LY2tB9sStG3B2xGVArrdzHj91tzudTMRMmIWLw+WbUNN6vQIMmFdF3 y09vMgFGDxufCHfPknt78tE9yYAlTZ0fpG92e6MtZ1AAiAdE56YVYe9zsBDsyvH9BadZ 0v2C2OpQ/8hAuFD1GlsSh7DP/7dPNpHd4lAabUlNIry4AA9bRYsu+N2L0NpQ+Yxr5B/f QsJA== X-Gm-Message-State: AOJu0YxuzomNpCeKpmVSI56dCDMnQ2+nJVSVANJHDsNchH3zWkRzxe+q XvXFDpdDnR/L2FytMsa1IVUORQMZN7zmRcBlw39iIuep7mD9uyPDkSql9FxxmtI= X-Google-Smtp-Source: AGHT+IGbyA85Wt5UtTI71E56whtDNrT9UVmjbmi/g9ZDIbZFuiPEsalu9HEPteYL6ysWDwPWZtFjtw== X-Received: by 2002:ac2:495c:0:b0:512:e220:d3ab with SMTP id o28-20020ac2495c000000b00512e220d3abmr2313798lfi.65.1710864838712; Tue, 19 Mar 2024 09:13:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:58 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:49 +0100 Subject: [PATCH 19/31] arm64: dts: qcom: sc8280xp-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-19-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 --- .../dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 2 -- arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi | 4 --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 33 ---------------------- 3 files changed, 39 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 15ae94c1602d..cd6a585359f7 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -296,8 +296,6 @@ linux,cma { thermal-zones { skin-temp-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; thermal-sensors = <&pmk8280_adc_tm 5>; trips { diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi index 945de77911de..4283d59c556d 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp-pmics.dtsi @@ -13,8 +13,6 @@ / { thermal-zones { pm8280_1_thermal: pm8280-1-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pm8280_1_temp_alarm>; trips { @@ -33,8 +31,6 @@ trip1 { }; pm8280_2_thermal: pm8280-2-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pm8280_2_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index a5b194813079..00fd4a187297 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -5648,9 +5648,6 @@ sound: sound { thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 1>; trips { @@ -5663,9 +5660,6 @@ cpu-crit { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 2>; trips { @@ -5678,9 +5672,6 @@ cpu-crit { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 3>; trips { @@ -5693,9 +5684,6 @@ cpu-crit { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 4>; trips { @@ -5708,9 +5696,6 @@ cpu-crit { }; cpu4-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 5>; trips { @@ -5723,9 +5708,6 @@ cpu-crit { }; cpu5-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 6>; trips { @@ -5738,9 +5720,6 @@ cpu-crit { }; cpu6-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 7>; trips { @@ -5753,9 +5732,6 @@ cpu-crit { }; cpu7-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 8>; trips { @@ -5768,9 +5744,6 @@ cpu-crit { }; cluster0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 9>; trips { @@ -5783,9 +5756,6 @@ cpu-crit { }; gpu-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens2 2>; trips { @@ -5798,9 +5768,6 @@ gpu-crit { }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 15>; trips { From patchwork Tue Mar 19 16:13:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596868 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 96E5C85936 for ; Tue, 19 Mar 2024 16:14:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864844; cv=none; b=bGmHRrAyey0aJo1p/48+7siS5fIKFQKSIktGAPBGtHcUYUvK92D8Ms5pWlkh94f3qK2aqrlL/fx2gKg2e5y4JX5vL6H3meqZfs0T+qBfhYF6IwLXAc2yiH2ZVwXMNxw9i4MYTWPClrE30CE3rJC1vKo48PXyklUpzgdH9QKrT00= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864844; c=relaxed/simple; bh=+cYea2v2/BKOer4KwV/CVWAJy8hOJfQVFafipAC2J+w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cMAhLhgIyAeJhwxsWjZxizcsM5yu9HzRTYBXWgyf7KEzMUmPcNLvlNQ01S2iSv8VPokYjmMk2a2sw7ySDc8co8FvEdmGu0bTDngj8HFii79/S39XkZ9h5sO2sFllN0PsccSW8wHyVkiEiqoaj7npMOZqROXvlOrkXx56pe6EirU= 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=OspmlzIS; arc=none smtp.client-ip=209.85.167.49 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="OspmlzIS" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-512f892500cso6434262e87.3 for ; Tue, 19 Mar 2024 09:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864840; x=1711469640; 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=pUJrKx7MvU52NeuXQ9HrJ3rBR5Q/85XuQI/RS6YMzDI=; b=OspmlzISMuWHs4p42TRJ3E/HM6ee+aHOLsfCTHcrsmFoIZ9z1NDRZfhiQHZvONh96g nqXcujlfTzZZGyThqak4MJH6Ht4DBVE1Y6A1PVpICPdGyEYqXqy1MD1ZQXUhLW9OIPL0 Pwp9nSb46AS3s8ka0upRjTAvGe66TZygC+tHXCo6ymZ5o9/ZJdamQvDArxdriFkRVil8 HJh9c0yUuEIxtJoZYOFWpnvltj+vJmaqgia03G9St4c8IlPI66ToCPfyZDTM2XbwrpkZ 0bWg9YY3d3fTzHFRZda90m8j+MkRK4Nj9tA5/NncEmdoywJz4LMAsfCsn1/naT5dLwx4 LAHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864840; x=1711469640; 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=pUJrKx7MvU52NeuXQ9HrJ3rBR5Q/85XuQI/RS6YMzDI=; b=Q1w+A0L7YAVYs0ZH/5flkCdXQY1ClLTeun1xBjJ8Bf+arb9vQf4V4OfjLYXK5RoDiV NCpObrVlkOZ4lSsLnSIJ/U3ojrYgSvZ9ENghZK+n66j7O1kyJmMRwkIbjeyr9rh1Jh80 E8qqa6DP2w3/2FK3rr/nwIWc8u3ZJE5NbcQ+H8b0tLgZe+LnnDS0WQs6Qr/deDNozGlD rJSVhesYPcSmpM5G2tirfuDNfU2Ivl6xl+bbVmigrhmuqGFOLH9meE4qSl3k3Oxokyev jzCtjYB97kTQHyZb8A2qLGOrUACCXTcA9M5rr3GYEG6iP9C6tbdTUGTb96GbPM54UYGB ojUg== X-Gm-Message-State: AOJu0YwMjHBrZu8R+IcUBqpPm5lbTrf55YW4662dFw2vVkVAK23uFl8h Jq/o+Nomu4Wjiqf4dwxqNn9Q4mbDd7xOr9dqUc3vSJL9iVzzcsTxn0/V819RFc8= X-Google-Smtp-Source: AGHT+IFGB1DWsnd12ElEbbIWQkgaeOW+F0Ihm5OZyQWwWoNxHzRzknGdE4iOkTj+o5szx6CpaZJqIA== X-Received: by 2002:a19:e004:0:b0:513:ca40:fafc with SMTP id x4-20020a19e004000000b00513ca40fafcmr8242229lfg.11.1710864839740; Tue, 19 Mar 2024 09:13:59 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:13:59 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:50 +0100 Subject: [PATCH 20/31] arm64: dts: qcom: sdm660-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-20-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/pm660.dtsi | 3 --- arch/arm64/boot/dts/qcom/pm660l.dtsi | 3 --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 27 --------------------------- 3 files changed, 33 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm660.dtsi b/arch/arm64/boot/dts/qcom/pm660.dtsi index 98dc04962fe3..24efd1bf271c 100644 --- a/arch/arm64/boot/dts/qcom/pm660.dtsi +++ b/arch/arm64/boot/dts/qcom/pm660.dtsi @@ -12,9 +12,6 @@ / { thermal-zones { pm660-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&pm660_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm660l.dtsi b/arch/arm64/boot/dts/qcom/pm660l.dtsi index 6fdbf507c262..46165a2a3694 100644 --- a/arch/arm64/boot/dts/qcom/pm660l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm660l.dtsi @@ -12,9 +12,6 @@ / { thermal-zones { pm660l-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&pm660l_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index f5921b80ef94..9851bc73222b 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -2421,9 +2421,6 @@ sound: sound { thermal-zones { aoss-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 0>; trips { @@ -2436,9 +2433,6 @@ aoss_alert0: trip-point0 { }; cpuss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 1>; trips { @@ -2451,9 +2445,6 @@ cpuss0_alert0: trip-point0 { }; cpuss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 2>; trips { @@ -2466,9 +2457,6 @@ cpuss1_alert0: trip-point0 { }; cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 3>; trips { @@ -2487,9 +2475,6 @@ cpu0_crit: cpu-crit { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 4>; trips { @@ -2508,9 +2493,6 @@ cpu1_crit: cpu-crit { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 5>; trips { @@ -2529,9 +2511,6 @@ cpu2_crit: cpu-crit { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 6>; trips { @@ -2556,9 +2535,6 @@ cpu3_crit: cpu-crit { */ pwr-cluster-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 7>; trips { @@ -2577,9 +2553,6 @@ pwr_cluster_crit: cpu-crit { }; gpu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens 8>; cooling-maps { From patchwork Tue Mar 19 16:13:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596869 Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (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 9373A85947 for ; Tue, 19 Mar 2024 16:14:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864845; cv=none; b=JEDxfPP8ypdN+AiDhllMutpVU250FrbDG+5goO5d2+iQPcCrB2brpwItIm0lp9Y6VLfwDxG55LdJYtWcsUO1sbMwyivC91SYZ9FoV6Ilw78vgd62XmgW1ijhE+zcG8fMn3SxaQ2uv21iYr1ZGaSCvweidA60bJRICOJeqvE4588= 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.169 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="y4mtqUeL" Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2d48d75ab70so61417841fa.0 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=kx/u9Y3LsieHKzN/kkQCOP6v6UYysk6GJ9SaooKE4uXPKXTaqgJ4NAtoHaWRJyQPiY 1gfgzJkWtou3WJWWOa6Cp1UtXgyCkGwkYltl/nmukb67u9xbjvLu18zdRhw4k3yteijE FyiuOj0u84txcr4xL3m0NAdw/Vqx3ice1A4VhBzDW15oW3EmtpRFzgn/FLN49Jmg6y6o 7phMk1LqLoZ3Ra0Pjc2Nzz3ythcoTV1yyBJX/EBFfKFjXNv0WbLdECcAidXK+pN9xYpN 2+uZW2vVHHSjJmhBoDAbsVkMv40Eb1vr+zCCPgVSAZbX4nC9FPZ1VXaY1R89XzlB6aNV Ck5g== X-Gm-Message-State: AOJu0YxD0wtwSp3SodMOJ/dtcg5a5xLFok+fGBBcwsNje62QGFkegwNP cGFvoY6mWPxDJhmX6VJKf9pz+KLirMQ5WvOC3pZ6/hF2kVOL1wBLVXB5cnnGJ0U= X-Google-Smtp-Source: AGHT+IGdWTnHvARXaD6ICYKtFfWMnupgF0nxAalA1wwRz5vssMQi9UGRXeacXHNYh3C+RKrjNRFOUQ== 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 { From patchwork Tue Mar 19 16:13:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596870 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.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 8F13684A51 for ; Tue, 19 Mar 2024 16:14:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864846; cv=none; b=hjrV9Hbb/AKm3Q9tbKXJS/4CwVkkHaxqAlXn0N1OI1hpZHWMYsmOLZB1EEgFLDy/E7/HVnygbQe7yEszug7/HwjdfqJHfRDubeyy91b6Rjzu9srj8BjUF2fk58Vn/DXRHCsHYAtibQTQOfNs80jVQwAMweXv8fcivhnHhTD1qic= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864846; c=relaxed/simple; bh=pA4U1gIpuSng0p4EvRgnsn4OXJOXp+4JRJ7zOeQmvfo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d9bAdPX8yGsfcamUIvJWjhPkdba6YBocunoS4Z9v1v5CeFeE+A1cOUpNMHJbA6QRA8XbNsBJOHk0xkOuWUPZDFAyB5grP8PLWuSnb3ftn0LqEvA5LVWvFCWKERBPwy4M98feWWzFxi7ezH4j7ngj1z5AWyDdV/r1XcuJV8KedBo= 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=qZPtC86W; arc=none smtp.client-ip=209.85.167.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qZPtC86W" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-514ba4e5640so1069947e87.1 for ; Tue, 19 Mar 2024 09:14:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864842; x=1711469642; 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=OfcVMpSrriu/CCewjQNWQl8ouwgswOI0990n8OUQStQ=; b=qZPtC86Wt3w/sVLHwMIWWg7BIIP4GKA6xp/Cn5ellroR9rkRMeJBUCwpQxQqp9yo98 Gc/pXF1r2+CWLlNHNcaQXZra1X29fvSbLh1XhkocVOCGF0kif6lS/8KELBXomQGwzeAu rGkAH0oCdKiNKdgKz0Ho9xAv2eVxT4ulk425Q9ky6ano7DhVTzD8LTd2Bp5PWpMOm11s tGkk0aAVWmDhn1QUAehUdDMB0YrPnDOMgojdiFsuwzl0Us/Rr+RZDVCYp5dHuAsKmAtk w/czXs7WRT9aLTtZZxPcNU7X8mNSloA6TJxTlUvXmx7yxb2pY5k8I5ZxPhNgmwoxqROP z3/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864842; x=1711469642; 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=OfcVMpSrriu/CCewjQNWQl8ouwgswOI0990n8OUQStQ=; b=o3WLrkJvDBp7zgrEPPo20BsT/tvcE90a1SuIcRL/zSfWNqvsnkzKkPYaYgef56GEu1 MwwOfARH+K9yvYI4wub22lKliILMHNHxLBzjl5n4WDM5MUvu9gMOa0hw7CIoJewPnmhD U6h6K0NSDlvpGwGXSRxzANPLOMA9MtvFKflnc3K+lok1D8DjIavUp3hdQ/k5T6O2rdpm 1zmdEZQARY5GOBH0u99Gwo5WiGhNOAvEex1ydLZLbYb24nliLYI8FkgjWebPGvLxPPRc gB4+0z9Zew/fiVU4gWgzpx0Hy02G4clWa6inIlSIxDMT9e7eYWEk541Yy//ffx2mcmdr hDqw== X-Gm-Message-State: AOJu0YzsUEqCkowEMTdhS4RxsJCx2DSP9AukDCoNMOiAVI9pc24bZbDz v5phSpTOOsHKLvisCz2BK3b/HnAUJIqF5sGEFNFE/TpY2Pv1fsReZ6K20XOKEW0= X-Google-Smtp-Source: AGHT+IHX5iO3JUm8aTHh0lFyZbl4/yCiMz7XlUvrkC+8Ii2tRHFdbWywW9GwgMHPSMqebNS2pXg0Zw== X-Received: by 2002:a05:6512:32a8:b0:513:dfac:b29e with SMTP id q8-20020a05651232a800b00513dfacb29emr1185145lfe.26.1710864841772; Tue, 19 Mar 2024 09:14:01 -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.14.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:01 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:52 +0100 Subject: [PATCH 22/31] arm64: dts: qcom: sm6115-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-22-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/pmi632.dtsi | 3 --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 32 -------------------------------- 2 files changed, 35 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pmi632.dtsi b/arch/arm64/boot/dts/qcom/pmi632.dtsi index 94d53b1cf6c8..e1658993d6c1 100644 --- a/arch/arm64/boot/dts/qcom/pmi632.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi632.dtsi @@ -10,9 +10,6 @@ / { thermal-zones { pmi632-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pmi632_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index aca0a87092e4..0a0bb5310849 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -3011,8 +3011,6 @@ cpufreq_hw: cpufreq@f521000 { thermal-zones { mapss-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 0>; trips { @@ -3031,8 +3029,6 @@ trip-point1 { }; cdsp-hvx-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 1>; trips { @@ -3051,8 +3047,6 @@ trip-point1 { }; wlan-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 2>; trips { @@ -3071,8 +3065,6 @@ trip-point1 { }; camera-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 3>; trips { @@ -3091,8 +3083,6 @@ trip-point1 { }; video-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 4>; trips { @@ -3111,8 +3101,6 @@ trip-point1 { }; modem1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 5>; trips { @@ -3131,8 +3119,6 @@ trip-point1 { }; cpu4-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 6>; trips { @@ -3157,8 +3143,6 @@ cpu4_crit: cpu-crit { }; cpu5-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 7>; trips { @@ -3183,8 +3167,6 @@ cpu5_crit: cpu-crit { }; cpu6-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 8>; trips { @@ -3209,8 +3191,6 @@ cpu6_crit: cpu-crit { }; cpu7-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 9>; trips { @@ -3235,8 +3215,6 @@ cpu7_crit: cpu-crit { }; cpu45-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 10>; trips { @@ -3261,8 +3239,6 @@ cpu45_crit: cpu-crit { }; cpu67-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 11>; trips { @@ -3287,8 +3263,6 @@ cpu67_crit: cpu-crit { }; cpu0123-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 12>; trips { @@ -3313,8 +3287,6 @@ cpu0123_crit: cpu-crit { }; modem0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 13>; trips { @@ -3333,8 +3305,6 @@ trip-point1 { }; display-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 14>; trips { @@ -3353,8 +3323,6 @@ trip-point1 { }; gpu-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 15>; cooling-maps { From patchwork Tue Mar 19 16:13:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596871 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 6651E86128 for ; Tue, 19 Mar 2024 16:14:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864846; cv=none; b=Tvs20CG83c+kTpqQjGj1h9oHKy2SfmUdAK+botO/5irJdtWFeAsh93wpzrgWwTkIpH/9dIQk0v6+eMvYlHzMGryLq5HpZKX/5uJqLcRoeKEqQmzhrLIQiQ1idH0luVwxvNMtjZDorMIP4wPHcsGNAsZPb226QOIXYV+WqfqgF6I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864846; c=relaxed/simple; bh=T0AMd595+W1sDBZ4qDqfxuerOD3YhbiZuI1wj+Egzv0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KB8U0fOn3rvbn5UGxBT/4/7edc/vA5hg3Q1F1YKvJi5zR2CmiomVOg6ldfnfsNTCogm+eFjX/Daq1cyYvvMC60nny2D612O1SRlAsACxs9Qsq/J3R5XGAmrXYVDdh+SLRLjUCeVIBxic1KAKjzUa0HhfiEZBEbSKJPiaG6h30zM= 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=toAw4Bzm; arc=none smtp.client-ip=209.85.167.48 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="toAw4Bzm" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-512e4f4e463so6489627e87.1 for ; Tue, 19 Mar 2024 09:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864842; x=1711469642; 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=SFUKOQmXWTLWdjtaov2aUjztp6b4X+go7eRh8s9UnHk=; b=toAw4BzmRm9eWWOKEWD8kBGc9D0w8hCgdRGRnhFIqKy5DtB6l8NjKobaI5aVIhIfM6 Sk+A4Azs4PR2DYGTrQeG6pYcGwv8yEt82JKv3sUcS1p3/ZHlBMp4R/tUHsNpRdT28RpW y0uKNk1cWvFGG+2p+3GodUeN+pG8fz/DAmZE0lqIr7J6gfrJN+8qh+1xfN2M/90zKbPY y3/Wv0ajb6RmCoiOqWv8yJfiNkHbDTSCnWENxpQwk2Alf6R5XmOaoFjJMquKhJgykAjE dsQyvW/T5gFduq4FdDWkpkHE729y59INzr3SILh+6eu54e8NwhFVvlc2n7ynilwtSQ/P eOpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864842; x=1711469642; 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=SFUKOQmXWTLWdjtaov2aUjztp6b4X+go7eRh8s9UnHk=; b=MniHhF5w8FR127P5B8HBBCPNPHdEr+fS6HR51EU2lV73lc9omWRciv39TIljL6Pzj5 OTHYOM3euP+2ryl7lzS+1tR9H7szOAXIVo3031IokquqS0u4rlFyOIwDNZ1Dod8cTKHh TWlsApucbLcHynpEXxHye2r53aHOInSPHDrIABIHy2j9TZ3FJomg4Tz/oPbsHFwfxrvM YmTLv4SdmsKntRWtwxYyt9ZNTXVTqnd2Qch8wtZ8I+YGaLzywaTvNoL046pzIHb/oLi4 RRJbBpBVG5UiH0kAJMsulyDa/0lQAV1BLyEnfP+NNc95QfMISTAHFiMQbb2thpFjuRn5 hC4Q== X-Gm-Message-State: AOJu0Yxjj9I0DhBlX2C7C3A50KCzHMg30tzPe8qx5PgrrLJ6rVG5x7gw NioMDZCoyJ9HvRWQ8gerByoL3Mr4Gs2/Bfvb9FffsmAZ70sqiFMNpopMD02oeYI= X-Google-Smtp-Source: AGHT+IEvECGMkclgL7HfDaZoY+kI+4AjXLi+FOv4w3hDzPRZ/xHz5uLc5WHnzIsltONPG4EerYCTUQ== X-Received: by 2002:a05:6512:280d:b0:513:dd43:a153 with SMTP id cf13-20020a056512280d00b00513dd43a153mr10968746lfb.59.1710864842687; Tue, 19 Mar 2024 09:14:02 -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.14.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:02 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:53 +0100 Subject: [PATCH 23/31] arm64: dts: qcom: sm6125-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-23-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/pm6125.dtsi | 3 --- arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts | 8 -------- arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts | 6 ------ 3 files changed, 17 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm6125.dtsi b/arch/arm64/boot/dts/qcom/pm6125.dtsi index 99369a0cdb61..b92f357511de 100644 --- a/arch/arm64/boot/dts/qcom/pm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6125.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm6125-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm6125_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts b/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts index 08046f866f60..dcd05f303b78 100644 --- a/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts +++ b/arch/arm64/boot/dts/qcom/sm6125-sony-xperia-seine-pdx201.dts @@ -90,8 +90,6 @@ cmdline_mem: memory@ffd00000 { thermal-zones { rf-pa0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm6125_adc_tm 0>; trips { @@ -104,8 +102,6 @@ active-config0 { }; quiet-thermal { - polling-delay-passive = <0>; - polling-delay = <5000>; thermal-sensors = <&pm6125_adc_tm 1>; trips { @@ -118,8 +114,6 @@ active-config0 { }; xo-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm6125_adc_tm 2>; trips { @@ -132,8 +126,6 @@ active-config0 { }; rf-pa1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm6125_adc_tm 3>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts index a49d3ebb1931..994fb0412fcb 100644 --- a/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts +++ b/arch/arm64/boot/dts/qcom/sm6125-xiaomi-laurel-sprout.dts @@ -84,8 +84,6 @@ key-volume-up { thermal-zones { rf-pa0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm6125_adc_tm 0>; trips { @@ -98,8 +96,6 @@ active-config0 { }; quiet-thermal { - polling-delay-passive = <0>; - polling-delay = <5000>; thermal-sensors = <&pm6125_adc_tm 1>; trips { @@ -112,8 +108,6 @@ active-config0 { }; xo-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm6125_adc_tm 2>; trips { From patchwork Tue Mar 19 16:13:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596872 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 6D7F186250 for ; Tue, 19 Mar 2024 16:14:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864848; cv=none; b=Ww0UwNZYo9eKGlAIaRGugSosBJcaWwDU3Fr01GbPD+shHhQOipPZgR8kgL+TrONdjGtKAtP+CbRYG2cZ1hjFXpuBsuRn4e6h1L24Lq18iByc54jdRHgmO1qVRKzorTftt9nyAwHXp48dfgQ0utlWY8Ww8VSdGaNCaK++0o+ckW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864848; c=relaxed/simple; bh=4ryAGqAK+Fc9WQiOXMMu5C5xniMZ51oUjQTqDkBykkk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cJ4S5NXLHo5xifFkN1Lz6izSciEWauXUw/N2Jlob3IfiJXXQF3QzHUemBw21fslJo+Lj/d7qq4kVBhVGPsz7ZAiYIA6NN5MZde3WNdCB/VzJ1N6/oi2fMmr6GNyrqLdTNvotDwarFS9WQ1b3ZLPrOffdinrjPiv4/NEY7ooK7jc= 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=bvv2rGAs; arc=none smtp.client-ip=209.85.167.54 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="bvv2rGAs" Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-513e89d0816so2952225e87.0 for ; Tue, 19 Mar 2024 09:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864843; x=1711469643; 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=3PB20iR2ZLd5oZ38PSb8fZdY49P29stRXGwMP2qRq3s=; b=bvv2rGAs9vwryhkR8xNTDxsXGv/ec5u+IHGiV2/p7NuJ5br18HKjPYhXb+CVYdWC8k Pv9zUjVWEOJpm0PQXBqTDS1DurbSwC4aMDrRCqSS+WcKmWgwENVGyp01xjnnZNx9BmdH k7t7fnz5RwOBG4l1DOxZfbtz4+Co2T524T9HCME1dWGtgwQTbR/2tFKFZgMh0RrXhQUY j1OZ1Q54u5jHYn1q5bZ3MXQjZF7LneORxvr3BHFfgngz+3TkqSIzecMJFA3zngsR32sI 2g+nJl1ZbyRNBLge7jM3CTALXNytb2GcVpguywjR0MV2WdXG6GaYRmNyDFiOnC07Kx2m ccNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864843; x=1711469643; 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=3PB20iR2ZLd5oZ38PSb8fZdY49P29stRXGwMP2qRq3s=; b=fMPZvvvlQ0jLa7JdtrGsAwYj/2kCbDxIluuhTUGF+YFwwPb4dvIDDHIeGikMpNJtGu kOq9j8/FZy2VNMk35kNNIzc7Vx8j/itASVjRfihWiK8LxLRdW9jW5xtP8Itzm1CnOVpz FmSm5rrMTBOz9iLCcfosWLXh/G4OqzFeCgaIol5wN2Uvxa2occoUDQp5gDPVtlaZv2Sh XEgWJpZx7qPRE7Y0WOcjqeEG1O7+4NI1otFLzcqdMXuB9HtA52WM++PXSDT7bnyB0/5a aCUrhu2iEdy1funDIbabaqqdp0KpDiMR19aQIgUHbBRqtA1an7einW5VhKcxWbZXtEON WGVQ== X-Gm-Message-State: AOJu0Yy+xZSuT+UE/rbmRLs4BIsA29cq8lJNU4CwOxdpzPFB2HvuTH+A 6pZTgGWhJII3CsVXPAJke5AJgC65e/dw0v2ksF5Us9nbWf+CmpCLKyrPeJFog13OB3dtt5fM82n TApg= X-Google-Smtp-Source: AGHT+IH3bRQUCVmN1BX9wv+eReCSwFOq2pBH7CsQE1yZ1QIXXi7x2ZnCWDJJdrRzAjna6LFGhwiUAg== X-Received: by 2002:ac2:4474:0:b0:513:c2ba:edaf with SMTP id y20-20020ac24474000000b00513c2baedafmr2053915lfl.20.1710864843696; Tue, 19 Mar 2024 09:14:03 -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.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:03 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:54 +0100 Subject: [PATCH 24/31] arm64: dts: qcom: sm6350-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-24-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/pm6350.dtsi | 3 - arch/arm64/boot/dts/qcom/sm6350.dtsi | 81 ----------------------- arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 4 -- 3 files changed, 88 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm6350.dtsi b/arch/arm64/boot/dts/qcom/pm6350.dtsi index 3a2a841e83f1..be118da8838b 100644 --- a/arch/arm64/boot/dts/qcom/pm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/pm6350.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm6350-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm6350_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 24bcec3366ef..da17057028af 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -2712,9 +2712,6 @@ wifi: wifi@18800000 { thermal-zones { aoss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 0>; trips { @@ -2727,9 +2724,6 @@ aoss0-crit { }; aoss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 0>; trips { @@ -2742,9 +2736,6 @@ aoss1-crit { }; audio-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 2>; trips { @@ -2757,9 +2748,6 @@ audio-crit { }; camera-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 5>; trips { @@ -2772,9 +2760,6 @@ camera-crit { }; cpu0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 1>; trips { @@ -2800,9 +2785,6 @@ map0 { }; cpu1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 2>; trips { @@ -2828,9 +2810,6 @@ map0 { }; cpu2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 3>; trips { @@ -2856,9 +2835,6 @@ map0 { }; cpu3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 4>; trips { @@ -2884,9 +2860,6 @@ map0 { }; cpu4-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 5>; trips { @@ -2912,9 +2885,6 @@ map0 { }; cpu5-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 6>; trips { @@ -2940,9 +2910,6 @@ map0 { }; cpu6-left-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 9>; trips { @@ -2968,9 +2935,6 @@ map0 { }; cpu6-right-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 10>; trips { @@ -2996,9 +2960,6 @@ map0 { }; cpu7-left-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 11>; trips { @@ -3024,9 +2985,6 @@ map0 { }; cpu7-right-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 12>; trips { @@ -3052,9 +3010,6 @@ map0 { }; cpuss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 7>; trips { @@ -3067,9 +3022,6 @@ cpuss0-crit { }; cpuss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 8>; trips { @@ -3082,9 +3034,6 @@ cpuss1-crit { }; cwlan-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 1>; trips { @@ -3097,9 +3046,6 @@ cwlan-crit { }; ddr-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 3>; trips { @@ -3112,9 +3058,6 @@ ddr-crit { }; gpuss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 13>; trips { @@ -3140,9 +3083,6 @@ map0 { }; gpuss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 14>; trips { @@ -3168,9 +3108,6 @@ map0 { }; modem-core0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 6>; trips { @@ -3183,9 +3120,6 @@ modem-core0-crit { }; modem-core1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 7>; trips { @@ -3198,9 +3132,6 @@ modem-core1-crit { }; modem-scl-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 9>; trips { @@ -3213,9 +3144,6 @@ modem-scl-crit { }; modem-vec-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 8>; trips { @@ -3228,9 +3156,6 @@ modem-vec-crit { }; npu-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 10>; trips { @@ -3243,9 +3168,6 @@ npu-crit { }; q6-hvx-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 4>; trips { @@ -3258,9 +3180,6 @@ q6-hvx-crit { }; video-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 11>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts index bc67e8c1fe4d..c50fa7f3a5fd 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -94,8 +94,6 @@ memory@efe01000 { thermal-zones { chg-skin-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm7250b_adc_tm 0>; trips { @@ -108,8 +106,6 @@ active-config0 { }; conn-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm7250b_adc_tm 1>; trips { From patchwork Tue Mar 19 16:13:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596873 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 9BC878627C for ; Tue, 19 Mar 2024 16:14:06 +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=1710864849; cv=none; b=W+T/0UniWw7+rcZ0INRxVz7DLfqfwxp+H77FCn3cLRFtbqzDgt4C+4snwS7VHX8lw6vr3PylDTDpzIfq7MIsZ6Tqo6lIzvdL2bh+j6GN6I7M7C2xJN0i4Sg48aJSRtiH+nyIuL8GbDCs3/P/Sv5E/VoURw8DKOnvGQeN/zIRl6w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864849; c=relaxed/simple; bh=+x3S1GOyxWB2Z2s6XmbdEQtu2mW213BCuZcfP0oLFQQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VGEanq6fwEorXew3gRqzr2jrTqQDHrq0AA89iUNpFtZOVtZlfsOCSaWgPYqFI5xTl9DTSIDIpAlJC5c2SCsd0Jd7f78Kl0YI2cGmZTs1YJPHIZFXwtpfCWgqbsUqvdZdcP1aztR+lzyE5ywBegOgFdUArhWHgk/G32hlRdLK3F4= 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=y84bVfN1; 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="y84bVfN1" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-513e6777af4so4510400e87.2 for ; Tue, 19 Mar 2024 09:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864844; x=1711469644; 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=OW+eeLA6maKWkhRGMwKQSoYuxmPlvkorttyO5LKS3ac=; b=y84bVfN1WAih+eD5CRB8thGR/2uKVtbGtpo1HzEWMnjB/X6kNngzY6JGOQlriJXDqL f/IrT+5dS8A0Yv5EtOpxD7mBMS7N3WHpO3Zmzkpk/06Y0WxsVWqIeujSC4QVa6u6f8Dq X2pOtdXMHAhuFZOCJ3WSkw6zgxTBuXw8YwBwr/EM4YADKaxEokfM8rvrzRuzsKTuii01 ajAtUFLSMastHLbrwNkKpf7OIsa/GA8Mk6KZ1x++uQMoMYP97Ke1ZLgzwMNW7CSnwlhV VULFaOTjcmXt0qQk8khHYhYWTO5UMb5iOcNF5/aXDD7OMUas26kFYfqorVwRABChlwUK KH/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864844; x=1711469644; 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=OW+eeLA6maKWkhRGMwKQSoYuxmPlvkorttyO5LKS3ac=; b=EIujR/ZC5cATy3y42iP6Sn7T72fwVd/k2RKWUJ/Tmwza5nzdViSibm+YZvut3H1zVc Egox/RURLGb/5MTWj0k0+PL0s0S9vEi8apzDt1g2jz3M2apQw0B9pcgBj3ihafHIqqJI 9t6xNRQZmXE3SKuSOVFBFv3WeA4UNaNz3uDNhLUJG/tOgBHGbn5PMo90OpAao17gi26O RwJByBQcoUNCtovpdsYfq2YPdrjYIPu14L83nT0EmOhFerbvIEjyQU3YNfzr6rlaFdeW 3HSJPigFSJJrVHNAT9FS751TVTl+cC1MMfaxXDoizkpD/NbAT26/ET0zEIf94kQY/YnF Uj5w== X-Gm-Message-State: AOJu0YyDg1w9IimvczClqQgYa8LvI2W4cZWIvP2k5FP3ULfKWpy0E2fP eQ+hL1R/VMMQPmwN69tLf7AHpzRpFiR82PceW3q0rronZJq1lmHvzzRC2F6q0vY= X-Google-Smtp-Source: AGHT+IGNJp5+cs35sQnDjBJluajP3H20zhUEfI4pfVkeHkaX8IUlnm7VzXT9bg1O1prVdJBPhrEr2w== X-Received: by 2002:ac2:4d9a:0:b0:513:d82a:8d3a with SMTP id g26-20020ac24d9a000000b00513d82a8d3amr8250521lfe.35.1710864844739; Tue, 19 Mar 2024 09:14:04 -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.14.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:04 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:55 +0100 Subject: [PATCH 25/31] arm64: dts: qcom: sm6375-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-25-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/sm6375.dtsi | 78 ------------------------------------ 1 file changed, 78 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6375.dtsi b/arch/arm64/boot/dts/qcom/sm6375.dtsi index 4386f8a9c636..16880789f071 100644 --- a/arch/arm64/boot/dts/qcom/sm6375.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6375.dtsi @@ -1837,9 +1837,6 @@ cpufreq_hw: cpufreq@fd91000 { thermal-zones { mapss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 0>; trips { @@ -1864,9 +1861,6 @@ mapss0_crit: mapss-crit { }; cpu0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 1>; trips { @@ -1891,9 +1885,6 @@ cpu0_crit: cpu-crit { }; cpu1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 2>; trips { @@ -1918,9 +1909,6 @@ cpu1_crit: cpu-crit { }; cpu2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 3>; trips { @@ -1945,9 +1933,6 @@ cpu2_crit: cpu-crit { }; cpu3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 4>; trips { @@ -1972,9 +1957,6 @@ cpu3_crit: cpu-crit { }; cpu4-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 5>; trips { @@ -1999,9 +1981,6 @@ cpu4_crit: cpu-crit { }; cpu5-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 6>; trips { @@ -2026,9 +2005,6 @@ cpu5_crit: cpu-crit { }; cluster0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 7>; trips { @@ -2053,9 +2029,6 @@ cluster0_crit: cpu-crit { }; cluster1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 8>; trips { @@ -2080,9 +2053,6 @@ cluster1_crit: cpu-crit { }; cpu6-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 9>; trips { @@ -2107,9 +2077,6 @@ cpu6_crit: cpu-crit { }; cpu7-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 10>; trips { @@ -2134,9 +2101,6 @@ cpu7_crit: cpu-crit { }; cpu-unk0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 11>; trips { @@ -2161,9 +2125,6 @@ cpu_unk0_crit: cpu-crit { }; cpu-unk1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 12>; trips { @@ -2188,9 +2149,6 @@ cpu_unk1_crit: cpu-crit { }; gpuss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 13>; trips { @@ -2215,9 +2173,6 @@ gpuss0_crit: gpu-crit { }; gpuss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens0 14>; trips { @@ -2242,9 +2197,6 @@ gpuss1_crit: gpu-crit { }; mapss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 0>; trips { @@ -2269,9 +2221,6 @@ mapss1_crit: mapss-crit { }; cwlan-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 1>; trips { @@ -2296,9 +2245,6 @@ cwlan_crit: cwlan-crit { }; audio-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 2>; trips { @@ -2323,9 +2269,6 @@ audio_crit: audio-crit { }; ddr-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 3>; trips { @@ -2350,9 +2293,6 @@ ddr_crit: ddr-crit { }; q6hvx-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 4>; trips { @@ -2377,9 +2317,6 @@ q6hvx_crit: q6hvx-crit { }; camera-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 5>; trips { @@ -2404,9 +2341,6 @@ camera_crit: camera-crit { }; mdm-core0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 6>; trips { @@ -2431,9 +2365,6 @@ mdm_core0_crit: mdm-core0-crit { }; mdm-core1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 7>; trips { @@ -2458,9 +2389,6 @@ mdm_core1_crit: mdm-core1-crit { }; mdm-vec-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 8>; trips { @@ -2485,9 +2413,6 @@ mdm_vec_crit: mdm-vec-crit { }; msm-scl-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 9>; trips { @@ -2512,9 +2437,6 @@ msm_scl_crit: msm-scl-crit { }; video-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-sensors = <&tsens1 10>; trips { From patchwork Tue Mar 19 16:13:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596874 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 9C00386128 for ; Tue, 19 Mar 2024 16:14:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864850; cv=none; b=rU0IgUAXX2v0vR5mK4hofsXwtpEL5xaoLzzgQH72QrQf6vAsSXTIUV/s8sxQdTm86eERIuuhVEMesu9P228/Jq/Qab6SfsrVCUQ3wpI6BPwWZf+DijAw/0fT8/liZ837i99CNyiaUbYQupCG8rI8fVFgD8sUckVLpFXmDJwSNEs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864850; c=relaxed/simple; bh=SYRIPcVRg8wtEwy9lilxy1VuVa/JKKP+USyQ4up8dqM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gxNmjukZV4uC1PItLjY6R2YjK/IsdJW9jpBcQGQBCM8RhxlsL4Q4/Ng5eiReuHoOIg4eGc5d/5pkVT2SFfzzDmFhCxGhOlBSwiuJQTtaNK5Q6fMA0SBV+g3RnPjxQxWUR7oC+ib+otMu/49UlRQFyQsRW9j4bcv2ZlIS6Z0xink= 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=W/tmVSIS; arc=none smtp.client-ip=209.85.167.49 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="W/tmVSIS" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-513d4559fb4so6996654e87.3 for ; Tue, 19 Mar 2024 09:14:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864845; x=1711469645; 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=a30QI+q8MIR9amoxAl6v28Tm8Ljq8wSKHv73G7nTU8I=; b=W/tmVSISh3OdBVGhkvHSbIMkOYMsLjwSqq9H/yxhl48MUO3b2QWVwBpvZdOrMjWICj jufoIyj4dXYv572HNMTnOrCE/SElYt2jo3wlEIcUPCNqxNOP0c3elrizedi1sM8LH9nX IyYoHxMRoINq0ECb9ELv2ZYqB7WtSTULSMojtHGt1je2q/qDmbQVOBQhjz8CpOpP+L89 LpCp2jpgcmfZJZ957kL5lf5xiO8m0zFgGb7Xk4XsbUN4TaUT+tuoWL947wBgw2phw1dN v3feq7Y2OeyJC5BQgeXpFI43M7QZExNhmpEEGvoAznSG1MWL4wGZW8TrG/uhfuoAQufq sUpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864845; x=1711469645; 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=a30QI+q8MIR9amoxAl6v28Tm8Ljq8wSKHv73G7nTU8I=; b=f6TemZeToq1U4sSdO7LpnaFi+RSp8wUouwbC62rKhHRvoPZeWFhOytKZNPAFhqbyeo kLpd9stAzoZcFEvULoWKrdenoeh7yqoyc6XUQj6lQeTdZxCmcRbqjA+uyhC0eDIXlwO7 sTmd6qxIKjBtztezg/68W3yP8T09WMiJ5QMxFnyZ5oZw/zr3wBcVf5lSMk5vknEeDark S7vVZ1s2HRLMmk+9/nWkPiGimZ2Atpsnh2ZPV+x8imxgvpvmamvadiUYL8cqVb6sXLbm zd/mj1Tq74diPqrxeHXYELZDiUYg/ntVMQoOCEhe2fFLJ9qxYTPGyXo0Z8TpFhO4tT3S 0ACw== X-Gm-Message-State: AOJu0YwAKASU8cETatkdIsRPxYkRnoo27d9AjscxWnodUpMk20ovNdg1 Cubcz/Sd4s5NIYc1rGNf8TUF/y6WOzLHhC5cSQoqFP/apZ6OTBT7DORYJXsskK4= X-Google-Smtp-Source: AGHT+IGPBPNajx/uCmgHLtELEJ94O5c6E8RnencvMtahhFC3pBz4X9/JBADwYb4Aihhuo+1W2Tb9xQ== X-Received: by 2002:ac2:5206:0:b0:513:c25b:8fe with SMTP id a6-20020ac25206000000b00513c25b08femr2281462lfl.58.1710864845705; Tue, 19 Mar 2024 09:14:05 -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.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:05 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:56 +0100 Subject: [PATCH 26/31] arm64: dts: qcom: sm8150-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-26-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/pm8150.dtsi | 3 -- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 3 -- arch/arm64/boot/dts/qcom/pm8150l.dtsi | 3 -- arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi | 3 -- arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi | 3 -- arch/arm64/boot/dts/qcom/sm8150.dtsi | 84 ------------------------------- 6 files changed, 99 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8150.dtsi b/arch/arm64/boot/dts/qcom/pm8150.dtsi index 3ba3ba5d8fce..72343fc80a47 100644 --- a/arch/arm64/boot/dts/qcom/pm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150.dtsi @@ -12,9 +12,6 @@ / { thermal-zones { pm8150-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8150_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8150b.dtsi b/arch/arm64/boot/dts/qcom/pm8150b.dtsi index 1aee3270ce7b..f75e9817de85 100644 --- a/arch/arm64/boot/dts/qcom/pm8150b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150b.dtsi @@ -11,9 +11,6 @@ / { thermal-zones { pm8150b-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8150b_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8150l.dtsi b/arch/arm64/boot/dts/qcom/pm8150l.dtsi index ac08a09c64c2..b9e0c8af5c48 100644 --- a/arch/arm64/boot/dts/qcom/pm8150l.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8150l.dtsi @@ -11,9 +11,6 @@ / { thermal-zones { pm8150l-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8150l_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi b/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi index dbd4b91dfe06..a25927eba785 100644 --- a/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi +++ b/arch/arm64/boot/dts/qcom/pmm8155au_1.dtsi @@ -11,9 +11,6 @@ / { thermal-zones { pmm8155au-1-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pmm8155au_1_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi b/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi index 1cee20ac2c9c..6c370d0e4938 100644 --- a/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi +++ b/arch/arm64/boot/dts/qcom/pmm8155au_2.dtsi @@ -10,9 +10,6 @@ / { thermal-zones { pmm8155au-2-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pmm8155au_2_temp>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index a35c0852b5a1..a2ee7bfe03e1 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -4556,9 +4556,6 @@ timer { thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 1>; trips { @@ -4600,9 +4597,6 @@ map1 { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 2>; trips { @@ -4644,9 +4638,6 @@ map1 { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 3>; trips { @@ -4688,9 +4679,6 @@ map1 { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 4>; trips { @@ -4732,9 +4720,6 @@ map1 { }; cpu4-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 7>; trips { @@ -4776,9 +4761,6 @@ map1 { }; cpu5-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 8>; trips { @@ -4820,9 +4802,6 @@ map1 { }; cpu6-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 9>; trips { @@ -4864,9 +4843,6 @@ map1 { }; cpu7-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 10>; trips { @@ -4908,9 +4884,6 @@ map1 { }; cpu4-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 11>; trips { @@ -4952,9 +4925,6 @@ map1 { }; cpu5-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 12>; trips { @@ -4996,9 +4966,6 @@ map1 { }; cpu6-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 13>; trips { @@ -5040,9 +5007,6 @@ map1 { }; cpu7-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 14>; trips { @@ -5084,9 +5048,6 @@ map1 { }; aoss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 0>; trips { @@ -5099,9 +5060,6 @@ aoss0_alert0: trip-point0 { }; cluster0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 5>; trips { @@ -5119,9 +5077,6 @@ cluster0_crit: cluster0-crit { }; cluster1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 6>; trips { @@ -5139,9 +5094,6 @@ cluster1_crit: cluster1-crit { }; gpu-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 15>; cooling-maps { @@ -5161,9 +5113,6 @@ gpu_top_alert0: trip-point0 { }; aoss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 0>; trips { @@ -5176,9 +5125,6 @@ aoss1_alert0: trip-point0 { }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 1>; trips { @@ -5191,9 +5137,6 @@ wlan_alert0: trip-point0 { }; video-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 2>; trips { @@ -5206,9 +5149,6 @@ video_alert0: trip-point0 { }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 3>; trips { @@ -5221,9 +5161,6 @@ mem_alert0: trip-point0 { }; q6-hvx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 4>; trips { @@ -5236,9 +5173,6 @@ q6_hvx_alert0: trip-point0 { }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 5>; trips { @@ -5251,9 +5185,6 @@ camera_alert0: trip-point0 { }; compute-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 6>; trips { @@ -5266,9 +5197,6 @@ compute_alert0: trip-point0 { }; modem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 7>; trips { @@ -5281,9 +5209,6 @@ modem_alert0: trip-point0 { }; npu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 8>; trips { @@ -5296,9 +5221,6 @@ npu_alert0: trip-point0 { }; modem-vec-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 9>; trips { @@ -5311,9 +5233,6 @@ modem_vec_alert0: trip-point0 { }; modem-scl-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 10>; trips { @@ -5326,9 +5245,6 @@ modem_scl_alert0: trip-point0 { }; gpu-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 11>; cooling-maps { From patchwork Tue Mar 19 16:13:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596876 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 87CDC86AD2 for ; Tue, 19 Mar 2024 16:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864852; cv=none; b=rQK+AD6nlEABDUca1lDVA+d5jB9fPVaSQthQxzVi2LbGHeCMhXrnE6wjq4TUNmjlaWiCcTSmKyKQbOJjAzopaeASFVFPaYyawG5C4ow/i9vhByzeG+PXzzAybh8sGOhzm0HtyRbwEVmkmRNMxFd9HsODFjW4oChtfbA04tnNo+Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864852; c=relaxed/simple; bh=icuuXSqjatxpixxLqT1V6W9fC72HVgbLSz3h8APncwQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=uArc2/La3sU36eN+9i4ApYPl8uJzmpwcz84AnsEhjGKsVc7YyFvPhohRXPEgwjXV7hbhHkvEkHuHnAVXx9BVUlURj5ugfPMAgrn8dwgzkQ3xSREAYfVbmoPO+YBPYnht25QrbA07qzzWJW+3Is38Xc+REXpZyexLESQtt+JzEF8= 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=n6bpnMdn; arc=none smtp.client-ip=209.85.167.45 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="n6bpnMdn" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-512e4f4e463so6489718e87.1 for ; Tue, 19 Mar 2024 09:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864846; x=1711469646; 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=yTraggok76PURW3wh7p9AIEGOGIaFqWcV70ApHtUPps=; b=n6bpnMdnfeDsvGoE1r0YWSrOB3Mj2ZSDl/ArMo5adIRYdETYKuSQD+R87csVXIFYkM WkF9jKyetTnyz25VUN5XJEDmkNNGgu+O4ydS2N57TVReLzln69GugxBHuyRV0x5C6TT/ W7UiuGIbLkRWHi/Ey2m3FRYug9kPhpTu6dXYUI2BdFznfPmXs6QupEzCnDsiRXJq0pHd urhtYww2o9mZ4MSbxho3VVB0wPOk9rfFEPeygvJ/NKt0XCoPP2nYD47Ostnb0DhnkiRO fXo6V3RV8Rwttmxo7LDXe6mc4RETxQkyYiKKBfuU9/GtXwQ/09xtWMl+24pnaLWz8yq8 IkbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864846; x=1711469646; 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=yTraggok76PURW3wh7p9AIEGOGIaFqWcV70ApHtUPps=; b=QEk8XzkS/k0/WkmccL4xg9pmZXzZYk71CB+5Vr2jJ42xGB8Hu2fSu5+8hATaskfCQi ZqKOfO0MA4Y2eNuk/CBe4spw9t5DsQLLLgx+pMIqmCmZ77amBtlmx+DeK7uUoxBvlDol peWtk4wFzLv9JuX6bfUrLn7NIqpQgxu5JT+lfwrqv1ygRVE1/7iNj0EjU2PUn77rch97 h1+h3a/rFIyTkv0gONcGIrNAVeCaIBjGcJXfRWcN0BFA9MvaPPQt+yh4ay4ljvnGv+qA pIbCkzwAp/1TvXyYqOSjkjGadJFi3Vpb6g0e0IPwRd8SQuqU0s3W/meyzgX3rAJNd59v Q1JQ== X-Gm-Message-State: AOJu0YyHU6MukNVOGyHY0v6XzAgMGv90d97EWsJ93Tv+snFmBkpb6+C2 kDr1NmRfxi/zPBtca8OKaM/ADhXKi3pFMzQqSNFniLB5BPn5b4G9PZBWWb/8Wvg= X-Google-Smtp-Source: AGHT+IHbsJDRjHFQvm/ZDq0oQX0UJDG+6JCb+tgPHLTjbTVZij5uEhzqf3ObDNd12cpRfz/vEyH1CQ== X-Received: by 2002:a19:ca51:0:b0:513:5a7b:1093 with SMTP id h17-20020a19ca51000000b005135a7b1093mr10395007lfj.21.1710864846628; Tue, 19 Mar 2024 09:14:06 -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.14.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:06 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:57 +0100 Subject: [PATCH 27/31] arm64: dts: qcom: sm8250-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-27-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/qrb5165-rb5.dts | 10 ----- arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 14 ------ arch/arm64/boot/dts/qcom/sm8250.dtsi | 75 -------------------------------- 3 files changed, 99 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index cd0db4f31d4a..ce13fdfb0797 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -110,8 +110,6 @@ lt9611_3v3: lt9611-3v3 { thermal-zones { conn-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150b_adc_tm 0>; trips { @@ -124,8 +122,6 @@ active-config0 { }; pm8150l-pcb-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150l_adc_tm 1>; trips { @@ -138,8 +134,6 @@ active-config0 { }; skin-msm-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150l_adc_tm 0>; trips { @@ -152,8 +146,6 @@ active-config0 { }; wifi-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150_adc_tm 1>; trips { @@ -166,8 +158,6 @@ active-config0 { }; xo-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150_adc_tm 0>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts index 7ef99038cb37..21b2ca1def83 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts @@ -53,8 +53,6 @@ chosen { thermal-zones { camera-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150l_adc_tm 0>; trips { @@ -67,8 +65,6 @@ active-config0 { }; conn-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150b_adc_tm 0>; trips { @@ -81,8 +77,6 @@ active-config0 { }; mmw-pa1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150_adc_tm 2>; trips { @@ -95,8 +89,6 @@ active-config0 { }; mmw-pa2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150l_adc_tm 2>; trips { @@ -109,8 +101,6 @@ active-config0 { }; skin-msm-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150l_adc_tm 1>; trips { @@ -123,8 +113,6 @@ active-config0 { }; skin-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150_adc_tm 1>; trips { @@ -137,8 +125,6 @@ active-config0 { }; xo-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pm8150_adc_tm 0>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 39bd8f0eba1e..c8d4aaacb00a 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -6244,9 +6244,6 @@ timer { thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 1>; trips { @@ -6288,9 +6285,6 @@ map1 { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 2>; trips { @@ -6332,9 +6326,6 @@ map1 { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 3>; trips { @@ -6376,9 +6367,6 @@ map1 { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 4>; trips { @@ -6420,9 +6408,6 @@ map1 { }; cpu4-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 7>; trips { @@ -6464,9 +6449,6 @@ map1 { }; cpu5-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 8>; trips { @@ -6508,9 +6490,6 @@ map1 { }; cpu6-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 9>; trips { @@ -6552,9 +6531,6 @@ map1 { }; cpu7-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 10>; trips { @@ -6596,9 +6572,6 @@ map1 { }; cpu4-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 11>; trips { @@ -6640,9 +6613,6 @@ map1 { }; cpu5-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 12>; trips { @@ -6684,9 +6654,6 @@ map1 { }; cpu6-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 13>; trips { @@ -6728,9 +6695,6 @@ map1 { }; cpu7-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 14>; trips { @@ -6772,9 +6736,6 @@ map1 { }; aoss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 0>; trips { @@ -6787,9 +6748,6 @@ aoss0_alert0: trip-point0 { }; cluster0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 5>; trips { @@ -6807,9 +6765,6 @@ cluster0_crit: cluster0-crit { }; cluster1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 6>; trips { @@ -6827,9 +6782,6 @@ cluster1_crit: cluster1-crit { }; gpu-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 15>; cooling-maps { @@ -6849,9 +6801,6 @@ gpu_top_alert0: trip-point0 { }; aoss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 0>; trips { @@ -6864,9 +6813,6 @@ aoss1_alert0: trip-point0 { }; wlan-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 1>; trips { @@ -6879,9 +6825,6 @@ wlan_alert0: trip-point0 { }; video-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 2>; trips { @@ -6894,9 +6837,6 @@ video_alert0: trip-point0 { }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 3>; trips { @@ -6909,9 +6849,6 @@ mem_alert0: trip-point0 { }; q6-hvx-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 4>; trips { @@ -6924,9 +6861,6 @@ q6_hvx_alert0: trip-point0 { }; camera-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 5>; trips { @@ -6939,9 +6873,6 @@ camera_alert0: trip-point0 { }; compute-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 6>; trips { @@ -6954,9 +6885,6 @@ compute_alert0: trip-point0 { }; npu-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 7>; trips { @@ -6969,9 +6897,6 @@ npu_alert0: trip-point0 { }; gpu-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 8>; cooling-maps { From patchwork Tue Mar 19 16:13:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596875 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 55E5B823D8 for ; Tue, 19 Mar 2024 16:14:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864851; cv=none; b=eJzm70HKwur0CdFz8YWc8WhxtBCmdQa3S+pM3mFiB+Nk7QNWSrjQaqbbXdPrPQH0ZZpRcpV2GV7zexUoy5xEZ9ub+0FU2XaBjtadDJBLxR9dJjImRt/V30H7+6q1UvfdnH9NW7fnwjoj6WSqo8KSOPjXVKsfLpzfT8NveGx7AHI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864851; c=relaxed/simple; bh=bZwzKCPFP36K4ma9bczD6CPYa7x8uP/DtfKIjWU2Fc0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WZieyOmOgLQosOSdgIGBvJm9fVa3WgcBV20fYKTsK7q/xU6E+Y2HduIPDa8/WI1K30Eo/LdPwaM+uyC9xhNbWz0l2q/YjWJ/WvawadFr0lbWJvS1Bi2g+Lg3+VLo7aAgXS7PMPn/qitUMKk8TlzgHYCsz43lgBREZFLKxzSYi1w= 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=F/uHbJAK; arc=none smtp.client-ip=209.85.167.46 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="F/uHbJAK" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-513e4dd6ca4so11835e87.0 for ; Tue, 19 Mar 2024 09:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864847; x=1711469647; 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=ts1LMNcNLj/PrvfTQKo0ihyTi9/sKmL5uu9MIAZoRlc=; b=F/uHbJAKOWiaCj0CoG540/mTxtu4KvBMGtQV13wP6+mHZlBKfbv9TfBBjQQOH02Bnu 2hW+h35u5Q+gO641ennKZ4fUydyKh6N5akriU1Adp76q7BTvbxc3PcIJ9mBePhbt/8jb 6fyeeWrHPerT46gG0q/50lFSCSXHeERVG0z9v3wRIwnBu9JfRbgkJ4pTKk9ikj90HrDo df3d9erh6yUffQnRMj9Rn2F7QIwqNCoKtEDW97xb4+iU+67KmVt6UwJi70hGwGeBGm1S zGdnN92wjF2FveS0zsoW5HzSYyCbchIKlUGpuQdnwThfaLtg9VBo0S2ch+YNNOytQAjT NjHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864847; x=1711469647; 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=ts1LMNcNLj/PrvfTQKo0ihyTi9/sKmL5uu9MIAZoRlc=; b=WOd6jUahsA+rv4R9FFIE8nIDbbno/hi7aTsM8Grm/T74itvVUJVOCVeR2rML4MuT2y 6S9MjX2vUi5I47xiHSKr8LFH68AKkdA/JS1ZcRWfNif2Fqz6Wx2+3fIEGZK7QdewYTxd nVtRNYh6Jzzovv8W2eIqlnYZk6Nxu7NmhFVfIbhwha7E8KNt/aclWwmzoYvJ1jxJTrvW 48zGMx8/jonU/OlocXsPzFr/5QE8EDOq9jLOQKiahN/IxO3qoBlwXXAXU2BSLOVfp/qa CGsgzM0lnxYKGKGVJ/xeBM9cH9Hqpd3m7fFB9+bNzcCjeXrug4cDgRH+oK5YjM1Psj9N 0Vzw== X-Gm-Message-State: AOJu0Yy3CP1KjMxN1Ptmu+8H439lF7RXxigmGOytXiLYOdJwS45ze4wf NOrPrBD/ez0SOtx3HLwrvhDyJOmhAo768m59gkgV0/euVDiLJWptpJ8WQ/hOBro= X-Google-Smtp-Source: AGHT+IHJOtXiU8caDiHy8B47iUqFn8AMRgkM8k6dim/xM5Gp/GQTTCOJODaZ7aXGWjZ0REwEYj0JAg== X-Received: by 2002:a19:ca59:0:b0:513:d4fb:fa76 with SMTP id h25-20020a19ca59000000b00513d4fbfa76mr1229302lfj.3.1710864847623; Tue, 19 Mar 2024 09:14:07 -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.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:07 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:58 +0100 Subject: [PATCH 28/31] arm64: dts: qcom: sm8350-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-28-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/pm8350.dtsi | 2 - arch/arm64/boot/dts/qcom/pm8350b.dtsi | 2 - arch/arm64/boot/dts/qcom/pm8350c.dtsi | 2 - arch/arm64/boot/dts/qcom/pmr735a.dtsi | 2 - arch/arm64/boot/dts/qcom/pmr735b.dtsi | 2 - arch/arm64/boot/dts/qcom/sm8350.dtsi | 87 ----------------------------------- 6 files changed, 97 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8350.dtsi b/arch/arm64/boot/dts/qcom/pm8350.dtsi index 9ed9ba23e81e..20cd4d28b46b 100644 --- a/arch/arm64/boot/dts/qcom/pm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350.dtsi @@ -9,8 +9,6 @@ / { thermal-zones { pm8350_thermal: pm8350-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pm8350_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8350b.dtsi b/arch/arm64/boot/dts/qcom/pm8350b.dtsi index 05c105898892..058f7421ea49 100644 --- a/arch/arm64/boot/dts/qcom/pm8350b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350b.dtsi @@ -9,8 +9,6 @@ / { thermal-zones { pm8350b_thermal: pm8350b-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pm8350b_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8350c.dtsi b/arch/arm64/boot/dts/qcom/pm8350c.dtsi index aa74e21fe0dc..bc5555b14ca7 100644 --- a/arch/arm64/boot/dts/qcom/pm8350c.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8350c.dtsi @@ -47,8 +47,6 @@ pm8350c_pwm: pwm { / { thermal-zones { pm8350c_thermal: pm8350c-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pm8350c_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/pmr735a.dtsi b/arch/arm64/boot/dts/qcom/pmr735a.dtsi index febda50779f9..809bee0e164f 100644 --- a/arch/arm64/boot/dts/qcom/pmr735a.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735a.dtsi @@ -35,8 +35,6 @@ pmr735a_gpios: gpio@8800 { / { thermal-zones { pmr735a_thermal: pmr735a-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pmr735a_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/pmr735b.dtsi b/arch/arm64/boot/dts/qcom/pmr735b.dtsi index f7473e247322..9a71b77c7fc4 100644 --- a/arch/arm64/boot/dts/qcom/pmr735b.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735b.dtsi @@ -9,8 +9,6 @@ / { thermal-zones { pmr735b_thermal: pmr735b-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; thermal-sensors = <&pmr735b_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index a5e7dbbd8c6c..cf9ed53a834c 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -3638,9 +3638,6 @@ compute-cb@8 { thermal_zones: thermal-zones { cpu0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 1>; trips { @@ -3682,9 +3679,6 @@ map1 { }; cpu1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 2>; trips { @@ -3726,9 +3720,6 @@ map1 { }; cpu2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 3>; trips { @@ -3770,9 +3761,6 @@ map1 { }; cpu3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 4>; trips { @@ -3814,9 +3802,6 @@ map1 { }; cpu4-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 7>; trips { @@ -3858,9 +3843,6 @@ map1 { }; cpu5-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 8>; trips { @@ -3902,9 +3884,6 @@ map1 { }; cpu6-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 9>; trips { @@ -3946,9 +3925,6 @@ map1 { }; cpu7-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 10>; trips { @@ -3990,9 +3966,6 @@ map1 { }; cpu4-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 11>; trips { @@ -4034,9 +4007,6 @@ map1 { }; cpu5-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 12>; trips { @@ -4078,9 +4048,6 @@ map1 { }; cpu6-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 13>; trips { @@ -4122,9 +4089,6 @@ map1 { }; cpu7-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 14>; trips { @@ -4166,9 +4130,6 @@ map1 { }; aoss0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 0>; trips { @@ -4181,9 +4142,6 @@ aoss0_alert0: trip-point0 { }; cluster0-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 5>; trips { @@ -4201,9 +4159,6 @@ cluster0_crit: cluster0-crit { }; cluster1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens0 6>; trips { @@ -4221,9 +4176,6 @@ cluster1_crit: cluster1-crit { }; aoss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 0>; trips { @@ -4236,9 +4188,6 @@ aoss1_alert0: trip-point0 { }; gpu-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 1>; cooling-maps { @@ -4258,9 +4207,6 @@ gpu_top_alert0: trip-point0 { }; gpu-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 2>; cooling-maps { @@ -4280,9 +4226,6 @@ gpu_bottom_alert0: trip-point0 { }; nspss1-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 3>; trips { @@ -4295,9 +4238,6 @@ nspss1_alert0: trip-point0 { }; nspss2-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 4>; trips { @@ -4310,9 +4250,6 @@ nspss2_alert0: trip-point0 { }; nspss3-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 5>; trips { @@ -4325,9 +4262,6 @@ nspss3_alert0: trip-point0 { }; video-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 6>; trips { @@ -4340,9 +4274,6 @@ video_alert0: trip-point0 { }; mem-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 7>; trips { @@ -4355,9 +4286,6 @@ mem_alert0: trip-point0 { }; modem1-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 8>; trips { @@ -4370,9 +4298,6 @@ modem1_alert0: trip-point0 { }; modem2-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 9>; trips { @@ -4385,9 +4310,6 @@ modem2_alert0: trip-point0 { }; modem3-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 10>; trips { @@ -4400,9 +4322,6 @@ modem3_alert0: trip-point0 { }; modem4-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 11>; trips { @@ -4415,9 +4334,6 @@ modem4_alert0: trip-point0 { }; camera-top-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 12>; trips { @@ -4430,9 +4346,6 @@ camera1_alert0: trip-point0 { }; cam-bottom-thermal { - polling-delay-passive = <250>; - polling-delay = <1000>; - thermal-sensors = <&tsens1 13>; trips { From patchwork Tue Mar 19 16:13:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596877 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 2A5251272DB for ; Tue, 19 Mar 2024 16:14:12 +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=1710864854; cv=none; b=r8r8uDzyjOxH3sACZjvvFMjd1sLkloVEUX16jE8SGhuiLNQoCK5aOoiTK1hI9pjRMqtVauphR7xPiRjnV02+aJGV8dmqcpIrmB+1g5k9TlZIiXCz8IjnlV0bQlOHI0OMY8fGuiZfLhZKDuHl98BQJXsBjBHfWMGAOtSguwG69bk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864854; c=relaxed/simple; bh=WizwTGgP4cVSbvK0Z5+gMnGIqDckrAMp1j1rUCmVD3E=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=R+spMGsQ5cmdEpTI3hj2Sv/IQIlK547gwxFfItMwyxESB9VOBxYu8qB6xsEmF6B7x9iT5Ze1gXlAFaOK2WK7G9U/sdMI3uIunKNrKIh6QKEpnmv7Anv6Qs32RijB8bT4/REJjI1BL7pQHMXMXv88S43s/WMbTokLTDShbdzFcOc= 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=et1V6qY6; 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="et1V6qY6" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-513a08f2263so5941360e87.3 for ; Tue, 19 Mar 2024 09:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864850; x=1711469650; 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=gqX9h+0UxlZQM32W03xoBKjlP5c39q57qREfueCSqoc=; b=et1V6qY6bBFIB7cvs5CN5P4bAFS4Dh27Xd101x16LZn5Eyy9XY8QEQG6QtB0AvjKGF GGl34IHIPZcVcMfE+5lqHMrWv5xHCZbXpeVUhv58Ac+OfCMKdwwkEv3fgs+ambZBegz8 73/ik+5bnGmG8rUoVY2lE+vGPpYJ8Lvknxnf2K+iUsVta6INrysDggP7cBkIrPZfnw8a IBIVlsqdAV0CO+f0/93/ZvhqaTryho88JdTd7MIkBhCeojiGcQQvv+BVeLxVd0p/ISZw oaSf7JDe8sMtX2d6Fyk9JTSusWlOf6henbfig+VCc22FIQ6MVoQZ+UdSkgESa0CGfeKL dsOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864850; x=1711469650; 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=gqX9h+0UxlZQM32W03xoBKjlP5c39q57qREfueCSqoc=; b=e8WJP6Q/CyDiD+AumMbaVnb4xU3j1cThi5rkOjzqNxgwXsjjrCCFkEC67Cez3CbTYR cM4C51KwLl0uqMuU4/kx4um7eyS1VoVPoRSWNclqML4q523Z5N+ubA1t0bMr1e4mL0LK Jq5tVgVzeSiNtdFk0vytwfoEr+z78zA3oQBcX47B3xU6jQJztojxvAPY6OOs9/lGjao6 BopCsAaZwICn7vWuboWbspZH+g7igYIMVysm4jto5osXYzCeTkJnjzmpztnpaAK8CbiA UfM3+DQ3IGx2wY7zMVQUUPZ7E55/ZXjzWvWSLB7bJqKaJeTWADpmjpiiguDgcaulTnfc MA2Q== X-Gm-Message-State: AOJu0YwP+lQg8Dv1RpbIEP41Tf64XZWUQo0/m4ZWg0wpXWBk0wy3Ou2D 4K0gDK1CFg0udi//TbjOadcFpejR7G7zNyIV18dn6l5yCvoXspCSK0JSH2Xfn+c= X-Google-Smtp-Source: AGHT+IFVKvGZCJdKyNwXRx8eWbxapy5yWUA2KCEvgq2sv7/ajcHT9Uoh2beROUZ2ekFt9krds5QyDA== X-Received: by 2002:ac2:5306:0:b0:513:80cd:e807 with SMTP id c6-20020ac25306000000b0051380cde807mr2176984lfh.20.1710864848499; Tue, 19 Mar 2024 09:14:08 -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.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:08 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:13:59 +0100 Subject: [PATCH 29/31] arm64: dts: qcom: sm8450-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-29-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/pm8450.dtsi | 3 -- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 16 --------- arch/arm64/boot/dts/qcom/sm8450.dtsi | 64 --------------------------------- 3 files changed, 83 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8450.dtsi b/arch/arm64/boot/dts/qcom/pm8450.dtsi index ae5bce3cf46e..5be83d41f3a2 100644 --- a/arch/arm64/boot/dts/qcom/pm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8450.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm8450-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8450_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index 0786cff07b89..4f17fceaca65 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -136,8 +136,6 @@ pmic_glink_sbu: endpoint { thermal-zones { camera-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 2>; trips { @@ -150,8 +148,6 @@ active-config0 { }; rear-tof-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 5>; trips { @@ -164,8 +160,6 @@ active-config0 { }; skin-msm-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 1>; trips { @@ -178,8 +172,6 @@ active-config0 { }; therm1-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 3>; trips { @@ -192,8 +184,6 @@ active-config0 { }; therm2-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 6>; trips { @@ -206,8 +196,6 @@ active-config0 { }; usb-conn-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 7>; trips { @@ -220,8 +208,6 @@ active-config0 { }; wide-rfc-thermal { - polling-delay-passive = <250>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 4>; trips { @@ -234,8 +220,6 @@ active-config0 { }; xo-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&pmk8350_adc_tm 0>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index b86be34a912b..29c3a74ceb5a 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4595,8 +4595,6 @@ sound: sound { thermal-zones { aoss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 0>; trips { @@ -4615,8 +4613,6 @@ reset-mon-cfg { }; cpuss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 1>; trips { @@ -4635,8 +4631,6 @@ reset-mon-cfg { }; cpuss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 2>; trips { @@ -4655,8 +4649,6 @@ reset-mon-cfg { }; cpuss3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 3>; trips { @@ -4675,8 +4667,6 @@ reset-mon-cfg { }; cpuss4-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 4>; trips { @@ -4695,8 +4685,6 @@ reset-mon-cfg { }; cpu4-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 5>; trips { @@ -4721,8 +4709,6 @@ cpu4_top_crit: cpu-crit { }; cpu4-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 6>; trips { @@ -4747,8 +4733,6 @@ cpu4_bottom_crit: cpu-crit { }; cpu5-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 7>; trips { @@ -4773,8 +4757,6 @@ cpu5_top_crit: cpu-crit { }; cpu5-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 8>; trips { @@ -4799,8 +4781,6 @@ cpu5_bottom_crit: cpu-crit { }; cpu6-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 9>; trips { @@ -4825,8 +4805,6 @@ cpu6_top_crit: cpu-crit { }; cpu6-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 10>; trips { @@ -4851,8 +4829,6 @@ cpu6_bottom_crit: cpu-crit { }; cpu7-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 11>; trips { @@ -4877,8 +4853,6 @@ cpu7_top_crit: cpu-crit { }; cpu7-middle-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 12>; trips { @@ -4903,8 +4877,6 @@ cpu7_middle_crit: cpu-crit { }; cpu7-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 13>; trips { @@ -4929,8 +4901,6 @@ cpu7_bottom_crit: cpu-crit { }; gpu-top-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens0 14>; cooling-maps { @@ -4968,8 +4938,6 @@ gpu_top_alert0: trip-point0 { }; gpu-bottom-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens0 15>; cooling-maps { @@ -5007,8 +4975,6 @@ gpu_bottom_alert0: trip-point0 { }; aoss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 0>; trips { @@ -5027,8 +4993,6 @@ reset-mon-cfg { }; cpu0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 1>; trips { @@ -5053,8 +5017,6 @@ cpu0_crit: cpu-crit { }; cpu1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 2>; trips { @@ -5079,8 +5041,6 @@ cpu1_crit: cpu-crit { }; cpu2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 3>; trips { @@ -5105,8 +5065,6 @@ cpu2_crit: cpu-crit { }; cpu3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 4>; trips { @@ -5131,8 +5089,6 @@ cpu3_crit: cpu-crit { }; cdsp0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens1 5>; trips { @@ -5163,8 +5119,6 @@ cdsp_0_config: junction-config { }; cdsp1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens1 6>; trips { @@ -5195,8 +5149,6 @@ cdsp_1_config: junction-config { }; cdsp2-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens1 7>; trips { @@ -5227,8 +5179,6 @@ cdsp_2_config: junction-config { }; video-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 8>; trips { @@ -5247,8 +5197,6 @@ reset-mon-cfg { }; mem-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens1 9>; trips { @@ -5273,8 +5221,6 @@ reset-mon-cfg { }; modem0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 10>; trips { @@ -5305,8 +5251,6 @@ reset-mon-cfg { }; modem1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 11>; trips { @@ -5337,8 +5281,6 @@ reset-mon-cfg { }; modem2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 12>; trips { @@ -5369,8 +5311,6 @@ reset-mon-cfg { }; modem3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 13>; trips { @@ -5401,8 +5341,6 @@ reset-mon-cfg { }; camera0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 14>; trips { @@ -5421,8 +5359,6 @@ reset-mon-cfg { }; camera1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 15>; trips { From patchwork Tue Mar 19 16:14:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596879 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 1CCBD127B54 for ; Tue, 19 Mar 2024 16:14:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864857; cv=none; b=tptrMr7PuBhYlL/NwQG854IocJLUG1uiJYIfGoK3K/po5Mq8sTy4T17XqoTt4uxoyvubp5FApTho33eVEMdI0Qbq4ACRkwQgVhLytksZjUnTmRgTMSXM0wNzJq/7LwpMDDVn6pqoa3ll5uZ2jVyJtGngZKJ8oqbT/ugpF6TZI1o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864857; c=relaxed/simple; bh=SLteJC1Oftcfx/pDSbdV85hEd9RawwKiLDMA9H5ZvQo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ouui2na4VoAfPHbS5HkDm4kVzvrgJ8trB1KN50LK4HReu0BkbWpcfXUDI95acdte9crgVy+sVsO7Gt33gm81oHTIjnX6HznEugFq4KnTSGY/pOIh8tOhFZwIpl64gmK3hu0ytDPLJOlBIWHsrKEdb9C1CKxRtySZfbYrcZ+zY/E= 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=tA4jD1eg; arc=none smtp.client-ip=209.85.167.53 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="tA4jD1eg" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-513cfc93f4eso6503688e87.3 for ; Tue, 19 Mar 2024 09:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864851; x=1711469651; 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=6FR1TiIQMNFX2hWmjLoC33+sHjKjffc4UPvr2nbRk1Q=; b=tA4jD1egJn2JjFsKO9qRkkq0RRljsxOb0JPeqXhtVGz4O2D7lzTTByfmK+Qot9BNXh 1P/FRq5jKx/wuT+mWAdqug+tOQundswp2M5buip/WvRqMeIZF7tZkfK3O9rYwA48nndB OZcyOD7QA9jwh4MZ4GG8GrM6DAiq4C4RDxyjN2UApecoDp1wIFbUXfmEpv+qko0t6yoS dJJLPrCwqYRjWJGIRxvG+Gn35vFzvER/JdySRiBM6ingEoXsRXrK+qkB/30PpQfAEtir jlujvOi5X8F/TMf+X2X55eHfHwlTInVCM5a7UHbXvB13EMPnwnX6/6ewnDrKVsqhjhKG jAIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864851; x=1711469651; 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=6FR1TiIQMNFX2hWmjLoC33+sHjKjffc4UPvr2nbRk1Q=; b=XIMVlf81SrTykrZWfxmHEDzonbAHskJvOhORZLmhT/nx1rMCkQvE4IhfLf/1KjAMB/ b0rlqh0G5taO0tcb3NzErNszCVZUeMQLbe69bIaSvMJDcZfDlshKD9oX+Vv49ZLUGenU FhEsaQycGnflcb4EdyJNhZN5ROp/oPEi+B2T1qTS166hESICa9FQ+KiV5eE/plAbYes0 K0eQzFumcZ6q0AR1GoDJCqUis7KbL69Q1f1zueycWWueEMUb62st+SP83PtiJKNL/Xv4 jrorvCTz/WtgSl1Sz1wUpXEgqN84F4njBgskQ0n3X2Mu+t7UF123EEcUqYBYUP9nywqw JS1A== X-Gm-Message-State: AOJu0Ywh4STFUgDgMP8a5ZLK3u0VI+hH5N5clOUxJd7VZIIq3u6vLGgS FRhNF1tbf7fCxTgvc1nT4iM+BmyyNomN2ZoWQgdsSRlqnak9SnaAX4GFEOechWs= X-Google-Smtp-Source: AGHT+IFzAzNEOn9bAyW0fToELJusiFTewqoKadptmhXkjC5eh4XSNmEtEPk2wa5TopiADiwNVyT5mw== X-Received: by 2002:a19:ca1a:0:b0:513:d94a:670a with SMTP id a26-20020a19ca1a000000b00513d94a670amr8510655lfg.38.1710864851440; Tue, 19 Mar 2024 09:14:11 -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.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:11 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:14:00 +0100 Subject: [PATCH 30/31] arm64: dts: qcom: sm8550-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-30-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/pm8010.dtsi | 6 --- arch/arm64/boot/dts/qcom/pm8550.dtsi | 3 -- arch/arm64/boot/dts/qcom/pm8550b.dtsi | 3 -- arch/arm64/boot/dts/qcom/pm8550ve.dtsi | 3 -- arch/arm64/boot/dts/qcom/pm8550vs.dtsi | 12 ----- arch/arm64/boot/dts/qcom/pmr735d_a.dtsi | 3 -- arch/arm64/boot/dts/qcom/pmr735d_b.dtsi | 3 -- arch/arm64/boot/dts/qcom/sm8550.dtsi | 82 --------------------------------- 8 files changed, 115 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8010.dtsi b/arch/arm64/boot/dts/qcom/pm8010.dtsi index 0ea641e12209..583c3c49d603 100644 --- a/arch/arm64/boot/dts/qcom/pm8010.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8010.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm8010-m-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8010_m_temp_alarm>; trips { @@ -30,9 +27,6 @@ trip1 { }; pm8010-n-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8010_n_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8550.dtsi b/arch/arm64/boot/dts/qcom/pm8550.dtsi index 797a18c249a4..27719876a098 100644 --- a/arch/arm64/boot/dts/qcom/pm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8550.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm8550-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8550_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8550b.dtsi b/arch/arm64/boot/dts/qcom/pm8550b.dtsi index 72609f31c890..44c0d4cf3fc8 100644 --- a/arch/arm64/boot/dts/qcom/pm8550b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8550b.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm8550b-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8550b_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8550ve.dtsi b/arch/arm64/boot/dts/qcom/pm8550ve.dtsi index 4dc1f03ab2c7..7d13e8d9236b 100644 --- a/arch/arm64/boot/dts/qcom/pm8550ve.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8550ve.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm8550ve-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8550ve_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/pm8550vs.dtsi b/arch/arm64/boot/dts/qcom/pm8550vs.dtsi index 97b1c18aa7d8..a7a85f14c650 100644 --- a/arch/arm64/boot/dts/qcom/pm8550vs.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8550vs.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pm8550vs-c-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8550vs_c_temp_alarm>; trips { @@ -30,9 +27,6 @@ trip1 { }; pm8550vs-d-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8550vs_d_temp_alarm>; trips { @@ -51,9 +45,6 @@ trip1 { }; pm8550vs-e-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8550vs_e_temp_alarm>; trips { @@ -72,9 +63,6 @@ trip1 { }; pm8550vs-g-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pm8550vs_g_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/pmr735d_a.dtsi b/arch/arm64/boot/dts/qcom/pmr735d_a.dtsi index 37daaefe3431..e2ffe5d077a6 100644 --- a/arch/arm64/boot/dts/qcom/pmr735d_a.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735d_a.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pmr735d-k-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pmr735d_k_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/pmr735d_b.dtsi b/arch/arm64/boot/dts/qcom/pmr735d_b.dtsi index 3b470f6ac46f..e8ececc6eee3 100644 --- a/arch/arm64/boot/dts/qcom/pmr735d_b.dtsi +++ b/arch/arm64/boot/dts/qcom/pmr735d_b.dtsi @@ -9,9 +9,6 @@ / { thermal-zones { pmr735d-l-thermal { - polling-delay-passive = <100>; - polling-delay = <0>; - thermal-sensors = <&pmr735d_l_temp_alarm>; trips { diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 3904348075f6..b502471c7c9b 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -4537,8 +4537,6 @@ compute-cb@8 { thermal-zones { aoss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 0>; trips { @@ -4557,8 +4555,6 @@ reset-mon-config { }; cpuss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 1>; trips { @@ -4577,8 +4573,6 @@ reset-mon-config { }; cpuss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 2>; trips { @@ -4597,8 +4591,6 @@ reset-mon-config { }; cpuss2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 3>; trips { @@ -4617,8 +4609,6 @@ reset-mon-config { }; cpuss3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 4>; trips { @@ -4637,8 +4627,6 @@ reset-mon-config { }; cpu3-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 5>; trips { @@ -4663,8 +4651,6 @@ cpu3_top_crit: cpu-critical { }; cpu3-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 6>; trips { @@ -4689,8 +4675,6 @@ cpu3_bottom_crit: cpu-critical { }; cpu4-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 7>; trips { @@ -4715,8 +4699,6 @@ cpu4_top_crit: cpu-critical { }; cpu4-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 8>; trips { @@ -4741,8 +4723,6 @@ cpu4_bottom_crit: cpu-critical { }; cpu5-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 9>; trips { @@ -4767,8 +4747,6 @@ cpu5_top_crit: cpu-critical { }; cpu5-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 10>; trips { @@ -4793,8 +4771,6 @@ cpu5_bottom_crit: cpu-critical { }; cpu6-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 11>; trips { @@ -4819,8 +4795,6 @@ cpu6_top_crit: cpu-critical { }; cpu6-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 12>; trips { @@ -4845,8 +4819,6 @@ cpu6_bottom_crit: cpu-critical { }; cpu7-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 13>; trips { @@ -4871,8 +4843,6 @@ cpu7_top_crit: cpu-critical { }; cpu7-middle-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 14>; trips { @@ -4897,8 +4867,6 @@ cpu7_middle_crit: cpu-critical { }; cpu7-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 15>; trips { @@ -4923,8 +4891,6 @@ cpu7_bottom_crit: cpu-critical { }; aoss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 0>; trips { @@ -4943,8 +4909,6 @@ reset-mon-config { }; cpu0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 1>; trips { @@ -4969,8 +4933,6 @@ cpu0_crit: cpu-critical { }; cpu1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 2>; trips { @@ -4995,8 +4957,6 @@ cpu1_crit: cpu-critical { }; cpu2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 3>; trips { @@ -5021,8 +4981,6 @@ cpu2_crit: cpu-critical { }; cdsp0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 4>; trips { @@ -5053,8 +5011,6 @@ cdsp0_junction_config: junction-config { }; cdsp1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 5>; trips { @@ -5085,8 +5041,6 @@ cdsp1_junction_config: junction-config { }; cdsp2-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 6>; trips { @@ -5117,8 +5071,6 @@ cdsp2_junction_config: junction-config { }; cdsp3-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 7>; trips { @@ -5149,8 +5101,6 @@ cdsp3_junction_config: junction-config { }; video-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 8>; trips { @@ -5169,8 +5119,6 @@ reset-mon-config { }; mem-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens1 9>; trips { @@ -5195,8 +5143,6 @@ reset-mon-config { }; modem0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 10>; trips { @@ -5227,8 +5173,6 @@ reset-mon-config { }; modem1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 11>; trips { @@ -5259,8 +5203,6 @@ reset-mon-config { }; modem2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 12>; trips { @@ -5291,8 +5233,6 @@ reset-mon-config { }; modem3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 13>; trips { @@ -5323,8 +5263,6 @@ reset-mon-config { }; camera0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 14>; trips { @@ -5343,8 +5281,6 @@ reset-mon-config { }; camera1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 15>; trips { @@ -5363,8 +5299,6 @@ reset-mon-config { }; aoss2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens2 0>; trips { @@ -5383,8 +5317,6 @@ reset-mon-config { }; gpuss-0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 1>; cooling-maps { @@ -5422,8 +5354,6 @@ gpu0_junction_config: junction-config { }; gpuss-1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 2>; cooling-maps { @@ -5461,8 +5391,6 @@ gpu1_junction_config: junction-config { }; gpuss-2-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 3>; cooling-maps { @@ -5500,8 +5428,6 @@ gpu2_junction_config: junction-config { }; gpuss-3-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 4>; cooling-maps { @@ -5539,8 +5465,6 @@ gpu3_junction_config: junction-config { }; gpuss-4-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 5>; cooling-maps { @@ -5578,8 +5502,6 @@ gpu4_junction_config: junction-config { }; gpuss-5-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 6>; cooling-maps { @@ -5617,8 +5539,6 @@ gpu5_junction_config: junction-config { }; gpuss-6-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 7>; cooling-maps { @@ -5656,8 +5576,6 @@ gpu6_junction_config: junction-config { }; gpuss-7-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 8>; cooling-maps { From patchwork Tue Mar 19 16:14:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13596878 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 30678127B72 for ; Tue, 19 Mar 2024 16:14:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864856; cv=none; b=T8qEvpX38QtukI28OtnOlBkRj2LenIrae0IM0nCqP51bNRt1X/BsOFKOOI2aSBfu22N3pgVVpDVbrjF3hQqOz48epXe8s7PcD6uZnx1BNWJ8QwUCBgKHiOEQ14v3D95cMWorwtYL3CE1LsBjfJD/597MHH/B53ChuVSLANZNtjE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710864856; c=relaxed/simple; bh=C1WwkTnF4D51zKxLRgtTi7neKO7FUlW1WZehIPRagUM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WQK7RebJExPhUgPyAyjLuf6Qw5uiOtE3MHbQ+7XmygwHRWRdZYTw8LBD6nYNPP2V7+8A+MVlin42MnSYcBuzsxp/oPz2WomSqPxW/cx0NUEYQm3GbLzpQRnxJxUkswOQ2nZazy4ZqskslGUoE7bTUxIjkDCAgLn/H6uiHdjTZr0= 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=dDwEOCR7; arc=none smtp.client-ip=209.85.167.52 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="dDwEOCR7" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-513cf9bacf1so7290688e87.0 for ; Tue, 19 Mar 2024 09:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710864852; x=1711469652; 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=VE7A1TMqiKAqmFzW6nlWEzBc38jwIdf+oOhpNZjQBgs=; b=dDwEOCR7VW56O/7jQOeucTWq+b1EtjyBDgf6+7e3c1VbctQ9BHENidEj2iTC7gOg3L lWOqFZmgHH7XbjiMbWY7yaVVpMWUehoL8YlXF8F74AhfLBIcfdFpL8PDL9oXYHCUw6W3 xXHRwMQmmacqjBaEigAzcRJcHh0lP894W6skbgPRQS9jNir/knY9pVaEVEOIcrDWGgcb 6D/g2BoQLRxu4eUjnKKTfRdbaj/MFTUSuMLalQorSRzb9aTStT2azoZWPYvFmUVq6j3Z p0EeUXeExg6bLbeMHheb1dpQscFE4WDXW921HlbPON6SUUGlhvaluKeRo+D9XDQFUlp3 93Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710864852; x=1711469652; 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=VE7A1TMqiKAqmFzW6nlWEzBc38jwIdf+oOhpNZjQBgs=; b=cEdbrplkDPSJWNaIzrMRHeJ+M5ApNnUqyxWG/wMEDMdzdR8kKALhMTfccvorrhHq7n JmK2cbKWZOCK9L71p3xJZs8nHiA4x6a4KoVmhjQ2LM3cMVxA55Kt47Xpp1SCPVXwOlLy hywpBj1zBSQ814MRQTkUu0VWq1uq3t+oLelei2fcTcG0WE5qhQg3W/kXJT/l0CCMi+sn X/+r96CDsVML54fYZp82Opy7EXUy+Q0KYlI+7Z/pKjUGVP5a1j9yflo/7lMBrrIEe+FP cbTp4ZSh6hOrPTC9GBd2XFfbUFSF//cvhFe1+9qLbTP4IJf764PyyssuleU81v5/6gi+ aPzg== X-Gm-Message-State: AOJu0Yzspa5V/Ert7BTxeqRSF+DnDPM0OrrZkqKXBis55Uun3DeMT9EO Bp+IQCbXq/u6vDZtWxANUkiytO41BuH+ablycoXWt/LtLiraUO+NbFQCRfLyFP0= X-Google-Smtp-Source: AGHT+IG9nJYuESJlyiQ7awgWZhAwPnAQNG+SHgHrl9DiIHJkT+cc5Zh1SDoCpiSoJ/eFSy9gFswN4Q== X-Received: by 2002:ac2:4985:0:b0:513:9f14:8f73 with SMTP id f5-20020ac24985000000b005139f148f73mr10387113lfl.36.1710864852401; Tue, 19 Mar 2024 09:14:12 -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.14.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:14:12 -0700 (PDT) From: Konrad Dybcio Date: Tue, 19 Mar 2024 17:14:01 +0100 Subject: [PATCH 31/31] arm64: dts: qcom: sm8650-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240319-topic-msm-polling-cleanup-v1-31-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/sm8650.dtsi | 88 ------------------------------------ 1 file changed, 88 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index ba72d8f38420..f7707c155696 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -5091,8 +5091,6 @@ compute-cb@8 { thermal-zones { aoss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 0>; trips { @@ -5111,8 +5109,6 @@ aoss0-critical { }; cpuss0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 1>; trips { @@ -5131,8 +5127,6 @@ cpuss0-critical { }; cpuss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 2>; trips { @@ -5151,8 +5145,6 @@ cpuss1-critical { }; cpuss2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 3>; trips { @@ -5171,8 +5163,6 @@ cpuss2-critical { }; cpuss3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 4>; trips { @@ -5191,8 +5181,6 @@ cpuss3-critical { }; cpu2-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 5>; trips { @@ -5217,8 +5205,6 @@ cpu2-critical { }; cpu2-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 6>; trips { @@ -5243,8 +5229,6 @@ cpu2-critical { }; cpu3-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 7>; trips { @@ -5269,8 +5253,6 @@ cpu3-critical { }; cpu3-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 8>; trips { @@ -5295,8 +5277,6 @@ cpu3-critical { }; cpu4-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 9>; trips { @@ -5321,8 +5301,6 @@ cpu4-critical { }; cpu4-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 10>; trips { @@ -5347,8 +5325,6 @@ cpu4-critical { }; cpu5-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 11>; trips { @@ -5373,8 +5349,6 @@ cpu5-critical { }; cpu5-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 12>; trips { @@ -5399,8 +5373,6 @@ cpu5-critical { }; cpu6-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 13>; trips { @@ -5425,8 +5397,6 @@ cpu6-critical { }; cpu6-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens0 14>; trips { @@ -5451,8 +5421,6 @@ cpu6-critical { }; aoss1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 0>; trips { @@ -5471,8 +5439,6 @@ aoss1-critical { }; cpu7-top-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 1>; trips { @@ -5497,8 +5463,6 @@ cpu7-critical { }; cpu7-middle-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 2>; trips { @@ -5523,8 +5487,6 @@ cpu7-critical { }; cpu7-bottom-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 3>; trips { @@ -5549,8 +5511,6 @@ cpu7-critical { }; cpu0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 4>; trips { @@ -5575,8 +5535,6 @@ cpu0-critical { }; cpu1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 5>; trips { @@ -5601,8 +5559,6 @@ cpu1-critical { }; nsphvx0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 6>; trips { @@ -5621,8 +5577,6 @@ nsphvx1-critical { }; nsphvx1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 7>; trips { @@ -5641,8 +5595,6 @@ nsphvx1-critical { }; nsphmx0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 8>; trips { @@ -5661,8 +5613,6 @@ nsphmx0-critical { }; nsphmx1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 9>; trips { @@ -5681,8 +5631,6 @@ nsphmx1-critical { }; nsphmx2-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 10>; trips { @@ -5701,8 +5649,6 @@ nsphmx2-critical { }; nsphmx3-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 11>; trips { @@ -5721,8 +5667,6 @@ nsphmx3-critical { }; video-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens1 12>; trips { @@ -5741,8 +5685,6 @@ video-critical { }; ddr-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens1 13>; trips { @@ -5761,8 +5703,6 @@ ddr-critical { }; camera0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 14>; trips { @@ -5781,8 +5721,6 @@ camera0-critical { }; camera1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens1 15>; trips { @@ -5801,8 +5739,6 @@ camera1-critical { }; aoss2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens2 0>; trips { @@ -5821,8 +5757,6 @@ aoss2-critical { }; gpuss0-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 1>; trips { @@ -5841,8 +5775,6 @@ gpuss0-critical { }; gpuss1-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 2>; trips { @@ -5861,8 +5793,6 @@ gpuss1-critical { }; gpuss2-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 3>; trips { @@ -5881,8 +5811,6 @@ gpuss2-critical { }; gpuss3-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 4>; trips { @@ -5901,8 +5829,6 @@ gpuss3-critical { }; gpuss4-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 5>; trips { @@ -5921,8 +5847,6 @@ gpuss4-critical { }; gpuss5-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 6>; trips { @@ -5941,8 +5865,6 @@ gpuss5-critical { }; gpuss6-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 7>; trips { @@ -5961,8 +5883,6 @@ gpuss6-critical { }; gpuss7-thermal { - polling-delay-passive = <10>; - polling-delay = <0>; thermal-sensors = <&tsens2 8>; trips { @@ -5981,8 +5901,6 @@ gpuss7-critical { }; modem0-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens2 9>; trips { @@ -6001,8 +5919,6 @@ modem0-critical { }; modem1-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens2 10>; trips { @@ -6021,8 +5937,6 @@ modem1-critical { }; modem2-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens2 11>; trips { @@ -6041,8 +5955,6 @@ modem2-critical { }; modem3-thermal { - polling-delay-passive = <0>; - polling-delay = <0>; thermal-sensors = <&tsens2 12>; trips {