Skip to content

PCI: Unify domain emulation

Dan Williams linux-pci 1 version Applied

Status from this message: Applied to pci/enumeration for v6.19, thanks, Dan!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 5 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2PCI: Enable host bridge emulation for PCI_DOMAINS_GENERIC platformsdrivers/pci/controller/pci-hyperv.c drivers/pci/pci.c drivers/pci/probe.c +1 more+46 -553 replies
2/2PCI: vmd: Switch to pci_bus_find_emul_domain_nr()drivers/pci/controller/vmd.c+17 -231 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSuzuki K PouloseMichael KelleyDave Jiang
1/2T-b R-b T-b R-b
2/2R-b

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 v2 thread

Cover letter [PATCH v2 0/2] PCI: Unify domain emulation

Changes since v1 [1]:
- Rebase on v6.18-rc2
- Support callers supplying both a hint and a range for the Hyper-V hint
+ fallback case (Michael)
- Add comment explaining domain number 0 vs Gen1 VMs, and domain values greater than U16_MAX concerns (Michael)
- Leave the VMD status quo comment about requesting domain numbers > U16_MAX

[1]: http://lore.kernel.org/[email protected]

The PCI/TSM effort created a sample driver to test ABI flows (samples/devsec/ [2]). Suzuki observed that it only worked on x86 due to its dependency on CONFIG_PCI_DOMAINS_GENERIC=n. I.e. an unfortunate restriction for what should be an architecture agnostic test framework.

Introduce a new pci_bus_find_emul_domain_nr() helper that all "soft" host-bridge drivers can share and hide the CONFIG_PCI_DOMAINS_GENERIC details behind that helper.

[2]: https://git.kernel.org/pub/scm/linux/kernel/git/devsec/tsm.git/commit/?id=0e16ce0b9c64

Dan Williams (2):
PCI: Enable host bridge emulation for PCI_DOMAINS_GENERIC platforms
PCI: vmd: Switch to pci_bus_find_emul_domain_nr()

 include/linux/pci.h                 |  7 ++++
 drivers/pci/controller/pci-hyperv.c | 62 +++++------------------------
 drivers/pci/controller/vmd.c        | 40 ++++++++-----------
 drivers/pci/pci.c                   | 24 ++++++++++-
 drivers/pci/probe.c                 |  8 +++-
 5 files changed, 63 insertions(+), 78 deletions(-)

base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada

Signature · 1 line
2.51.0