Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp289237lqt; Thu, 6 Jun 2024 03:51:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfrBzRAxjwJGTCQggglZhxw6MQ1KIgb6DhbpTCaBRyEfuQC4TdnxKcLkerXmfyiFcFd6mQCJHsAfIssCVWCn7VyZiwJVkMegBBckL35Q== X-Google-Smtp-Source: AGHT+IFtsVKBnTYASgTxyplk1Rt8Abr7na5zcfEl+xhrQ+DFWEJ5su5NrguqP0Aoel1PI/6JSBeA X-Received: by 2002:a17:903:32c7:b0:1f6:7e02:6ae0 with SMTP id d9443c01a7336-1f6a5a5c816mr61352375ad.44.1717671071688; Thu, 06 Jun 2024 03:51:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717671071; cv=pass; d=google.com; s=arc-20160816; b=k7Uoax+9c99oCO6yLBi0PG+nn9L29JGNOZ3w/rAvfEnIBFI3TmZQp+UqVpLjHvGQWc ep9k5+Ui4MdQ0f/aZQd4KvHdinVy6L3B5mvCBPCiad9kL8Br/EE5X/Jin7Lwy2O5C/+r 0xvr/vCMj+qE5b13amNEq7RL/ikI1MI4py0E7gEBIMEWwZKn1MnL2VvCBXakDEccrq3s kKnHjg9kqb3p9aGToKMtgXWaZdt2oVnKf9P5qJWUtgCBRcIVz71qIP7pn+ah+S9NQIm+ 0wlyEBKYmkw5yt5iBxCNXp1IjhrDEAAHkJTuSSo1uscgGuVitezWB8vIl1fnMaNnEhWh yNVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=rLnV9lT0RMBL8QGwcM84QsnzjUdPdV6KvK9KQAXkj0U=; fh=ZWpcN9Bh3xIMEMyOoojeUtTt6IhKvfKUKhXja0vs9XI=; b=WYKdrKlkmQfP/JmA1ujXGcchCXfw+HefO2snQ5D2awG9hL0ERmQIhq4OSKtsA9iU7S dfxTy5tfDqNDUAXRCv/Y1SjYVVTfeCG5U5ggDlInP95nMpckqUTbukh6nFDPenTgXiF/ eZ3VTGT5gcWIKF4Z1DPDRNnWSpo5Rfs16QgH9fAegAyKKEcdIPAh/Xoq6HSgEDgasTEA rBD1EyXSxIemvF0uAkqEQ6iabWHgmznMF5VcaCf86uomBPGSdXDurIrva5Ua2D7xBl/N 3STOcN7gyx9sQzr43V/6Ocxrsk/U7qIuvMldwV12jmJh6MJ2CWpFMF5fFpE/UtCdZve0 4zlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LT1xlnTH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd822253si9370635ad.587.2024.06.06.03.51.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 03:51:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LT1xlnTH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204137-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204137-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 66CBD2882DB for ; Thu, 6 Jun 2024 10:51:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D007818C33C; Thu, 6 Jun 2024 10:50:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="LT1xlnTH" Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.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 533A819538E for ; Thu, 6 Jun 2024 10:50:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717671019; cv=none; b=kcxTVAS8XQ2I/iA9aVUwxcn7fMUZns/9iQMV+55ussNt0mZnse8cfWU8CERPrGrjwOxLuhEBv0pDty5b6LbZvyXtlEHlDaEEFI1UCis/VLgYm4nAJQMbrAWknRacTR83zaY/UXnqUKumTEQuJXJd40CFsAfA31ImlGXUlm+cv0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717671019; c=relaxed/simple; bh=lBpSg8Lv9yUtdVyrD0zIyZn+NBaMN/0TwzLyC0E371M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FPkqAs+CrD1vi8yjXyNfdKkTwtU9kUJM9Ezfbc8t9NHkVcMrzDdNsrKqLoQTgv6MQ3JKSLhEpdYDz/uSb/eUpa2uyVQtgVArU3sU2Zjii4iW6yyaDoE8bfFQmzVx1sHHI6sDlphH4zPtwCEGIpWbT3do2/APKTlP8npx0lZA7pU= 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=LT1xlnTH; arc=none smtp.client-ip=209.85.208.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 Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-57a7dc13aabso926912a12.0 for ; Thu, 06 Jun 2024 03:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717671017; x=1718275817; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=rLnV9lT0RMBL8QGwcM84QsnzjUdPdV6KvK9KQAXkj0U=; b=LT1xlnTHOw+IJv/3G4D54cxSQ6rG63yD/gy+K4WRc7NzD17L+pIlWGJs4JX3G3Jm4e EhXx9TjlcgsLxaHLsqBtw4xV5uNCCRHGh5k05JXtKfUTIokS5BPqU9662D7AH6IG2euM 7sAg8nODvuN0B+MA+BZLmISj8bvCh5Cc+dkWg0UMvj3nbskO9s/GFMJyiuYuRBMFhZPQ hZu1+pyGn9dEQJVtAY7pXVjJ95MAZzyYv9oyvIN5ldX5C1wQdhueFNpH/f4fQ+fgjMOd b6gIe8LeoKSE66J3JY7AQX/0qWVLlSv+ZlbspKIlHteCRsecCpjyu1DSK/yPoxeiqxi5 M3zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717671017; x=1718275817; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rLnV9lT0RMBL8QGwcM84QsnzjUdPdV6KvK9KQAXkj0U=; b=RRni4wCN3MdY9jm30nwyyuNY2lRUAKHLHrbcsLmrsNTdUkmOAeFICSBwESlM8mNhr/ Bo+S/8TAZnmKYWEPgjEvScVaEk5tj4GtK6sLbCaYCqO9QkO0qi+juAoj6QAqQCnWZuWd pQHOSa2lbdvkIU3TigMJ1cfZeDwRO9oyGk3sI8LRR+478iigsRLkMCt5s6qYGGoBhCKE apRohNtXITJtl2i6JnFW99XE2F8lSzPIvSIElYUZOP5vHzLtAViO0Isvu9AbuG1jfMEb eLIH/zHv9mfDRP5Dqb+KIONnWDCuyuiVHACNdjozpsF52TET1oPfjqbZKQRdf5uGzcbd 8Sww== X-Forwarded-Encrypted: i=1; AJvYcCVJDaMiMYYdOsCVOeI80L8A/U3WVCNvQbtPJ7SHn3Zz96EfrgWz6ezwQGH66SqXdhRIiL+QL3at4p1sjRqA7r6jU+243zqLOt4afsL0 X-Gm-Message-State: AOJu0YznaEpi+78Z7cj5IJvytldILo7yA5Xe0bntbB43tAhLuE2pdbz5 VWxecAiQhIBptkV+VxM0srk82aefF1UBEt/YeGY0DPdff7lVZxMi1KxdoTWI524= X-Received: by 2002:a50:d592:0:b0:57a:48c:c0f4 with SMTP id 4fb4d7f45d1cf-57a8b6a69efmr3604817a12.17.1717671016695; Thu, 06 Jun 2024 03:50:16 -0700 (PDT) Received: from [192.168.128.139] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57aae2366a4sm867633a12.92.2024.06.06.03.50.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jun 2024 03:50:16 -0700 (PDT) Message-ID: <80f6c943-71af-4200-89ac-d42736514390@linaro.org> Date: Thu, 6 Jun 2024 12:50:14 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 31/31] arm64: dts: qcom: sm8650-*: Remove thermal zone polling delays To: Bryan O'Donoghue , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> <20240510-topic-msm-polling-cleanup-v2-31-436ca4218da2@linaro.org> Content-Language: en-US From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl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BBgBCAAgFiEEU24if9oCL2zd AAQVR4cBcg5dfFgFAmQ5bvICGwwACgkQR4cBcg5dfFju1Q//Xta1ShwL0MLSC1KL1lXGXeRM 8arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 10.05.2024 2:47 PM, Bryan O'Donoghue wrote: > On 10/05/2024 12:59, Konrad Dybcio wrote: >> 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, 16 insertions(+), 72 deletions(-) >> >> diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi >> index 62a6e77730bc..39e789b21acc 100644 >> --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi >> +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi >> @@ -5328,8 +5328,6 @@ compute-cb@12 { >>         thermal-zones { >>           aoss0-thermal { >> -            polling-delay-passive = <0>; >> -            polling-delay = <0>; > > Commit log doesn't really match the values being subtracted > > polling-delay: >   $ref: /schemas/types.yaml#/definitions/uint32 >   description: >     The maximum number of milliseconds to wait between polls when >     checking this thermal zone. Setting this to 0 disables the polling >     timers setup by the thermal framework and assumes that the thermal >     sensors in this zone support interrupts. > OK I suppose there are 3 things at play: 1) for devices with polling-delay = without this patchset, the polling is removed and threshold crossings are defered to the PMIC periph or TSENS interrupts 2) for devices with polling-delay = <0>, this is a NOP cleanup, saving LoC 3) for devices with polling-delay-passive = <0>, this is a NOP, however in 99% of cases, this was a misconfiguration in the first place. I can leave such entries so that somebody has an easier time spotting it down the line. I'm not however willing to go over each one of them and assess what the value should be, as that requires significant effort across tens of platforms Konrad