mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@ziepe.ca>
To: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: linux-arm-kernel@lists.infradead.org, catalin.marinas@arm.com,
	will@kernel.org, Ryan Roberts <ryan.roberts@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Lorenzo Stoakes <ljs@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	David Hildenbrand <david@kernel.org>,
	Mike Rapoport <rppt@kernel.org>,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [PATCH V3 00/14] arm64/mm: Enable 128 bit page table entries
Date: Wed, 25 Nov 2026 10:40:24 -0400	[thread overview]
Message-ID: <20261125144024.GH246011@ziepe.ca> (raw)
In-Reply-To: <a54bdqfzj4eyoaaiekxxeqi27rc6pu6z2uufv3lblbyujclz36@egotqjcxv653>

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

      reply	other threads:[~2026-11-25 14:40 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17  7:05 Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 01/14] mm: Add read-write accessors for vm_page_prot Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 02/14] arm64/mm: Route all pgtable reads via ptval_get() Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 03/14] arm64/mm: Route all pgtable writes via ptval_set() Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 04/14] arm64/mm: Route all pgtable atomics to central helpers Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 05/14] arm64/mm: Override read-write accessors for vm_page_prot Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 06/14] arm64/mm: Enable fixmap with 5 level page table Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 07/14] arm64/mm: Enable pgtable geometry for FEAT_D128 Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 08/14] arm64/mm: Enable pgtable descriptor " Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 09/14] arm64/mm: Enable 128 bit translation Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 10/14] arm64/mm: Add an abstraction level for tlbi_op Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 11/14] arm64/mm: Enable TLBIP instruction based TLB flush Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 12/14] arm64/mm: Relax KASAN shadow alignment for FEAT_D128 Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 13/14] arm64/mm: Make ARM64_D128 selectable Anshuman Khandual
2026-11-17  7:06 ` [PATCH V3 14/14] arm64/configs: Add d128.config Anshuman Khandual
2026-11-20 19:05 ` [PATCH V3 00/14] arm64/mm: Enable 128 bit page table entries Jason Gunthorpe
2026-11-24  3:59   ` Anshuman Khandual
2026-11-24 13:54     ` Jason Gunthorpe
2026-11-25  4:35       ` Anshuman Khandual
2026-11-25 14:40         ` Jason Gunthorpe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261125144024.GH246011@ziepe.ca \
    --to=jgg@ziepe.ca \
    --cc=akpm@linux-foundation.org \
    --cc=anshuman.khandual@arm.com \
    --cc=catalin.marinas@arm.com \
    --cc=david@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=rppt@kernel.org \
    --cc=ryan.roberts@arm.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®