Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp775757rwb; Fri, 13 Jan 2023 04:07:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXt4y6NIAyY+flrO7ADO4TJOCvYk3CUrSK3dm1D9GeRNTA7yIYGKMd5c2tZelzjQO3hnotvw X-Received: by 2002:a05:6402:4141:b0:469:ee22:d97a with SMTP id x1-20020a056402414100b00469ee22d97amr73657260eda.32.1673611647520; Fri, 13 Jan 2023 04:07:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673611647; cv=none; d=google.com; s=arc-20160816; b=rtiKEhCkxd9hz3hfdZhDg/wCsa+enE7g3Eq3RzS5ASbcMeBKUbAtPDUZQ5r9XEi3Mb xkndhqePAXMigf4pWKbTK8jAiQMD2S64aPcZMBW4ba1NQPHgOFY4XSZmnyy+fooeTvND 8c1mB6/SeVW1SSVVYMS1kOMDH/m1RNNCS7cx+PmlzpRh/hrjDVPGjrlk2wKIduj3telr sQf6sBybuLOAoKwbr/E3fZn89It/+jpyv7ROhg4jaekJQaGwQyXiUi9CYUm8axJd+cnZ /9q6qI1AjSxlPNdu1/sIV+xUtlRwTLU1OnGrR78GO8Jrs3cCDS53OlgNNz9Ob9qEEcFH E6pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=pWKzVegiwa5Stk0wIV2Qox87RUsnW7KUMQyCCHGUjVY=; b=R2JrP4eAlerZTboUnS/JY/GPZm5SW8iCuVhV+YuQTftEwFhHIlnsUGIU1bcV0l23hB ILbm2MQbcXsWYsVR1Y63KMPC2m3Fq6xWLEJuNXgzSq/LHEQmhqcpEVkujASR2TEeQ6xx +4nDAjNBPpmZqUBg3zBzuENzJZ28Q7Ba52gKktH37+k3qDFwUEMtqAx4PV249V2J6FMl nTZdNTZ0H0n3amTnxo6o41LZ44DDGIbeHwDp2i9c34z7kD7zehmYzO1KR2t6JeZ1TWjx 6Wdvd1u0ZUeGrT0ZHAXBzC+84I6EBIeaqnbxi0S1KVmlakbkeEvo33stV+FrCdI7k/gq 3Jjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="b9fmNtI/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020aa7c0c8000000b0046c38a4d141si17779987edp.100.2023.01.13.04.07.14; Fri, 13 Jan 2023 04:07:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="b9fmNtI/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241024AbjAMLwu (ORCPT + 53 others); Fri, 13 Jan 2023 06:52:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241389AbjAMLwV (ORCPT ); Fri, 13 Jan 2023 06:52:21 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5503E395EB; Fri, 13 Jan 2023 03:49:52 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id q8so3293054wmo.5; Fri, 13 Jan 2023 03:49:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=pWKzVegiwa5Stk0wIV2Qox87RUsnW7KUMQyCCHGUjVY=; b=b9fmNtI/tk6TKyJHc4xoLPUwo1opwIrOQKmPPAFlzOTurbE31JKpEAE3F0o2WYXW17 ojcVxoGg8MGLM+1Nds5k+KvjWzddVBq8sdvsLeAn3MOhSUllRWONR/sjKjcgq01VC2Wr ozVYrHBTUM081VyR5KFTkGSvvzTEcmhWaE7Z7r9LX9IQYrytDcL/duYthYIK2/Wxn9U6 0jRE2l/GGk5ToTAwnUZXsO6jsxj2CGR7nYhvywFyoFbTzRK1/wHN4UXG4l8Xc/g1pcLA NaDVTAwp7UoD/3y3W56jEmtnqPo2zwvNxmDXRYg4ID2BdM6O79Wr+5EcNjRLLjRUnELr pWBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pWKzVegiwa5Stk0wIV2Qox87RUsnW7KUMQyCCHGUjVY=; b=u5ZjyF0TBhvTLVEbMd9QsobezTJvxkV8r1ubZem9/Zf4b/eTE3+NBPKC/DbrqHhxs6 pv6On+2WZflaQf9tqdQrYkjFLSKoI7w0PD7XuRSpkuYCaiu/KoEJvox4l5OKsgpdOK7C hu069ZBslW6do3cbExPTCWVLSx3LCrpKHJI8Lwdz+raXqr3EE+kEUasfXEx984f/Tso2 QtHBV4LILPI3CDD5XM5TCGOBL5WENOqAkuE6yML3eegsjhOHCXA3cCqSYf6ertpzuEXL UoKFsnLO5loaLKYkKXqidpuWaBcK6kVCMcfisfhv2DDGYrYUYmre9Gcgug7lMlIr4k6m futw== X-Gm-Message-State: AFqh2ko7YHOeAt4SFbeyN9MtWlOsF1a3k9JP8wGJd8Lj1nFEuqG+Ime4 gcsxwkK/FGcKjyRanPDpCM4= X-Received: by 2002:a05:600c:34ca:b0:3d6:80b5:f948 with SMTP id d10-20020a05600c34ca00b003d680b5f948mr58668937wmq.39.1673610591416; Fri, 13 Jan 2023 03:49:51 -0800 (PST) Received: from [192.168.0.30] ([37.222.254.155]) by smtp.gmail.com with ESMTPSA id m5-20020a05600c3b0500b003c6b7f5567csm2597704wms.0.2023.01.13.03.49.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Jan 2023 03:49:50 -0800 (PST) Message-ID: Date: Fri, 13 Jan 2023 12:49:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v10 6/6] arm64/dts/mt8195: Add temperature mitigation threshold Content-Language: en-US To: bchihi@baylibre.com, daniel.lezcano@linaro.org, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, james.lo@mediatek.com, rex-bc.chen@mediatek.com References: <20230112152855.216072-1-bchihi@baylibre.com> <20230112152855.216072-7-bchihi@baylibre.com> From: Matthias Brugger In-Reply-To: <20230112152855.216072-7-bchihi@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/01/2023 16:28, bchihi@baylibre.com wrote: > From: Balsam CHIHI > > The mt8195 board has several hotspots around the CPUs. Specify the > targeted temperature threshold when to apply the mitigation and define > the associated cooling devices. > > Signed-off-by: Balsam CHIHI > --- > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 153 ++++++++++++++++++++--- > 1 file changed, 137 insertions(+), 16 deletions(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > index 683e5057d68d..0d6642603095 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > @@ -14,6 +14,7 @@ > #include > #include > #include > +#include > #include > > / { > @@ -2413,107 +2414,227 @@ dp_tx: dp-tx@1c600000 { > > thermal_zones: thermal-zones { > cpu0-thermal { > - polling-delay = <0>; > - polling-delay-passive = <0>; > + polling-delay = <1000>; > + polling-delay-passive = <250>; > thermal-sensors = <&lvts_mcu MT819x_MCU_LITTLE_CPU0>; New line here please. > trips { > + cpu0_alert: trip-alert { > + temperature = <85000>; > + hysteresis = <2000>; > + type = "passive"; > + }; New line here please and on other trip point definitions. Regards, Matthias