[PATCH 0/6 v8] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

Varun Sethi
2013-02-18T13:00:33Z

This patchset provides the Freescale PAMU (Peripheral Access Management Unit) driver
and the corresponding IOMMU API implementation. PAMU is the IOMMU present on Freescale
QorIQ platforms. PAMU can authorize memory access, remap the memory address, and remap
the I/O transaction type.

This set consists of the following patches:
1. Addition of new field in the device (powerpc) archdata structure for storing iommu domain information
pointer. This pointer is stored when the device is attached to a particular iommu domain.
2. Store PCI controller platform device information in the PCI controller structure.
3. Add defines for FSL PCI controller BRR1 register.
4. Add window permission flags in the iommu_domain_window_enable API.
5. Add domain attributes for FSL PAMU driver.
6. PAMU driver and IOMMU API implementation.

This patch set is based on the next branch of the iommu git tree maintained by Joerg.

Varun Sethi (6):
Store iommu domain information in the device structure.
Store the platform device information corresponding to the pci
controller.
Added defines for the FSL PCI controller BRR1 register.
Add window permission flags for iommu_domain_window_enable API.
Add addtional attributes specific to the PAMU driver.
FSL PAMU driver and IOMMU API implementation.

arch/powerpc/include/asm/device.h | 4 +
arch/powerpc/include/asm/pci-bridge.h | 4 +
arch/powerpc/sysdev/fsl_pci.c | 9 +-
arch/powerpc/sysdev/fsl_pci.h | 2 +-
drivers/iommu/Kconfig | 8 +
drivers/iommu/Makefile | 1 +
drivers/iommu/fsl_pamu.c | 1260 +++++++++++++++++++++++++++++++++
drivers/iommu/fsl_pamu.h | 398 +++++++++++
drivers/iommu/fsl_pamu_domain.c | 1135 +++++++++++++++++++++++++++++
drivers/iommu/fsl_pamu_domain.h | 89 +++
drivers/iommu/iommu.c | 5 +-
include/linux/iommu.h | 40 +-
12 files changed, 2947 insertions(+), 8 deletions(-)
create mode 100644 drivers/iommu/fsl_pamu.c
create mode 100644 drivers/iommu/fsl_pamu.h
create mode 100644 drivers/iommu/fsl_pamu_domain.c
create mode 100644 drivers/iommu/fsl_pamu_domain.h

--
1.7.4.1