From: Dmitry Krivoschekov <dmitry.krivoschekov@gmail.com>
To: Dave Jones <davej@redhat.com>
Cc: scott.preece@motorola.com,
Matthew Locke <matthew.a.locke@comcast.net>,
linux-pm@lists.osdl.org, Pavel Machek <pavel@ucw.cz>,
Amit Kucheria <amit.kucheria@nokia.com>
Subject: Re: nokia 770 [was Re: community PM requirements/issues and PowerOP]
Date: Thu, 14 Dec 2006 18:22:25 +0300 [thread overview]
Message-ID: <45816C31.5040805@gmail.com> (raw)
In-Reply-To: <20061214121214.GR2418@redhat.com>
Dave Jones wrote:
>On Thu, Dec 14, 2006 at 01:14:13PM +0300, Dmitry Krivoschekov wrote:
>
> > > > Ok, let's reword my sentence. The cpufreq interface does not support
> > > > voltage as a parameter
> > >
> > >Please explain why this is useful at all.
> > >Under what circumstance is "Set the CPU voltage to 1.2V" a useful thing
> > >for a user, sysadmin, or application to do ?
> > >
> > >
> > Voltage scaling is a well known technique to reduce power consumption, try
> > google search "Dynamic voltage scaling" if you are intrested in it.
>
>You've missed the point. I'm well aware of dynamic voltage scaling,
>and some of the cpufreq drivers I've written do this.
>
>
I'm sorry, I didn't want to offend you, just to be sure we are talking
about
the same things.
> > I agree, in most cases we don't need to scale CPU voltage and frequency
> > independently since CPU frequency usually coupled with appropriate voltage
> > to set.
>
>A CPU frequency _always_ has a specific voltage associated with it.
>
>
>
I have to correct you: "CPU frequency of x86 CPU's always has a specific
voltage", it is because of CPU designers have defined this voltage as
the best (or optimal maybe) voltage for this given frequency, it doesn't
mean CPU won't work on some different voltage, you just can say the CPU
with probability of say 99.9% will work stable on this voltage, but if you
want to rise performance you could do it via rising of voltage for example.
But, nobody says "let's give desktop user's the ability to control whatever
they may control, of course, it is dangerous to let an average desktop
user to do such things. But, think about designer who build embedded
mobile system that powered by Linux. Any mobile system always needs for
fine grained power management but you won't be able to tune an optimal
power consumption if you operate by only one parameter (cpufreq).
> > But some CPU's permit to choose frequency value for
> > a given voltage or vice versa
>
>But what sense does it make for a user,sysadmin or application
>to change voltage? If any of these want to save power, they do so
>by a) doing less work, and then b) lowering the clock speed as this
>is inherently tied to voltage.
>
>
>
You always think about this triage user,sysadmin and application of PC's,
think about embedded devices please, there we don't have stupid users
that want to on/off everthing. Why don't let a qualified engineer to tune
a number of parameters to get an optimal performance/power tradeoff?
>And if you lower voltage, you *MUST* reduce the frequency anyway.
>Running CPUs at higher speeds at lower voltages than those frequencies
>are rated for is a fastpath to a crash.
>
>
I don't think it's always true, simply CMOS circuity won't work on voltage
levels below some limit.
>This is one fundamental reason I'm opposed to exporting voltages to userspace.
>Because people _will_ get this wrong, and we will see all manner of
>strange bugs and crashes reported from people running CPUs at higher
>speeds than the voltage is rated for.
>
>By putting this into the hands of userspace, we're setting ourselves up
>to fail. How does userspace/users know what voltage is safe for what frequency?
>Without being intimate with the CPU datasheets, they're almost guaranteed
>to fail.
>
Here I encourage to think about other users (system designers I mean)
who definetely have to read datasheets and other related docs.
>The _driver_ needs to know the pairings of voltage/frequency
>and export the only thing that makes sense.
>
> > Also, CPU is not the only power consumer in the system, you may need to
> > scale voltage for other devices to get a best perfomance/power trade off.
> > And here is an obvious limitation of cpufreq since it takes care only
> > about CPU.
>
>You see it as a limitation, I see it behaving 'as designed'.
>If those devices have nothing to do with the CPU, why are they even
>relevant to this discussion?
>
>
Because the discussion is related to PowerOP, and PowerOP in turn is
a set of different power parameters (or maybe not only power,
it's not a limitation).
>The argument seems to be "cpufreq only cares about CPU frequency, therefore
>we need something different". But, why?
>
Because a number of platforms permit to tune more parameters than CPU freq,
that in turn lets people to design more powersave systems, but cpufreq
interface
restricts this ability.
But, I didn't ever say we need to remove cpufreq, I say we need to think not
only about PC's but also about embedded (mobile) systems that requre
some different
solution.
Regards,
Dmitry
>I see no reason why we need
>to change cpufreq at all, just add additional interfaces to cover those
>other devices, as they're unrelated anyway. And if there *are* any
>devices that are related, they can be tied into the existing cpufreq
>drivers just as for eg, the sa1100 drivers scale DRAM timings with CPU speed.
>
> Dave
>
>
>
next prev parent reply other threads:[~2006-12-14 15:22 UTC|newest]
Thread overview: 134+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-11 7:57 community PM requirements/issues and PowerOP [Was: Re: So, what's the status on the recent patches here?] Eugeny S. Mints
2006-09-11 8:20 ` Pavel Machek
2006-09-11 9:47 ` Eugeny S. Mints
2006-09-11 19:36 ` Pavel Machek
2006-09-11 19:53 ` Matthew Locke
2006-09-11 20:06 ` Pavel Machek
2006-09-11 20:09 ` Pavel Machek
2006-09-11 20:33 ` Matthew Locke
2006-09-11 21:06 ` Pavel Machek
2006-09-11 21:50 ` Matthew Locke
2006-09-11 22:50 ` Pavel Machek
2006-09-12 3:31 ` Greg KH
2006-09-12 8:26 ` Matthew Locke
2006-09-13 4:22 ` David Brownell
2006-09-11 20:25 ` Matthew Locke
2006-09-11 21:02 ` Pavel Machek
2006-09-12 3:26 ` Greg KH
2006-09-11 22:00 ` Mark Gross
2006-09-11 22:08 ` Matthew Locke
2006-09-11 20:24 ` Eugeny S. Mints
2006-09-11 20:34 ` Pavel Machek
2006-09-13 4:54 ` David Brownell
2006-09-13 11:39 ` Preece Scott-PREECE
2006-09-14 9:12 ` Pavel Machek
2006-09-14 9:16 ` Vitaly Wool
2006-09-14 9:20 ` Matthew Locke
2006-09-14 10:05 ` Eugeny S. Mints
2006-09-14 10:17 ` Pavel Machek
2006-09-14 10:47 ` Eugeny S. Mints
2006-09-14 12:15 ` Vitaly Wool
2006-09-14 13:03 ` Pavel Machek
2006-09-14 13:04 ` Pavel Machek
2006-09-14 13:15 ` Vitaly Wool
2006-09-14 13:20 ` Pavel Machek
2006-09-14 13:26 ` Vitaly Wool
2006-09-14 14:59 ` David Brownell
2006-09-17 10:53 ` Amit Kucheria
2006-09-17 13:18 ` Pavel Machek
2006-09-17 13:28 ` Amit Kucheria
2006-09-17 13:40 ` Pavel Machek
2006-09-17 14:14 ` Amit Kucheria
2006-09-17 18:25 ` community PM requirements/issues and PowerOP[Was: " Preece Scott-PREECE
2006-09-18 9:02 ` community PM requirements/issues and PowerOP [Was: " Pavel Machek
2006-09-14 14:56 ` David Brownell
2006-09-17 12:34 ` Pavel Machek
2006-09-17 13:06 ` Vitaly Wool
2006-09-18 10:46 ` Amit Kucheria
2006-09-18 10:53 ` Pavel Machek
2006-09-18 12:01 ` Igor Stoppa
2006-09-18 12:11 ` nokia 770 [was Re: community PM requirements/issues and PowerOP [Was: Re: So, what's the status on the recent patches here?]] Pavel Machek
2006-09-18 12:42 ` Amit Kucheria
2006-09-19 18:25 ` Pavel Machek
2006-12-12 20:00 ` nokia 770 [was Re: community PM requirements/issues and PowerOP] David Brownell
2006-12-13 12:12 ` Eugeny S. Mints
2006-12-13 21:03 ` Pavel Machek
2006-12-13 21:32 ` David Brownell
2006-12-13 21:44 ` Matthew Locke
2006-12-13 21:53 ` Dave Jones
2006-12-13 22:50 ` Matthew Locke
2006-12-13 22:58 ` Dave Jones
2006-12-14 10:14 ` Dmitry Krivoschekov
2006-12-14 12:12 ` Dave Jones
2006-12-14 13:01 ` Vitaly Wool
2006-12-14 13:17 ` Dave Jones
2006-12-14 14:56 ` Pavel Machek
2006-12-14 15:22 ` Dmitry Krivoschekov [this message]
2006-12-13 22:55 ` nokia 770 [was Re: community PM requirements...] David Brownell
2006-12-13 21:56 ` nokia 770 [was Re: community PM requirements/issues and PowerOP] Eugeny S. Mints
2006-12-13 21:58 ` Pavel Machek
2006-12-13 22:27 ` nokia 770 [was Re: community PM requirements...] David Brownell
2006-12-13 21:27 ` nokia 770 [was Re: community PM requirements/issues and PowerOP] Matthew Locke
2006-09-14 19:25 ` community PM requirements/issues and PowerOP [Was: Re: So, what's the status on the recent patches here?] Jon Loeliger
2006-09-17 12:46 ` Pavel Machek
2006-09-17 17:32 ` Preece Scott-PREECE
2006-09-19 18:20 ` Pavel Machek
2006-09-19 19:11 ` Preece Scott-PREECE
2006-09-23 23:39 ` Pavel Machek
2006-09-14 12:12 ` Vitaly Wool
2006-09-14 12:35 ` Eugeny S. Mints
2006-09-14 9:32 ` PowerOP on lkml or linux-pm? Matthew Locke
2006-09-14 9:45 ` Pavel Machek
2006-09-14 9:58 ` Matthew Locke
2006-09-14 9:47 ` community PM requirements/issues and PowerOP [Was: Re: So, what's the status on the recent patches here?] Matthew Locke
2006-09-11 19:30 ` Matthew Locke
2006-09-11 19:55 ` Pavel Machek
2006-09-11 20:53 ` Eugeny S. Mints
2006-09-11 21:00 ` Pavel Machek
2006-09-11 21:36 ` Preece Scott-PREECE
2006-09-11 21:39 ` Pavel Machek
2006-09-11 22:41 ` Eugeny S. Mints
2006-09-11 23:05 ` cpufreq user<->kernel interface removal [was Re: community PM requirements/issues and PowerOP] Pavel Machek
2006-09-11 23:50 ` Mark Gross
2006-09-12 3:35 ` Greg KH
2006-09-12 8:41 ` Matthew Locke
2006-09-12 17:03 ` Jon Loeliger
2006-09-14 16:26 ` Mark Gross
2006-09-17 12:37 ` Pavel Machek
2006-09-17 13:10 ` Vitaly Wool
2006-09-17 13:20 ` Pavel Machek
2006-09-11 22:05 ` community PM requirements/issues and PowerOP [Was: Re: So, what's the status on the recent patches here?] Eugeny S. Mints
2006-09-11 22:56 ` cpufreq terminally broken [was Re: community PM requirements/issues and PowerOP] Pavel Machek
2006-09-12 0:17 ` Mark Gross
2006-09-12 3:37 ` Greg KH
2006-09-13 23:50 ` [linux-pm] " David Singleton
2006-09-14 5:30 ` Vitaly Wool
2006-09-14 5:55 ` OpPoint summary Greg KH
2006-09-14 7:35 ` Vitaly Wool
2006-09-14 16:55 ` David Singleton
2006-09-14 17:03 ` David Singleton
2006-09-14 17:07 ` David Singleton
2006-09-14 17:25 ` Auke Kok
2006-09-14 18:15 ` [linux-pm] " Vitaly Wool
2006-09-14 18:17 ` David Singleton
2006-09-17 17:48 ` Pavel Machek
2006-09-18 14:33 ` [linux-pm] " Richard A. Griffiths
2006-09-18 16:13 ` Matthew Locke
2006-09-14 17:11 ` David Singleton
2006-09-17 5:07 ` David Singleton
2006-09-17 12:56 ` Pavel Machek
2006-09-17 12:58 ` Pavel Machek
2006-09-17 22:43 ` [linux-pm] " Matthew Locke
2007-02-27 20:55 ` cpufreq terminally broken [was Re: community PM requirements/issues and PowerOP] David Brownell
2007-02-27 22:41 ` Matthew Locke
2006-09-12 8:33 ` Pavel Machek
2006-09-12 9:10 ` Vitaly Wool
2006-09-12 9:16 ` Pavel Machek
2006-09-12 9:23 ` [linux-pm] " Vitaly Wool
2006-09-14 15:04 ` Mark Gross
2006-09-14 14:58 ` Mark Gross
2006-10-05 3:30 ` community PM requirements/issues and PowerOP [Was: Re: So, what's the status on the recent patches here?] Dominik Brodowski
2006-09-11 21:53 ` Mark Gross
2006-09-11 22:43 ` Pavel Machek
2006-09-12 0:00 ` Mark Gross
-- strict thread matches above, loose matches on Subject: below --
2006-12-14 14:16 nokia 770 [was Re: community PM requirements/issues and PowerOP] Scott E. Preece
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45816C31.5040805@gmail.com \
--to=dmitry.krivoschekov@gmail.com \
--cc=amit.kucheria@nokia.com \
--cc=davej@redhat.com \
--cc=linux-pm@lists.osdl.org \
--cc=matthew.a.locke@comcast.net \
--cc=pavel@ucw.cz \
--cc=scott.preece@motorola.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox