PCI/MSI: Add device flag indicating that 64-bit MSIs don't work
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 3 Oct 2014 05:13:24 +0000 (15:13 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 24 Nov 2014 03:11:34 +0000 (14:11 +1100)
commitf144d1496b47e7450f41b767d0d91c724c2198bc
tree3316842ffde3ced8f221a04b288f5a9dfc9ab29a
parent413cbf469a19e7662ba5025695bf5a573927105a
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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: <stable@vger.kernel.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/msi.c
include/linux/pci.h