Commit c67efb09 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Greg Kroah-Hartman

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

commit f723fa4e upstream.

Intel AHCI controllers that also hide NVMe devices in their bar
can't use MSI interrupts, so disable them.
Reported-by: default avatarJohn Loy <john.robert.loy@gmail.com>
Tested-by: default avatarJohn Loy <john.robert.loy@gmail.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Fixes: d684a90d ("ahci: per-port msix support")
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 30609601
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment