From: yakui_zhao <yakui.zhao@intel.com>
To: Mahmood Naderan <mahmood.nt@gmail.com>
Cc: "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>
Subject: Re: BIOS and CPU C_states are strange
Date: Mon, 22 Jun 2009 09:34:37 +0800 [thread overview]
Message-ID: <1245634477.3611.40.camel@localhost.localdomain> (raw)
In-Reply-To: <1acba2fa0906210220p27b9e902xd640029fa0122b24@mail.gmail.com>
On Sun, 2009-06-21 at 17:20 +0800, Mahmood Naderan wrote:
> I got more confused... In my first post if you see, BIOS reports C1,
> C2 and C6. Even it does not support C3 (!), but here is the output of
> "cat /proc/acpi/processor/CPU0/power":
>
> active state: C0
> max_cstate: C8
> bus master activity: 00000000
> maximum allowed latency: 2000000000 usec
> states:
> C1: type[C1] promotion[--] demotion[--]
> latency[001] usage[00000063] duration[00000000000000000000]
> C2: type[C2] promotion[--] demotion[--]
> latency[001] usage[00017466] duration[00000000000014422985]
> C3: type[C3] promotion[--] demotion[--]
> latency[162] usage[00096196] duration[00000000000650582389]
>
> So I think something (BIOS or CPU or OS) is malfunctioning and does
> not report correctly.
> Now the big question is, will my system (a combination of CPU, BIOS
> and OS) enter C3 (or even deeper states)?
What is your problem?
The following info only tells us that the following CPU C-state is
supported on the CPU.
>Your CPU supports the following C-states : C1 C2 C3 C4 C5 C6
But not all the CPU C-state is not used by the OS.
It seems that the C1/C2/C6 is used on this box.
At the same time it is noted that the cpu C-state is different with the
ACPI C-state. In fact BIOS will do the mapping between the CPU C-state
and ACPI C-state. And ACPI C-state is used by the OS.
For example: on your box: The CPU C6 is mapped to ACPI C3-state.
>From the info of "cat /proc/acpi/processor/CPU*/power" we know that your
box can enter the ACPI C3, which is mapped to the CPU C6. Of course it
is the deep C-state.
Thanks.
>
> --------------------------
> *Mahmood Naderan*
>
>
>
>
> On Sun, Jun 21, 2009 at 2:34 AM, Ananth Narayan
> S<ananth.narayan@gmail.com> wrote:
> > You could see it that way. The OS will use the C states exported by
> > the BIOS. If C4/C5 are not exported, the OS will not even know that
> > such states exist. If you query /proc/acpi/CPU*/power, you'll probably
> > see just three C states listed (C1, C2, C3). Typically the last
> > C-state (C3) in that will map to the lowest C-state supported by the
> > processor.
> >
> > -- Ananth
> >
> >
> >
> >
> > On Sat, Jun 20, 2009 at 8:46 AM, Mahmood Naderan<mahmood.nt@gmail.com> wrote:
> >> Hi,
> >> So if my understanding is correct, the BIOS does not allow the CPU to
> >> enter C4 and C5 states. Right?
> >>
> >> --------------------------
> >> *Mahmood Naderan*
> >>
> >>
> >>
> >>
> >> On Sat, Jun 20, 2009 at 7:56 PM, Ananth Narayan
> >> S<ananth.narayan@gmail.com> wrote:
> >>> Intel processors export a max supported c state value. But when it
> >>> comes to c states, typically the one that provides max power savings
> >>> is exported by the BIOS. The intermediate ones aren't.
> >>>
> >>> -- Ananth Narayan S.
> >>>
> >>>
> >>>
> >>>
> >>> On Fri, Jun 19, 2009 at 10:07 AM, Mahmood Naderan<mahmood.nt@gmail.com> wrote:
> >>>> Hi,
> >>>> I have run powertop with root permission with both AC and batter powers. The
> >>>> reported C_States are the same and strange:
> >>>>
> >>>> mahmood@magma:~$ sudo powertop
> >>>> PowerTOP 1.11 (C) 2007, 2008 Intel Corporation
> >>>>
> >>>> Collecting data for 5 seconds
> >>>>
> >>>> Your CPU supports the following C-states : C1 C2 C3 C4 C5 C6
> >>>> Your BIOS reports the following C-states : C1 C2 C6
> >>>>
> >>>> Where are C4 and C5?
> >>>>
> >>>> --------------------------
> >>>> *Mahmood Naderan*
> >>>> --
> >>>> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> >>>> the body of a message to majordomo@vger.kernel.org
> >>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >>>>
> >>>
> >>
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2009-06-22 1:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1acba2fa0906191006i3cd5a035pf18e096fdb92e27e@mail.gmail.com>
2009-06-19 17:07 ` BIOS and CPU C_states are strange Mahmood Naderan
[not found] ` <ff05f3d00906191956m48655da5wc28a5553220ffdd0@mail.gmail.com>
2009-06-20 6:54 ` Mahmood Naderan
[not found] ` <ff05f3d00906210249j6286e6cfw5fff9535e02839e0@mail.gmail.com>
2009-06-21 10:02 ` Mahmood Naderan
2009-06-21 10:13 ` Edward Shao
2009-06-21 10:26 ` Mahmood Naderan
[not found] ` <a8ca10150906200826l37a7ee2fs283ecfa955697c49@mail.gmail.com>
[not found] ` <1acba2fa0906200846r751cf235q9e155e5445090d40@mail.gmail.com>
[not found] ` <a8ca10150906201504p2186b3fbg5ac7761946f48697@mail.gmail.com>
[not found] ` <1acba2fa0906210218o59a6c92fi86e30891c0816b5d@mail.gmail.com>
2009-06-21 9:20 ` Mahmood Naderan
2009-06-21 10:06 ` Edward Shao
2009-06-21 10:14 ` Mahmood Naderan
2009-06-22 1:34 ` yakui_zhao [this message]
2009-06-22 6:54 ` Mahmood Naderan
2009-06-23 5:16 ` Robert Hancock
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=1245634477.3611.40.camel@localhost.localdomain \
--to=yakui.zhao@intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=mahmood.nt@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.