Skip to content

arm64: tlb: add support for TLBI RANGE instructions

Zhenyu Ye linux-arch linux-arm-kernel linux-mm lkml 4 versions – Applied

Status from this message: Applied to arm64 (for-next/tlbi), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 3/33 patches 2 repliesApplied
  2. v3 RFC posting 2/30 of 2 patches 0 repliesSuperseded
  3. v3 RFC posting 1/32 patches 9 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v2 RFC1 patch18 repliesSuperseded

Changes in v3 from the cover letter

- add check on whether binutils supports ARMv8.4-a instructions.
- pass -march=armv8.4-a to KBUILD_CFLAGS.
- make __TLBI_RANGE_PAGES to be 'unsigned long' explicitly.

Patches in v3 posting 3/3 Applied

#Subject and filesSizeRepliesApplied
1/3arm64: tlb: Detect the ARMv8.4 TLBI RANGE featurearch/arm64/include/asm/cpucaps.h arch/arm64/include/asm/sysreg.h arch/arm64/kernel/cpufeature.c+15 -10 replies
2/3arm64: enable tlbi range instructionsarch/arm64/Kconfig arch/arm64/Makefile+21 -01 reply
3/3arm64: tlb: Use the TLBI RANGE feature in arm64arch/arm64/include/asm/tlbflush.h+127 -290 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] arm64: tlb: add support for TLBI RANGE instructions

NOTICE: this series are based on the arm64 for-next/tlbi branch:
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/tlbi

ARMv8.4-TLBI provides TLBI invalidation instruction that apply to a range of input addresses. This series add support for this feature.

--
ChangeList:
v3:
- add check on whether binutils supports ARMv8.4-a instructions.
- pass -march=armv8.4-a to KBUILD_CFLAGS.
- make __TLBI_RANGE_PAGES to be 'unsigned long' explicitly.

v2:
- remove the __tlbi_last_level() macro.
- add check for parameters in __TLBI_VADDR_RANGE macro.

RFC patches:
- Link: https://lore.kernel.org/linux-arm-kernel/[email protected]/

Zhenyu Ye (3):
arm64: tlb: Detect the ARMv8.4 TLBI RANGE feature
arm64: enable tlbi range instructions
arm64: tlb: Use the TLBI RANGE feature in arm64

 arch/arm64/Kconfig                |  14 +++
 arch/arm64/Makefile               |   7 ++
 arch/arm64/include/asm/cpucaps.h  |   3 +-
 arch/arm64/include/asm/sysreg.h   |   3 +
 arch/arm64/include/asm/tlbflush.h | 156 ++++++++++++++++++++++++------
 arch/arm64/kernel/cpufeature.c    |  10 ++
 6 files changed, 163 insertions(+), 30 deletions(-)
Signature · 1 line
2.19.1