[PATCH 00/21] rcu/context-tracking: Merge RCU eqs-dynticks counter to context tracking v3

Frederic Weisbecker
2022-05-19T14:58:42Z

* Rebase on latest rcu:dev

* Unconfuse Kconfig entries and introduce CONFIG_CONTEXT_TRACKING_IDLE
along with CONFIG_CONTEXT_TRACKING_USER. CONFIG_CONTEXT_TRACKING then
becomes the meeting point.

* Add a dependency on CONFIG_HAVE_CONTEXT_TRACKING_USER to
CONFIG_CONTEXT_TRACKING_USER so that Kconfig warns if one of its
selectors doesn't meet the requirement.

* Add Kconfig help comments

* Pull CONTEXT_TRACKING[_IDLE] out of CONFIG_GENERIC_CLOCKEVENTS
dependency (fix build issue)

* Tag rcu_irq_*_irqson() as noinstr

* Move rcu_irq_work_resched() declaration from rcutree.h to rcupdate.h
(fix build splat on rcutiny)

* Reorder eqs functions on context_tracking.c (cosmetic)

* Make CT_WARN_ON() a true stub when CONFIG_CONTEXT_TRACKING_USER=n

* Add Paul as context tracking maintainer

git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git
rcu/context-tracking-v3

HEAD: 6153dca9e37b244684bf472728f5c3688c5b0aca

Thanks,
Frederic
---

Frederic Weisbecker (21):
context_tracking: Remove unused context_tracking_in_user()
rcu: Tag rcu_irq_*_irqson() as noinstr
context_tracking: Add a note about noinstr VS unsafe context tracking functions
context_tracking: Rename __context_tracking_enter/exit() to __ct_user_enter/exit()
context_tracking: Rename context_tracking_user_enter/exit() to user_enter/exit_callable()
context_tracking: Rename context_tracking_enter/exit() to ct_user_enter/exit()
context_tracking: Rename context_tracking_cpu_set() to ct_cpu_track_user()
context_tracking: Split user tracking Kconfig
context_tracking: Take idle eqs entrypoints over RCU
context_tracking: Take IRQ eqs entrypoints over RCU
context_tracking: Take NMI eqs entrypoints over RCU
rcu/context-tracking: Remove rcu_irq_enter/exit()
rcu/context_tracking: Move dynticks counter to context tracking
rcu/context_tracking: Move dynticks_nesting to context tracking
rcu/context_tracking: Move dynticks_nmi_nesting to context tracking
rcu/context-tracking: Move deferred nocb resched to context tracking
rcu/context-tracking: Move RCU-dynticks internal functions to context_tracking
rcu/context-tracking: Remove unused and/or unecessary middle functions
context_tracking: Convert state to atomic_t
rcu/context_tracking: Merge dynticks counter and context tracking states
MAINTAINERS: Add Paul as context tracking maintainer

.../RCU/Design/Requirements/Requirements.rst | 10 +-
Documentation/RCU/stallwarn.rst | 6 +-
.../time/context-tracking/arch-support.txt | 6 +-
MAINTAINERS | 1 +
arch/Kconfig | 8 +-
arch/arm/Kconfig | 2 +-
arch/arm/kernel/entry-common.S | 4 +-
arch/arm/kernel/entry-header.S | 12 +-
arch/arm/mach-imx/cpuidle-imx6q.c | 5 +-
arch/arm64/Kconfig | 2 +-
arch/arm64/kernel/entry-common.c | 14 +-
arch/csky/Kconfig | 2 +-
arch/csky/kernel/entry.S | 8 +-
arch/mips/Kconfig | 2 +-
arch/powerpc/Kconfig | 2 +-
arch/powerpc/include/asm/context_tracking.h | 2 +-
arch/riscv/Kconfig | 2 +-
arch/riscv/kernel/entry.S | 12 +-
arch/sparc/Kconfig | 2 +-
arch/sparc/kernel/rtrap_64.S | 2 +-
arch/x86/Kconfig | 4 +-
arch/x86/mm/fault.c | 2 +-
drivers/acpi/processor_idle.c | 5 +-
drivers/cpuidle/cpuidle-psci.c | 8 +-
drivers/cpuidle/cpuidle-riscv-sbi.c | 8 +-
drivers/cpuidle/cpuidle.c | 9 +-
include/linux/context_tracking.h | 95 ++--
include/linux/context_tracking_irq.h | 21 +
include/linux/context_tracking_state.h | 109 +++-
include/linux/entry-common.h | 10 +-
include/linux/hardirq.h | 12 +-
include/linux/rcupdate.h | 17 +-
include/linux/rcutiny.h | 6 -
include/linux/rcutree.h | 9 +-
include/linux/tracepoint.h | 4 +-
init/Kconfig | 4 +-
kernel/context_tracking.c | 600 +++++++++++++++++++--
kernel/cpu_pm.c | 8 +-
kernel/entry/common.c | 16 +-
kernel/extable.c | 4 +-
kernel/locking/lockdep.c | 2 +-
kernel/rcu/Kconfig | 2 +
kernel/rcu/rcu.h | 4 -
kernel/rcu/tree.c | 476 +---------------
kernel/rcu/tree.h | 8 -
kernel/rcu/tree_exp.h | 2 +-
kernel/rcu/tree_plugin.h | 38 +-
kernel/rcu/tree_stall.h | 8 +-
kernel/rcu/update.c | 2 +-
kernel/sched/core.c | 2 +-
kernel/sched/idle.c | 10 +-
kernel/sched/sched.h | 1 +
kernel/softirq.c | 4 +-
kernel/time/Kconfig | 37 +-
kernel/time/tick-sched.c | 2 +-
kernel/trace/trace.c | 8 +-
56 files changed, 905 insertions(+), 756 deletions(-)