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; 10+ 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] 10+ messages in thread
* RE: Re: does cpu_idle() halt CPU?
@ 2003-04-02 22:20 Grover, Andrew
  0 siblings, 0 replies; 10+ messages in thread
From: Grover, Andrew @ 2003-04-02 22:20 UTC (permalink / raw)
  To: Jan Rychter, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> From: Jan Rychter [mailto:jan-JAsPCFd0eodBDgjK7y7TUQ@public.gmane.org] 
> USB preventing the machine from going into C3 is a serious 
> problem. I still don't understand if that's a hardware thing 
> or can we have a more reasonable HCI implementation that 
> doesn't use DMA that much. How does Windows deal with it?

Busmaster PCI devices keep us from using C3, because the CPU needs to be
in C2 or higher to handle bus snoops, needed for cache coherency.

USB is a particular problem, because unlike other devices (like IDE)
which only do busmaster when active, USB does them to its task list *all
the time*. This is inherent in the hardware's design.

Software can mitigate this in several ways. First, if there are no
devices attached, then we can put the host controller into Global
Suspend until a device is inserted. UHCI does not scan its task list
when suspended. Windows does this (and so does the Linux "uhci" driver,
but not "uhci-usb"). Another way is selective suspend. In this case, if
*all* the attached devices suspend themselves, we can suspend the HC.
Linux doesn't do this, but Win XP does. The worst scenario is any active
device on the USB. This rules out any technique to minimize busmaster
activity.

This is one reason why laptops have not switched to using internal USB
connections for mouse and keyboard.

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] 10+ messages in thread

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

Thread overview: 10+ 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-04-02 22:20 Grover, Andrew

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