Skip to content

PCI: hv: Support host bridge probing on ARM64

Boqun Feng linux-arm-kernel linux-hyperv linux-pci lkml 5 versions – Applied

Status from this message: Applied to pci/hyper-v, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest8 patches 19 repliesApplied
  2. v5 RFC8 patches 5 repliesSuperseded
  3. v4 RFC7 patches 9 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v3 RFC7 patches4 repliesSuperseded
v2 RFC7 patches7 repliesSuperseded

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/8PCI: Introduce domain_nr in pci_host_bridgedrivers/pci/probe.c include/linux/pci.h+16 -10 replies
2/8PCI: Support populating MSI domains of root buses via bridgesdrivers/pci/probe.c+5 -11 reply
3/8arm64: PCI: Restructure pcibios_root_bridge_prepare()arch/arm64/kernel/pci.c+12 -71 reply
4/8arm64: PCI: Support root bridge preparation for Hyper-Varch/arm64/kernel/pci.c+11 -14 replies
5/8PCI: hv: Generify PCI probingdrivers/pci/controller/pci-hyperv.c+30 -270 replies
6/8PCI: hv: Set ->domain_nr of pci_host_bridge at probing timedrivers/pci/controller/pci-hyperv.c+5 -40 replies
7/8PCI: hv: Set up MSI domain at bridge probing timedrivers/pci/controller/pci-hyperv.c+8 -50 replies
8/8PCI: hv: Turn on the host bridge probing on ARM64drivers/pci/controller/pci-hyperv.c+7 -04 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by.

PatchBjorn HelgaasArnd BergmannCatalin Marinas
1/8A-b
2/8A-b Originally-by
3/8A-b
4/8A-b
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/8] PCI: hv: Support host bridge probing on ARM64

Hi,

This is the v6 for the preparation of virtual PCI support on Hyper-V ARM64, Previous versions:

v1: https://lore.kernel.org/lkml/[email protected]/
v2: https://lore.kernel.org/lkml/[email protected]/
v3: https://lore.kernel.org/lkml/[email protected]/
v4: https://lore.kernel.org/lkml/[email protected]/
v5: https://lore.kernel.org/lkml/[email protected]/

Changes since last version:

* Rebase to 5.14-rc3

* Comment fixes as suggested by Bjorn.

The basic problem we need to resolve is that ARM64 is an arch with PCI_DOMAINS_GENERIC=y, so the bus sysdata is pci_config_window. However, Hyper-V PCI provides a paravirtualized PCI interface, so there is no actual pci_config_window for a PCI host bridge, so no information can be retrieve from the pci_config_window of a Hyper-V virtual PCI bus. Also there is no corresponding ACPI device for the Hyper-V PCI root bridge, which introduces a special case when trying to find the ACPI device from the sysdata (see patch #3).

With this patchset, we could enable the virtual PCI on Hyper-V ARM64 guest with other code under development.

Comments and suggestions are welcome.

Regards,
Boqun

Arnd Bergmann (1):
PCI: hv: Generify PCI probing

Boqun Feng (7):
PCI: Introduce domain_nr in pci_host_bridge
PCI: Support populating MSI domains of root buses via bridges
arm64: PCI: Restructure pcibios_root_bridge_prepare()
arm64: PCI: Support root bridge preparation for Hyper-V
PCI: hv: Set ->domain_nr of pci_host_bridge at probing time
PCI: hv: Set up MSI domain at bridge probing time
PCI: hv: Turn on the host bridge probing on ARM64

 arch/arm64/kernel/pci.c             | 29 +++++++---
 drivers/pci/controller/pci-hyperv.c | 86 +++++++++++++++++------------
 drivers/pci/probe.c                 | 12 +++-
 include/linux/pci.h                 | 11 ++++
 4 files changed, 93 insertions(+), 45 deletions(-)
Signature · 1 line
2.32.0