Jean-Philippe Brucker 85aabbd7b3 PCI/MSI: Fix MSIs for generic hosts that use device-tree's "msi-map"
Since commit 9ec37efb8783 ("PCI/MSI: Make pci_host_common_probe() declare
its reliance on MSI domains"), platforms that rely on the "msi-map"
device-tree property don't get MSIs anymore.

On the Arm Fast Model for example [1], the host bridge doesn't have a
"msi-parent" property since it doesn't itself generate MSIs, and so doesn't
get a MSI domain. It has an "msi-map" property instead to describe MSI
controllers of child devices. As a result, due to the new msi_domain check
in pci_register_host_bridge(), the whole bus gets PCI_BUS_FLAGS_NO_MSI.

Check whether the root complex has an "msi-map" property before giving
up on MSIs.

[1] arch/arm64/boot/dts/arm/fvp-base-revc.dts

Fixes: 9ec37efb8783 ("PCI/MSI: Make pci_host_common_probe() declare its reliance on MSI domains")
Link: https://lore.kernel.org/r/20210510173129.750496-1-jean-philippe@linaro.org
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Marc Zyngier <maz@kernel.org>
2021-05-25 18:37:37 -05:00
..
2021-05-05 13:24:11 -07:00
2021-05-04 10:43:24 -05:00
2020-08-05 18:24:16 -05:00
2021-03-11 17:37:20 -06:00
2020-07-29 14:25:18 -05:00
2020-10-22 12:41:00 -07:00
2020-12-16 13:42:26 -08:00
2020-12-15 15:11:08 -06:00
2021-05-05 13:24:11 -07:00
2021-05-05 13:24:11 -07:00
2021-05-05 13:24:11 -07:00
2021-02-11 15:59:19 +01:00
2021-02-10 16:46:29 -06:00
2020-12-15 15:11:08 -06:00
2020-08-05 18:23:14 -05:00
2021-05-04 10:43:23 -05:00
2021-03-19 04:58:25 +00:00