PATCH/RFC: driver model/pmcore wakeup hooks (0/4)

From: David Brownell (david-b_at_pacbell.net)
Date: 10/04/04

  • Next message: Andrew Morton: "Re: 2.6.9-rc3-mm2"
    To: linux-kernel@vger.kernel.org
    Date:	Mon, 4 Oct 2004 13:54:37 -0700
    
    

    There's been some discussion about limitations of the current
    pmcore for systems that want to be partially suspended most
    of the time. That is, where the power management needs to
    affect ACPI G0 states, not G1 states like S1/S3/S4, and isn't cpufreq.

    One significant example involves USB mice. If they were to be
    suspended (usb_suspend_device) after a few seconds of inactivity,
    that change could often spread up the device tree and let the
    USB host controller stop DMA access. Some x86 CPUs could
    then enter C3 and save a couple Watts of battery power ... until
    the mouse moved, and woke that branch of the device tree
    for a while (until the mouse went idle again).

    Most of the parts for that are now in place. But trying to use
    them will turn up places where the pieces don't fit together
    very well yet ... and wakeup support is one of them! So for
    example it's not possible to disable such an autosuspend
    mechanism for mice that can't actually issue wakeups.

    So here are a few patches that add some driver model support
    for wakeup capabilities, and use it for PCI and USB.

     - wake-core.patch, adds two bits and sysfs control over one of them
     - wake-pci.patch, makes pci use those bits
     - wake-usbcore.patch, makes usb do so (replacing code/hacks)
     - wake-ohci.patch, matching wake-usbcore

    The patches follow this, going to LKML.

    Comments?

    - Dave
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Andrew Morton: "Re: 2.6.9-rc3-mm2"

    Relevant Pages

    • Re: powerbook power-off and 2.6.13-rc[3,4]
      ... > I'll build a kernel without USB and drive the laptop over the net and ... A 5 seconds press on the power button force it to power off. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: suspend-to-RAM [was Re: Totally broken PCI PM calls]
      ... and does not come back no matter how many times you press the power ... > no wakeup) which required two patches: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: AMD64 and NFORCE3 250GB very slow and USB hungs
      ... On Sun, 26 Sep 2004, Michael Thonke wrote: ... > system is wrong so a have to power of the system until usb will work ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: powerbook power-off and 2.6.13-rc[3,4]
      ... A 5 seconds press on the power button force it to power off. ... => USB has some problem but there's another one, ... Could you try inserting printks to see where it hangs? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: PATCH/RFC: driver model/pmcore wakeup hooks (0/4)
      ... >> One significant example involves USB mice. ... >> that change could often spread up the device tree and let the ... My current wakeup testing uses a USB keyboard instead. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)