Skip to content

PCI: Add support for preserving boot configuration

Bjorn Helgaas linux-acpi linux-arm-kernel linux-devicetree linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: Move PRESERVE_BOOT_CONFIG _DSM evaluation to pci_register_host_bridge()drivers/acpi/pci_root.c drivers/pci/pci-acpi.c drivers/pci/pci.h +1 more+38 -121 reply
2/3PCI: of: Add of_pci_preserve_config() for per-host bridge supportdrivers/pci/of.c drivers/pci/pci.h+54 -130 replies
3/3PCI: Unify ACPI and DT 'preserve config' supportdrivers/pci/probe.c+3 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v7-incomplete 0/3] PCI: Add support for preserving boot configuration

From: Bjorn Helgaas <[email protected]>

This is Vidya's work; I started splitting it into separate patches.

This is based on v6
(https://lore.kernel.org/r/[email protected]) but is missing a few pieces, so it's not complete yet. I just wanted to show the idea of what I had in mind.

The missing pieces are:

- Set PCI_REASSIGN_ALL_BUS if !PCI_PROBE_ONLY

- Use bridge->preserve_config instead of PCI_PROBE_ONLY

- Change to use pci_assign_unassigned_root_bus_resources() instead of pci_bus_size_bridge() and pci_bus_assign_resources()

Bjorn Helgaas (3):
PCI: Move PRESERVE_BOOT_CONFIG _DSM evaluation to
pci_register_host_bridge()
PCI: of: Add of_pci_preserve_config() for per-host bridge support
PCI: Unify ACPI and DT 'preserve config' support

 drivers/acpi/pci_root.c | 12 ---------
 drivers/pci/of.c        | 60 ++++++++++++++++++++++++++++++++---------
 drivers/pci/pci-acpi.c  | 22 +++++++++++++++
 drivers/pci/pci.h       | 12 +++++++++
 drivers/pci/probe.c     | 14 ++++++++++
 5 files changed, 95 insertions(+), 25 deletions(-)
Signature · 1 line
2.34.1