diff options
author | Andi Kleen <andi@firstfloor.org> | 2009-09-16 16:40:22 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-17 13:05:27 -0400 |
commit | 3e77a3f7895e9c20756dc250282afa12f6d259a3 (patch) | |
tree | fe9a701f8c7d86841846b52326fbec89c8e42c29 /drivers/pci/pcie/aer | |
parent | 7557b5d63259d55f716e62e528978d4866318515 (diff) |
PCI: Disable AER with pci=nomsi
When booting with pci=nomsi aer causes lost interrupts and
lockdep inversions.
So check if MSIs are not disabled before initializing the aer
driver.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pcie/aer')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv.c b/drivers/pci/pcie/aer/aerdrv.c index 10c0e62bd5a8..2ce8f9ccc66e 100644 --- a/drivers/pci/pcie/aer/aerdrv.c +++ b/drivers/pci/pcie/aer/aerdrv.c | |||
@@ -318,6 +318,8 @@ static int __init aer_service_init(void) | |||
318 | { | 318 | { |
319 | if (pcie_aer_disable) | 319 | if (pcie_aer_disable) |
320 | return -ENXIO; | 320 | return -ENXIO; |
321 | if (!pci_msi_enabled()) | ||
322 | return -ENXIO; | ||
321 | return pcie_port_service_register(&aerdriver); | 323 | return pcie_port_service_register(&aerdriver); |
322 | } | 324 | } |
323 | 325 | ||