Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751866AbdHBDt4 (ORCPT ); Tue, 1 Aug 2017 23:49:56 -0400 Received: from mail-pg0-f46.google.com ([74.125.83.46]:33447 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751727AbdHBDty (ORCPT ); Tue, 1 Aug 2017 23:49:54 -0400 Date: Wed, 2 Aug 2017 09:19:51 +0530 From: Viresh Kumar To: Shawn Guo , =?iso-8859-1?Q?S=E9bastien?= Szymanski Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Fabio Estevam , Julien Boibessot Subject: Re: [PATCH 1/1] cpufreq: imx6q: imx6ull: use PLL1 for frequency higher than 528MHz Message-ID: <20170802034951.GA31169@vireshk-i7> References: <1501230993-15812-1-git-send-email-sebastien.szymanski@armadeus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1501230993-15812-1-git-send-email-sebastien.szymanski@armadeus.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1500 Lines: 47 On 28-07-17, 10:36, S?bastien Szymanski wrote: > Setting the frequency higher than 528Mhz actually sets the ARM > clock to 528MHz. That's because PLL2 is used as the root clock when the > frequency is higher than 396MHz. > > cpupower frequency-set -f 792000 > > arm_clk_root on the CCM_CLKO2 signal is 528MHz instead of 792MHz. > > [ 61.606383] cpu cpu0: 396 MHz, 1025 mV --> 792 MHz, 1225 mV > > pll2 1 1 528000000 0 0 > pll2_bypass 1 1 528000000 0 0 > pll2_bus 3 3 528000000 0 0 > ca7_secondary_sel 1 1 528000000 0 0 > step 1 1 528000000 0 0 > pll1_sw 1 1 528000000 0 0 > arm 1 1 528000000 0 0 > > Fixes this by using the PLL1 as the root clock when the frequency is > higher than 528MHz. > > cpupower frequency-set -f 792000 > > arm_clk_root on the CCM_CLKO2 signal is now 792MHz as expected. > > [ 69.717987] cpu cpu0: 198 MHz, 950 mV --> 792 MHz, 1225 mV > > pll1 1 1 792000000 0 0 > pll1_bypass 1 1 792000000 0 0 > pll1_sys 1 1 792000000 0 0 > pll1_sw 1 1 792000000 0 0 > arm 1 1 792000000 0 0 > > Signed-off-by: S?bastien Szymanski > --- > drivers/cpufreq/imx6q-cpufreq.c | 11 +++++++++-- > 1 file changed, 9 insertions(+), 2 deletions(-) Looks fine to me: Acked-by: Viresh Kumar @Shawn: Can you also confirm if this looks fine to you ? -- viresh