From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933947AbcLGX3V (ORCPT ); Wed, 7 Dec 2016 18:29:21 -0500 Received: from mail-wj0-f194.google.com ([209.85.210.194]:33654 "EHLO mail-wj0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933287AbcLGX3S (ORCPT ); Wed, 7 Dec 2016 18:29:18 -0500 MIME-Version: 1.0 In-Reply-To: <1560e022c1584376cf5a55ed048e0b60485adf2b.1481106666.git.viresh.kumar@linaro.org> References: <1560e022c1584376cf5a55ed048e0b60485adf2b.1481106666.git.viresh.kumar@linaro.org> From: "Rafael J. Wysocki" Date: Thu, 8 Dec 2016 00:29:15 +0100 X-Google-Sender-Auth: RJVmo9ffTTNQ1hmC6KDkLz9g9e4 Message-ID: Subject: Re: [PATCH] Revert "PM / OPP: Don't assume platform doesn't have regulators" To: Viresh Kumar Cc: Rafael Wysocki , Viresh Kumar , Nishanth Menon , Stephen Boyd , Lists linaro-kernel , Linux PM , Linux Kernel Mailing List , Vincent Guittot , Jon Hunter , swarren@nvidia.com, Thierry Reding Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 7, 2016 at 11:31 AM, Viresh Kumar wrote: > This reverts commit ef3caabee9691386e6801ea92150e37277db9c7a. > > The commit was based on the assumption that a platform with voltages > specified with individual OPPs, would have registered a regulator as > well in order to do full DVFS. > > That assumption is broken by the Tegra124 platform. > > For Tegra124, the voltage is not scaled via a direct call to the > regulator subsystem because the DFLL directly controls the I2C interface > that controls the voltage. The DFLL essentially figures out the max > frequency for a given voltage. So to run at a particular frequency, the > DFLL continuously adjusts the voltage in a control loop fashion to get > the desired frequency. > > Following are the logs from: NVIDIA Tegra124 Jetson TK1 > > cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 696000 KHz > cpu cpu0: dev_pm_opp_set_rate: Regulator not registered with OPP core > cpufreq: __target_index: Failed to change cpu frequency: -22 > ------------[ cut here ]------------ > kernel BUG at drivers/cpufreq/cpufreq.c:1235! > > Fix these by reverting the offending commit. > > Signed-off-by: Viresh Kumar > > --- > Rafael, you can simply drop the patch if that is easier for you. Done. Thanks, Rafael