Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1769787yba; Fri, 10 May 2019 00:20:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhKcfNWXo6TzQjnZTRLlKdi1l+jn4ZLZ0nO12xjSEpZRkXmP+KHicr1hQGSG4JkmA+5FM5 X-Received: by 2002:a17:902:b40b:: with SMTP id x11mr11298919plr.265.1557472807750; Fri, 10 May 2019 00:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557472807; cv=none; d=google.com; s=arc-20160816; b=HHwIWKuC1gdhMzeWTqaMcBmiKefiqH+V1nOy0p4668ra8F2MsaTzELY7PAr1RoMEFM I/VNbSW0DZAmAjrpsOcJk2HKAlftDb95S5RMb3qLlwOO5UunSAmMwDeRzb9PvnykEb1h ch0vy6M3rQr6wvxCKHYjQZNKudrKPYCQ3zj7tOHo5FaYXoWwrjK9Nq7Dsr2Zfw6ukzat Id6oBsn4Obnvgtz7SR5MM64wDeVX+QUzC770GVY+D8YzkD9NHUI3S9tN4idhBsCHblJx j3ImnZ82tPPiFKPW9RkxqMkBwnJdh2cmnGF+KrXAEfUjhehN9IsMiSqwBoflhCybrIaI ymdQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=JvTnepYea0EBsHjZpph8FxtYlM4OPmMVBMIjktcmeVM=; b=mSicSxQR86Ugm3rgoRC9PgiNtmxtW+lVGXuDdj3CM2Q1XhpkaN1S/k+INKhd/Xvo9d xEZ6CNuBW/h8DHGk8xri1onKgJPp7L2DR5bohXlxu+6FxBFRgrBnf36DEkEsM2BFmORX XOY9htCtqQT3pdB3XbK+bDfxqG3FBmdG+O0ZCRn3yMuZEt3AQsjldktQCNuw6P8GgTJN b3doTk4O2Yben+DAqtvGldPDE//vtbpnhZSbsZkiaD1ANgvwX99gbA8HbQXVjZoDeSzv TdP5TfHdVmwA3gn2cl8DYpMHCbm5X0qv8fnGMXp7ORr2dItucLiyHNNMV4NQ5fm2Jk7s pukQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cTVa3xp4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id e6si7308654pgj.590.2019.05.10.00.19.51; Fri, 10 May 2019 00:20:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cTVa3xp4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726924AbfEJHQh (ORCPT + 99 others); Fri, 10 May 2019 03:16:37 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51849 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726855AbfEJHQg (ORCPT ); Fri, 10 May 2019 03:16:36 -0400 Received: by mail-wm1-f65.google.com with SMTP id o189so6269842wmb.1 for ; Fri, 10 May 2019 00:16:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JvTnepYea0EBsHjZpph8FxtYlM4OPmMVBMIjktcmeVM=; b=cTVa3xp4hXBoZyNXrz0uNxHmzZiNUJbTL+zYRUNb5Kp7iDXGPDo/Qwf/AIQNvql+z1 TNjnQyNXYNfOcVp1naNqLyp7JnkYXPiGmm7uW0pXrOuuy3ErZ+IOtyd7T9NGKUWs15+z QY8WPl1qTvbOjwGdfYngu0PbbEwqcfiCeU+VGc9xKWI4luR6PWMvrmPJCAlBXymKuDTa 8nT/9wThav6hqA2g8NyuKGMbwFsewaoYYbw3aIQewGFEg/x6nXkpL2jcSY76SjEaa4tm skaXfrXagfMko40tR+Mbk3toK0awX0PY9AO9usxErzdPoBI3/b/yOLZBFOG4BL03vBy4 TGiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JvTnepYea0EBsHjZpph8FxtYlM4OPmMVBMIjktcmeVM=; b=CfWi2T/KoSN1Ial66xESWi+s6xWD0YO4MN5PYaLzvyVTs0Qc/dbvayKfC4kJQ95Mdn nL833f78mZBWpk/m9pRctWUEWDaJwdGee5OmcrsL0Aq0Sn22huSrDwo0cJQqmnGdiKJC P8XxYSLL9R8Y04nC+/6gktsgnUvyDL9RXAAaNSUrt2O2pJ/T7YRCSliHCJyrCB/C9qQ6 caqDsGzQ1ds4ptwd1Xy81/Ipk2N/umUdYvnq9gRr4XiTHzxAfQy9vKbxNNgn6IDiTBm7 HcAsazdiVOJ4TLAc7rMWR6EPaXQBhH7jRWfHgZ3x/MTouizZzKD2S++B9Nt1ZQXgxP7V q2yQ== X-Gm-Message-State: APjAAAUp/0rWcfjaX32gGmk1PBNv6UcL1FZa1g3R3y1uZ3Yd9ix/P0NG sKr1A4M+zytzPY3lS1kzSLnQiw== X-Received: by 2002:a1c:80d7:: with SMTP id b206mr5606595wmd.48.1557472594154; Fri, 10 May 2019 00:16:34 -0700 (PDT) Received: from [192.168.0.41] (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.googlemail.com with ESMTPSA id i18sm6521170wro.36.2019.05.10.00.16.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 May 2019 00:16:33 -0700 (PDT) Subject: Re: [EXT] Re: [PATCH v6] arm64: dts: ls1088a: add one more thermal zone node To: Andy Tang , Shawn Guo Cc: Leo Li , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-pm@vger.kernel.org" , "rui.zhang@intel.com" , "edubezval@gmail.com" References: <20190423022507.34969-1-andy.tang@nxp.com> <20190510031335.GD15856@dragon> From: Daniel Lezcano Message-ID: <9fb2e306-38c7-2af7-5470-ff5bc4e23370@linaro.org> Date: Fri, 10 May 2019 09:16:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=gbk Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/05/2019 05:40, Andy Tang wrote: >> -----Original Message----- >> From: Shawn Guo >> Sent: 2019??5??10?? 11:14 >> To: Andy Tang >> Cc: Leo Li ; robh+dt@kernel.org; >> mark.rutland@arm.com; linux-arm-kernel@lists.infradead.org; >> devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; >> linux-pm@vger.kernel.org; daniel.lezcano@linaro.org; rui.zhang@intel.com; >> edubezval@gmail.com >> Subject: [EXT] Re: [PATCH v6] arm64: dts: ls1088a: add one more thermal >> zone node >> >> Caution: EXT Email >> >> On Tue, Apr 23, 2019 at 10:25:07AM +0800, Yuantian Tang wrote: >>> Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core >>> cluster sensor is used to monitor the temperature of core and SoC >>> platform is for platform. The current dts only support the first sensor. >>> This patch adds the second sensor node to dts to enable it. >>> >>> Signed-off-by: Yuantian Tang >>> --- >>> v6: >>> - add cooling device map to cpu0-7 in platform node. > I like to explain a little. I think it makes sense that multiple thermal zone map to same cooling device. > In this way, no matter which thermal zone raises a temp alarm, it can call cooling device to chill out. > I also asked cpufreq maintainer about the cooling map issue, he think it would be fine. > I have tested and no issue found. > > Daniel, what's your thought? If there are multiple thermal zones, they will be managed by different instances of a thermal governor. Each instances will act on the shared cooling device and will collide in their decisions: - If the sensors are closed, their behavior will be similar regarding the temperature. The governors may take the same decision for the cooling device. But in such case having just one thermal zone managed is enough. - If the sensors are not closed, their behavior will be different regarding the temperature. The governors will take different decision regarding the cooling device (one will decrease the freq, other will increase the freq). As the thermal governors are not able to manage several thermal zones and there is one cooling device (the cpu cooling device), this setup won't work as expected IMO. The setup making sense is having a thermal zone per 'cluster' and a cooling device per 'cluster'. That means the platform has one clock line per 'cluster'. The thermal management happens in a self-contained thermal zone (one cooling device - one governor - one thermal zone). In the case of HMP, other combinations are possible to be optimal. -- Linaro.org ?? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog