public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: does cpu_idle() halt CPU?
@ 2003-03-28 22:43 Grover, Andrew
       [not found] ` <F760B14C9561B941B89469F59BA3A847E96D88-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
  0 siblings, 1 reply; 16+ messages in thread
From: Grover, Andrew @ 2003-03-28 22:43 UTC (permalink / raw)
  To: Jun Sun; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> From: Jun Sun [mailto:jsun-vWJf10E4RRusTnJN9+BGXg@public.gmane.org] 

> [root@localhost root]# cat /proc/acpi/processor/CPU0/power
> active state:            C2
> default state:           C1
> bus master activity:     ffffffff
> states:
>     C1:                  promotion[C2] demotion[--] 
> latency[000] usage[00000690]   *C2:                  
> promotion[C3] demotion[C1] latency[010] usage[00196669]    
> C3:                  promotion[--] demotion[C2] latency[130] 
> usage[00000000]

Your system either doesn't support C3, or the constant bus master
activity is keeping it out of C3. USB can cause this, but also AC97.

> > - What does the ACPI: Processor line say in your dmesg say?

There should be a line that says, "ACPI: Processor found (x perf states
y throttle)" Is that there? It may be occurring later on in the boot
process.

> > What kind of laptop do you have? Does it support SpeedStep, 
> PowerNow, or
> > the like?
> 
> My laptop is Fujitsu S6110.  CPU supports speedstep.

Getting into the lowest SpeedStep state will help battery life. You may
want to investigate the cpufreq project.

Regards -- Andy


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: does cpu_idle() halt CPU?
@ 2003-03-31 18:15 Grover, Andrew
       [not found] ` <F760B14C9561B941B89469F59BA3A847E96D94-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
  0 siblings, 1 reply; 16+ messages in thread
From: Grover, Andrew @ 2003-03-31 18:15 UTC (permalink / raw)
  To: Jun Sun, Stephan Krings; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> From: Jun Sun [mailto:jsun-vWJf10E4RRusTnJN9+BGXg@public.gmane.org] 
> > I recently discovered that on my notebook the CPU state 
> (and therefore
> > power consumption) is highly dependent on the drivers loaded. There
> > are at least 2 drivers, which practically seem to inhibit 
> the CPU from
> > entering C3: The usb-ohci module (must only be loaded, no 
> USB devices
> > need to be attached) and DRI (direct rendering for XFree86).
> >
> 
> This turns out to be key.  BTW, I did an experiement, usb-uhci has
> the same effect too.

This is a bug.

I fixed the other uhci driver but didn't fix usb-uhci, a couple years
ago. Basically, the HC should go into Global Suspend when no USB devices
are connected to it, and wake up when one is connected.

Using the other uhci driver as a model, this might be a good task for
someone interested in hacking the kernel to get their feet wet. ;-)

Regards -- Andy


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: does cpu_idle() halt CPU?
@ 2003-03-28 22:28 Grover, Andrew
       [not found] ` <F760B14C9561B941B89469F59BA3A84725A23A-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
  0 siblings, 1 reply; 16+ messages in thread
From: Grover, Andrew @ 2003-03-28 22:28 UTC (permalink / raw)
  To: Jun Sun, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> From: Jun Sun [mailto:jsun-vWJf10E4RRusTnJN9+BGXg@public.gmane.org] 
> I am new to acpi, but I figure this question is probably
> beyond acpi-support list.
> 
> I instrumented acpi_processor_idle() routine to see
> what states the CPU is in.  It turns out it spent most
> of the time in C2 state and some times in C1, but never
> in C3.
> 
> However, acpi_processor_power_activate() routine  does not
> do anything if the new state is _not_ C3.  So is that true
> CPU still keep spinning all the time?
> 
> I did a rough comparison.  It appears my battery life
> under Linux is about 75%  of that under Windows, even after
> I installed acpi, did a bunch of other stuff (swapoff,
> EXT3 -> EXT2, etc).

What power states does your CPU support?
- What does a cat of /proc/acpi/processor/*/power say?
- What does the ACPI: Processor line say in your dmesg say?

What kind of laptop do you have? Does it support SpeedStep, PowerNow, or
the like?
Do you have any USB devices attached?

Regards -- Andy


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

^ permalink raw reply	[flat|nested] 16+ messages in thread
* does cpu_idle() halt CPU?
@ 2003-03-28 22:19 Jun Sun
  0 siblings, 0 replies; 16+ messages in thread
From: Jun Sun @ 2003-03-28 22:19 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


I am new to acpi, but I figure this question is probably
beyond acpi-support list.

I instrumented acpi_processor_idle() routine to see
what states the CPU is in.  It turns out it spent most
of the time in C2 state and some times in C1, but never
in C3.

However, acpi_processor_power_activate() routine  does not
do anything if the new state is _not_ C3.  So is that true
CPU still keep spinning all the time?

I did a rough comparison.  It appears my battery life
under Linux is about 75%  of that under Windows, even after
I installed acpi, did a bunch of other stuff (swapoff,
EXT3 -> EXT2, etc).

Jun


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2003-04-11 19:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-28 22:43 does cpu_idle() halt CPU? Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A847E96D88-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-03-28 23:02   ` Jun Sun
     [not found]     ` <20030328150218.D10287-Ht5ggzGNZTC9Yl/XQThFG6xOck334EZe@public.gmane.org>
2003-03-29 13:47       ` Ducrot Bruno
     [not found]         ` <20030329134742.GD10287-j6u/t2rXLliUoIHC/UFpr9i2O/JbrIOy@public.gmane.org>
2003-04-02  7:05           ` Jan Rychter
     [not found]             ` <m24r5hwfa5.fsf-dTJq59+VGzkkCw8IV3R6h0EOCMrvLtNR@public.gmane.org>
2003-04-02 21:42               ` Matthew Keller
     [not found]                 ` <1049319771.19172.27.camel-a2ysWtvtB4BRjtM+DFHcO/Z8FUJU4vz8@public.gmane.org>
2003-04-03  6:47                   ` Karol Kozimor
     [not found]                     ` <20030403064726.GA27821-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-04-03 18:22                       ` Matthew Keller
     [not found]                         ` <1049394142.5251.7.camel-a2ysWtvtB4BRjtM+DFHcO/Z8FUJU4vz8@public.gmane.org>
2003-04-03 22:45                           ` Jan Rychter
2003-04-02 21:44               ` Charl P. Botha
  -- strict thread matches above, loose matches on Subject: below --
2003-03-31 18:15 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A847E96D94-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-04-11 19:45   ` Ben Slusky
2003-03-28 22:28 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A84725A23A-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-03-28 22:37   ` Jun Sun
2003-03-29 10:10   ` Stephan Krings
     [not found]     ` <16005.28938.409919.994510-/D6BEnooUbBSBwh6+m2SNzw7hsPlABbXrfATN7qnIZ4@public.gmane.org>
2003-03-29 15:20       ` Jun Sun
2003-03-28 22:19 Jun Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox