All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
       [not found] ` <bug-13145-10286-V0hAGp6uBxO456/isadD/XN4h3HLQggn@public.gmane.org/>
@ 2009-04-21 21:27   ` Andrew Morton
  2009-04-21 21:40     ` Arjan van de Ven
                       ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Andrew Morton @ 2009-04-21 21:27 UTC (permalink / raw)
  To: Arjan van de Ven, rui.zhang-ral2JQCrhuEAvxtiuMwx3w,
	shaohua.li-ral2JQCrhuEAvxtiuMwx3w,
	yakui.zhao-ral2JQCrhuEAvxtiuMwx3w
  Cc: bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	bugme-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-acpi-u79uwXL29TY76Z2rM5mHXA,
	daniel.smoczyk-Re5JQEeQqe8AvxtiuMwx3w,
	imrehg-Re5JQEeQqe8AvxtiuMwx3w


(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

It looks like we need to revisit this - 2.6.26 worked OK, so why can't
2.6.28?

Thanks.


On Tue, 21 Apr 2009 19:53:13 GMT
bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r@public.gmane.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=13145
> 
>            Summary: Processor does not go below C2 if mouse (uhci) is
>                     plugged in.
>            Product: Drivers
>            Version: 2.5
>     Kernel Version: 2.6.29
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: high
>           Priority: P1
>          Component: USB
>         AssignedTo: greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org
>         ReportedBy: daniel.smoczyk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
>         Regression: Yes
> 
> 
> Created an attachment (id=21071)
>  --> (http://bugzilla.kernel.org/attachment.cgi?id=21071)
> lsusb -v
> 
> Latest working kernel version:
> 2.6.26-13
> 
> Earliest failing kernel version:
> 2.6.28
> 
> Distribution:
> Debian Sid
> 
> Hardware Environment:
> IBM Thinkpad T41 Pentium M
> 
> Problem Description:
> In 2.6.28(29) kernel, when I plug in usb logitech mouse, regression in uhci (I
> assume it's usb uhci driver) forces processor to operate in C2 state (reported
> by powertop 1.11). When I plug it off, everything back to normal - 100% C3 in
> idle. In 2.6.26 kernel processor normally goes down to C3 when mouse is plugged
> in.
> 
> I think this problem was already reported in this bug [1] and closed without
> proper investigation. Arjan van de Ven stated that "When USB is used C3 cannot
> be entered" argument isn't correct [2].
> 
> I'll provide any additional debug data if needed.
> 
> [1] http://bugzilla.kernel.org/show_bug.cgi?id=12391
> [2] http://www.bughost.org/pipermail/power/2009-March/001617.html
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
  2009-04-21 21:27   ` [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in Andrew Morton
@ 2009-04-21 21:40     ` Arjan van de Ven
  2009-04-21 22:22     ` Oliver Neukum
       [not found]     ` <20090421142751.b030cba7.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
  2 siblings, 0 replies; 14+ messages in thread
From: Arjan van de Ven @ 2009-04-21 21:40 UTC (permalink / raw)
  To: Andrew Morton
  Cc: rui.zhang, shaohua.li, yakui.zhao, bugzilla-daemon, bugme-daemon,
	linux-usb, linux-acpi, daniel.smoczyk, imrehg

On Tue, 21 Apr 2009 14:27:51 -0700
Andrew Morton <akpm@linux-foundation.org> wrote:

> 
> (switched to email.  Please respond via emailed reply-to-all, not via
> the bugzilla web interface).
> 
> It looks like we need to revisit this - 2.6.26 worked OK, so why can't
> 2.6.28?
> 

2.6.28 ought to be able to work;

the one caveat is that powertop is reporting more accurate data in
newer kernels (the newer kernels expose more details specifically for
powertop) so it needs to be investigated to make sure this is not just
some cosmetic issue.

(note that C3 might not be the right idea per se with such USB device
in, but that is a different story)


-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
  2009-04-21 21:27   ` [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in Andrew Morton
  2009-04-21 21:40     ` Arjan van de Ven
@ 2009-04-21 22:22     ` Oliver Neukum
  2009-04-21 23:49       ` Arjan van de Ven
       [not found]     ` <20090421142751.b030cba7.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
  2 siblings, 1 reply; 14+ messages in thread
From: Oliver Neukum @ 2009-04-21 22:22 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Arjan van de Ven, rui.zhang, shaohua.li, yakui.zhao,
	bugzilla-daemon, bugme-daemon, linux-usb, linux-acpi,
	daniel.smoczyk, imrehg

Am Dienstag 21 April 2009 23:27:51 schrieb Andrew Morton:
> (switched to email.  Please respond via emailed reply-to-all, not via the
> bugzilla web interface).
>
> It looks like we need to revisit this - 2.6.26 worked OK, so why can't
> 2.6.28?

Not going into C3 without autosuspend is really expected.

> > [1] http://bugzilla.kernel.org/show_bug.cgi?id=12391
> > [2] http://www.bughost.org/pipermail/power/2009-March/001617.html

Going by http://bugzilla.kernel.org/attachment.cgi?id=19780
is the CPU really in C3 under 2.6.26 without autosuspend?

	Regards
		Oliver


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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
  2009-04-21 22:22     ` Oliver Neukum
@ 2009-04-21 23:49       ` Arjan van de Ven
  2009-04-22  8:48         ` Oliver Neukum
  0 siblings, 1 reply; 14+ messages in thread
From: Arjan van de Ven @ 2009-04-21 23:49 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Andrew Morton, rui.zhang, shaohua.li, yakui.zhao,
	bugzilla-daemon, bugme-daemon, linux-usb, linux-acpi,
	daniel.smoczyk, imrehg

On Wed, 22 Apr 2009 00:22:14 +0200
Oliver Neukum <oliver@neukum.org> wrote:

> Am Dienstag 21 April 2009 23:27:51 schrieb Andrew Morton:
> > (switched to email.  Please respond via emailed reply-to-all, not
> > via the bugzilla web interface).
> >
> > It looks like we need to revisit this - 2.6.26 worked OK, so why
> > can't 2.6.28?
> 
> Not going into C3 without autosuspend is really expected.

this is not correct; if the CPU supports "C2-popup", going to C3 is
expected.


-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
  2009-04-21 23:49       ` Arjan van de Ven
@ 2009-04-22  8:48         ` Oliver Neukum
       [not found]           ` <200904221048.35180.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Oliver Neukum @ 2009-04-22  8:48 UTC (permalink / raw)
  To: Arjan van de Ven
  Cc: Andrew Morton, rui.zhang, shaohua.li, yakui.zhao,
	bugzilla-daemon, bugme-daemon, linux-usb, linux-acpi,
	daniel.smoczyk, imrehg

Am Mittwoch 22 April 2009 01:49:10 schrieb Arjan van de Ven:
> On Wed, 22 Apr 2009 00:22:14 +0200
>
> Oliver Neukum <oliver@neukum.org> wrote:
> > Am Dienstag 21 April 2009 23:27:51 schrieb Andrew Morton:
> > > (switched to email.  Please respond via emailed reply-to-all, not
> > > via the bugzilla web interface).
> > >
> > > It looks like we need to revisit this - 2.6.26 worked OK, so why
> > > can't 2.6.28?
> >
> > Not going into C3 without autosuspend is really expected.
>
> this is not correct; if the CPU supports "C2-popup", going to C3 is
> expected.

Yes, that's possible. Does the system in question?

	Regards
		Oliver


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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
       [not found]           ` <200904221048.35180.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
@ 2009-04-22  9:12             ` Shaohua Li
       [not found]               ` <20090422091247.GA28309-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Shaohua Li @ 2009-04-22  9:12 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Arjan van de Ven, Andrew Morton, Zhang, Rui, Zhao, Yakui,
	bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	bugme-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-acpi-u79uwXL29TY76Z2rM5mHXA,
	daniel.smoczyk-Re5JQEeQqe8AvxtiuMwx3w,
	imrehg-Re5JQEeQqe8AvxtiuMwx3w

On Wed, Apr 22, 2009 at 04:48:30PM +0800, Oliver Neukum wrote:
> Am Mittwoch 22 April 2009 01:49:10 schrieb Arjan van de Ven:
> > On Wed, 22 Apr 2009 00:22:14 +0200
> >
> > Oliver Neukum <oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org> wrote:
> > > Am Dienstag 21 April 2009 23:27:51 schrieb Andrew Morton:
> > > > (switched to email.  Please respond via emailed reply-to-all, not
> > > > via the bugzilla web interface).
> > > >
> > > > It looks like we need to revisit this - 2.6.26 worked OK, so why
> > > > can't 2.6.28?
> > >
> > > Not going into C3 without autosuspend is really expected.
> >
> > this is not correct; if the CPU supports "C2-popup", going to C3 is
> > expected.
> 
> Yes, that's possible. Does the system in question?
IIRC, C2-popup is supported since core architecture. The system (a T41)
is unlikely support this.

Thanks,
Shaohua
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
       [not found]     ` <20090421142751.b030cba7.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
@ 2009-04-22 14:51       ` Alan Stern
  2009-04-22 15:09         ` Daniel Smoczyk
       [not found]         ` <Pine.LNX.4.44L0.0904221050110.3405-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
  0 siblings, 2 replies; 14+ messages in thread
From: Alan Stern @ 2009-04-22 14:51 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Arjan van de Ven, rui.zhang-ral2JQCrhuEAvxtiuMwx3w,
	shaohua.li-ral2JQCrhuEAvxtiuMwx3w,
	yakui.zhao-ral2JQCrhuEAvxtiuMwx3w,
	bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	bugme-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-acpi-u79uwXL29TY76Z2rM5mHXA,
	daniel.smoczyk-Re5JQEeQqe8AvxtiuMwx3w,
	imrehg-Re5JQEeQqe8AvxtiuMwx3w

On Tue, 21 Apr 2009, Andrew Morton wrote:

> It looks like we need to revisit this - 2.6.26 worked OK, so why can't
> 2.6.28?

In fact the bug report says that 2.6.27 worked okay.

However the changes to uhci-hcd between 2.6.27 and 2.6.28 are quite 
minimal.  I can't see how any of them could have had this effect.  It 
must be due to a change somewhere else in the kernel.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
  2009-04-22 14:51       ` Alan Stern
@ 2009-04-22 15:09         ` Daniel Smoczyk
       [not found]           ` <d7131a800904220809ha96c0e5rd366abfcbae4d1c2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
       [not found]         ` <Pine.LNX.4.44L0.0904221050110.3405-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
  1 sibling, 1 reply; 14+ messages in thread
From: Daniel Smoczyk @ 2009-04-22 15:09 UTC (permalink / raw)
  To: Alan Stern
  Cc: Andrew Morton, Arjan van de Ven, rui.zhang, shaohua.li,
	yakui.zhao, bugzilla-daemon, bugme-daemon, linux-usb, linux-acpi,
	imrehg

On Wed, Apr 22, 2009 at 4:51 PM, Alan Stern <stern@rowland.harvard.edu> wrote:

> In fact the bug report says that 2.6.27 worked okay.

Not true, didn't tested 2.6.27 - there wasn't such one in debian repos.

> However the changes to uhci-hcd between 2.6.27 and 2.6.28 are quite
> minimal.  I can't see how any of them could have had this effect.  It
> must be due to a change somewhere else in the kernel.

Could You please check 26 <-> 27? In my opinion uhci-hcd was able to
autosuspend while mouse wasn't used in 2.6.26 and it isn't able to do
autosuspend now ( C3 works ok after "rmmod uhci-hcd")
This situation is very similar to using usb memory stick non-stop,
when watching move for eg. then processor also never goes below C2.

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

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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
       [not found]           ` <d7131a800904220809ha96c0e5rd366abfcbae4d1c2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-04-22 16:39             ` Alan Stern
  0 siblings, 0 replies; 14+ messages in thread
From: Alan Stern @ 2009-04-22 16:39 UTC (permalink / raw)
  To: Daniel Smoczyk
  Cc: Andrew Morton, Arjan van de Ven,
	rui.zhang-ral2JQCrhuEAvxtiuMwx3w,
	shaohua.li-ral2JQCrhuEAvxtiuMwx3w,
	yakui.zhao-ral2JQCrhuEAvxtiuMwx3w,
	bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r, USB list,
	linux-acpi-u79uwXL29TY76Z2rM5mHXA, imrehg-Re5JQEeQqe8AvxtiuMwx3w

On Wed, 22 Apr 2009, Daniel Smoczyk wrote:

> On Wed, Apr 22, 2009 at 4:51 PM, Alan Stern <stern-nwvwT67g6+6dFdvTe/nMLsd9G2dDO2Ms@public.gmane.orgu> wrote:
> 
> > In fact the bug report says that 2.6.27 worked okay.
> 
> Not true, didn't tested 2.6.27 - there wasn't such one in debian repos.

I'm going by the data in

	http://bugzilla.kernel.org/attachment.cgi?id=19780

which is attached to bug #12391.

> > However the changes to uhci-hcd between 2.6.27 and 2.6.28 are quite
> > minimal.  I can't see how any of them could have had this effect.  It
> > must be due to a change somewhere else in the kernel.
> 
> Could You please check 26 <-> 27? In my opinion uhci-hcd was able to
> autosuspend while mouse wasn't used in 2.6.26 and it isn't able to do
> autosuspend now ( C3 works ok after "rmmod uhci-hcd")

There was essentially no change to uhci-hcd between 2.6.26 and 2.6.27
(a static array definition got an added "const", that's all).

uhci-hcd has been able to autosuspend all along, provided no active
devices (like a mouse) are attached.  If you unplug the mouse and any
other USB devices attached to the UHCI controller under 2.6.28, it 
should autosuspend.

But that's not what you were concerned about.  Your original bug 
description said that the CPU wasn't going into C3 when the mouse _was_ 
attached.

> This situation is very similar to using usb memory stick non-stop,
> when watching move for eg. then processor also never goes below C2.

Whenever a USB device is attached and not suspended, the host 
controller has to do DMA.  Older processors are not able to enter C3 
while DMA is active.  So it would be good to verify whether your CPU is 
actually capable of doing it.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
       [not found]         ` <Pine.LNX.4.44L0.0904221050110.3405-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
@ 2009-04-22 17:36           ` Oliver Neukum
       [not found]             ` <200904221936.38942.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Oliver Neukum @ 2009-04-22 17:36 UTC (permalink / raw)
  To: Alan Stern
  Cc: Andrew Morton, Arjan van de Ven,
	rui.zhang-ral2JQCrhuEAvxtiuMwx3w,
	shaohua.li-ral2JQCrhuEAvxtiuMwx3w,
	yakui.zhao-ral2JQCrhuEAvxtiuMwx3w,
	bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	bugme-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-acpi-u79uwXL29TY76Z2rM5mHXA,
	daniel.smoczyk-Re5JQEeQqe8AvxtiuMwx3w,
	imrehg-Re5JQEeQqe8AvxtiuMwx3w

Am Mittwoch 22 April 2009 16:51:38 schrieb Alan Stern:
> On Tue, 21 Apr 2009, Andrew Morton wrote:
> > It looks like we need to revisit this - 2.6.26 worked OK, so why can't
> > 2.6.28?
>
> In fact the bug report says that 2.6.27 worked okay.

We don't know that. It is possible that USB always worked as expected
but ACPI's reporting of C states was broken and later fixed.

	Regards
		Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
       [not found]               ` <20090422091247.GA28309-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
@ 2009-04-22 18:35                 ` Len Brown
  0 siblings, 0 replies; 14+ messages in thread
From: Len Brown @ 2009-04-22 18:35 UTC (permalink / raw)
  To: Shaohua Li
  Cc: Oliver Neukum, Arjan van de Ven, Andrew Morton, Zhang, Rui, Zhao,
	Yakui, bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	bugme-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-acpi-u79uwXL29TY76Z2rM5mHXA,
	daniel.smoczyk-Re5JQEeQqe8AvxtiuMwx3w,
	imrehg-Re5JQEeQqe8AvxtiuMwx3w


> IIRC, C2-popup is supported since core architecture. The system (a T41)
> is unlikely support this.

The T41 is an ICH4M, Pentium M system.
C2 popup was not supported until ICH6M.

Thus, when USB is active, this system should detect bus master 
activity (as displayed in /proc/acpi/processor/CPU/power)
and should not enter C3 when such activity is (recently) present.

Len Brown, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
       [not found]             ` <200904221936.38942.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
@ 2009-04-22 22:54               ` Len Brown
       [not found]                 ` <alpine.LFD.2.00.0904221848380.21119-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
  2009-04-23  0:40                 ` [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in Len Brown
  0 siblings, 2 replies; 14+ messages in thread
From: Len Brown @ 2009-04-22 22:54 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Alan Stern, Andrew Morton, Arjan van de Ven,
	rui.zhang-ral2JQCrhuEAvxtiuMwx3w,
	shaohua.li-ral2JQCrhuEAvxtiuMwx3w,
	yakui.zhao-ral2JQCrhuEAvxtiuMwx3w,
	bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	bugme-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-acpi-u79uwXL29TY76Z2rM5mHXA,
	daniel.smoczyk-Re5JQEeQqe8AvxtiuMwx3w,
	imrehg-Re5JQEeQqe8AvxtiuMwx3w

This is not a re-gression, it is a pro-gression:-)

In the CONFIG_CPU_IDLE=y case, there was a bug where we
would enter C3 even in the presence of bus master activity.
That bug was fixed by commit fc2e4009300088813c3be2de80b01ddc2399999e
"cpuidle: update the last_state acpi cpuidle reflecting actual state entered"

which shipped in 2.6.27

I've reproduced this issue on my t41, and when i revert the the
patch above from 2.6.27, we erroneously attempt to enter C3
in the face of bus master activity, just like we did in 2.6.25 and 2.6.26.

Note that the CONFIG_CPU_IDLE=n case never had this bug,
so you'd not see C3 with USB in that case even in older kernels.

Note also that /proc/acpi/processor/CPU/power does not
display any bus master activity for the CONFIG_CPU_IDLE=y
case, even when such activity is present.  Now that
CONFIG_CPU_IDLE=y for ACPI always, I think we should
simply delete that misleading field.

thanks,
Len Brown, Intel Open Source Technology Center

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* [RFC PATCH] ACPI: delete obsolete "bus master activity" proc field
       [not found]                 ` <alpine.LFD.2.00.0904221848380.21119-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
@ 2009-04-22 23:53                   ` Len Brown
  0 siblings, 0 replies; 14+ messages in thread
From: Len Brown @ 2009-04-22 23:53 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Alan Stern, Andrew Morton, Arjan van de Ven,
	rui.zhang-ral2JQCrhuEAvxtiuMwx3w,
	shaohua.li-ral2JQCrhuEAvxtiuMwx3w,
	yakui.zhao-ral2JQCrhuEAvxtiuMwx3w,
	bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	bugme-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	linux-acpi-u79uwXL29TY76Z2rM5mHXA,
	daniel.smoczyk-Re5JQEeQqe8AvxtiuMwx3w,
	imrehg-Re5JQEeQqe8AvxtiuMwx3w

From: Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

The legacy ACPI idle handler was deleted from 2.6.29
leaving the CPU_IDLE idle handler, which never sets bm_activity.

So delete this unused field -- it is mis-leading to have it print
all zeros when, in fact, there may bus master activity
occurring -- just that we don't track its history any more.

This patch could break something that parses
/proc/acpi/processor/*/power, since it deletes this
line from that file:

bus master activity:     00000000

Signed-off-by: Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 drivers/acpi/processor_idle.c |    4 +---
 include/acpi/processor.h      |    1 -
 2 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
index 9d1f01e..eed3b45 100644
--- a/drivers/acpi/processor_idle.c
+++ b/drivers/acpi/processor_idle.c
@@ -662,11 +662,9 @@ static int acpi_processor_power_seq_show(struct seq_file *seq, void *offset)
 
 	seq_printf(seq, "active state:            C%zd\n"
 		   "max_cstate:              C%d\n"
-		   "bus master activity:     %08x\n"
 		   "maximum allowed latency: %d usec\n",
 		   pr->power.state ? pr->power.state - pr->power.states : 0,
-		   max_cstate, (unsigned)pr->power.bm_activity,
-		   pm_qos_requirement(PM_QOS_CPU_DMA_LATENCY));
+		   max_cstate, pm_qos_requirement(PM_QOS_CPU_DMA_LATENCY));
 
 	seq_puts(seq, "states:\n");
 
diff --git a/include/acpi/processor.h b/include/acpi/processor.h
index b09c4fd..4927c06 100644
--- a/include/acpi/processor.h
+++ b/include/acpi/processor.h
@@ -84,7 +84,6 @@ struct acpi_processor_power {
 	struct acpi_processor_cx *state;
 	unsigned long bm_check_timestamp;
 	u32 default_state;
-	u32 bm_activity;
 	int count;
 	struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER];
 	int timer_broadcast_on_state;
-- 
1.6.3.rc1.34.g0be9b


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in.
  2009-04-22 22:54               ` Len Brown
       [not found]                 ` <alpine.LFD.2.00.0904221848380.21119-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
@ 2009-04-23  0:40                 ` Len Brown
  1 sibling, 0 replies; 14+ messages in thread
From: Len Brown @ 2009-04-23  0:40 UTC (permalink / raw)
  To: Oliver Neukum
  Cc: Alan Stern, Andrew Morton, Arjan van de Ven, rui.zhang,
	shaohua.li, yakui.zhao, bugzilla-daemon, bugme-daemon, linux-usb,
	linux-acpi, daniel.smoczyk, imrehg, Venkatesh Pallipadi


> That bug was fixed by commit fc2e4009300088813c3be2de80b01ddc2399999e
> "cpuidle: update the last_state acpi cpuidle reflecting actual state entered"
> 
> which shipped in 2.6.27

Venki pointed out that fc2e4009300 shipped in 2.6.27.15.
It was backported from addbad46ed0906cd584784423b9d0babc7476446
which shipped in 2.6.28

-Len Brown, Intel Open Source Technology Center

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

end of thread, other threads:[~2009-04-23  0:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-13145-10286@http.bugzilla.kernel.org/>
     [not found] ` <bug-13145-10286-V0hAGp6uBxO456/isadD/XN4h3HLQggn@public.gmane.org/>
2009-04-21 21:27   ` [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in Andrew Morton
2009-04-21 21:40     ` Arjan van de Ven
2009-04-21 22:22     ` Oliver Neukum
2009-04-21 23:49       ` Arjan van de Ven
2009-04-22  8:48         ` Oliver Neukum
     [not found]           ` <200904221048.35180.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2009-04-22  9:12             ` Shaohua Li
     [not found]               ` <20090422091247.GA28309-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
2009-04-22 18:35                 ` Len Brown
     [not found]     ` <20090421142751.b030cba7.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2009-04-22 14:51       ` Alan Stern
2009-04-22 15:09         ` Daniel Smoczyk
     [not found]           ` <d7131a800904220809ha96c0e5rd366abfcbae4d1c2-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-04-22 16:39             ` Alan Stern
     [not found]         ` <Pine.LNX.4.44L0.0904221050110.3405-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2009-04-22 17:36           ` Oliver Neukum
     [not found]             ` <200904221936.38942.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2009-04-22 22:54               ` Len Brown
     [not found]                 ` <alpine.LFD.2.00.0904221848380.21119-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2009-04-22 23:53                   ` [RFC PATCH] ACPI: delete obsolete "bus master activity" proc field Len Brown
2009-04-23  0:40                 ` [Bugme-new] [Bug 13145] New: Processor does not go below C2 if mouse (uhci) is plugged in Len Brown

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.