Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp454692lqo; Fri, 10 May 2024 05:19:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkIwDpEBfUTk5aSyEF27lU2oMG5+3MLT4ic+vs0V24FJEjy661klj74JufsKpgRke9n5+C4n6ZXsrRTWvTtunZer3k/Of/HuHdk2tocQ== X-Google-Smtp-Source: AGHT+IG15x+wbREYyisEwSNikhvlbOme0Z/0ZGD7sQsMhDPQ1ixAF1O4ASZFDlUnbzdbIaf3TFf3 X-Received: by 2002:a05:6358:3417:b0:192:8018:81 with SMTP id e5c5f4694b2df-193bb6243c3mr249908255d.8.1715343555872; Fri, 10 May 2024 05:19:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715343555; cv=pass; d=google.com; s=arc-20160816; b=R+waCjXWIaUKirHIZ92HijIVMrvzj4VPh7derhdf2YlVK6jIDRk7CptSwj3luf7CZe agIE6PsH7vtabtlfrb4YTuaFadE6Z3Cebaf5Yc6T3BVYY0XJCcCvtuPATrD0EBNm0NAX NWnwfb4HFGfglUx2KIVr2qNIt4uopZoFEWMnzfMneY6sMyDYgV8aYVhsAMAQh/YuYiB7 872W1wbitaKiUBsD5lv8fig5DncsBeOEJHaIghW658kKeCyFg1MUtyZotDjhpYClfBlj M9hIPcjqSDZW2SHilR9G2Md8leJ8f/SZ5xFZwOJ3xDGL6VSWVpDAYQ5l4mXeSwD7XqXQ jqeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=QX/jm4cX7d1+tOu2d8ujXyYCSTAjlQweFsWO3x+wiG4=; fh=Q7dqocQmGYEcI8fZ2ZS4tOMfMNI7czUtxjhhqBq0w+Y=; b=Bx3KsSA4nnjsSQlPlCD940O45eT7RfMAmx3HQxM9Cron/aNoNwd7eUlx85GGfj4Pz6 slhcogPKLsLP+xj9t7Xec+0C6vxU6sbBUSpmoNGXwgRl26uSgOP+gYgiDzseqMlJxlI5 9kVOXfxjAdr1USmOkmDT6y7I2EaRHI/jQgqzGgsqKRdQODoB6ESgdjRRfW1Z12h1MC6I FqrJuanY2XR0pMdRoA4B9URxIbjN1fqO9PNFvoIO5kD6eQ8erdRdTDFFn05fkNlok2Zg pEnDH7VPAWF2IVCggtm5mXKYEqPIUiLA1zCxuWhCqLBxCel1dANAvNZN19nCZOJ1YURi 0NSw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vwXJMVsW; 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-175731-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175731-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 41be03b00d2f7-6340b2a0d63si3466323a12.186.2024.05.10.05.19.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 05:19:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175731-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=vwXJMVsW; 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-175731-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175731-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 85FC428AE1A for ; Fri, 10 May 2024 12:01:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A51D171093; Fri, 10 May 2024 11:59:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vwXJMVsW" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.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 9BBB11708B9 for ; Fri, 10 May 2024 11:59:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342385; cv=none; b=Jyk1mOZabMK2MpPOASKJwJLqAsI6vEsmwwyw6PhQszQc7Kl5E39BRJSOzAam0qLh8dcs3PUV3JBgDcSF0X7vGH5tEaf+6ikKdz9Q1UklubmWVzij+qIHK++EP6O9hTnXpBOSWYXHSCRPjbYfh8gDNBiZR+nMl12MgwwwJ3Ioudo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715342385; c=relaxed/simple; bh=KZTGROaWinyp8KKqjpNmxxuc5q/IqTWQs6Jwq7SF/Z4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=p9NrfZGqPihQc7xJR69wJDDuAHt3vg+sXEUgfpgZdmzNjCAu7fd+I22y/tfy8snlUaen0MiE84qz/LA7mxnqiLOTUqayNY/FDECsvd5VFUQXZvKQa2ZemCpZAC3aUXyyUKne6meWlvuay68vBge1i3xpc6mdOiT56TQv1ySBjbQ= 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=vwXJMVsW; arc=none smtp.client-ip=209.85.218.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 Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a5a157a1cd1so479306766b.0 for ; Fri, 10 May 2024 04:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715342382; x=1715947182; 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=QX/jm4cX7d1+tOu2d8ujXyYCSTAjlQweFsWO3x+wiG4=; b=vwXJMVsWNYZQOJ/8NcjmbnBTBApzNqFhGkloapXpzsamkezH9voNY+vNnoG3If3eRo S8tNmk4VF8v6nBBDnrDqjlhLjIYYlNW/4WUZInKhN8KQ6nGJn2Vub27UBtHViUMl47gL LzHz7cy98nWPux3CkKZKHejnwSMQDwg4up6Nd5vaGDCGPuEfdcp2vDoj3G+9gF08UDXY LVzg+ipqnrkrHczC9rQn91yuWAJ+n/ksV6fjF6fWgrWMCWeB/nqJubXX2vI1Nov/20AE LX8+0tkjcwncNnRdZe6gaALXhXd4LSVZCsTp+0lAXcHqoVGn8I4QC3zMsvirVfytrm+U A/XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715342382; x=1715947182; 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=QX/jm4cX7d1+tOu2d8ujXyYCSTAjlQweFsWO3x+wiG4=; b=QX8hb7atkjR0Kk1wdbRQ9lw1Lm/HrKxSFKNeghI6UDZgf4wTM1DWT7dAQGpBV8Cxw+ OTxGRL5BdSeUSBoDdRqEIpIJt/I82uug7uqs8JsBqfiY0YcT1ge6fwMkiV93Ngy9PjNj YChj/IuL6DvZAMRSEmxrEim1LQvBb78rrQLFlnmuYhjRPPFxt5pXIDjHfcDB6majSNtj uhydls5Gd6zequ5tJzEwbjrECgalexuUIz891Bu1RC2ac2ihPgb99SbvMiYjTtPImrlv t3XCH4S/TgVscedpbPFmDc9VOMZ8U9LwH1XHlWOF561ThSoQ1+hVycHaQRGNhlG13L82 62sg== X-Forwarded-Encrypted: i=1; AJvYcCVn0Bp3SBPy+41oRBew+laIuMiIDcbzSS/66+Ssci9PX7+KaD6nB2ly0LFJOC6rt2vTT2ptDZBXOK/1L3rEV6IvOHqHQ+P148svWM2M X-Gm-Message-State: AOJu0Yzgo5hJSbixqyeB/sGEKZnXgixf12RqhiqonrEMuFcTE9t3eprc Qdtww8lPudKl41beZ2yZSvV5p+3jx2L6wrPWDjw2I5Ico48zlt+GD2xxWeP0su0= X-Received: by 2002:a17:907:7fa4:b0:a59:9fc8:38c2 with SMTP id a640c23a62f3a-a5a2d58550dmr206920066b.31.1715342382100; Fri, 10 May 2024 04:59:42 -0700 (PDT) Received: from [127.0.1.1] (078088045141.garwolin.vectranet.pl. [78.88.45.141]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7df7sm176795666b.111.2024.05.10.04.59.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:59:41 -0700 (PDT) From: Konrad Dybcio Date: Fri, 10 May 2024 13:59:29 +0200 Subject: [PATCH v2 06/31] arm64: dts: qcom: msm8953-*: Remove thermal zone polling delays Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240510-topic-msm-polling-cleanup-v2-6-436ca4218da2@linaro.org> References: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> In-Reply-To: <20240510-topic-msm-polling-cleanup-v2-0-436ca4218da2@linaro.org> To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14-dev All of the thermal zone suppliers are interrupt-driven, remove the bogus and unnecessary polling that only wastes CPU time. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 17 ++++++++--------- arch/arm64/boot/dts/qcom/pm8953.dtsi | 3 --- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arch/arm64/boot/dts/qcom/msm8953.dtsi index 5d818fe057dd..92c86504d6f3 100644 --- a/arch/arm64/boot/dts/qcom/msm8953.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8953.dtsi @@ -1968,8 +1968,9 @@ q6routing: routing { thermal-zones { cpu0-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; + thermal-sensors = <&tsens0 9>; + trips { cpu0_alert: trip-point0 { temperature = <80000>; @@ -1991,8 +1992,9 @@ map0 { }; cpu1-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; + thermal-sensors = <&tsens0 10>; + trips { cpu1_alert: trip-point0 { temperature = <80000>; @@ -2014,8 +2016,9 @@ map0 { }; cpu2-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; + thermal-sensors = <&tsens0 11>; + trips { cpu2_alert: trip-point0 { temperature = <80000>; @@ -2037,8 +2040,9 @@ map0 { }; cpu3-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; + thermal-sensors = <&tsens0 12>; + trips { cpu3_alert: trip-point0 { temperature = <80000>; @@ -2060,7 +2064,6 @@ map0 { }; cpu4-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 4>; trips { cpu4_alert: trip-point0 { @@ -2083,7 +2086,6 @@ map0 { }; cpu5-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 5>; trips { cpu5_alert: trip-point0 { @@ -2106,7 +2108,6 @@ map0 { }; cpu6-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 6>; trips { cpu6_alert: trip-point0 { @@ -2129,7 +2130,6 @@ map0 { }; cpu7-thermal { polling-delay-passive = <250>; - polling-delay = <1000>; thermal-sensors = <&tsens0 7>; trips { cpu7_alert: trip-point0 { @@ -2153,7 +2153,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 { -- 2.40.1