Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp54122imu; Mon, 26 Nov 2018 07:53:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wwm+oPT01QzfuH2X/xIaDfhqK+qr0lbmAbsc3qBv9Sa7aep4ndaZj7mbVVwM4UefxJ+rPZ X-Received: by 2002:a62:8949:: with SMTP id v70mr13719220pfd.85.1543247594748; Mon, 26 Nov 2018 07:53:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543247594; cv=none; d=google.com; s=arc-20160816; b=GElQLhWfK7Pq5ycVSix42U+3HBO68KN0rgwPhGi66hl2THqStXC6GP14zQqNF45PfB 5HVlwZK2t72K6Rovyt9svTFV6z99Dn+mFNzepJHyGsS69NwyrtI2i9rJGBj1Eb+f5Lp8 Z/xeANYRcm8C5iJnx/R41oURtyt61eKvg4aSgVVz9ts82VKa46JbiOMVfGArqdwRyVFS G9DpwnSoEAFSv7hXLGu+EZOgspFB9AqHZz7RE93GPzg7ai+cJvHNP3+AIZqymo8lM6Gk z+LhO3jh5KKIZmxmOGJAJidouY8bM9C6PdLAgZDBLV5lrSAXs86/fGgjkwDXFKpqNlAX iusw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=8EUBaF/CO/3E+rlAYdfoIJSKGOBFTYWcflaN2XtYZFc=; b=1KmWVWb7yMfpt5Lp4Khnx9cajYjvgCExyke6AAmJelc7aK5EZHsJEvBPpVz+LKw8/d iUsHiDILQtUVIeLmP0E3ey+gopV7DAtzTG628imuRuDrMjU2EL9lj0S84RZWJbbW4wJl JsvSX9lEoEUoo84GyLbbqJ/VCp9pMMsnRoGNvwzkhdyTgbS9GlMNwVJeAyjAGB/oz+pA iXGU5nTO/dmz9xH3/KOyBLfGHV+n5sUe75Jj7eegiijXlsvzRtZ1ETmxCWgKfjrdDjyv 6QlFNxY/Kg2N56VUUhXSL+5n4EprpK4+YxEdiddP/eRFx/+8MYNaKTfSlwC6ia4rpKXB iEOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=LXcJbimF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15si615107pgf.321.2018.11.26.07.52.09; Mon, 26 Nov 2018 07:53:14 -0800 (PST) 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=@nifty.com header.s=dec2015msa header.b=LXcJbimF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727029AbeK0Co0 (ORCPT + 99 others); Mon, 26 Nov 2018 21:44:26 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:30562 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbeK0Co0 (ORCPT ); Mon, 26 Nov 2018 21:44:26 -0500 Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) (authenticated) by conssluserg-05.nifty.com with ESMTP id wAQFnfDQ009105; Tue, 27 Nov 2018 00:49:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com wAQFnfDQ009105 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1543247381; bh=8EUBaF/CO/3E+rlAYdfoIJSKGOBFTYWcflaN2XtYZFc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LXcJbimFvaAl0LvUfBlds0xHccgP6ALyrMmaeuuaVtb3mGbZ8E6unQMhJjuhHnJFR +13jlMUkbzXiqQ+XcXShL2qDLFVgVBNSGpkobcYEMBKGKTvV8yGP2I0Gkw79cspLoP DNcwkolK2WRrvCO85nHipW6H3JhGzcFTu/W+Hkoj6S9N+q784+OlXv2xgjb42fx1oi KaYF526jH4pomLYFHzAEPBgj/Cs+eL6Xql8ofT3AtsCIeRzQsa5J/aFKm4aI+R0lIj W5UT/ZxZDx/Hp5yO8ssRa84d6o5nahtzhwlqQU6hiZoxSBb/tPdfs3M5UNCQ876S4O nDAbu4Xy9bq6g== X-Nifty-SrcIP: [209.85.217.48] Received: by mail-vs1-f48.google.com with SMTP id h78so11614335vsi.6; Mon, 26 Nov 2018 07:49:41 -0800 (PST) X-Gm-Message-State: AGRZ1gJ6Yvkv0nzgyz7+A9YXvaYPIcy/82eF4m8sD9m+PtY6cpWzv2US yXaQG2rJYRO54nWj37pg+MX4+GqWMVIHmJdAXko= X-Received: by 2002:a67:385a:: with SMTP id f87mr11873768vsa.179.1543247380192; Mon, 26 Nov 2018 07:49:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Tue, 27 Nov 2018 00:49:04 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 10/10] ARM64: dts: uniphier: Add all CPUs in cooling maps To: Viresh Kumar Cc: Mark Rutland , Rob Herring , arm-soc , DTML , Vincent Guittot , Daniel Lezcano , linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 16, 2018 at 7:06 PM Viresh Kumar wrote: > > Each CPU can (and does) participate in cooling down the system but the > DT only captures a handful of them, normally CPU0, in the cooling maps. > Things work by chance currently as under normal circumstances its the > first CPU of each cluster which is used by the operating systems to > probe the cooling devices. But as soon as this CPU ordering changes and > any other CPU is used to bring up the cooling device, we will start > seeing failures. > > Also the DT is rather incomplete when we list only one CPU in the > cooling maps, as the hardware doesn't have any such limitations. > > Update cooling maps to include all devices affected by individual trip > points. > > Signed-off-by: Viresh Kumar Applied to linux-uniphier. Thanks. > --- > arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 11 ++++------- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi > index d7e2d8969601..4a0c46cb11cd 100644 > --- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi > +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi > @@ -206,13 +206,10 @@ > cooling-maps { > map0 { > trip = <&cpu_alert>; > - cooling-device = <&cpu0 > - THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > - }; > - map1 { > - trip = <&cpu_alert>; > - cooling-device = <&cpu2 > - 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>; > }; > }; > }; > -- > 2.19.1.568.g152ad8e3369a > -- Best Regards Masahiro Yamada