Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1006946rwb; Fri, 13 Jan 2023 06:53:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXt9PlzLScb0xQD1K2VhQEYR2g+7qe+z6hsJmP0t5NvdfSp1oUOnfZJQn77u/INsh+regkEA X-Received: by 2002:a17:902:d2cf:b0:192:90e7:41d5 with SMTP id n15-20020a170902d2cf00b0019290e741d5mr86184089plc.52.1673621635963; Fri, 13 Jan 2023 06:53:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673621635; cv=none; d=google.com; s=arc-20160816; b=ZvE/LHIqEnxDM+7IyNsMiffGCn//BUuAnfPHzxfUZn3VrFyJDDO/sXqYyTPRnI8B3k +5WuzRUk1D6xzUzJ0DEuE1BKtjAsD1qgDD02nKH/ZQ4FAchRGtbo8U9zWATOx9bVFskJ 9BAvDKqjC7fpd1rKGTTV0ZTG7q34F6K1YiO35emdHpIgKyjSDSoUXrtNIOzynoxTkM6N RjJVMghg+9VgXLpazrm+oTRN5+JOfNLXXBVtZK8U8yp6ihbkIEfSlvquAOsG6FjnIOZj meIhioMFJPchTdnL5Cf1JXIjd+DmvAYNXtX2Jt9PrrCvobmaMSiAX1/BbcVkgRxJbquz wJkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YEUcQJgo4nd7YRU9VbAj1BQarAeAhdaCCvt7HZueth4=; b=TqANF9FAnMy/8r64cP3TEV3ZL3lTSKETcbau+HQ/X+IFOzuupjMRuBMPn2bugQG92f y/2FQAGluMd8D77gsxOp4uXlUF2iIDq+i8dfchY/NB98pbhHqmaOyFJFC76gKOOii43O 17GB303s/U3g6c103i+/+5/GMfGByBvSPRp9SfoomfsexXm8WGryDOZuF/WWD3dK/prF sU1tx6TQnpvXGFf3G1ESzC90J6tNpNNWtHEkj2DdzpVP1gge6MYXUz2XzBID5ijT0z2+ F3cbAHJM5ShD+ZwZ0uUZ7Y86QDGJVpNUZerl7ehzVzF8nkZoU5IeClykwLxQdmbTY7KK s6Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=k6r9nxff; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a170902e84d00b001944c51f9d6si8130407plg.123.2023.01.13.06.53.49; Fri, 13 Jan 2023 06:53:55 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=k6r9nxff; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229726AbjAMOdM (ORCPT + 51 others); Fri, 13 Jan 2023 09:33:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbjAMOcC (ORCPT ); Fri, 13 Jan 2023 09:32:02 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABDE660E3 for ; Fri, 13 Jan 2023 06:25:33 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id v10so30173799edi.8 for ; Fri, 13 Jan 2023 06:25:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YEUcQJgo4nd7YRU9VbAj1BQarAeAhdaCCvt7HZueth4=; b=k6r9nxffwxxByM++kGiGb1vHHyRXAE938BBi8hokhVcsx9RQWHVSsX/cqY4Pc6ObvP Fl/uwzCHjMccvMnIfnDa0Bs4yN7HT1OdK+AxVzTnxnDh8AFQh3CLtN5W+YsKXUXG34K1 vUBV3KfCaTR5NqkFXScK8219n0P0mlxC8eg5Ab68JYMIIeQ28blbm8Od/N2C2V2cQxf0 bgqb8ORnhcs+vourTXKeoCNZOdzLiPaJQ9anjnOjinn7XNJQ8Z5gpXQ32Xpuq/40DqvP AC2pJ1lYVnlQU7fqLKePJVO/GF7jyt9NXRi3UbRjAqK3CkssoaFX4SDICxjJjyFXO6uD L2GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YEUcQJgo4nd7YRU9VbAj1BQarAeAhdaCCvt7HZueth4=; b=4OhD/RMlpNDU6E/Iu++8Wadlu5Y9B05eZzILtNtSBmrs/NEYEITBFXJf/aG4mJFXEL n1ECggqVMhz5Hi7INCeDXG1jqcsjsdXH9eJZA30xhvnbBlgiZOo5NMoU8TvauQm61TaN d3ZBNccdJxosY4TBDbZpDMIyEq4A7DoJPCB9dPWaX6fR3qEJsjl9fCPBCTOzoERswhj8 WVV97pK+IKcDrwDhgmnaciTYTDWVPGYFayHmmlwyzxE4FN1DlnOztBqv2HbZW+8tbMrB e5mWH+8r5HGQcFnMMUZTuXqk8MR0Y7n+ATqT9fAvVGxk/LwY2HLmcbFU4IEzb5aRRL2Z tFGw== X-Gm-Message-State: AFqh2ko8hrZZg13i0MbU1ZIHtAGXn8FIYZJROSFq0FMF+dUzKaSyxhfN TzYbyLUgxBJNmY25G58Bivntg8kHrU9YhWEYA3mp1A== X-Received: by 2002:a05:6402:4013:b0:49a:b8ee:ef4b with SMTP id d19-20020a056402401300b0049ab8eeef4bmr787211eda.143.1673619932279; Fri, 13 Jan 2023 06:25:32 -0800 (PST) MIME-Version: 1.0 References: <20230112152855.216072-1-bchihi@baylibre.com> <20230112152855.216072-7-bchihi@baylibre.com> In-Reply-To: From: Balsam CHIHI Date: Fri, 13 Jan 2023 15:24:55 +0100 Message-ID: Subject: Re: [PATCH v10 6/6] arm64/dts/mt8195: Add temperature mitigation threshold To: Matthias Brugger Cc: daniel.lezcano@linaro.org, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com, 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 Fri, Jan 13, 2023 at 12:49 PM Matthias Brugger wrote: > > > > 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. > Hi Matthias, Thank you for the feedback! It will be added in the next version. Best regards, Balsam > Regards, > Matthias