RFC membarrier updates for 4.15
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest6 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | membarrier: selftest: Test private expedited cmdtools/ | +94 | 0 replies | |
| 2/6 | membarrier: powerpc: Skip memory barrier in switch_mm() (v6)MAINTAINERS arch/ arch/ +7 more | +93 | 0 replies | |
| 3/6 | membarrier: Document scheduler barrier requirements (v5)arch/ include/ kernel/ | +36 | 0 replies | |
| 4/6 | membarrier: Provide core serializing commandinclude/ include/ init/ +1 more | +61 | 0 replies | |
| 5/6 | membarrier: x86: Provide core serializing commandMAINTAINERS arch/ arch/ +9 more | +119 | 4 replies | |
| 6/6 | membarrier: selftest: Test private expedited sync core cmdtools/ | +76 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Shuah Khan | Greg Kroah-Hartman |
|---|---|---|
| 1/6 | A-b | A-b |
| 2/6 | ||
| 3/6 | ||
| 4/6 | ||
| 5/6 | ||
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC PATCH for 4.15 0/6] membarrier updates for 4.15
Here are the membarrier changes I plan on sending for the 4.15 merge window.
This series includes selftests improvements for sys_membarrier, improvement of powerpc handling of the memory barrier required by sys_membarrier in switch_mm(), and adds a new core serializing membarrier, currently only implemented on x86. Architectures wishing to provide the core serializing membarrier need to select ARCH_HAS_MEMBARRIER_SYNC_CORE and document how they provide the core serialization required by that command in their architecture code.
Andy, I know you told me you had changes coming up in x86 entry.S for 4.15, but I figure that managing the merge conflict between your changes in 4.15 and those added comments should be straightforward. Anyway, I kind of suspect that at any given point in time you will always have changes of some sort to propose to entry.S, so now seems to be a time as appropriate as ever to push the core serializing membarrier comments.
Feedback is welcome!
Thanks,
Mathieu
Mathieu Desnoyers (6):
membarrier: selftest: Test private expedited cmd
membarrier: powerpc: Skip memory barrier in switch_mm() (v6)
membarrier: Document scheduler barrier requirements (v5)
membarrier: Provide core serializing command
membarrier: x86: Provide core serializing command
membarrier: selftest: Test private expedited sync core cmd
MAINTAINERS | 2 + arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/membarrier.h | 32 ++++ arch/powerpc/kernel/Makefile | 2 + arch/powerpc/kernel/membarrier.c | 37 ++++ arch/powerpc/mm/mmu_context.c | 7 + arch/x86/Kconfig | 2 + arch/x86/entry/entry_32.S | 5 + arch/x86/entry/entry_64.S | 8 + arch/x86/include/asm/membarrier.h | 36 ++++ arch/x86/kernel/Makefile | 1 + arch/x86/kernel/membarrier.c | 39 +++++ arch/x86/mm/tlb.c | 6 + include/linux/sched/mm.h | 36 +++- include/uapi/linux/membarrier.h | 14 +- init/Kconfig | 6 + kernel/sched/core.c | 53 +++--- kernel/sched/membarrier.c | 55 ++++-- .../testing/selftests/membarrier/membarrier_test.c | 186 +++++++++++++++++++-- 19 files changed, 470 insertions(+), 58 deletions(-) create mode 100644 arch/powerpc/include/asm/membarrier.h create mode 100644 arch/powerpc/kernel/membarrier.c create mode 100644 arch/x86/include/asm/membarrier.h create mode 100644 arch/x86/kernel/membarrier.c
Signature · 1 line
2.11.0