]> git.baikalelectronics.ru Git - kernel.git/commit
PCI PM: PCIe PME root port service driver
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 17 Feb 2010 22:39:08 +0000 (23:39 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Feb 2010 00:20:31 +0000 (16:20 -0800)
commitcfe9673bae4cfcdbb8225c26ad21541fe7a1c873
tree5552890ac80fc53f61dd9c53a6211610375efa1f
parentb9b01da13b62bf886e8ca5331b5ae0db3cad69ff
PCI PM: PCIe PME root port service driver

PCIe native PME detection mechanism is based on interrupts generated
by root ports or event collectors every time a PCIe device sends a
PME message upstream.

Once a PME message has been sent by an endpoint device and received
by its root port (or event collector in the case of root complex
integrated endpoints), the Requester ID from the message header is
registered in the root port's Root Status register.  At the same
time, the PME Status bit of the Root Status register is set to
indicate that there's a PME to handle.  If PCIe PME interrupt is
enabled for the root port, it generates an interrupt once the PME
Status has been set.  After receiving the interrupt, the kernel can
identify the PCIe device that generated the PME using the Requester
ID from the root port's Root Status register. [For details, see PCI
Express Base Specification, Rev. 2.0.]

Implement a driver for the PCIe PME root port service working in
accordance with the above description.

Based on a patch from Shaohua Li <shaohua.li@intel.com>.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Documentation/kernel-parameters.txt
drivers/pci/pcie/Kconfig
drivers/pci/pcie/Makefile
drivers/pci/pcie/pme/Makefile [new file with mode: 0644]
drivers/pci/pcie/pme/pcie_pme.c [new file with mode: 0644]
drivers/pci/pcie/pme/pcie_pme.h [new file with mode: 0644]
drivers/pci/pcie/pme/pcie_pme_acpi.c [new file with mode: 0644]
include/linux/pci.h