Skip to content

MIPS: MemoryMapID (MMID) & GINVT Support

Paul Burton linux-mips 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14MIPS: mm: Define activate_mm() using switch_mm()arch/mips/include/asm/mmu_context.h+1 -270 replies
2/14MIPS: mm: Remove redundant drop_mmu_context() cpu argumentarch/mips/include/asm/mmu_context.h arch/mips/mm/c-r4k.c arch/mips/mm/tlb-r3k.c +2 more+10 -80 replies
3/14MIPS: mm: Remove redundant get_new_mmu_context() cpu argumentarch/mips/include/asm/mmu_context.h arch/mips/kvm/emulate.c arch/mips/kvm/trap_emul.c +1 more+15 -110 replies
4/14MIPS: mm: Avoid HTW stop/start when dropping an inactive mmarch/mips/include/asm/mmu_context.h+3 -20 replies
5/14MIPS: mm: Consolidate drop_mmu_context() has-ASID checksarch/mips/include/asm/mmu_context.h arch/mips/mm/c-r4k.c arch/mips/mm/tlb-r3k.c +2 more+10 -220 replies
6/14MIPS: mm: Move drop_mmu_context() comment into appropriate blockarch/mips/include/asm/mmu_context.h+5 -50 replies
7/14MIPS: mm: Remove redundant preempt_disable in local_flush_tlb_mm()arch/mips/mm/tlb-r4k.c+0 -20 replies
8/14MIPS: mm: Remove local_flush_tlb_mm()arch/mips/include/asm/tlbflush.h arch/mips/kernel/smp.c arch/mips/mm/tlb-r3k.c +2 more+5 -280 replies
9/14MIPS: mm: Split obj-y to a file per linearch/mips/mm/Makefile+12 -30 replies
10/14MIPS: mm: Un-inline get_new_mmu_contextarch/mips/include/asm/mmu_context.h arch/mips/mm/Makefile arch/mips/mm/context.c+21 -190 replies
11/14MIPS: mm: Unify ASID version checksarch/mips/include/asm/mmu_context.h arch/mips/kvm/trap_emul.c arch/mips/kvm/vz.c +1 more+28 -260 replies
12/14MIPS: mm: Add set_cpu_context() for ASID assignmentsarch/mips/include/asm/mmu_context.h arch/mips/kernel/smp.c arch/mips/kvm/emulate.c +2 more+24 -130 replies
13/14MIPS: Add GINVT instruction helpersarch/mips/Makefile arch/mips/include/asm/barrier.h arch/mips/include/asm/ginvt.h +1 more+84 -00 replies
14/14MIPS: MemoryMapID (MMID) Supportarch/mips/include/asm/cpu-features.h arch/mips/include/asm/cpu.h arch/mips/include/asm/mipsregs.h +12 more+509 -310 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/14] MIPS: MemoryMapID (MMID) & GINVT Support

This series introduces support for MemoryMapIDs (MMIDs) & GINVT instructions. These give us a larger, global namespace for address space IDs & allow for global invalidation of TLB entries without IPIs.

This has been tested on various configurations of the MIPS I6500, which is the first CPU to support these features.

Applies cleanly atop v5.0-rc4.

Paul Burton (14):
MIPS: mm: Define activate_mm() using switch_mm()
MIPS: mm: Remove redundant drop_mmu_context() cpu argument
MIPS: mm: Remove redundant get_new_mmu_context() cpu argument
MIPS: mm: Avoid HTW stop/start when dropping an inactive mm
MIPS: mm: Consolidate drop_mmu_context() has-ASID checks
MIPS: mm: Move drop_mmu_context() comment into appropriate block
MIPS: mm: Remove redundant preempt_disable in local_flush_tlb_mm()
MIPS: mm: Remove local_flush_tlb_mm()
MIPS: mm: Split obj-y to a file per line
MIPS: mm: Un-inline get_new_mmu_context
MIPS: mm: Unify ASID version checks
MIPS: mm: Add set_cpu_context() for ASID assignments
MIPS: Add GINVT instruction helpers
MIPS: MemoryMapID (MMID) Support

 arch/mips/Makefile                   |   2 +
 arch/mips/include/asm/barrier.h      |  19 ++
 arch/mips/include/asm/cpu-features.h |  13 ++
 arch/mips/include/asm/cpu.h          |   1 +
 arch/mips/include/asm/ginvt.h        |  56 ++++++
 arch/mips/include/asm/mipsregs.h     |  11 +
 arch/mips/include/asm/mmu.h          |   6 +-
 arch/mips/include/asm/mmu_context.h  | 139 +++++++------
 arch/mips/include/asm/tlbflush.h     |   5 +-
 arch/mips/kernel/cpu-probe.c         |  55 ++++-
 arch/mips/kernel/smp.c               |  67 ++++++-
 arch/mips/kernel/traps.c             |   4 +-
 arch/mips/kernel/unaligned.c         |   1 +
 arch/mips/kvm/emulate.c              |   8 +-
 arch/mips/kvm/mips.c                 |   5 +
 arch/mips/kvm/trap_emul.c            |  30 +--
 arch/mips/kvm/vz.c                   |   8 +-
 arch/mips/lib/dump_tlb.c             |  22 +-
 arch/mips/mm/Makefile                |  16 +-
 arch/mips/mm/c-r4k.c                 |   8 +-
 arch/mips/mm/context.c               | 288 +++++++++++++++++++++++++++
 arch/mips/mm/init.c                  |   7 +
 arch/mips/mm/tlb-r3k.c               |  14 +-
 arch/mips/mm/tlb-r4k.c               |  71 ++++---
 arch/mips/mm/tlb-r8k.c               |  10 +-
 25 files changed, 698 insertions(+), 168 deletions(-)
 create mode 100644 arch/mips/include/asm/ginvt.h
 create mode 100644 arch/mips/mm/context.c
Signature · 1 line
2.20.1