From patchwork Fri May 25 05:40:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10426365 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 8AED76025B for ; Fri, 25 May 2018 05:42:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 78A8D2959A for ; Fri, 25 May 2018 05:42:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BD18295A1; Fri, 25 May 2018 05:42:21 +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 D717B2959A for ; Fri, 25 May 2018 05:42:20 +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=7mL7SmfTEX7WibZ541tW+XlNLyhWJ+jSrlUMPXeeDkw=; b=gLzV6oNZpQtPHE4rwv4LtQS+KI qMYAtEQdRWVVi4cT8QfeuxL+BzHDwUxFlO6gScQfUH5cEOgvECkbL0zAsZnvFDecUFQvKHLBU+KUw OM2CXd1P6AxWiBxWrqwjYcwDpSj0IJxoVmdLJ8UGqTAZaS4M5licn9TzXsh6KBmCPui8Ufp0KaZOI XwTgWC77je7fXdAA1GLzgAgwgkfmJeXi01I32XAIRh2xk4jCaUtyuOn9u3Y9guSzS+GhRrTmGK2Kr dfEwWZ9dJXTLgDFq6xjSM0Ap4CzE0SeTL4uN4qLPDl9g67Zl1a+PWvCDqOKUkZVzql2J1+HwTxRe8 ZCPmmE2A==; 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 1fM5UL-0007sF-TY; Fri, 25 May 2018 05:42:05 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fM5T0-0007A1-WF for linux-arm-kernel@lists.infradead.org; Fri, 25 May 2018 05:41:05 +0000 Received: by mail-pg0-x243.google.com with SMTP id d14-v6so1802004pgv.8 for ; Thu, 24 May 2018 22:40:32 -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=hwQRPtJwELRwroK0mLEyLQwzDYQ+FdBcWbYH3k/0iwE=; b=L131riTAvGlxh6kRudcMUbDo0gN5ZzDZ0PY3rEdTl4WxOsI65ciTTWhiTWBhwJUHXh ghOAyIsQX7n/CY5p4hxkjafqG8AzRU6A/0bQgVbpTM1C6F8plmIbdMUdbQtlThmaujQA BZZOtpqXbT9jbgyk96pAq8KR3xplJIUBjPXak= 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=hwQRPtJwELRwroK0mLEyLQwzDYQ+FdBcWbYH3k/0iwE=; b=Ci+1aqb/iYGWFAVpjSjNfFAzqqnMdPS5dcid0PJ74UGKDTTnF1J4gMOP8hOVojBiu7 evk9L/4jw+BrGCT+6NCH+cJlqFqQP+Lnh1q4ZEqxXKjK1lSAveSvUbArLLFpZr/wMgiP srJxZxVpZED/e5EhcnYyPZVPY7d2nyGjYrofW31z0/8JNfmhFwH0zmWQKHu1m+1M42id ixC5GLDUmHcqvoYmUwmd0TBEbmwq3/mUMRdPEJ90/jRwHKpphvjzyrv5rls0blAv5wu/ BWyPNz9uo2HmGpYa7dmtrmvPcfYrkvWTl5mh5ffgXV/eX1+32s0Y+HJLf4dgukTim2Us RWBQ== X-Gm-Message-State: ALKqPwfRwhu6LOnvcKmkJaMTqy792vAwyuurPEDX4aUbEZ8urPap/ObD Cj9HNDt1Jpd74iTzIlaBLFoN4Q== X-Google-Smtp-Source: AB8JxZpaIl9cxyURvOBFtE7xeZsk3at30wtBu27vRuCtX+kRKe7Wj6arr2gmh2PqtE/chydEInC5yA== X-Received: by 2002:a63:be01:: with SMTP id l1-v6mr856138pgf.382.1527226832186; Thu, 24 May 2018 22:40:32 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id e10-v6sm44738785pfb.136.2018.05.24.22.40.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 22:40:31 -0700 (PDT) From: Viresh Kumar To: arm@kernel.org, Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Carlo Caione , Kevin Hilman Subject: [PATCH 1/6] arm64: dts: amlogic: Add missing cooling device properties for CPUs Date: Fri, 25 May 2018 11:10:01 +0530 Message-Id: <2a2eb28da9fecf129f6bc0ab3d3748d9f4d25a29.1527225682.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-20180524_224043_061142_F9F590F7 X-CRM114-Status: GOOD ( 14.03 ) 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-amlogic@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 --- .../boot/dts/amlogic/meson-gxm-khadas-vim2.dts | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts index 0868da476e41..313f88f8759e 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts @@ -209,10 +209,34 @@ #cooling-cells = <2>; }; +&cpu1 { + #cooling-cells = <2>; +}; + +&cpu2 { + #cooling-cells = <2>; +}; + +&cpu3 { + #cooling-cells = <2>; +}; + &cpu4 { #cooling-cells = <2>; }; +&cpu5 { + #cooling-cells = <2>; +}; + +&cpu6 { + #cooling-cells = <2>; +}; + +&cpu7 { + #cooling-cells = <2>; +}; + ðmac { pinctrl-0 = <ð_pins>; pinctrl-names = "default";