Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3080732imm; Thu, 24 May 2018 22:42:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp0qEEhgLiCywSrx6atjPV2gK5NmL95r6d2mT1lwwO6lqZ53JNmSPwCZp+hXQp44qmUKW/A X-Received: by 2002:a63:4143:: with SMTP id o64-v6mr859450pga.280.1527226940946; Thu, 24 May 2018 22:42:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527226940; cv=none; d=google.com; s=arc-20160816; b=RkjZ3qlcpDq/D7owTCK2ZifIXWqmKt3/DzLev5D8YyO7Ay0YI+IAQcUlhHX9s9Gcek I1aRZfYRWbwbk3yadjrtC+ZQHsoT9y8FSJ7HA6a8XX8oC9gSfUqqiFxsk7iCOmK5lplS UgRz7/xscvPdrdZjZLo4jsoHgU8m7NneQrGeWREITbKsFGL1WfLqgiGxJiQQHI7vZV+e l6/lHQOpdJ4j20/BYGBYyXrOMjA3uRKu7BD4MUyeJ/rq+UHHVEIVA240WZVbGcUDWs+t RABU2wxh1JkRBLIl14udN0VI/Qrn9m4C+Kxuwzc7mnb+MrDzaGTTVvvjtB3C7TdG9f9b O5zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=oRUuLH7flE4Fvg206nWF7csPgcPeAXkHjdKNYq5dMh8=; b=khUxn2SLiGXOU08g/DBhdVTkDDsi8G+/3fmE/4lusi2JPVxGndh1wrRwfE3X2GquEo /aY7VArt7GdV4g79qG7O4H8Xjhn+bRedwnZDCXvZGADhj+Dc4TwLiAxegw2rFzFQGNOR zkNKi6VcD8bhvy9MTBkoU/iK+DjVLXx8c5c50KJ+eXA/kw4bx2sLIDIaelNF1Cu4/Omn /X+LbxcWIXMsMlF9sMBwD+Wno8/KaA2NAlqcWBoddtXxu+jkUbKUfOmaXXN5RHz1nokZ wL1rixNLeqDEo4sjtimgTvYxrZJ/iGsH04vHKmujKrnqVGYxfvid+w7xZ8n8LX1JkRRz XMtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JdGna9Nr; 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 ay10-v6si22710875plb.120.2018.05.24.22.42.05; Thu, 24 May 2018 22:42:20 -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=JdGna9Nr; 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 S1753044AbeEYFl2 (ORCPT + 99 others); Fri, 25 May 2018 01:41:28 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:40305 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964875AbeEYFki (ORCPT ); Fri, 25 May 2018 01:40:38 -0400 Received: by mail-pf0-f194.google.com with SMTP id f189-v6so2021200pfa.7 for ; Thu, 24 May 2018 22:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=oRUuLH7flE4Fvg206nWF7csPgcPeAXkHjdKNYq5dMh8=; b=JdGna9NrumQ0C3jprwSOW4n+BGRLVsJM2q8xYQ+ii88CadkPC2krp2SGJz+AryW7VN dzARt55d59RtyjEmZ4AToTi3SEBg3ONe32+cZTW97hVDC3UpfLw7dr1hAUUV1VjNtjX5 nkwqCDGE0+6OVUQ7yCmzPRK7lyThPvfEBX5ZY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=oRUuLH7flE4Fvg206nWF7csPgcPeAXkHjdKNYq5dMh8=; b=ntDBO8Pwshf8AXQwRH5q4blCD1iCfnBuzhFtskdib/DKq13mgc2Zqc8i6bdZ5PpNzz un0cQbjdzQjs9TuAQ4tkqCIfQYOR123QClbU1K4GqhNSeVta6ggN52jb2ZvTwQS5z/ak hDtA0PT3hKzT8Cg5AWdr3KaWPap11832ppVb7d0lx3QvT3kf4NN7KjeB4NFlF5SpDwz5 Apj0tJl9f/Vi/1uasmYduim8z8jYUezY4xERrsdHxtPGcS5J8MxMQOsGJbyq8TFCIo61 T1P89ombFRQLwIUZXwuQZeaAzxf85jJMsNceTcNqrvnK9v5AaWojjxrVDOBSUj7V3uK4 q0vg== X-Gm-Message-State: ALKqPweWamy4M9qP2wpIHRZEhtLN1RrnBIKV2/8/GipdOtY6paqSx5Ox yNkbI/5tk5ypHC1Mv3Tm5V2aMg== X-Received: by 2002:a63:69c3:: with SMTP id e186-v6mr832546pgc.353.1527226838329; Thu, 24 May 2018 22:40:38 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id c83-v6sm45342586pfc.111.2018.05.24.22.40.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 22:40:37 -0700 (PDT) From: Viresh Kumar To: arm@kernel.org, Wei Xu , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon Cc: Viresh Kumar , Vincent Guittot , ionela.voinescu@arm.com, Daniel Lezcano , chris.redpath@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] arm64: dts: hisilicon: Add missing cooling device properties for CPUs Date: Fri, 25 May 2018 11:10:03 +0530 Message-Id: <0754957a2c3842cf4e36fa27231d327fd8d6d499.1527225682.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cooling device properties, like "#cooling-cells" and "dynamic-power-coefficient", should either be present for all the CPUs of a cluster or none. If these are present only for a subset of CPUs of a cluster then things will start falling apart as soon as the CPUs are brought online in a different order. For example, this will happen because the operating system looks for such properties in the CPU node it is trying to bring up, so that it can register a cooling device. Add such missing properties. Do minor rearrangement as well to keep ordering consistent. Signed-off-by: Viresh Kumar --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 586b281cd531..247024df714f 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -88,8 +88,8 @@ next-level-cache = <&CLUSTER0_L2>; clocks = <&stub_clock 0>; operating-points-v2 = <&cpu_opp_table>; - #cooling-cells = <2>; /* min followed by max */ cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + #cooling-cells = <2>; /* min followed by max */ dynamic-power-coefficient = <311>; }; @@ -101,6 +101,8 @@ next-level-cache = <&CLUSTER0_L2>; operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + #cooling-cells = <2>; /* min followed by max */ + dynamic-power-coefficient = <311>; }; cpu2: cpu@2 { @@ -111,6 +113,8 @@ next-level-cache = <&CLUSTER0_L2>; operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + #cooling-cells = <2>; /* min followed by max */ + dynamic-power-coefficient = <311>; }; cpu3: cpu@3 { @@ -121,6 +125,8 @@ next-level-cache = <&CLUSTER0_L2>; operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + #cooling-cells = <2>; /* min followed by max */ + dynamic-power-coefficient = <311>; }; cpu4: cpu@100 { @@ -131,6 +137,8 @@ next-level-cache = <&CLUSTER1_L2>; operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + #cooling-cells = <2>; /* min followed by max */ + dynamic-power-coefficient = <311>; }; cpu5: cpu@101 { @@ -141,6 +149,8 @@ next-level-cache = <&CLUSTER1_L2>; operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + #cooling-cells = <2>; /* min followed by max */ + dynamic-power-coefficient = <311>; }; cpu6: cpu@102 { @@ -151,6 +161,8 @@ next-level-cache = <&CLUSTER1_L2>; operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + #cooling-cells = <2>; /* min followed by max */ + dynamic-power-coefficient = <311>; }; cpu7: cpu@103 { @@ -161,6 +173,8 @@ next-level-cache = <&CLUSTER1_L2>; operating-points-v2 = <&cpu_opp_table>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>; + #cooling-cells = <2>; /* min followed by max */ + dynamic-power-coefficient = <311>; }; CLUSTER0_L2: l2-cache0 { -- 2.15.0.194.g9af6a3dea062