List-Id: U-Boot discussion <u-boot.lists.denx.de>
From: laurentiu.tudor at nxp.com (laurentiu.tudor at nxp.com)
Date: Tue, 9 Jun 2020 13:45:07 +0300
Subject: [PATCH 0/3] Support for specifying extra IOMMU mappings for PCI
Message-ID: <20200609104510.19781-1-laurentiu.tudor@nxp.com>
From: Laurentiu Tudor <laurentiu.tudor at nxp.com>
In the current implementation, u-boot creates iommu mappings only
for PCI devices enumarated at boot time thus does not take into
account more dynamic scenarios such as SR-IOV or PCI hot-plug.
Add support for specifying extra IOMMU mappings for PCI
controllers through a special env var called "pci_iommu_extra" or
through a device tree property named "pci-iommu-extra" placed in
the node describing the PCI controller. More detailed information
can be found in the final patch.
Laurentiu Tudor (3):
pci: layerscape: move per-pci device fdt fixup in a function
pci: layerscape: move pci node search in a common function
pci: layerscape: add a way of specifying additional iommu mappings
.../fsl-layerscape/doc/README.pci_iommu_extra | 68 ++++
drivers/pci/Kconfig | 12 +
drivers/pci/pcie_layerscape_fixup.c | 317 +++++++++++++-----
3 files changed, 318 insertions(+), 79 deletions(-)
create mode 100644 arch/arm/cpu/armv8/fsl-layerscape/doc/README.pci_iommu_extra
From: Laurentiu Tudor <laurentiu.tudor at nxp.com> In the current implementation, u-boot creates iommu mappings only for PCI devices enumarated at boot time thus does not take into account more dynamic scenarios such as SR-IOV or PCI hot-plug. Add support for specifying extra IOMMU mappings for PCI controllers through a special env var called "pci_iommu_extra" or through a device tree property named "pci-iommu-extra" placed in the node describing the PCI controller. More detailed information can be found in the final patch. Laurentiu Tudor (3): pci: layerscape: move per-pci device fdt fixup in a function pci: layerscape: move pci node search in a common function pci: layerscape: add a way of specifying additional iommu mappings .../fsl-layerscape/doc/README.pci_iommu_extra | 68 ++++ drivers/pci/Kconfig | 12 + drivers/pci/pcie_layerscape_fixup.c | 317 +++++++++++++----- 3 files changed, 318 insertions(+), 79 deletions(-) create mode 100644 arch/arm/cpu/armv8/fsl-layerscape/doc/README.pci_iommu_extra