Skip to content

TLB and mm-related optimisations

Will Deacon linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ARM: tlb: don't perform inner-shareable invalidation for local TLB opsarch/arm/include/asm/tlbflush.h arch/arm/kernel/smp_tlb.c arch/arm/mm/context.c+68 -121 reply
1/4ARM: tlb: don't perform inner-shareable invalidation for local TLB ops+0 -01 reply
1/4ARM: tlb: don't perform inner-shareable invalidation for local TLB ops+0 -01 reply
1/4ARM: tlb: don't perform inner-shareable invalidation for local TLB ops+0 -00 replies
2/4ARM: tlb: don't perform inner-shareable invalidation for local BP opsarch/arm/include/asm/tlbflush.h arch/arm/kernel/smp_tlb.c+14 -41 reply
3/4ARM: mm: kill unused TLB_CAN_READ_FROM_L1_CACHE and use ALT_SMP insteadarch/arm/include/asm/tlbflush.h arch/arm/mm/proc-v6.S arch/arm/mm/proc-v7-2level.S +2 more+7 -72 replies
3/4ARM: mm: kill unused TLB_CAN_READ_FROM_L1_CACHE and use ALT_SMP instead+0 -00 replies
3/4ARM: mm: kill unused TLB_CAN_READ_FROM_L1_CACHE and use ALT_SMP instead+0 -01 reply
3/4ARM: mm: kill unused TLB_CAN_READ_FROM_L1_CACHE and use ALT_SMP instead+0 -01 reply
3/4ARM: mm: kill unused TLB_CAN_READ_FROM_L1_CACHE and use ALT_SMP instead+0 -01 reply
3/4ARM: mm: kill unused TLB_CAN_READ_FROM_L1_CACHE and use ALT_SMP instead+0 -01 reply
3/4ARM: mm: kill unused TLB_CAN_READ_FROM_L1_CACHE and use ALT_SMP instead+0 -01 reply
4/4ARM: atomics: don't use exclusives for atomic64 read/set with LPAEarch/arm/include/asm/atomic.h+24 -01 reply

Reviews trailers per patch

9 of 13 patches have a Reviewed-by or Acked-by.

PatchCatalin Marinas
1/4
1/4
1/4
1/4
2/4R-b
3/4R-b
3/4R-b
3/4R-b
3/4R-b
3/4R-b
3/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] TLB and mm-related optimisations

Hello again,

This is another slightly random set of patches which I cooked up when trying to optimise various bits and pieces in arch/arm/mm after writing my changes to the ASID allocator.

The first two patches modify the local_* variants of our TLB and BP invalidation functions to use the non-shareable versions, avoiding the need to broadcast them in hardware. This allows us to update the ASID allocator to use only local operations (which it needs anyway for 11MPCore).

The third patch removes some redundant cache-flushing when writing page table entries for ARMv7 SMP targets (which require table walking at L1) and the final patch allows us to use non-exclusive instructions for atomic64 read/set (like we do for the 32-bit variants) when we have LPAE, since this requires atomicity of aligned double-word accesses in order to manipulate ptes atomically.

All feedback welcome,

Will

Will Deacon (4):
ARM: tlb: don't perform inner-shareable invalidation for local TLB
ops
ARM: tlb: don't perform inner-shareable invalidation for local BP ops
ARM: mm: kill unused TLB_CAN_READ_FROM_L1_CACHE and use ALT_SMP
instead
ARM: atomics: don't use exclusives for atomic64 read/set with LPAE

 arch/arm/include/asm/atomic.h   | 24 ++++++++++++
 arch/arm/include/asm/tlbflush.h | 83 +++++++++++++++++++++++++++++++++++++----
 arch/arm/kernel/smp_tlb.c       | 10 ++---
 arch/arm/mm/context.c           |  5 +--
 arch/arm/mm/proc-v6.S           |  2 -
 arch/arm/mm/proc-v7-2level.S    |  3 +-
 arch/arm/mm/proc-v7-3level.S    |  3 +-
 arch/arm/mm/proc-v7.S           |  4 +-
 8 files changed, 112 insertions(+), 22 deletions(-)
Signature · 1 line
1.8.0