Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932480AbbKRBib (ORCPT ); Tue, 17 Nov 2015 20:38:31 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:47526 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751702AbbKRBi3 (ORCPT ); Tue, 17 Nov 2015 20:38:29 -0500 Date: Tue, 17 Nov 2015 17:38:27 -0800 From: Stephen Boyd To: Ulf Hansson Cc: Bjorn Andersson , Bjorn Andersson , "Ivan T. Ivanov" , Georgi Djakov , Peter Griffin , linux-mmc , "linux-kernel@vger.kernel.org" , linux-arm-msm Subject: Re: [PATCH v2] mmc: sdhci-msm: Boost controller core clock Message-ID: <20151118013827.GC32672@codeaurora.org> References: <1436183618-15330-1-git-send-email-ivan.ivanov@linaro.org> <20151106233913.GB30882@usrtlx11787.corpusers.net> <20151110201841.GB24116@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1851 Lines: 44 On 11/16, Ulf Hansson wrote: > [...] > > > > > > In case you're wondering, the max frequency for sdc1 on 8974ac is > > 400MHz. If it's just a plain 8974pro then the max frequency is > > 200MHz. Otherwise, sdc2 maxes out at 200Mhz and sdc3 and sdc4 max > > out at 100MHz. > > When you say that sdc1 supports 400MHz, what does that mean? That it > actually can cope with that clock rate when communicating with the MMC > card? I suspect there must be some internal divider in the sdc IP itself so that it doesn't put out 400MHz on the bus, but I really don't know. What I mean is that the clock going into the IP from the clock controller is running at 400MHz, after it goes into the IP it could be divided, etc. before exiting the SoC on some pin. > > This makes me wonder how you deal with power management (DVFS). > > For example when you have the possibility to gate this clock (at > request inactivity) when the rate is set to 400 MHz and OPP is > increased, how will then that clock gating affect the OPP? Sorry I'm not really following the question here. The gate will disable the clock in the clock controller, cutting the signal off upstream of the sdc IP. When we do DVFS we'll stop considering this clock as part of the overall power level for the voltage associated with the frequency. When all other clocks that are using the same voltage and are on and running at frequencies that don't need that high of voltage we can reduce the voltage and drop down to something lower. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/