From patchwork Fri May 25 10:31:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10427031 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4BA0C6025B for ; Fri, 25 May 2018 10:34:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B067291AB for ; Fri, 25 May 2018 10:34:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1F2AF2962A; Fri, 25 May 2018 10:34:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8ED77291AB for ; Fri, 25 May 2018 10:34:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=OQePkpjEDg+HEg5Sls09G2aa4FHBiH5EKLWiFHLnt/8=; b=t9XmuWWklAcpuz8UwEmr+3esRa qc/2vlK/aD/Mr+yvwUXFxRtG1LkrtQ2yfM4Xz4f89pZPgMKFmJENrjI29oGpYIlNRcAhr+/z0C0lQ ZIquCn6sQZPB/PMH21PIQP9QaLSOpdUAqVNjBoBpTtsDvXAdGwRVOXIum5/ypUQ5GUJYHtMMHuGHp VkTgLqgVwXz4hsCWv9cBrnyo/jnPOkEF/g0Aw2W7CLRNHZPHDGf36QwpCWZz3ex8dBS0ExDaAZR5V 59ReiQKmL2jW//4vKIFcSpm7jZ9p2qlwVCUV9XFLTe/mksjQn/VdB7cq4sfuRNGkskTj2ClDtoVkb r0iy7rWw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMA3N-0003Z4-LG; Fri, 25 May 2018 10:34:33 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMA1Z-0002Uu-5w for linux-rockchip@lists.infradead.org; Fri, 25 May 2018 10:33:00 +0000 Received: by mail-pg0-x241.google.com with SMTP id n9-v6so2125378pgq.5 for ; Fri, 25 May 2018 03:32:31 -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=V+CJBX3KvWHKeo7l89z3xy06DLgg/62TOHOYsyOLhig=; b=LBWCsEkhxbL761KunTXV8L+9aOXdSXQW/KJXjM1eHHahJJhxrVK/f4Vja8k6EnWmMA E/8lNwhg1NbxJN/Tr+mL4kPRtKAR2J8qC4+ZgGKKCnKseClQgwBvhsae5wcnhSAkpjXw neyjDknxvLP48K9P+Y6/6VmJP/hjJpU0y4rQ0= 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=V+CJBX3KvWHKeo7l89z3xy06DLgg/62TOHOYsyOLhig=; b=sdUSZwvnaeSjS93eHGnpHf3PCCOCUUa+tnqS/OYXVv06levdcCQBym/g2Oskd1/7BQ WxuSOeadStZXT1Iv8MsP9IQxxzhehxI4U/WMHnD1bzJD8VwYNXNvhhJDiQU3E8FgSj95 Bsf4Pn+3ivrD1BvEAp9iGCg+gmEzMe5YbT/G1WSi5AmlZONdMNyPA9TNj/TEkNg1Pqu/ sAFBXUanMFA1L27MmrF8sN9CUY6i0M/qRy4QYnmNf3PEXs0DTMEci1CrXfncddEib/cs KIexpGvspM7XNtDItdeidBS9Lhz+DA36Qpy5eNyqtSUVwfPgiszpIv/TnL1Yx04YO05+ UMRw== X-Gm-Message-State: ALKqPwcRBz+vHiWCE2f3ZOevdczlzAbMafedETLu/GSU2vT5ymU/sgsB Purd2xq7xhvEm3dnwd+iti7O/BRx/1o= X-Google-Smtp-Source: AB8JxZq55/Mqyx5HS1byzPrAO1vGgmaZmJyK2VB30Vswg5LTbA3/fi9td7MDpdcO7iODBHBSF9tavg== X-Received: by 2002:a65:5b4d:: with SMTP id y13-v6mr1559879pgr.152.1527244350682; Fri, 25 May 2018 03:32:30 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id y24-v6sm42160948pfn.23.2018.05.25.03.32.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 03:32:30 -0700 (PDT) From: Viresh Kumar To: arm@kernel.org, Heiko Stuebner , Rob Herring , Mark Rutland Subject: [PATCH 04/15] arm: dts: rk322x: Add missing cooling device properties for CPUs Date: Fri, 25 May 2018 16:01:50 +0530 Message-Id: <406021e33d541ca0318a6b15687084ca19fdd943.1527244201.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180525_033241_272024_169AA6FE X-CRM114-Status: GOOD ( 10.39 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Vincent Guittot , Viresh Kumar , Daniel Lezcano , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, chris.redpath@arm.com, ionela.voinescu@arm.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Viresh Kumar --- arch/arm/boot/dts/rk322x.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index be80e9a2c9af..ef414e39bf3a 100644 --- a/arch/arm/boot/dts/rk322x.dtsi +++ b/arch/arm/boot/dts/rk322x.dtsi @@ -80,6 +80,7 @@ reg = <0xf01>; resets = <&cru SRST_CORE1>; operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; /* min followed by max */ enable-method = "psci"; }; @@ -89,6 +90,7 @@ reg = <0xf02>; resets = <&cru SRST_CORE2>; operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; /* min followed by max */ enable-method = "psci"; }; @@ -98,6 +100,7 @@ reg = <0xf03>; resets = <&cru SRST_CORE3>; operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; /* min followed by max */ enable-method = "psci"; }; };