From 9f47a21e5606a5c23601ca168cfa349c803c2a57 Mon Sep 17 00:00:00 2001 From: Sushmita Susheelendra Date: Fri, 12 May 2017 13:32:51 -0600 Subject: [PATCH] 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 --- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 5f2a8bb3e3a3..1cc552a2d525 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -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;