Re: [PATCH V3 00/14] arm64/mm: Enable 128 bit page table entries

From: Jason Gunthorpe

Date: Tue Nov 24 2026 - 08:54:30 EST


On Tue, Nov 24, 2026 at 09:29:27AM +0530, Anshuman Khandual wrote:
> On Fri, Nov 20, 2026 at 03:05:25PM -0400, Jason Gunthorpe wrote:
> > On Tue, Nov 17, 2026 at 12:35:59PM +0530, Anshuman Khandual wrote:
> > > FEAT_D128 is a new arm architecture feature adding support for VMSAv9-128
> > > translation system. FEAT_D128 is an optional feature from ARMV9.3 onwards.
> > > arm64 platforms with FEAT_D128 enabled will now have two different memory
> > > translation systems i.e VMSAv8-64 and VMSAv9-128.
> >
> > Please don't forget to update arm_smmu_sva_supported()
>
> Sure, thanks for the pointer.
>
> Fow now will disable SVA with CONFIG_ARM_D128 enabled but later it can
> be enabled back with SMMU_IDR5.D128 feature. I will probably fold back
> the following change in the series.
>
> --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c
> +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c
> @@ -205,6 +205,9 @@ bool arm_smmu_sva_supported(struct arm_smmu_device *smmu)
> unsigned long asid_bits;
> u32 feat_mask = ARM_SMMU_FEAT_COHERENCY;
>
> + if (IS_ENABLED(CONFIG_ARM64_D128))
> + return false;

That seems wrong if the arch code is enabling this based on a CPU IDR.

I would expect distro kernels to enable this kconfig unconditionally,
so this will break SVA for everyone.

Jason