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: Tue, 24 Nov 2026 09:54:24 -0400 [thread overview]
Message-ID: <20261124135424.GL9566@ziepe.ca> (raw)
In-Reply-To: <aqcypbxidjbmjhuiujg2krseuy7v4lofrlq3upl4s7yjiq6bh2@3s4jqisdrkgd>
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
prev parent reply other threads:[~2026-11-24 13:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-17 7:05 [PATCH V3 00/14] arm64/mm: Enable 128 bit page table entries 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 [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=20261124135424.GL9566@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