ahci: don't use MSI for devices with the braindead Intel NVMe remapping scheme
Subsystems (2)
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.
Reported-by John Loy <[email protected]>
Testd-by John Loy <[email protected]>
Signed-off-by Christoph Hellwig <[email protected]>
--- drivers/ata/ahci.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/ata/ahci.c +8 -1
@@ -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
Quoted 5 lines · Christoph Hellwig
Intel AHCI controllers that also hide NVMe devices in their bar can't use MSI interrupts, so disable them.
Reported-by John Loy <[email protected]>Testd-by John Loy <[email protected]>
s/Testd-by/Tested-by/
Quoted 2 lines
Signed-off-by Christoph Hellwig <[email protected]>
Acked-by Dan Williams <[email protected]>
Please also make the subject-line drier.
Tejun Heo
AppliedHello,
Quoted 7 lines · Christoph Hellwig
Intel AHCI controllers that also hide NVMe devices in their bar can't use MSI interrupts, so disable them.
Reported-by John Loy <[email protected]>Testd-by John Loy <[email protected]>Signed-off-by Christoph Hellwig <[email protected]>
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