]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: mm: Implicitly invalidate user ASID based on TLBI operation
authorRyan Roberts <ryan.roberts@arm.com>
Mon, 2 Mar 2026 13:55:50 +0000 (13:55 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 13 Mar 2026 17:23:03 +0000 (17:23 +0000)
commitedc55b7abb2547aac5521202b029dc4dd2054771
treea841eec757ef34c996cdfa534a1ed3a929192152
parentd2bf3226952c64d1c2ce4995cce60b3fb8ae5f33
arm64: mm: Implicitly invalidate user ASID based on TLBI operation

When kpti is enabled, separate ASIDs are used for userspace and
kernelspace, requiring ASID-qualified TLB invalidation by virtual
address to invalidate both of them.

Push the logic for invalidating the two ASIDs down into the low-level
tlbi-op-specific functions and remove the burden from the caller to
handle the kpti-specific behaviour.

Co-developed-by: Will Deacon <will@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Ryan Roberts <ryan.roberts@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/tlbflush.h