mbox series

[V7,0/4] PCI: Add support for preserving boot configuration

Message ID 20240508174138.3630283-1-vidyas@nvidia.com
Headers show
Series PCI: Add support for preserving boot configuration | expand

Message

Vidya Sagar May 8, 2024, 5:41 p.m. UTC
Add support for preserving the boot configuration done by the
platform firmware per host bridge basis, based on the presence of
'linux,pci-probe-only' property in the respective PCI host bridge
device-tree node. It also unifies the ACPI and DT based boot flows
in this regard.

This patch series is a complete version of the incomplete series
( https://lore.kernel.org/linux-pci/20240421190914.374399-1-helgaas@kernel.org/ )
posted by Bjorn which in turn was an attempted split work of the single V6 patch
( https://lore.kernel.org/linux-pci/20240418174043.3750240-1-vidyas@nvidia.com/ )
posted by me.

Vidya Sagar (4):
  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
  PCI: Use preserve_config in place of pci_flags

 drivers/acpi/pci_root.c                  | 12 ------
 drivers/pci/controller/pci-host-common.c |  4 --
 drivers/pci/of.c                         | 54 +++++++++++++++++++-----
 drivers/pci/pci-acpi.c                   | 22 ++++++++++
 drivers/pci/pci.h                        | 12 ++++++
 drivers/pci/probe.c                      | 34 ++++++++++-----
 6 files changed, 101 insertions(+), 37 deletions(-)

Comments

Vidya Sagar May 17, 2024, 5:35 a.m. UTC | #1
Hi Bjorn,
Thanks for reviewing and refactoring V6 patch.
Could you please review this V7 series as well?

Thanks,
Vidya Sagar

> -----Original Message-----
> From: Vidya Sagar <vidyas@nvidia.com>
> Sent: Wednesday, May 8, 2024 11:12 PM
> To: bhelgaas@google.com; rafael@kernel.org; lenb@kernel.org; will@kernel.org;
> lpieralisi@kernel.org; kw@linux.com; robh@kernel.org; frowand.list@gmail.com
> Cc: linux-pci@vger.kernel.org; linux-acpi@vger.kernel.org; linux-
> kernel@vger.kernel.org; linux-arm-kernel@lists.infradead.org;
> devicetree@vger.kernel.org; Thierry Reding <treding@nvidia.com>; Jon Hunter
> <jonathanh@nvidia.com>; Krishna Thota <kthota@nvidia.com>; Manikanta
> Maddireddy <mmaddireddy@nvidia.com>; Vidya Sagar <vidyas@nvidia.com>;
> sagar.tv@gmail.com
> Subject: [PATCH V7 0/4] PCI: Add support for preserving boot configuration
> 
> Add support for preserving the boot configuration done by the platform firmware
> per host bridge basis, based on the presence of 'linux,pci-probe-only' property in
> the respective PCI host bridge device-tree node. It also unifies the ACPI and DT
> based boot flows in this regard.
> 
> This patch series is a complete version of the incomplete series (
> https://lore.kernel.org/linux-pci/20240421190914.374399-1-
> helgaas@kernel.org/ ) posted by Bjorn which in turn was an attempted split work
> of the single V6 patch ( https://lore.kernel.org/linux-
> pci/20240418174043.3750240-1-vidyas@nvidia.com/ ) posted by me.
> 
> Vidya Sagar (4):
>   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
>   PCI: Use preserve_config in place of pci_flags
> 
>  drivers/acpi/pci_root.c                  | 12 ------
>  drivers/pci/controller/pci-host-common.c |  4 --
>  drivers/pci/of.c                         | 54 +++++++++++++++++++-----
>  drivers/pci/pci-acpi.c                   | 22 ++++++++++
>  drivers/pci/pci.h                        | 12 ++++++
>  drivers/pci/probe.c                      | 34 ++++++++++-----
>  6 files changed, 101 insertions(+), 37 deletions(-)
> 
> --
> 2.25.1
Bjorn Helgaas June 3, 2024, 9:21 p.m. UTC | #2
On Wed, May 08, 2024 at 11:11:34PM +0530, Vidya Sagar wrote:
> Add support for preserving the boot configuration done by the
> platform firmware per host bridge basis, based on the presence of
> 'linux,pci-probe-only' property in the respective PCI host bridge
> device-tree node. It also unifies the ACPI and DT based boot flows
> in this regard.
> 
> This patch series is a complete version of the incomplete series
> ( https://lore.kernel.org/linux-pci/20240421190914.374399-1-helgaas@kernel.org/ )
> posted by Bjorn which in turn was an attempted split work of the single V6 patch
> ( https://lore.kernel.org/linux-pci/20240418174043.3750240-1-vidyas@nvidia.com/ )
> posted by me.
> 
> Vidya Sagar (4):
>   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
>   PCI: Use preserve_config in place of pci_flags
> 
>  drivers/acpi/pci_root.c                  | 12 ------
>  drivers/pci/controller/pci-host-common.c |  4 --
>  drivers/pci/of.c                         | 54 +++++++++++++++++++-----
>  drivers/pci/pci-acpi.c                   | 22 ++++++++++
>  drivers/pci/pci.h                        | 12 ++++++
>  drivers/pci/probe.c                      | 34 ++++++++++-----
>  6 files changed, 101 insertions(+), 37 deletions(-)

Applied to pci/enumeration for v6.11, thanks!