Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3313114ybt; Mon, 29 Jun 2020 22:43:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzukInCkP0m3tyE4aebXJSgzDLjP/0+5xdpuFUz+CT/JmiUUNn7goDv154oAr3R/Ahl1LZh X-Received: by 2002:aa7:c655:: with SMTP id z21mr21306229edr.330.1593495826859; Mon, 29 Jun 2020 22:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593495826; cv=none; d=google.com; s=arc-20160816; b=egh7vHKQbfQMpCY6oQIgq3JBU6TJEinBKSbtht077Zsvfo6/GU4qwm2yxiX13VBBrY 6XBy8YHuxngZbDMhBzVEupA5Eu/eWEb36fKa5/lmVkzffXYZkrJkl+3aJ2du34OveyPi AbQZHcR/KixDXUfRpDR4/Kn6FZGwctvOiYFpy7Ia3gGMFi56jM1n9jfkcpilYzdUR+Hp ET+FtnQJUR3U00lCGD8etCkD1LyK0DCW+8bUgdF++V931bi69dNRmyNCs+WM4bo6adLI tl2stmNpIm2ZIW9TRYf1YKK241dMM5OEgtKRejFXWjTVVXqPHkIrBrq+qQG4wTBTs1hq raRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=y+NTTpix/VNOdqLN5V3EttevSJs3w1JqKA5tqe0k7BM=; b=i5kg9RllRv+Ri9B8oqMXwxnUA6MenqcrpjEyO6W8Yf4Z1bRebdlG393xU7xkrF5ZgF //33LjahHHjyiALOjV5BH4vAny4zbp2CDD26VxFISsahYrpZKK1kzM4Civ9ekmeEXbkq 4SalelADVQYmkbnypV4Ve0FR+U2ljzwknMcw4UVZ/d0qzJ3a9jBopMCJ8MgA+wbpixFa G6pzimr0BbfiDR3uKeya4idIp9L2AS0mXM7x7niuwgFmtWDFeJ6cIyYJfLIdrXJg0D3K 895JbFwXrV3luVSbpk3pcqxyaaxN3I2uZaaIhnPKzroLVa+B1UFaXu5JNxRjtnZiDwOp /a4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eYs6ntqm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si1030542edr.555.2020.06.29.22.43.21; Mon, 29 Jun 2020 22:43:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eYs6ntqm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726875AbgF3FhK (ORCPT + 99 others); Tue, 30 Jun 2020 01:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726010AbgF3FhK (ORCPT ); Tue, 30 Jun 2020 01:37:10 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F08A6C061755 for ; Mon, 29 Jun 2020 22:37:09 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id n23so20997991ljh.7 for ; Mon, 29 Jun 2020 22:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=y+NTTpix/VNOdqLN5V3EttevSJs3w1JqKA5tqe0k7BM=; b=eYs6ntqmqtss9ojrvsY3GbB/7L1Al+U7Czg/OV/4iPVxFlg/rgjAwylYV2+807Ouw3 lG2gJOT6XtkwFhsSetyTp9B8beQdewzvq/NiVR+Ld/CtY3TmqPqJsGdIKNRSJgpEG+Va HI+a0ktwNFAqqxnY5QzXXsDkxmfbfRXtzzJwH0R0p3Krd1wqu9p9hRUdHu4borVz2iky ua61SdmRu99QBiPLuGGEbJJhbl2bl2jK8hph6bBgjLfGUKts9nCzELPGrg3B/qD8RTO+ CvwzlQaEB3O6b3sCb6o28skMvKESdqY+ZIMoymJl+kjgJvPPzrUfHCVuchyknlc7mlgz SIfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=y+NTTpix/VNOdqLN5V3EttevSJs3w1JqKA5tqe0k7BM=; b=Avtc+n03BhmFsDbhc/AdjC9+WTEV7aNx5uWYYNoKh5afNcbqFVgSRXgV4u/rgICXPc mcA5HE8cvasv0Zc3fVCBHCcjd07JJ+MhV2ut+8T/awy10Q5Qc+WyIwGYkCHdln717O7M HkB6AQWxmHEhHPvkk4y3m8L16Gt8LqFIAlPwbKstzWx4Q8QYsxFDsecPh4X17ufN2lFh PMQQSlY30sRyN/66CGt2lqgPwwWKh7Q3SZREY29e4VpeqiYU9z4WuCln+epcj5atW+2w 1MztWcPE33RbDtMabVxco3GlBJYlCh4ryqOeVjbynjgcVODnOAZqax7ea3ZkcorZM16D 3KQA== X-Gm-Message-State: AOAM5310S5GQa5pTG2okFYWXuOiIjq9AAf3wipLpROiDFJlxj6h65xKC 6YGkxvKQjnGK7lkpmNuOvj7xFz80x0e+zGQ4wFZTQA== X-Received: by 2002:a2e:a58a:: with SMTP id m10mr9501981ljp.346.1593495428184; Mon, 29 Jun 2020 22:37:08 -0700 (PDT) MIME-Version: 1.0 References: <20200630032014.22956-1-andy.tang@nxp.com> In-Reply-To: From: Amit Kucheria Date: Tue, 30 Jun 2020 11:06:56 +0530 Message-ID: Subject: Re: [EXT] Re: [PATCH 1/2] arm64: dts: ls1088a: add more thermal zone support To: Andy Tang Cc: Shawn Guo , Leo Li , Rob Herring , lakml , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 30, 2020 at 10:58 AM Andy Tang wrote: > > > > > -----Original Message----- > > From: Amit Kucheria > > Sent: 2020=E5=B9=B46=E6=9C=8830=E6=97=A5 13:12 > > To: Andy Tang > > Cc: Shawn Guo ; Leo Li ; Rob > > Herring ; lakml ; > > open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS > > ; LKML > > Subject: [EXT] Re: [PATCH 1/2] arm64: dts: ls1088a: add more thermal zo= ne > > support > > > > Caution: EXT Email > > > > On Tue, Jun 30, 2020 at 8:56 AM wrote: > > > > > > From: Yuantian Tang > > > > > > There are 2 thermal zones in ls1088a soc. Add the other thermal zone > > > node to enable it. > > > Also update the values in calibration table to make the temperatures > > > monitored more precise. > > > > > > Signed-off-by: Yuantian Tang > > > --- > > > .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 100 > > > +++++++++++------- > > > 1 file changed, 62 insertions(+), 38 deletions(-) > > > > > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > > > b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > > > index 36a799554620..ccbbc23e6c85 100644 > > > --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > > > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi > > > @@ -129,19 +129,19 @@ > > > }; > > > > > > thermal-zones { > > > - cpu_thermal: cpu-thermal { > > > + core-cluster { > > > polling-delay-passive =3D <1000>; > > > polling-delay =3D <5000>; > > > thermal-sensors =3D <&tmu 0>; > > > > > > trips { > > > - cpu_alert: cpu-alert { > > > + core_cluster_alert: > > core-cluster-alert > > > + { > > > temperature =3D <85000>; > > > hysteresis =3D <2000>; > > > type =3D "passive"; > > > }; > > > > > > - cpu_crit: cpu-crit { > > > + core_cluster_crit: core-cluster-crit = { > > > temperature =3D <95000>; > > > hysteresis =3D <2000>; > > > type =3D "critical"; @@ > > -150,7 > > > +150,7 @@ > > > > > > cooling-maps { > > > map0 { > > > - trip =3D <&cpu_alert>; > > > + trip =3D > > <&core_cluster_alert>; > > > cooling-device =3D > > > <&cpu0 > > THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > > > <&cpu1 > > > THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, @@ -163,6 +163,26 @@ > > > }; > > > }; > > > }; > > > + > > > + soc { > > > + polling-delay-passive =3D <1000>; > > > + polling-delay =3D <5000>; > > > + thermal-sensors =3D <&tmu 1>; > > > + > > > + trips { > > > + soc-alert { > > > + temperature =3D <85000>; > > > + hysteresis =3D <2000>; > > > + type =3D "passive"; > > > + }; > > > + > > > + soc-crit { > > > + temperature =3D <95000>; > > > + hysteresis =3D <2000>; > > > + type =3D "critical"; > > > + }; > > > + }; > > > + }; > > > > You should also add a cooling-maps section for this thermal zone given = that it > > has a passive trip type. Otherwise there is no use for a passive trip t= ype. > It is better to have a cooling device. But there is only one cooling devi= ce on this platform > which is used by core-cluster. So there is no extra cooling device for it= . > This zone can take action when critical temp is reached. So it is still u= seful. > What do you suggest? If the action taken by the core-cluster cooling-maps is the only one that can be taken, I suggest getting rid of the the soc-alert passive trip completely. It is not of any use. If there is a chance that your soc thermal-zone can heat up before your cpu-cluster zone (unlikely), you could use the same cooling device (cpu0, cpu1) for soc thermal zone too.