From patchwork Fri Jan 6 08:04:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9500175 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 89F4B606B5 for ; Fri, 6 Jan 2017 08:05:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7966F2833F for ; Fri, 6 Jan 2017 08:05:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DBC228413; Fri, 6 Jan 2017 08:05:16 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 06BF52833F for ; Fri, 6 Jan 2017 08:05:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cPPWQ-0004zf-J9; Fri, 06 Jan 2017 08:05:10 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cPPWK-0003Of-NU for linux-amlogic@lists.infradead.org; Fri, 06 Jan 2017 08:05:07 +0000 Received: by mail-wm0-x22d.google.com with SMTP id c85so15788718wmi.1 for ; Fri, 06 Jan 2017 00:04:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=EjPtR5Gisko0qGChiZb9VJlN1Gbu7CwU2VjpEVKd/p8=; b=cAP+IwIiSC0P+j38iO89E3us/JPTgAC4piPDrUX/jY5DzFAFkxVjGQtqarORI+/sN1 HTMk6OZak5QitdXtxD5TOFtKjfNir7oY2HqHErH8OLblaWlXA0MVVcqxB/PHK7o+7+SE 9BxI6XIx+rnJPzEhbEuV/QqVRe7cu2OCTBy/PsIV2N/maObtA8czTZQsJ7RVzNfK+Zmi EQLR2ZvqIYzmAZRVtG+XK+TwFYp3KRZTm9aUq44amv2+DgbHRDqNM6pw82HkGW3odhrm sdulz5E1SIvZTxXDP0aOrsFLXdkV02dTD3GlufhQpr0CvV3jXUY6Km7QghnJtH0YjLr2 pd4w== 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; bh=EjPtR5Gisko0qGChiZb9VJlN1Gbu7CwU2VjpEVKd/p8=; b=DttVc7IKcE1HiffuGryZwswMwp4qs+Yz8VQGJJ6iMGKTy+D5nusy4CZ1QxqnK9iUgM cYw5cvjVR73Xcirn6OlLDgT9T/lGZhmdXmWI6zlpTP6bUZRz6Y2RW89I47aRxIMdJiie sBaU3BxSiiS4jgbxOt0POZ86QQKd54Ck5Gg1zKEILLsWH+NZGA4v3hdoCIGv9FWVj0zd ccFYmQDruMIpgIxSjMh9fH9eHkx1U51DMtB1+4t/h0N1cSHPzcQZj8oYrdZLR5e8PVDF 4FM/M9qz73tDGtNW94/Bvli1R9AgSVdiUEo1Fg9pgAmnHzcdbuxgwLkQdugIeX1PxFlD Vj6w== X-Gm-Message-State: AIkVDXJtDCHva1kwQXsSxHgwvsxL8pudDbQVRSMc1+p12MVf9hRQyL2G7nKfGfr+pvXRyXjs X-Received: by 10.28.91.141 with SMTP id p135mr2158257wmb.128.1483689882765; Fri, 06 Jan 2017 00:04:42 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k11sm2121711wmb.18.2017.01.06.00.04.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jan 2017 00:04:42 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com, carlo@caione.org Subject: [PATCH v2] ARM64: dts: meson-gxbb-odroidc2: Disable SCPI DVFS Date: Fri, 6 Jan 2017 09:04:32 +0100 Message-Id: <1483689872-30389-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170106_000505_224768_CE102337 X-CRM114-Status: GOOD ( 11.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: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong 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 current hardware is not able to run with all cores enabled at a cluster frequency superior at 1536MHz. But the currently shipped u-boot for the platform still reports an OPP table with possible DVFS frequency up to 2GHz, and will not change since the off-tree linux tree supports limiting the OPPs with a kernel parameter. A recent u-boot change reports the boot-time DVFS around 100MHz and the default performance cpufreq governor sets the maximum frequency. Previous version of u-boot reported to be already at the max OPP and left the OPP as is. Nevertheless, other governors like ondemand could setup the max frequency and make the system crash. This patch disables the DVFS clock and disables cpufreq. Fixes: 70db166a2baa ("ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes") Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 4 ++++ arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) Changes since v1 at [1] : - Disable scpi_clocks instead of scpi_dvfs_clock [1] http://lkml.kernel.org/r/1483628549-29486-1-git-send-email-narmstrong@baylibre.com diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts index 238fbea..5d28e1c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts @@ -137,6 +137,10 @@ }; }; +&scpi_clocks { + status = "disabled"; +}; + &uart_AO { status = "okay"; pinctrl-0 = <&uart_ao_a_pins>; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 51edd5b5..77caedd8 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -55,7 +55,7 @@ mboxes = <&mailbox 1 &mailbox 2>; shmem = <&cpu_scp_lpri &cpu_scp_hpri>; - clocks { + scpi_clocks: clocks { compatible = "arm,scpi-clocks"; scpi_dvfs: scpi_clocks@0 {