public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* usb autosuspend is history after S2R (also on 2.6.31; UVC?)
@ 2009-09-15 18:51 Andreas Mohr
  2009-09-15 19:00 ` Greg KH
  2009-09-15 19:48 ` Oliver Neukum
  0 siblings, 2 replies; 8+ messages in thread
From: Andreas Mohr @ 2009-09-15 18:51 UTC (permalink / raw)
  To: Alan Stern, Greg Kroah-Hartman, laurent.pinchart, Matthew Garrett
  Cc: linux-usb, linux-kernel

Hi,

currently running 2.6.31, and what I've been suspecting for quite some
time (several weeks) is actually true: after S2R resume
all friendly USB autosuspend settings are history and we're back
to the dreaded old 100% activity (powertop -d):

Recent USB suspend statistics
Active  Device name
100.0%  USB device  5-5 : Acer Crystal Eye webcam (SuYin)
100.0%  USB device usb5 : EHCI Host Controller (Linux 2.6.31 ehci_hcd)
  0.0%  USB device usb4 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
  0.0%  USB device usb3 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
  0.0%  USB device usb2 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
  0.0%  USB device usb1 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)

Is there any fix planned for this? This is possibly even more important
(power wasted due to wakeups, I'd judge it to be up to 1.5W on this 8.5W
Aspire One machine) than any other runtime PM implementation...

OTOH this problem is probably isolated to uvc devices, since:
# lsusb -t
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/8p, 480M
    |__ Port 5: Dev 7, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
    |__ Port 5: Dev 7, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M

So, does the uvc driver need a bit of handholding here?
It likely shouldn't simply forget about its autosuspend status after
resume...

Or would Matthew's uvc autosuspend patch
http://osdir.com/ml/fedora-extras-commits/2009-07/msg06079.html
help here?

Thanks,

Andreas Mohr

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

end of thread, other threads:[~2009-09-16 20:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-15 18:51 usb autosuspend is history after S2R (also on 2.6.31; UVC?) Andreas Mohr
2009-09-15 19:00 ` Greg KH
2009-09-15 19:10   ` Matthew Garrett
2009-09-15 19:48 ` Oliver Neukum
2009-09-16 18:19   ` Andreas Mohr
2009-09-16 19:51     ` Francois Romieu
2009-09-16 19:54       ` Andreas Mohr
2009-09-16 20:43         ` Francois Romieu

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