membarrier updates for 4.16
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 of 11 patches 0 repliesNew
5 of 11 patches are in this archive. The cover letter announces 11.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | Fix: membarrier: add missing preempt off around smp_call_function_manykernel/ | +2 | 0 replies | |
| 6/11 | membarrier: selftest: Test shared expedited cmdtools/ | +50 | 0 replies | |
| 7/11 | membarrier: Provide core serializing commandinclude/ include/ init/ +1 more | +78 | 0 replies | |
| 10/11 | membarrier: arm64: Provide core serializing commandarch/ arch/ | +5 | 0 replies | |
| 11/11 | membarrier: selftest: Test private expedited sync core cmdtools/ | +73 | 0 replies |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Shuah Khan | Greg Kroah-Hartman |
|---|---|---|
| Series | A-b | A-b |
| 1/11 | ||
| 6/11 | A-b | |
| 7/11 | ||
| 10/11 | ||
| 11/11 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH for 4.16 00/11] membarrier updates for 4.16
Hi Ingo, Hi Peter,
Here are the membarrier patch series I would like to upstream for 4.16. It would be appreciated of those can go through the tip tree.
Highlights:
"Fix: membarrier: add missing preempt off around smp_call_function_many" is in the series mainly because the following patches apply on top of it. Ingo pulled it into tip/sched/urgent already.
"powerpc: membarrier: Skip memory barrier in switch_mm()" takes care of a TODO that was left in the private expedited implementation when merged in 4.14: an extra memory barrier was added on context switch on powerpc. Ensure that the barrier is only performed when scheduling between different processes, only for threads belonging to processes that have registered their intent to use the private expedited command.
"membarrier: provide SHARED_EXPEDITED command" adds new commands to membarrier for registration and use of membarrier across shared memory mappings. The non-expedited command has proven to be really too slow (taking 10ms and more to complete) for real-world use. The expedited version completes in a matter of microseconds.
"membarrier: Provide core serializing command" provides core serialization for JIT reclaim. We received positive feedback from Android developers that the proposed ABI fits their use-case. Only x86 32/64 and arm 64 implement this command so far. This is opt-in per architecture.
The other patches add selftests and documentation.
Let me know if anything raises uneasiness, or seems unfit for 4.16.
Thanks!
Mathieu
Mathieu Desnoyers (11):
Fix: membarrier: add missing preempt off around smp_call_function_many
membarrier: selftest: Test private expedited cmd
powerpc: membarrier: Skip memory barrier in switch_mm()
membarrier: Document scheduler barrier requirements
membarrier: provide SHARED_EXPEDITED command
membarrier: selftest: Test shared expedited cmd
membarrier: Provide core serializing command
x86: Introduce sync_core_before_usermode
membarrier: x86: Provide core serializing command
membarrier: arm64: Provide core serializing command
membarrier: selftest: Test private expedited sync core cmd
MAINTAINERS | 1 + arch/arm64/Kconfig | 1 + arch/arm64/kernel/entry.S | 4 + arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/membarrier.h | 27 +++ arch/powerpc/mm/mmu_context.c | 7 + arch/x86/Kconfig | 2 + arch/x86/entry/entry_32.S | 5 + arch/x86/entry/entry_64.S | 4 + arch/x86/include/asm/processor.h | 10 + arch/x86/mm/tlb.c | 6 + include/linux/processor.h | 6 + include/linux/sched/mm.h | 40 +++- include/uapi/linux/membarrier.h | 66 +++++- init/Kconfig | 9 + kernel/sched/core.c | 53 +++-- kernel/sched/membarrier.c | 173 +++++++++++++-- .../testing/selftests/membarrier/membarrier_test.c | 235 +++++++++++++++++++-- 18 files changed, 587 insertions(+), 63 deletions(-) create mode 100644 arch/powerpc/include/asm/membarrier.h
Signature · 1 line
2.11.0