public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: garkein@mailueberfall.de
To: Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org
Subject: Re: Processor state C6 only used in battery mode, workaround possible?
Date: Wed, 18 Mar 2009 19:43:14 +0100	[thread overview]
Message-ID: <1237401794.5333.1.camel@thinkpad> (raw)
In-Reply-To: <alpine.LFD.2.00.0903181343220.5268@localhost.localdomain>

Am Mittwoch, den 18.03.2009, 14:08 -0400 schrieb Len Brown:
> On Sun, 29 Jun 2008, garkein@mailueberfall.de wrote:
> 
> > Hello,
> > with recent powertop, I could confirm that my T61 uses the C6 processor
> > state only in battery mode:
> > 
> > (Kernel 2.6.25)
> > 
> > AC:
> > Your CPU supports the following C-states : C1 C2 C3 C4 C5 C6 
> > Your BIOS reports the following C-states : C1 C2 C3
> > 
> > Battery:
> > Your CPU supports the following C-states : C1 C2 C3 C4 C5 C6 
> > Your BIOS reports the following C-states : C1 C2 C6
> > 
> > Since the notebook runs quite a bit cooler, and thus less noisy (fan) in
> > battery mode, I would like to have it use that C6 state also in AC mode.
> > Is it possible, maybe with some slight tweaks, to convice the kernel (or
> > BIOS?) to also use that C6 state when in AC mode?
> 
> Lenovo decided when they designed the platform to do extra work to
> switch what ACPI C3 means on AC vs DC.  They chose to have lower latency
> on AC, and save energy on DC.  (you will notice lower latency reported
> for C3 when on DC if you look in /proc/acpi/processor/*/power or
> in /sys/devices/system/cpu/cpu*/cpuidle/*/latency
> eg. it may switch between 57usec and 17usec
> 
> if you boot with "processor.nocst=1"
> then you'll use the legach FADT method of specifying C-states,
> and will lose the AC/DC switching capability, and also lose
> the MWAIT capability -- though you'll unlikely notice.
> So you'll get stuck with a single C3 state -- dunno if it
> is the one you prefer or the one you don't prefer...
> 
> If this doesn't help and you want to hack your driver,
> then just go to acpi_processor_notify() in processor_core.c
> and disable the call to acpi_processor_cst_has_changed()
> and boot on DC...
> 
> The long term answer to your question is that we are hoping
> to get permission to ship a native intel_idle driver which
> will give Linux the option to ignore the ACPI BIOS in this 
> area.
> 
> cheers,
> -Len

Thank you Len for your explanation. The long term way would be my
preference as I don't want to be "stuck" with a single state. (I want
them all! ;-)).

Regards,
Daniel


      reply	other threads:[~2009-03-18 18:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-29 10:12 Processor state C6 only used in battery mode, workaround possible? garkein
2009-03-18 18:08 ` Len Brown
2009-03-18 18:43   ` garkein [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=1237401794.5333.1.camel@thinkpad \
    --to=garkein@mailueberfall.de \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    /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