]> git.baikalelectronics.ru Git - kernel.git/commit
PCI / ACPI: Install wakeup notify handlers for all PCI devs with ACPI
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 29 Dec 2013 22:37:15 +0000 (23:37 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 29 Dec 2013 22:37:15 +0000 (23:37 +0100)
commit324360b99d8771035e1f2b1a7ed95817c5c919d9
tree1c40ba9145e4449a9394e299a9d7f631bed009ac
parent06c006f3502c19a73926310440804e736635906d
PCI / ACPI: Install wakeup notify handlers for all PCI devs with ACPI

It turns out that some BIOSes don't report wakeup GPEs through
_PRW, but use them for signaling wakeup anyway, which causes GPE
storms to occur on some systems after resume from system suspend.
This issue has been uncovered by commit 43bdcb9fba2b (ACPI / PCI:
Rework the setup and cleanup of device wakeup) during the 3.9
development cycle.

Work around the problem by installing wakeup notify handlers for all
PCI devices with ACPI support (i.e. having ACPI companions) regardless
of whether or not the BIOS reports ACPI wakeup support for them.  The
presence of the wakeup notify handlers alone is not harmful in any
way if there are no events for them to handle (they are simply never
executed then), but on some systems they are needed to take care of
spurious events.

Fixes: 43bdcb9fba2b (ACPI / PCI: Rework the setup and cleanup of device wakeup)
References: https://bugzilla.kernel.org/show_bug.cgi?id=63021
Reported-and-tested-by: Agustin Barto <abarto@gmail.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pci-acpi.c