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

From: Jason Gunthorpe

Date: Wed Nov 25 2026 - 09:40:32 EST


On Wed, Nov 25, 2026 at 10:05:52AM +0530, Anshuman Khandual wrote:
> On Tue, Nov 24, 2026 at 09:54:24AM -0400, Jason Gunthorpe wrote:
> > 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.
>
> D128 translation gets enabled when CONFIG_ARM64_D128 is enabled and also
> HW has FEAT_D128 as detected via ID_AA64MMFR3_EL1.D128.
>
> Besides if CONFIG_ARM64_D128 is enabled on any HW which does not support
> FEAT_D128 the kernel would not even boot as there is no dynamic fallback
> to D64 translation in such cases.

Uh, gross, so it is like 64k pages :(

I guess that makes sense from a mm perspective.

IDK how this will ever get used in the real world like this though :(

> > I would expect distro kernels to enable this kconfig unconditionally,
> > so this will break SVA for everyone.
>
> ARM64_D128 actually depends on EXPERT and hence it would not be enabled
> unconditionally in distros ?

Please add a comment to this effect, this not how the other things
work.

Jason