public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Nate Lawson <nate-Y6VGUYTwhu0@public.gmane.org>
To: "Yu, Luming" <luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Diego SANTA CRUZ <dsanta-W/9V78bTXrinCNX9eg9BBA@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: RE: Processor C states and USB problem
Date: Tue, 20 Jan 2004 11:51:49 -0800 (PST)	[thread overview]
Message-ID: <20040120115029.F96919@root.org> (raw)
In-Reply-To: <3ACA40606221794F80A5670F0AF15F8401720CE2-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>

On Sun, 18 Jan 2004, Yu, Luming wrote:
> > Yes, but compared to the usage count of C2 that is extremely low, and
> > the CPU is idling all the time (CPU usage is below 1%). I don't know
> > much about C states but I guess it should go into C3 much more often,
> > and the bus mastering activity should show something else
> > than ffffffff
> > when booting with a bare bones kernel and with no extra hw initialized
> > (USB, FireWire, etc.)
>
> I agree that it's unreasonable that C3 usage count is never above 5.
> This is the result of the C state power policy.
>
> Threshold is:
> pr->power.states[ACPI_STATE_C2].promotion.threshold.bm = 0x0F;
> pr->power.states[ACPI_STATE_C3].demotion.threshold.bm = 0x0F;
>
> The condition of promotion or demotion is:
> if (pr->power.bm_activity & cx->demotion.threshold.bm) {
> if (!(pr->power.bm_activity & cx->promotion.threshold.bm)) {
>
> Using the following statement to adjust bm_activity of the last Nth
> schedule quanta.
>
> pr->power.bm_activity <<= 1;
> if(bm_status)
> 	pr->power.bm_activity++;
>
> So it's is not strange that C3 usage count is 4  !
>
> Maybe we need a more sophisticated policy .

In FreeBSD, I clear BM_STS before exiting idle.  If I come back and it's
set, then avoid C3 and demote to C2.  If not and last sleep was > C3
latency, then use C3.  It's unnecessary to count the number of BM_STS
events.

-Nate


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn

  parent reply	other threads:[~2004-01-20 19:51 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-18  3:17 Processor C states and USB problem Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F8401720CE2-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-01-19 10:20   ` Diego SANTA CRUZ
2004-01-20 19:51   ` Nate Lawson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-01-19 10:15 Ow Mun Heng
2004-01-18  5:57 Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F8401720CEB-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-01-18 10:00   ` Michael Guntsche
2004-01-14  2:10 Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F8401720CC9-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-01-14  7:55   ` Diego SANTA CRUZ
     [not found]     ` <1074066934.9124.6.camel-TVkb0Wta32GnwOLKaxbZ/w@public.gmane.org>
2004-01-14 15:34       ` Michael Guntsche
     [not found]         ` <20040114163437.4bcbc62f.mike-Z92qn3yYq0hWk0Htik3J/w@public.gmane.org>
2004-01-15  8:06           ` Diego SANTA CRUZ
2004-01-12  8:31 Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F8401720CB9-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-01-12 10:50   ` Diego SANTA CRUZ
2004-01-07  9:08 Yu, Luming
2004-01-06  1:27 Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F8401720C79-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-01-06 18:37   ` Nate Lawson
2004-01-05  9:06 Li, Shaohua
     [not found] ` <571ACEFD467F7749BC50E0A98C17CDD8E84E6C-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-01-05  9:57   ` mike-Z92qn3yYq0hWk0Htik3J/w
2004-01-09  9:31   ` Diego SANTA CRUZ
     [not found]     ` <1073640699.10144.14.camel-TVkb0Wta32GnwOLKaxbZ/w@public.gmane.org>
2004-01-09 10:05       ` Petr Olivka
     [not found]         ` <Pine.LNX.4.58.0401091102120.20682-Rd/Vp7eeBLeOZheNW5JDhQ@public.gmane.org>
2004-01-09 10:15           ` Diego SANTA CRUZ
     [not found]             ` <1073643322.10144.23.camel-TVkb0Wta32GnwOLKaxbZ/w@public.gmane.org>
2004-01-09 15:54               ` Michael Guntsche
     [not found]                 ` <20040109165421.6fc2483a.mike-Z92qn3yYq0hWk0Htik3J/w@public.gmane.org>
2004-01-09 17:35                   ` Randy.Dunlap
     [not found]                     ` <20040109093553.31aa1c79.rddunlap-3NddpPZAyC0@public.gmane.org>
2004-01-09 18:24                       ` Michael Guntsche
2004-01-05  8:41 mike-Z92qn3yYq0hWk0Htik3J/w
     [not found] ` <E1AdQIo-0005nI-00-bi+AKbBUZKZeoWH0uzbU5w@public.gmane.org>
2004-01-05  9:11   ` Petr Olivka

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=20040120115029.F96919@root.org \
    --to=nate-y6vguytwhu0@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=dsanta-W/9V78bTXrinCNX9eg9BBA@public.gmane.org \
    --cc=luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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