linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] cpufreq/regulator: Limit minimum voltage only
@ 2013-04-19 11:55 Taras Kondratiuk
  2013-04-19 11:55 ` [RFC PATCH 1/2] regulator: core: Add regulator_set_voltage_min() Taras Kondratiuk
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Taras Kondratiuk @ 2013-04-19 11:55 UTC (permalink / raw)
  To: lgirdwood, broonie, rjw, viresh.kumar, shawn.guo
  Cc: cpufreq, linux-pm, linux-kernel, Taras Kondratiuk

Using a "voltage tolerance" for doing DVFS is not a proper way.
It leads to a few issues:
- voltage is limited to a narrow range near OPP voltage,
  so other consumers of the same regulator can't set their own constraints
  if they don't overlap with this narrow range. No ganged rails :(
- usually OPP voltage is an absolute minimum voltage
  necessary for correct work (not taking into account AVS).
  Applying plus/minus tolerance can lead to an unstable device.
  For example omap-cpufreq has 4% tolerance configured,
  so for OMAP4430 MPU OPP50 we get 0.984V instead of 1.025V. 

This series adds a new API to regulator FW to limit only minimum voltage.
As example API is used for cpufreq-cpu0, but if it is accepted I'll fix
other drivers (omap-cpufreq, imx6q-cpufreq, etc).
Maybe regulator_set_voltage_tol() should be removed completely,
because it started to be used in a wrong way.
  
Patches are based on v3.9-rc7.
I've tested them on v3.8 based branch on OMAP4430 Blaze board.

Taras Kondratiuk (2):
  regulator: core: Add regulator_set_voltage_min()
  cpufreq: cpufreq-cpu0: Limit minimum voltage only

 drivers/cpufreq/cpufreq-cpu0.c     |   12 ++++--------
 include/linux/regulator/consumer.h |    6 ++++++
 2 files changed, 10 insertions(+), 8 deletions(-)

-- 
1.7.9.5

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-04-24  9:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-19 11:55 [RFC PATCH 0/2] cpufreq/regulator: Limit minimum voltage only Taras Kondratiuk
2013-04-19 11:55 ` [RFC PATCH 1/2] regulator: core: Add regulator_set_voltage_min() Taras Kondratiuk
2013-04-22 13:19   ` Mark Brown
2013-04-22 16:49     ` Taras Kondratiuk
2013-04-23  8:48       ` Mark Brown
2013-04-23 11:44         ` Taras Kondratiuk
2013-04-23 13:45           ` Mark Brown
2013-04-23 18:45             ` Taras Kondratiuk
2013-04-24  9:38               ` Mark Brown
2013-04-19 11:55 ` [RFC PATCH 2/2] cpufreq: cpufreq-cpu0: Limit minimum voltage only Taras Kondratiuk
2013-04-19 16:21 ` [RFC PATCH 0/2] cpufreq/regulator: " Nishanth Menon
2013-04-20  0:24   ` Kondratiuk, Taras
2013-04-22  6:11     ` Bedia, Vaibhav
2013-04-22 13:25       ` Mark Brown
2013-04-22 16:25       ` Taras Kondratiuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).