iommu: introduce generic page table allocation framework
authorWill Deacon <will.deacon@arm.com>
Fri, 14 Nov 2014 17:16:49 +0000 (17:16 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 19 Jan 2015 14:46:43 +0000 (14:46 +0000)
commitfdb1d7be7c4d452e9735aeb2b60ae8a2fcf0a514
tree108b994fbb99aed086654bae4badabc13d9d7adf
parenteaa27f34e91a14cdceed26ed6c6793ec1d186115
iommu: introduce generic page table allocation framework

This patch introduces a generic framework for allocating page tables for
an IOMMU. There are a number of reasons we want to do this:

  - It avoids duplication of complex table management code in IOMMU
    drivers that use the same page table format

  - It removes any coupling with the CPU table format (and even the
    architecture!)

  - It defines an API for IOMMU TLB maintenance

Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/Kconfig
drivers/iommu/Makefile
drivers/iommu/io-pgtable.c [new file with mode: 0644]
drivers/iommu/io-pgtable.h [new file with mode: 0644]