On 05/02/2019 16:55, Christoph Hellwig wrote:
On Tue, Feb 05, 2019 at 10:37:31AM -0600, Rob Herring wrote:
Move io-pgtable.h to include/linux/ and export alloc_io_pgtable_ops
and free_io_pgtable_ops. This enables drivers outside drivers/iommu/ to
use the ARM page table library. Specifically, some ARM Mali GPUs use the
ARM page table formats.
Maybe rename it to arm-io-pgtable.h to make the usage a little more
clear?
It's not Arm-specific, though - the whole point of io-pgtable is to be
an architecture-agnostic library of IOMMU pagetable code. It just
happens that the only formats implemented so far are the Arm ones that
already have more than one in-tree user each.
Robin.