8ca2b78f74b7dfc79ff3af057a71205465a3ba51
[openwrt/staging/blocktrron.git] /
1 From 9ec37efb87832b578d7972fc80b04d94f5d2bbe3 Mon Sep 17 00:00:00 2001
2 From: Marc Zyngier <maz@kernel.org>
3 Date: Tue, 30 Mar 2021 16:11:42 +0100
4 Subject: PCI/MSI: Make pci_host_common_probe() declare its reliance on MSI
5 domains
6
7 The generic PCI host driver relies on MSI domains for MSIs to
8 be provided to its end-points. Make this dependency explicit.
9
10 This cures the warnings occuring on arm/arm64 VMs when booted
11 with PCI virtio devices and no MSI controller (no GICv3 ITS,
12 for example).
13
14 It is likely that other drivers will need to express the same
15 dependency.
16
17 Link: https://lore.kernel.org/r/20210330151145.997953-12-maz@kernel.org
18 Signed-off-by: Marc Zyngier <maz@kernel.org>
19 Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
20 Acked-by: Bjorn Helgaas <bhelgaas@google.com>
21 ---
22 drivers/pci/controller/pci-host-common.c | 1 +
23 1 file changed, 1 insertion(+)
24
25 --- a/drivers/pci/controller/pci-host-common.c
26 +++ b/drivers/pci/controller/pci-host-common.c
27 @@ -77,6 +77,7 @@ int pci_host_common_probe(struct platfor
28
29 bridge->sysdata = cfg;
30 bridge->ops = (struct pci_ops *)&ops->pci_ops;
31 + bridge->msi_domain = true;
32
33 platform_set_drvdata(pdev, bridge);
34