All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Processor C states and USB problem
@ 2004-01-18  5:57 Yu, Luming
       [not found] ` <3ACA40606221794F80A5670F0AF15F8401720CEB-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 25+ messages in thread
From: Yu, Luming @ 2004-01-18  5:57 UTC (permalink / raw)
  To: Michael Guntsche, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


> Under 2.4 bus master always shows "ffffffff" on my notebook. Sometimes
> shutting down USB helps, sometimes it doesn't.
> Running under 2.6 I only get full bus master activity if an USB
> mouse is plugged in.

Could you post output from " cat /proc/acpi/processor/CPU0/power"
I want to check the usage of C3.


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: Processor C states and USB problem
@ 2004-01-19 10:15 Ow Mun Heng
  0 siblings, 0 replies; 25+ messages in thread
From: Ow Mun Heng @ 2004-01-19 10:15 UTC (permalink / raw)
  To: Yu, Luming, Michael Guntsche,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f



> -----Original Message-----
> From: Yu, Luming [mailto:luming.yu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org]
> > Under 2.4 bus master always shows "ffffffff" on my 
> notebook. Sometimes
> > shutting down USB helps, sometimes it doesn't.
> > Running under 2.6 I only get full bus master activity if an USB
> > mouse is plugged in.
> 
> Could you post output from " cat /proc/acpi/processor/CPU0/power"
> I want to check the usage of C3.

RH9 + 2.4.24 + cpufreq patched + D600
No USB attached. USB kernel module is loaded.. I can rmmod all but usbcore
(still ffffff)

 # cat /proc/acpi/processor/CPU0/power
 active state:            C2
 default state:           C1
 bus master activity:     ffffffff
 states:
     C1:                  promotion[C2] demotion[--] 
 latency[000] usage[00212900]
    *C2:                  promotion[C3] demotion[C1] 
 latency[050] usage[02242678]
     C3:                  promotion[--] demotion[C2] 
 latency[050] usage[00000000]




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: Processor C states and USB problem
@ 2004-01-18  3:17 Yu, Luming
       [not found] ` <3ACA40606221794F80A5670F0AF15F8401720CE2-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 25+ messages in thread
From: Yu, Luming @ 2004-01-18  3:17 UTC (permalink / raw)
  To: Diego SANTA CRUZ; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


> 
> 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 .







-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: Processor C states and USB problem
@ 2004-01-14  2:10 Yu, Luming
       [not found] ` <3ACA40606221794F80A5670F0AF15F8401720CC9-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 25+ messages in thread
From: Yu, Luming @ 2004-01-14  2:10 UTC (permalink / raw)
  To: Diego SANTA CRUZ; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> > > I picked up this thread and I'm interested in knowing a 
> bit more about
> > > bus mastering and C3, as my laptop never goes into C3. I 
> own a Dell
> > > Inspiron 8500 (details at
> > > http://ltswww.epfl.ch/~dsanta/resources/dell-i8500-linux).
> > > 

How did you know your processor never transition to C3 mode?

> > > This is what I get for the power states:
> > > # cat /proc/acpi/processor/CPU0/power
> > > active state:            C2
> > > default state:           C1
> > > bus master activity:     ffffffff
> > > states:
> > >     C1:                  promotion[C2] demotion[--] 
> > > latency[000] usage[00039800]
> > >    *C2:                  promotion[C3] demotion[C1] 
> > > latency[050] usage[00573330]
> > >     C3:                  promotion[--] demotion[C2] 
> > > latency[050] usage[00000004]
> > > 

Usage of C3 is 4. 



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: Processor C states and USB problem
@ 2004-01-12  8:31 Yu, Luming
       [not found] ` <3ACA40606221794F80A5670F0AF15F8401720CB9-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 25+ messages in thread
From: Yu, Luming @ 2004-01-12  8:31 UTC (permalink / raw)
  To: Diego SANTA CRUZ, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

