iommu/arm-smmu: Change virtual address size limit to 39 bits

Restrict the virtual address size to 39-bits to allow
a maximum of 3 pagetable levels.

Change-Id: I264f23a2e16cc7599bdad8a161854bcf6e24dd4a
Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
This commit is contained in:
Sushmita Susheelendra 2017-05-12 13:32:51 -06:00
parent 855e0a4c1c
commit 9f47a21e56

View file

@ -3916,7 +3916,7 @@ static int arm_smmu_device_cfg_probe(struct arm_smmu_device *smmu)
#ifndef CONFIG_64BIT
smmu->va_size = min(32UL, smmu->va_size);
#endif
smmu->va_size = min(36UL, smmu->va_size);
smmu->va_size = min(39UL, smmu->va_size);
size = 0;
if (id & ID2_PTFS_4K)
size |= SZ_4K | SZ_2M | SZ_1G;