[PATCH v6 3/3] iommu/arm-smmu-v3: Enable contiguous hints for LPAE page tables
From: Vijayanand Jitta
Date: Tue Dec 01 2026 - 04:38:30 EST
Enable the ARM LPAE contiguous hint for SMMUv3 stage-1 and stage-2
page tables. The LPAE allocator derives the effective CONT mapping sizes
and publishes them in the domain page-size bitmap.
Dirty-tracking stage-1 domains also request the feature, but the LPAE
allocator gives ARM_HD precedence and disables contiguous hints there.
Signed-off-by: Vijayanand Jitta <vijayanand.jitta@xxxxxxxxxxxxxxxx>
---
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
index 5732f3ba0122d..2126e91244e8b 100644
--- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
+++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
@@ -2928,6 +2928,8 @@ static int arm_smmu_domain_finalise(struct arm_smmu_domain *smmu_domain,
return -EINVAL;
}
+ pgtbl_cfg.quirks |= IO_PGTABLE_QUIRK_ARM_CONT_HINT;
+
pgtbl_ops = alloc_io_pgtable_ops(fmt, &pgtbl_cfg, smmu_domain);
if (!pgtbl_ops)
return -ENOMEM;
--
2.34.1