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: 10426363 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 E754960327 for ; Fri, 25 May 2018 05:42:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7B872959A for ; Fri, 25 May 2018 05:42:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA702295A2; Fri, 25 May 2018 05:42:05 +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 1AC832959A for ; Fri, 25 May 2018 05:42:05 +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=mSQLsXUiUhbSAsP1/odoQ1btnHkdiA06vBKq5sFN/rA=; b=JsClp7/0PpMkvm8BEHmBGkHMg2 cdhbtg/FleZ30hDWHYBWePw2L59Tz6circwRukmn5s214Z3fXWrCjxjK4Fnw4F6TxT6ZorOIqpPJH bptIYf3Mys/dXtg/gIpKpvvmv9JAjN0/6lM3pR0QrM32Mt02TlJBhd5NI+bzx6wn0gI4sG+YzBHBX /CcTp1VgjeVUG+HntpQBzlUiErWRz4bVZPtYahaPJAszjVu29uWH4AKmV2jzQM+Fj0e6ciVkb4Syi fB0jpoGGS+oJ2t+7jokGMCMaZLrxacfD/ZhR1QH+SaD00Nup/1kJN2aS1mQah3kfDVn8Sab03zyHJ WHTbFT7A==; 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 1fM5UF-0007on-RH; Fri, 25 May 2018 05:41:59 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fM5T0-0007A2-PE for linux-amlogic@lists.infradead.org; Fri, 25 May 2018 05:41:04 +0000 Received: by mail-pg0-x242.google.com with SMTP id w12-v6so592496pgc.6 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=YdRL/BOq/FvtTYCp6V/bw3JRL5bbzpl6MZOSkNfy4R/PCsEFfuorP8f9BmChN+G72p A+9sqIX+pD1g40XpBwUPp2X90EpHVOrdbwqCD+3kILD8+RzTZIqvP6BfYeS276r5xpoK c4KsXG7wxtY9PWF/EYxQvzeFlZE21DblJE7ziHDWjrlPHmBtRvJQ+uYi/hChq6DgrDRj ND61HVBhbezX17EOV6TQvNByQDdnZB14b3MsJ9jMr4BqV2IrFJaomXFm9E6Di3dgTk+2 UrdLpaGi03wr1EAb0GsRK4dHpcNkEe1MXYVKinydxeWzXv43r1GeBofba6W0gyGlxf/v s7sA== X-Gm-Message-State: ALKqPwcND/BMFOU0lwL7oGOMpjd6AItDFefXPrUv6ZSTAmPQGCdlmutb mYUnCh2asG/z8GW7o6uYtX89Hw== 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_224042_834558_D3FB0F35 X-CRM114-Status: GOOD ( 12.16 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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";