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: 136825 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3396577lji; Fri, 25 May 2018 03:32:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZocvChG8kAmm9OcSJv2oukA+8beH21tPgK4EgIUskevXO2PEQX8tWOAUpGLvdCp9F9P8S1M X-Received: by 2002:a17:902:8a8c:: with SMTP id p12-v6mr1995116plo.94.1527244356365; Fri, 25 May 2018 03:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527244356; cv=none; d=google.com; s=arc-20160816; b=bEHMMJp7iYFG0f3kjo71aQl6rVzy346eRNfTwDp8pl49y5gV2vkpF3cqksDH1vo1Q0 Akp/89ftr9jaltWbpzoMz0w8S/s3pHYkZsgbvzJ4JkNket+lIJk9oZzSxvPvRu08dEto R0nmhCqGNX85/MYgAr/Jd8oFhQVObJTqUqJlcXpwf70UDAWP9RNEgb5A9e2Wa26fyNWU XGPnM/UlxMD8n2AvzSKpS72Qe/iRoEFaEl3BgzmCaVw66JDxA1DS3kqlLtLfLuDhuoAg dSLFtq5R5Nt4iX7gLz2jEQeXIECd4Nd0Swqr65ux3MFB+JXrAR1ZhXPf1QBHUQoO0NzE 1MgQ== 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=V+CJBX3KvWHKeo7l89z3xy06DLgg/62TOHOYsyOLhig=; b=zSNfTeK8wWuMGO1mpSh3wvmwl2KTnVwYg5SFMBfKOhaXTlemdcyPM7o81XhNH49eI6 cXgvhqfzSPKNlnZk8Jfgi1N9oqcJH9nRpUJGU/mak+pCaerGA1dVvChdynj/RgsSXu4E lDeN31oJ3FQT5FsjH1dvw2NmYuGO8R3DH2tPJGylapyMWIk+PVesfAvCRyD3TGlf4EWZ +BgWlYNUAdX46WnisTSQNmnRxE1200gVVFNNwDcX27oHncDaWZBFt7tFcChPVt/kRHNY cgzby/5juoeH1rixTuYOORui1sRibtaP8e5sJXlyx2iNHZysULO57fE9EQIR6CE5NjEH VgYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LBWCsEkh; 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 t19-v6si22708780plo.287.2018.05.25.03.32.36; Fri, 25 May 2018 03:32:36 -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=LBWCsEkh; 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 S966164AbeEYKcd (ORCPT + 30 others); Fri, 25 May 2018 06:32:33 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:41918 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966081AbeEYKcb (ORCPT ); Fri, 25 May 2018 06:32:31 -0400 Received: by mail-pg0-f65.google.com with SMTP id d14-v6so2128775pgv.8 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=HQqKdbryDKp/w2WtmPBcEvRQd5hE29+lCzgTaolpXHFf/eCtZ06OZ4TOVl0tkMecjW +42ngJdb8m/8sEtfpepVlvkSdVzvDLd+BADFNN8ATMIGRx+u59LtoXgwy14T8xhpFhQJ GTlZMfSLSCwc4p1IG47LCgiemi8WgkFn5HUE5XNZbgTqStLWrjGaN9Vdlgo8pW1+esjb JkP8zOT0xQmpzz/z+YQbArpG3n2qgJslJxYZTD6KnNKGvgxkZUIhOClaP8YxFIxJmzQe oJ6UPauZvqiPkVNgYiIbRO964X4nz7m+sipDpnjlzSiP3i1fmi4Xo6YFDTy3hX5ts+ds hNHw== X-Gm-Message-State: ALKqPwcJOAd9uehKYvx83nOnnGH93AsJ0TsTjDHjhOojOqNTjAbJAZw6 bMflpipuhNjTjo6FuuxthGhRZQ== 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 Cc: Viresh Kumar , Vincent Guittot , ionela.voinescu@arm.com, Daniel Lezcano , chris.redpath@arm.com, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org 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: 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. Signed-off-by: Viresh Kumar --- arch/arm/boot/dts/rk322x.dtsi | 3 +++ 1 file changed, 3 insertions(+) -- 2.15.0.194.g9af6a3dea062 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"; }; };