Thread (26 messages) 26 messages, 5 authors, 2021-05-18
STALE1836d LANDED: 3 (3M)
Revisions (2)
  1. v2 [diff vs current]
  2. v3 current

[PATCH v3 11/14] PCI/MSI: Make pci_host_common_probe() declare its reliance on MSI domains

From: Marc Zyngier <maz@kernel.org>
Date: 2021-03-30 15:24:47
Also in: linux-arm-kernel, linux-mediatek, linux-pci, linux-renesas-soc, linux-tegra, lkml
Subsystem: pci driver for generic of hosts, pci native host bridge and endpoint drivers, pci subsystem, the rest · Maintainers: Will Deacon, Lorenzo Pieralisi, Krzysztof Wilczyński, Manivannan Sadhasivam, Bjorn Helgaas, Linus Torvalds

The generic PCI host driver relies on MSI domains for MSIs to
be provided to its end-points. Make this dependency explicit.

This cures the warnings occuring on arm/arm64 VMs when booted
with PCI virtio devices and no MSI controller (no GICv3 ITS,
for example).

It is likely that other drivers will need to express the same
dependency.

Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
---
 drivers/pci/controller/pci-host-common.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/pci/controller/pci-host-common.c b/drivers/pci/controller/pci-host-common.c
index 6ab694f8d283..d3924a44db02 100644
--- a/drivers/pci/controller/pci-host-common.c
+++ b/drivers/pci/controller/pci-host-common.c
@@ -79,6 +79,7 @@ int pci_host_common_probe(struct platform_device *pdev)
 
 	bridge->sysdata = cfg;
 	bridge->ops = (struct pci_ops *)&ops->pci_ops;
+	bridge->msi_domain = true;
 
 	return pci_host_probe(bridge);
 }
-- 
2.29.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help