linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] PCI: Unify domain emulation
@ 2025-10-24 22:46 Dan Williams
  2025-10-24 22:46 ` [PATCH v2 1/2] PCI: Enable host bridge emulation for PCI_DOMAINS_GENERIC platforms Dan Williams
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Dan Williams @ 2025-10-24 22:46 UTC (permalink / raw)
  To: bhelgaas
  Cc: linux-pci, jonathan.derrick, lpieralisi, kwilczynski, mani, robh,
	Dexuan Cui, Haiyang Zhang, K. Y. Srinivasan,
	Manivannan Sadhasivam, Michael Kelley, Nirmal Patel,
	Suzuki K Poulose, Szymon Durawa, Wei Liu

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/20250716160835.680486-1-dan.j.williams@intel.com

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
-- 
2.51.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-10-28 17:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-24 22:46 [PATCH v2 0/2] PCI: Unify domain emulation Dan Williams
2025-10-24 22:46 ` [PATCH v2 1/2] PCI: Enable host bridge emulation for PCI_DOMAINS_GENERIC platforms Dan Williams
2025-10-25 19:53   ` Michael Kelley
2025-10-27 23:45     ` dan.j.williams
2025-10-27 20:08   ` Dave Jiang
2025-10-24 22:46 ` [PATCH v2 2/2] PCI: vmd: Switch to pci_bus_find_emul_domain_nr() Dan Williams
2025-10-27 20:08   ` Dave Jiang
2025-10-28 17:39 ` [PATCH v2 0/2] PCI: Unify domain emulation Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).