public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: "Pallipadi, Venkatesh" <venkatesh.pallipadi@intel.com>
Cc: linux-acpi@vger.kernel.org
Subject: Re: [PATCH] ACPI, CPU_IDLE: Add more information about C-states
Date: Thu, 14 Feb 2008 23:52:59 -0500	[thread overview]
Message-ID: <200802142352.59859.lenb@kernel.org> (raw)
In-Reply-To: <924EFEDD5F540B4284297C4DC59F3DEE90BF92@orsmsx423.amr.corp.intel.com>

On Thursday 14 February 2008 19:42, Pallipadi, Venkatesh wrote:
> 
> >-----Original Message-----
> >From: Len Brown [mailto:lenb@kernel.org] 
> >Sent: Thursday, February 14, 2008 12:41 PM
> >To: Pallipadi, Venkatesh
> >Cc: linux-acpi@vger.kernel.org
> >Subject: Re: [PATCH] ACPI, CPU_IDLE: Add more information 
> >about C-states
> >
> >On Thursday 14 February 2008 11:52, Pallipadi, Venkatesh wrote:
> >> 
> >> 'usage' is a counter that counts every time we get into poll_idle
> >> routine. I also try to keep track of time spent in poll_idle, until
> >> need_resched sends us out. That time is accumulated in 'time'.
> >> Just have those to be consistent with other state and to be sure that
> >> powertop kind of tools wont get confused.
> >
> >yes, the consistency is good.
> >But my question is when and why we enter poll_idle at all.
> 
> Ohh. Ok. May be the ladder governor used it for a while, before we
> switch to menu governor. It should not increase later once system is
> fully up? Do you see it increasing later?

i haven't noticed it increase, but will look.

> >
> >> I agree with the 'power' number. I did not like that 
> >4294967295 there.
> >> But, I had to put some number higher than other C-states, maximum
> >> possible seemed logical. May be I can change the sysfs interface to
> >> print <NULL> or something like that for power?
> >
> >I dunno.  Somehow I like 0 to signify an unknown quantity
> >rather than a huge number.  If somebody actually looks at it
> >with a program,  they're going to have to special case either of them,
> >and 0 seems simpler.
> >
> 
> Yes. But, if we have a 0W Cn state in future? :-).

actually, the entire field is really worthless.
we all know that BIOS writers just take the example code
and use it multiple systems w/o changing these values.
Perhaps we should re-cosider exposing this field,
as it is mis-leading, at best...

-len

      reply	other threads:[~2008-02-15  4:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-12  1:50 [PATCH] ACPI, CPU_IDLE: Add more information about C-states Venki Pallipadi
2008-02-14  5:10 ` Len Brown
2008-02-14  8:09   ` Len Brown
2008-02-14 16:52     ` Pallipadi, Venkatesh
2008-02-14 20:41       ` Len Brown
2008-02-15  0:42         ` Pallipadi, Venkatesh
2008-02-15  4:52           ` Len Brown [this message]

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=200802142352.59859.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=venkatesh.pallipadi@intel.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