linux-sg2042/drivers/pci/pcie
Lance Ortiz 37448adfc7 aerdrv: Move cper_print_aer() call out of interrupt context
The following warning was seen on 3.9 when a corrected PCIe error was being
handled by the AER subsystem.

WARNING: at .../drivers/pci/search.c:214 pci_get_dev_by_id+0x8a/0x90()

This occurred because a call to pci_get_domain_bus_and_slot() was added to
cper_print_pcie() to setup for the call to cper_print_aer().  The warning
showed up because cper_print_pcie() is called in an interrupt context and
pci_get* functions are not supposed to be called in that context.

The solution is to move the cper_print_aer() call out of the interrupt
context and into aer_recover_work_func() to avoid any warnings when calling
pci_get* functions.

Signed-off-by: Lance Ortiz <lance.ortiz@hp.com>
Acked-by: Borislav Petkov <bp@suse.de>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2013-05-30 10:51:20 -07:00
..
aer aerdrv: Move cper_print_aer() call out of interrupt context 2013-05-30 10:51:20 -07:00
Kconfig PCI: Remove unnecessary dependencies between PME and ACPI 2013-04-15 14:30:44 -06:00
Makefile PCI: PCIe: Move PCIe PME code to the pcie directory 2010-08-24 13:47:48 -07:00
aspm.c PCI changes for the v3.9 merge window: 2013-02-25 21:18:18 -08:00
pme.c PCI: Remove unnecessary dependencies between PME and ACPI 2013-04-15 14:30:44 -06:00
portdrv.h PCI: Remove "extern" from function declarations 2013-04-17 10:21:17 -06:00
portdrv_acpi.c PCI: Fix missing prototype for pcie_port_acpi_setup() 2013-04-12 11:17:47 -06:00
portdrv_bus.c PCI: Introduce pci_pcie_type(dev) to replace pci_dev->pcie_type 2012-08-23 09:40:57 -06:00
portdrv_core.c PCI: Use PCI Express Capability accessor 2013-01-30 21:24:39 -07:00
portdrv_pci.c PCI changes for the v3.10 merge window: 2013-04-29 09:30:25 -07:00