> I picked up this thread and I'm interested in knowing a bit more about
> bus mastering and C3, as my laptop never goes into C3. I own a Dell
> Inspiron 8500 (details at
> http://ltswww.epfl.ch/~dsanta/resources/dell-i8500-linux).
> 
> This is what I get for the power states:
> # cat /proc/acpi/processor/CPU0/power
> active state:            C2
> default state:           C1
> bus master activity:     ffffffff
> states:
>     C1:                  promotion[C2] demotion[--] 
> latency[000] usage[00039800]
>    *C2:                  promotion[C3] demotion[C1] 
> latency[050] usage[00573330]
>     C3:                  promotion[--] demotion[C2] 
> latency[050] usage[00000004]
> 
> I tried booting with init=/bin/sh and manually loading the processor
> module, without any external hardware attached, so that no special
> hardware is initialized, but still there is non-stopping bus mastering
> activity. What could be causing it? Any ideas how could I find out?

I just filed a tracker http://bugme.osdl.org/show_bug.cgi?id=1839.


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: Processor C states and USB problem
@ 2004-01-07  9:08 Yu, Luming
  0 siblings, 0 replies; 25+ messages in thread
From: Yu, Luming @ 2004-01-07  9:08 UTC (permalink / raw)
  To: Nate Lawson
  Cc: Petr Olivka, mike-Z92qn3yYq0hWk0Htik3J/w,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>> >usb host use poll mode to get data from usb peripherals, and result
is
>> >continuous busmaster activity.
>>
>> Hmm,  it looks like we should stop such kind of poll to support power
>> save.
>
>Good luck.  That would require processor.c to become aware of the USB
>driver loaded.
>  In FreeBSD, we have a generic kernel interface module (.m)
>that you can add that allows other kernel features to call a function
>without knowing what will service the call in the backend.  I guess you
>could do this via a function pointer, but you'd still have added binary
compatibility issues between ACPI and USB.


Maybe we can do it through a generic driver (PM) .


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: Processor C states and USB problem
@ 2004-01-06  1:27 Yu, Luming
       [not found] ` <3ACA40606221794F80A5670F0AF15F8401720C79-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 25+ messages in thread
From: Yu, Luming @ 2004-01-06  1:27 UTC (permalink / raw)
  To: Petr Olivka, mike-Z92qn3yYq0hWk0Htik3J/w
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

>usb host use poll mode to get data from usb peripherals, and result is
>continuous busmaster activity.

Hmm,  it looks like we should stop such kind of poll to support power
save.






-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click

^ permalink raw reply	[flat|nested] 25+ messages in thread
* RE: Processor C states and USB problem
@ 2004-01-05  9:06 Li, Shaohua
       [not found] ` <571ACEFD467F7749BC50E0A98C17CDD8E84E6C-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 25+ messages in thread
From: Li, Shaohua @ 2004-01-05  9:06 UTC (permalink / raw)
  To: mike-Z92qn3yYq0hWk0Htik3J/w; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


Hi,
C3 is a kind of idle, it means deep power saving.
Actually, I observed the same symptom as you: USB devices caused many bus master activities, which make processor can't enter C3.
 
Thanks,
Shaohua
> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of mike@it-loops.com
> Sent: 2004年1月5日 16:42
> To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: [ACPI] Processor C states and USB problem
> 
> Recently I had problems with my network card and ACPI (see earlier posts
> for
> the problem and solution) so I thought I'd take a closer look at ACPI on
> this notebook (Acer Travelmate 800).
> 
> Looking at the proc entries for the processor I saw the following.
> 
> active state:            C3
> default state:           C1
> bus master activity:     80070020
> states:
>    C1:                  promotion[C2] demotion[--] latency[000]
> usage[00000010]
>    C2:                  promotion[C3] demotion[C1]
> latency[001]usage[01077887]
>   *C3:                  promotion[--] demotion[C2] latency[085]
> usage[00083507]
> 
> This looked pretty normal to me, apart from the fact that the processor
> was
> spending a lot of time in C3 although the notebook was idle.
> 
> Now I plugged in my USB mouse.
> 
> cat /proc/acpi/processor/CPU0/power
> active state:            C2
> default state:           C1
> bus master activity:     ffffffff <---- USB is active
> states:
>    C1:                  promotion[C2] demotion[--] latency[000]
> usage[00000010]
>   *C2:                  promotion[C3] demotion[C1]
> latency[001]usage[00871647]
>    C3:                  promotion[--] demotion[C2] latency[085]
> usage[00077386]
> 
> The processor never left the C2 state.
> After unplugging the mouse "bus master activity" showed normal values
> again.
> 
> Now for my two questions:
> 
> 1.) Is it normal for the notebook to spend so much time in C3, even if it
> is
> idle?
> 
> 2.) Why is an USB device screwing up the bus master activity, resulting in
> the processor never leaving C2?
> 
> 
> /Michael
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Processor C states and USB problem
@ 2004-01-05  8:41 mike-Z92qn3yYq0hWk0Htik3J/w
       [not found] ` <E1AdQIo-0005nI-00-bi+AKbBUZKZeoWH0uzbU5w@public.gmane.org>
  0 siblings, 1 reply; 25+ messages in thread
From: mike-Z92qn3yYq0hWk0Htik3J/w @ 2004-01-05  8:41 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Recently I had problems with my network card and ACPI (see earlier posts for 
the problem and solution) so I thought I'd take a closer look at ACPI on 
this notebook (Acer Travelmate 800). 

Looking at the proc entries for the processor I saw the following. 

active state:            C3
default state:           C1
bus master activity:     80070020
states:
   C1:                  promotion[C2] demotion[--] latency[000] 
usage[00000010]
   C2:                  promotion[C3] demotion[C1] 
latency[001]usage[01077887]
  *C3:                  promotion[--] demotion[C2] latency[085] 
usage[00083507] 

This looked pretty normal to me, apart from the fact that the processor was 
spending a lot of time in C3 although the notebook was idle. 

Now I plugged in my USB mouse. 

cat /proc/acpi/processor/CPU0/power
active state:            C2
default state:           C1
bus master activity:     ffffffff <---- USB is active
states:
   C1:                  promotion[C2] demotion[--] latency[000] 
usage[00000010]
  *C2:                  promotion[C3] demotion[C1] 
latency[001]usage[00871647]
   C3:                  promotion[--] demotion[C2] latency[085] 
usage[00077386] 

The processor never left the C2 state.
After unplugging the mouse "bus master activity" showed normal values again. 

Now for my two questions: 

1.) Is it normal for the notebook to spend so much time in C3, even if it is 
idle? 

2.) Why is an USB device screwing up the bus master activity, resulting in 
the processor never leaving C2? 


/Michael 




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

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

end of thread, other threads:[~2004-01-20 19:51 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-18  5:57 Processor C states and USB problem Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F8401720CEB-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-01-18 10:00   ` Michael Guntsche
  -- strict thread matches above, loose matches on Subject: below --
2004-01-19 10:15 Ow Mun Heng
2004-01-18  3:17 Yu, Luming
     [not found] ` <3ACA40606221794F80A5670F0AF15F8401720CE2-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-01-19 10:20   ` Diego SANTA CRUZ
2004-01-20 19:51   ` Nate Lawson
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

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.