Commit 8a9a789b authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt Committed by Sasha Levin

PCI/MSI: Add device flag indicating that 64-bit MSIs don't work

This can be set by quirks/drivers to be used by the architecture code
that assigns the MSI addresses.

We additionally add verification in the core MSI code that the values
assigned by the architecture do satisfy the limitation in order to fail
gracefully if they don't (ie. the arch hasn't been updated to deal with
that quirk yet).
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
CC: <stable@vger.kernel.org>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>

(cherry picked from commit f144d149)
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 2a909208
......@@ -737,6 +737,11 @@ static int msix_capability_init(struct pci_dev *dev,
if (ret)
goto error;
/* Check if all MSI entries honor device restrictions */
ret = msi_verify_entries(dev);
if (ret)
goto error;
/*
* Some devices require MSI-X to be enabled before we can touch the
* MSI-X registers. We need to mask all the vectors to prevent
......
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