iommu/arm-smmu: allow 42-bit stage-1 output size with 64K pages
authorWill Deacon <will.deacon@arm.com>
Thu, 13 Mar 2014 11:46:57 +0000 (11:46 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 2 May 2014 15:49:31 +0000 (16:49 +0100)
commitc44308413b92a555d1501a6c0db9489e288bb81b
treee5a41ace20b4c77f60519dfd515674ff3b3bd68c
parentd1db0eea852497762cab43b905b879dfcd3b8987
iommu/arm-smmu: allow 42-bit stage-1 output size with 64K pages

The output size of stage-1 is currently limited by the input size of
stage-2, which is further limited by VA_BITS since we make use of the
standard pgd_alloc functions for creating page tables.

This patch ensures that we use VA_BITS instead of a hardcoded '39'
for the stage-1 output size limit.

Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c