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: 10427055 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 424656025B for ; Fri, 25 May 2018 10:37:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 219122880B for ; Fri, 25 May 2018 10:37:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15BDB291B4; Fri, 25 May 2018 10:37:08 +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 922082880B for ; Fri, 25 May 2018 10:37:07 +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=iJ9ydZOIb26P7TuIOZ/k6pqIv4ET+lCqJcI8227HE1E=; b=OHzTfQUq7ONxmYlwLtxN8vbtou Pb0rIQentT3slWwdh5QC+FffpR+7q1Gwr4nAejV4PWJg/LSE2xKqou1sTq2tYDlxJpwjTjRZ7o9Cb LG7CQuzATn0lDOVo71xLJwXGjQStiFjRrOkm3hSMpRzmhE9Xdee8+ffPdyfkOBhawK0Qg1radAe59 Xr28OzI2hzyIHZCcovmQhGJyimBVtlgmQLzXtFE2q8gxX4mNHXJvCFgxTVNVHEg5nA194lFsNWUwB fjir9Awv9RW5RJq3Ujyk+BmI7d/9ry7+FRaFeDxNOfIo/cNY/QwHZjC0cqEOjhWJu2blNnzPN4Gkb gnMNKMHA==; 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 1fMA5h-00060D-CC; Fri, 25 May 2018 10:36:57 +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-0002Uv-6D for linux-arm-kernel@lists.infradead.org; Fri, 25 May 2018 10:32:58 +0000 Received: by mail-pg0-x241.google.com with SMTP id a13-v6so2126207pgu.4 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=UIiBFE+XCRYTrJTxM5wjLewhcnsNQF1FTCKu4O39ICYBeLnnsyWoImWVVp70PFTaNl CMfiNY4QKuv2Rpt0N7R8uibG+i7qJH8iZEQt3JcmOZG21QWZLmM0eZxA4P2fnxJPA5RG 2+DmT0N0nFUFXPtJnMGVMj33qNup7lXu6Wmn+86EdnX/I34It4S3IBZQBBSkEn+hovW3 VWxZlULGRWzeo4rGn17oD6XTHJ6IA3l2gpBoeuXrObZ5WynotOL9xG58e3e4UYBvQ4ie 6brgGEkMsbDzp8HPC4n3kZyNX41cn3qLSBfuNsdJ86Ccsc0apFLWsXxfikI1ivsWbivp 5UQw== X-Gm-Message-State: ALKqPweAThzdJJzM8ohTErMxDZE0zE+XIP2mTLLTo5IBtxNPd2SIyw/h MG/iguXzyR7FDHhRDXpNGMHOgg== 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_260290_2B79DE09 X-CRM114-Status: GOOD ( 11.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: 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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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"; }; };