Skip to content

AMD broadcast TLB invalidation

Borislav Petkov linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v15 Latest11 patches 1 replyIn review

Patches in v15 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11x86/mm: Consolidate full flush threshold decisionarch/x86/mm/tlb.c+19 -220 replies
2/11x86/mm: Add INVLPGB feature and Kconfig entryarch/x86/Kconfig.cpu arch/x86/include/asm/cpufeatures.h arch/x86/include/asm/disabled-features.h +2 more+21 -11 reply
3/11x86/mm: Add INVLPGB support codearch/x86/include/asm/tlb.h+126 -00 replies
4/11x86/mm: Use INVLPGB for kernel TLB flushesarch/x86/mm/tlb.c+44 -40 replies
5/11x86/mm: Use broadcast TLB flushing in page reclaimarch/x86/mm/tlb.c+3 -10 replies
6/11x86/mm: Add global ASID allocation helper functionsarch/x86/include/asm/mmu.h arch/x86/include/asm/mmu_context.h arch/x86/include/asm/tlbflush.h +1 more+202 -30 replies
7/11x86/mm: Handle global ASID context switch and TLB flusharch/x86/include/asm/tlbflush.h arch/x86/mm/tlb.c+84 -70 replies
8/11x86/mm: Add global ASID process exit helpersarch/x86/include/asm/mmu_context.h arch/x86/include/asm/tlbflush.h+16 -10 replies
9/11x86/mm: Enable broadcast TLB invalidation for multi-threaded processesarch/x86/include/asm/tlbflush.h arch/x86/mm/tlb.c+109 -10 replies
10/11x86/mm: Do targeted broadcast flushing from tlbbatch codearch/x86/include/asm/tlb.h arch/x86/include/asm/tlbflush.h arch/x86/mm/tlb.c+108 -170 replies
11/11x86/mm: Enable AMD translation cache extensionsarch/x86/include/asm/msr-index.h arch/x86/kernel/cpu/amd.c tools/arch/x86/include/asm/msr-index.h+8 -00 replies

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by.

PatchBorislav Petkov (AMD)Dave HansenNadav Amit
1/11R-b A-b
2/11
3/11
4/11
5/11
6/11
7/11
8/11
9/11R-b
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v15 thread

Cover letter [PATCH v15 00/11] AMD broadcast TLB invalidation

From: "Borislav Petkov (AMD)" <[email protected]>

Hi all,

these are Rik's patches from here:

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

with a bunch of dhansen's and mine edits ontop.

Some stuff is still in-flight but I'm sending the current state because a bunch of things have changed and we'll need a good base to discuss the remaining changes pending.

Preliminary build and boot tests look good but that doesn't say a whole lot.

Thx.

Rik van Riel (11):
x86/mm: Consolidate full flush threshold decision
x86/mm: Add INVLPGB feature and Kconfig entry
x86/mm: Add INVLPGB support code
x86/mm: Use INVLPGB for kernel TLB flushes
x86/mm: Use broadcast TLB flushing in page reclaim
x86/mm: Add global ASID allocation helper functions x86/mm: Handle global ASID context switch and TLB flush x86/mm: Add global ASID process exit helpers
x86/mm: Enable broadcast TLB invalidation for multi-threaded processes x86/mm: Do targeted broadcast flushing from tlbbatch code x86/mm: Enable AMD translation cache extensions

 arch/x86/Kconfig.cpu                     |   4 +
 arch/x86/include/asm/cpufeatures.h       |   1 +
 arch/x86/include/asm/disabled-features.h |   8 +-
 arch/x86/include/asm/mmu.h               |  12 +
 arch/x86/include/asm/mmu_context.h       |  10 +-
 arch/x86/include/asm/msr-index.h         |   2 +
 arch/x86/include/asm/tlb.h               | 126 ++++++
 arch/x86/include/asm/tlbflush.h          |  96 ++++-
 arch/x86/kernel/cpu/amd.c                |  10 +
 arch/x86/mm/tlb.c                        | 506 +++++++++++++++++++++--
 tools/arch/x86/include/asm/msr-index.h   |   2 +
 11 files changed, 730 insertions(+), 47 deletions(-)
Signature · 1 line
2.43.0