]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
PCI/PCIe portdrv: Fix allocation of interrupts
authorRafael J. Wysocki <rjw@sisk.pl>
Fri, 23 Jan 2009 23:23:22 +0000 (00:23 +0100)
committerJesse Barnes <jbarnes@hobbes.lan>
Fri, 20 Mar 2009 02:29:25 +0000 (19:29 -0700)
commitb43d451385ef833e0696032aac2629da04d46c59
tree8bc4e838fdef893934d2cee19ae8f2629549bd4f
parenta52e2e3513d4beafe8fe8699f1519b021c2d05ba
PCI/PCIe portdrv: Fix allocation of interrupts

If MSI-X interrupt mode is used by the PCI Express port driver, too
many vectors are allocated and it is not ensured that the right
vectors will be used for the right services.  Namely, the PCI Express
specification states that both PCI Express native PME and PCI Express
hotplug will always use the same MSI or MSI-X message for signalling
interrupts, which implies that the same vector will be used by both
of them.  Also, the VC service does not use interrupts at all.
Moreover, is not clear which of the vectors allocated by
pci_enable_msix() in the current code will be used for PME and
hotplug and which of them will be used for AER if all of these
services are configured.

For these reasons, rework the allocation of interrupts for PCI
Express ports so that if MSI-X are enabled, the right vectors will be
used for the right purposes.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Reviewed-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pcie/portdrv.h
drivers/pci/pcie/portdrv_core.c
include/linux/pcieport_if.h