Skip to content

RFC PCI: Use the private field of pci_host_bridge for ACPI device

Boqun Feng linux-acpi linux-arm-kernel linux-hyperv linux-pci lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5PCI: Introduce pci_create_root_bus_priv()drivers/pci/probe.c include/linux/pci.h+15 -30 replies
2/5PCI/ACPI: Store ACPI device information in the host bridge structuredrivers/acpi/pci_root.c include/linux/pci-acpi.h+8 -20 replies
3/5PCI: hv: Set NULL as the ACPI device for the PCI host bridgedrivers/pci/controller/pci-hyperv.c+6 -10 replies
4/5arm64: PCI: Retrieve ACPI device information directly from host bridgesarch/arm64/kernel/pci.c+1 -130 replies
5/5PCI: hv: Remove the dependency of pci_config_windowdrivers/pci/controller/pci-hyperv.c+9 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/5] PCI: Use the private field of pci_host_bridge for ACPI device

Hi Lorenzo,

As our previous discussion, I make a patchset showing the required effort if we want to use ->private in pci_host_bridge to store ACPI device pointer on ARM64. This patchset is mostly for discussion purpose.

This patchset is based onto the v5 of my Hyper-V PCI on ARM64 patchset:

	https://lore.kernel.org/lkml/[email protected]/

, and I've tested it with other code under development to fully enable Hyper-V virtual PCI on ARM64.

Regards,
Boqun

Boqun Feng (5):
PCI: Introduce pci_create_root_bus_priv()
PCI/ACPI: Store ACPI device information in the host bridge structure
PCI: hv: Set NULL as the ACPI device for the PCI host bridge
arm64: PCI: Retrieve ACPI device information directly from host
bridges
PCI: hv: Remove the dependency of pci_config_window

 arch/arm64/kernel/pci.c             | 14 +-------------
 drivers/acpi/pci_root.c             |  5 +++--
 drivers/pci/controller/pci-hyperv.c | 20 +++++++++++++++-----
 drivers/pci/probe.c                 | 15 ++++++++++++---
 include/linux/pci-acpi.h            |  5 +++++
 include/linux/pci.h                 |  3 +++
 6 files changed, 39 insertions(+), 23 deletions(-)
Signature · 1 line
2.32.0