Skip to contentSkip to conversation

PCI: Disable AER with pci=nomsi

PATCH Applied Andi Kleen 2 participants 2 messages Sep 16, 2009 – Sep 17, 2009 PCI

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 PCI: Disable AER with pci=nomsi

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.

---
 drivers/pci/pcie/aer/aerdrv.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/pci/pcie/aer/aerdrv.c +2 -0
Index: linux/drivers/pci/pcie/aer/aerdrv.c
===================================================================
@@ -316,6 +316,8 @@ static int __init aer_service_init(void)
 {
 	if (pcie_aer_disable)
 		return -ENXIO;
+	if (!pci_msi_enabled())
+		return -ENXIO;
 	return pcie_port_service_register(&aerdriver);
 }
 
Applied
#1 lore raw
Quoted 9 lines · On Wed, 16 Sep 2009 22:40:22 +0200 Andi Kleen <[email protected]> wrote:

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.

Applied to my linux-next tree for the next pull. Thanks.

Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center