All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Support for specifying extra IOMMU mappings for PCI
@ 2020-09-10  9:42 laurentiu.tudor at nxp.com
  2020-09-10  9:42 ` [PATCH v5 1/4] pci: layerscape: move per-pci device fdt fixup in a function laurentiu.tudor at nxp.com
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: laurentiu.tudor at nxp.com @ 2020-09-10  9:42 UTC (permalink / raw)
  To: u-boot

From: Laurentiu Tudor <laurentiu.tudor@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.

Changes in v5:
 - dropped useless NULL check for variable 'compat' in patch 2

Changes in v4:
 - rebased
 - fixed compilation issue on ls1021a based boards

Changes in v3:
 - rebased
 - trimmed commit message of the last patch
 - minor adjustments to the readme file

Changes in v2:
 - add ARI support and use it by default
 - option to disable ARI
 - fixes in BDF calculation
 - reorganized code a bit
 - added more comments

Laurentiu Tudor (4):
  pci: layerscape: move per-pci device fdt fixup in a function
  pci: layerscape: move pci node search in a common function
  pci: add a few ARI related defines
  pci: layerscape: add a way of specifying additional iommu mappings

 .../fsl-layerscape/doc/README.pci_iommu_extra |  67 +++
 drivers/pci/Kconfig                           |  12 +
 drivers/pci/pcie_layerscape_fixup.c           | 460 +++++++++++++++---
 include/pci.h                                 |   6 +
 4 files changed, 480 insertions(+), 65 deletions(-)
 create mode 100644 arch/arm/cpu/armv8/fsl-layerscape/doc/README.pci_iommu_extra

-- 
2.17.1

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH v4 0/4] Support for specifying extra IOMMU mappings for PCI
@ 2020-09-03 13:59 laurentiu.tudor at nxp.com
  0 siblings, 0 replies; 6+ messages in thread
From: laurentiu.tudor at nxp.com @ 2020-09-03 13:59 UTC (permalink / raw)
  To: u-boot

From: Laurentiu Tudor <laurentiu.tudor@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.

Changes in v4:
 - rebased
 - fixed compilation issue on ls1021a based boards

Changes in v3:
 - rebased
 - trimmed commit message of the last patch
 - minor adjustments to the readme file

Changes in v2:
 - add ARI support and use it by default
 - option to disable ARI
 - fixes in BDF calculation
 - reorganized code a bit
 - added more comments

Laurentiu Tudor (4):
  pci: layerscape: move per-pci device fdt fixup in a function
  pci: layerscape: move pci node search in a common function
  pci: add a few ARI related defines
  pci: layerscape: add a way of specifying additional iommu mappings

 .../fsl-layerscape/doc/README.pci_iommu_extra |  67 +++
 drivers/pci/Kconfig                           |  12 +
 drivers/pci/pcie_layerscape_fixup.c           | 460 +++++++++++++++---
 include/pci.h                                 |   6 +
 4 files changed, 480 insertions(+), 65 deletions(-)
 create mode 100644 arch/arm/cpu/armv8/fsl-layerscape/doc/README.pci_iommu_extra

-- 
2.17.1

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

end of thread, other threads:[~2020-09-10  9:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10  9:42 [PATCH v4 0/4] Support for specifying extra IOMMU mappings for PCI laurentiu.tudor at nxp.com
2020-09-10  9:42 ` [PATCH v5 1/4] pci: layerscape: move per-pci device fdt fixup in a function laurentiu.tudor at nxp.com
2020-09-10  9:42 ` [PATCH v5 2/4] pci: layerscape: move pci node search in a common function laurentiu.tudor at nxp.com
2020-09-10  9:42 ` [PATCH v5 3/4] pci: add a few ARI related defines laurentiu.tudor at nxp.com
2020-09-10  9:42 ` [PATCH v5 4/4] pci: layerscape: add a way of specifying additional iommu mappings laurentiu.tudor at nxp.com
  -- strict thread matches above, loose matches on Subject: below --
2020-09-03 13:59 [PATCH v4 0/4] Support for specifying extra IOMMU mappings for PCI laurentiu.tudor at nxp.com

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.