Skip to contentSkip to conversation

ahci: don't use MSI for devices with the braindead Intel NVMe remapping scheme

PATCH Applied Christoph Hellwig 3 participants 3 messages Sep 5, 2017 – Sep 6, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ahci: don't use MSI for devices with the braindead Intel NVMe remapping scheme

Intel AHCI controllers that also hide NVMe devices in their bar can't use MSI interrupts, so disable them.

---
 drivers/ata/ahci.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/ata/ahci.c +8 -1
index 5a5fd0b404eb..cb9b0e9090e3 100644
@@ -1469,7 +1469,14 @@ static void ahci_remap_check(struct pci_dev *pdev, int bar,
 		return;
 
 	dev_warn(&pdev->dev, "Found %d remapped NVMe devices.\n", count);
-	dev_warn(&pdev->dev, "Switch your BIOS from RAID to AHCI mode to use them.\n");
+	dev_warn(&pdev->dev,
+		 "Switch your BIOS from RAID to AHCI mode to use them.\n");
+
+	/*
+	 * Don't rely on the msi-x capability in the remap case,
+	 * share the legacy interrupt across ahci and remapped devices.
+	 */
+	hpriv->flags |= AHCI_HFLAG_NO_MSI;
 }
 
 static int ahci_get_irq_vector(struct ata_host *host, int port)
Signature · 1 line
2.11.0
Applied
#2 lore raw
In reply to Christoph Hellwig

Hello,

Quoted 7 lines · Christoph Hellwig

Intel AHCI controllers that also hide NVMe devices in their bar can't use MSI interrupts, so disable them.

Applied to libata/for-4.14 w/ Fixes tag added and minor edits as suggested by Dan - I changed braindead to silly, hope everyone is fine with that.

Thanks.

Signature · 1 line
tejun