iommu/io-pgtable-arm: Prepare for TTBR1 usage
authorRobin Murphy <robin.murphy@arm.com>
Fri, 25 Oct 2019 18:08:39 +0000 (19:08 +0100)
committerWill Deacon <will@kernel.org>
Fri, 10 Jan 2020 15:52:25 +0000 (15:52 +0000)
commitdb6903010aa5b7691d8234a179f4cf71a119445a
tree2e764bb4fe0f0281426595bbd5ed30e7e52e8226
parentac4b80e5b9d0ecf906300d79e4dc4df5526579a8
iommu/io-pgtable-arm: Prepare for TTBR1 usage

Now that we can correctly extract top-level indices without relying on
the remaining upper bits being zero, the only remaining impediments to
using a given table for TTBR1 are the address validation on map/unmap
and the awkward TCR translation granule format. Add a quirk so that we
can do the right thing at those points.

Tested-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/io-pgtable-arm.c
include/linux/io-pgtable.h