Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp378034imm; Thu, 5 Jul 2018 01:45:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpevG6ItqXSvqA+0So4EtICmBgWZgu2pC/W50pf8ym9vL6C24Eah7M9KgWHdnDMDkYbICM0w X-Received: by 2002:a65:5a49:: with SMTP id z9-v6mr4763803pgs.244.1530780347926; Thu, 05 Jul 2018 01:45:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530780347; cv=none; d=google.com; s=arc-20160816; b=rEplD7Sd2JOCNXJaqqyApCLrZnx/3JB3WGEjgK/PIarLpvZd1E6nmrNkYPFggTxaAT 2PnwSBKwymFJMcbo+K1kQlqo4iGyhrx5k9YJug9sW429ThhOuX67AtBTrXuuV06wYkmg zXpU2Wkm9iGcIlsR9V26gbDGTdOpqP7a2XRRRcMjye/DiFw3EpYXILCtq+8rA1Y2XZI/ pDRBcvWEwr8HaR0rnjHaPziPHT074XyDQQwWroZ1rAhRPGHUkavuoVdf45oqlTmqsCAN vXDpfJYoeZKm/gyydNO5DdxPWxrpt9ixWr4BrFOxyP0GQPhsAiIMsHCMqKS0AqatrmAX FPIw== 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 :arc-authentication-results; bh=BBXtZzioIdlCsSor9pn99TCvPwac/URVNnLCgPLo8dw=; b=Fg0tqJDP+Inv5BxhL7JzHC7vl94AexEktzyX2fZem/BrH4VEdseqUtMyG1wSKGrjPn 8fhd4xQBLQ4YPN2QoL02niAxYT/9A+9pCzpcGH2qA+oBIn34PgguQztWVqXw5tdcdbvM CIeVeXsq9FWafTSiACKGUrZkB9UZntHxlBOaLeHDyzNS4VQeqPCvGzYIVUIBYbE++2OA HbMdLZEzv8aWtu+8b9mes5xxTsatMfxPei9zEkIK8aFkqWRfol7CRLGf9wCV2E4+n3sY 8WVGdGbBf5y+gbNx/somHMc+KsoByfcjYs4jyzpx+C7w59TX7kRNhCCS9A7rY/v6tgmf dP3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RAiv5LgY; 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 k6-v6si5087710pgk.256.2018.07.05.01.45.33; Thu, 05 Jul 2018 01:45:47 -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=RAiv5LgY; 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 S1753508AbeGEIoX (ORCPT + 99 others); Thu, 5 Jul 2018 04:44:23 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34968 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753287AbeGEIoV (ORCPT ); Thu, 5 Jul 2018 04:44:21 -0400 Received: by mail-wm0-f65.google.com with SMTP id v3-v6so5863819wmh.0 for ; Thu, 05 Jul 2018 01:44:20 -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=BBXtZzioIdlCsSor9pn99TCvPwac/URVNnLCgPLo8dw=; b=RAiv5LgYi5iNcEoxJaFBdt2d16zuOJJJ7L3T3RAJkTrpT2Rm9wxndlkIPr4jRuAzjG Jwu40M6h6wY+U7aUrlA0LRHXD9iTvANWOPOe7wiZ+XUGv4hm66saQE1HNy0tZTMag6fT zj4vU1nVeaBgAOAvxIUImsQWovfcYoP5jL+Vs= 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=BBXtZzioIdlCsSor9pn99TCvPwac/URVNnLCgPLo8dw=; b=mk4EqdDpT/OjUIljhcPMFhisHKzOdFwshEBcinV6qeCDWyYBiih1migd3upwaU1+Ik wdY3nHnFVl4KYzgksAhNEbO3PL3DQhK/9XILpKK8pk+1UTkDZ5bP4f3iP+eBW1dnqOfr GnXrKpSJGZkzCDHXSqzCBCUiNf3lXHDGI3w30ScbTMNyf7286UNEgmUqgqQIVMpFh2dR BW1jqhvSGDZEr1KyO77N1Dmt9vGHS29soyu2l0RxcaHxZ4Mnu71sAbMwQctG5BmsEjAB 0rFStB9y296m6L2T1hS4U6UjJD8KmeTIeayQ4kkNmmYFlsFruiCar2GyVoZKpzbc5qGW +Aqw== X-Gm-Message-State: APt69E2Mpv5VpxOKLB8jdE2JfaW6WAPiVjuzyERHQ66lFhxxI0cgBjuI RqJQg9BZ0u0wsdSW7YMcuy4t9whuvBo= X-Received: by 2002:a1c:96c8:: with SMTP id y191-v6mr3330835wmd.37.1530780259770; Thu, 05 Jul 2018 01:44:19 -0700 (PDT) Received: from ?IPv6:2001:41d0:fe90:b800:84b1:bd51:47a2:fc02? ([2001:41d0:fe90:b800:84b1:bd51:47a2:fc02]) by smtp.googlemail.com with ESMTPSA id b1-v6sm7464898wma.23.2018.07.05.01.44.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 01:44:19 -0700 (PDT) Subject: Re: [PATCH 2/2] arm64: dts: hi6220: Add all CPUs in cooling maps To: Viresh Kumar , Zhang Rui , Eduardo Valentin , robh@kernel.org, Wei Xu Cc: linux-pm@vger.kernel.org, Vincent Guittot , devicetree@vger.kernel.org, olof@lixom.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: From: Daniel Lezcano Message-ID: Date: Thu, 5 Jul 2018 10:44:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 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 05/07/2018 07:09, Viresh Kumar wrote: > Each CPU can (and does) participate in cooling down the system but the > DT only captures the CPU0 in the cooling maps. Things work by chance as > under normal circumstances its the CPU0 which is used by the operating > systems to probe the cooling devices. But as soon as that ordering > changes and any other CPU is used to bring up the cooling device, we > will start seeing errors. > > On the other hand, the hardware is partially defined in DT in these > cases and we must do a better job by capturing all devices. > > Add all devices (CPUs here) in the cooling maps which are also affected > by the trip point. > > Signed-off-by: Viresh Kumar Acked-by: Daniel Lezcano > --- > arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi > index 247024df714f..919d36b91bf3 100644 > --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi > +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi > @@ -886,7 +886,14 @@ > cooling-maps { > map0 { > trip = <&target>; > - cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > }; > }; > }; > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog