Thread (18 messages) 18 messages, 5 authors, 2025-01-14

Re: [PATCH v2 2/4] mm: Support tlbbatch flush for a range of PTEs

From: Will Deacon <will@kernel.org>
Date: 2025-01-13 16:48:19
Also in: linux-mm, linux-riscv, lkml

On Mon, Jan 13, 2025 at 04:38:59PM +1300, Barry Song wrote:
From: Barry Song <redacted>

This is a preparatory patch to support batch PTE unmapping in
`try_to_unmap_one`. It first introduces range handling for
`tlbbatch` flush. Currently, the range is always set to the size of
PAGE_SIZE.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Thomas Gleixner <redacted>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Anshuman Khandual <redacted>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Shaoqin Huang <redacted>
Cc: Gavin Shan <redacted>
Cc: Kefeng Wang <redacted>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: David Hildenbrand <redacted>
Cc: Lance Yang <redacted>
Cc: "Kirill A. Shutemov" <redacted>
Cc: Yosry Ahmed <redacted>
Cc: Paul Walmsley <redacted>
Cc: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Albert Ou <aou@eecs.berkeley.edu>
Cc: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Barry Song <redacted>
---
 arch/arm64/include/asm/tlbflush.h | 26 ++++++++++++++------------
 arch/arm64/mm/contpte.c           |  2 +-
 arch/riscv/include/asm/tlbflush.h |  3 ++-
 arch/riscv/mm/tlbflush.c          |  3 ++-
 arch/x86/include/asm/tlbflush.h   |  3 ++-
 mm/rmap.c                         | 12 +++++++-----
 6 files changed, 28 insertions(+), 21 deletions(-)
The arm64 bits look correct to me:

Acked-by: Will Deacon <will@kernel.org>

Will
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help