Skip to content

arm64/mm: Drop TTBR_CNP_BIT and TTBR_ASID_MASK

Anshuman Khandual kvmarm linux-arm-kernel lkml 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Used FIELD_PREP() in update_saved_ttbr0() per Marc
- Dropped KVM TTBR_ASID_MASK changes as they are already merged upstream via commit 54e367cb94d6 ("KVM: arm64: Deduplicate ASID retrieval code")

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2arm64/mm: Directly use TTBRx_EL1_ASID_MASKarch/arm64/include/asm/asm-uaccess.h arch/arm64/include/asm/mmu.h arch/arm64/include/asm/mmu_context.h +3 more+10 -100 replies
2/2arm64/mm: Directly use TTBRx_EL1_CnParch/arm64/include/asm/pgtable-hwdef.h arch/arm64/kernel/mte.c arch/arm64/kvm/hyp/nvhe/hyp-init.S +2 more+6 -80 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH V2 0/2] arm64/mm: Drop TTBR_CNP_BIT and TTBR_ASID_MASK

Directly use existing tools sysreg format field macros TTBRx_EL1_CNP_BIT/ TTBRx_EL1_ASID_MASK, while also dropping off now redundant custom macros TTBR_CNP_BIT and TTBR_ASID_MASK. With this change in place, there are no more TTBR_EL1 register based custom macros left in the tree.

This was discussed and suggested earlier.

https://lore.kernel.org/linux-arm-kernel/aRb8ezhQd0c0jp9G@J2N7QTR9R3/

This series applies on v7.0-rc2.

Changes in V2:

- Used FIELD_PREP() in update_saved_ttbr0() per Marc
- Dropped KVM TTBR_ASID_MASK changes as they are already merged upstream via commit 54e367cb94d6 ("KVM: arm64: Deduplicate ASID retrieval code")

Changes in V1:

https://lore.kernel.org/all/[email protected]/

Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc Ryan Roberts <[email protected]>
Cc Mark Rutland <[email protected]>
Cc Marc Zyngier <[email protected]>
Cc Oliver Upton <[email protected]>

Anshuman Khandual (2):
arm64/mm: Directly use TTBRx_EL1_ASID_MASK
arm64/mm: Directly use TTBRx_EL1_CnP

 arch/arm64/include/asm/asm-uaccess.h   | 2 +-
 arch/arm64/include/asm/mmu.h           | 1 -
 arch/arm64/include/asm/mmu_context.h   | 3 ++-
 arch/arm64/include/asm/pgtable-hwdef.h | 2 --
 arch/arm64/include/asm/uaccess.h       | 6 +++---
 arch/arm64/kernel/entry.S              | 2 +-
 arch/arm64/kernel/mte.c                | 4 ++--
 arch/arm64/kvm/hyp/nvhe/hyp-init.S     | 4 ++--
 arch/arm64/mm/context.c                | 8 ++++----
 arch/arm64/mm/mmu.c                    | 2 +-
 10 files changed, 16 insertions(+), 18 deletions(-)
Signature · 1 line
2.30.2