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

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





  reply	other threads:[~2009-03-18 18:09 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 [this message]
2009-03-18 18:43   ` garkein

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=alpine.LFD.2.00.0903181343220.5268@localhost.localdomain \
    --to=lenb@kernel.org \
    --cc=garkein@mailueberfall.de \
    --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