From: Kunwu Chan <kunwu.chan@gmail.com>
To: paulmck@kernel.org, rcu@vger.kernel.org
Cc: dwmw2@infradead.org, jiangshanlai@gmail.com,
josh@joshtriplett.org, work@onurozkan.dev, rostedt@goodmis.org,
mathieu.desnoyers@efficios.com, dave@stgolabs.net,
jfern@kernel.org, frederic@kernel.org,
neeraj.upadhyay@kernel.org, boqun@kernel.org, urezki@gmail.com,
qiang.zhang@linux.dev, puranjay@kernel.org, shuah@kernel.org,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
Kunwu Chan <kunwu.chan@gmail.com>
Subject: [PATCH 17/17] rcutorture: Document directed SRCU NMI tests
Date: Wed, 2 Dec 2026 00:18:15 +0800 [thread overview]
Message-ID: <20261201161815.1637481-18-kunwu.chan@gmail.com> (raw)
In-Reply-To: <20261201161815.1637481-1-kunwu.chan@gmail.com>
Describe the idle and loaded workloads and reader-flavor matrix.
Explain how to read ver and wgps in a burst. Note that irqsave
readers require task context and are not exercised from NMI.
Signed-off-by: Kunwu Chan <kunwu.chan@gmail.com>
---
Documentation/RCU/torture.rst | 49 +++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/Documentation/RCU/torture.rst b/Documentation/RCU/torture.rst
index d6fcc900ccab..791774698440 100644
--- a/Documentation/RCU/torture.rst
+++ b/Documentation/RCU/torture.rst
@@ -349,6 +349,55 @@ console log for close-call analysis.
Observe fastpath hits separately. To check autonomous callback
progress, observe completion before the cleanup barrier.
+For a synchronous expedited update, ``rcutorture.gp_exp_burst=N`` is
+the per-iteration limit of waits when the writer selects the
+synchronous expedited operation. ``ver`` counts completed update
+iterations and ``wgps`` counts completed synchronous waits. Choose a
+statistics interval that accommodates stutter and slow readers.
+
+An idle-biased NMI reader run can add the following boot arguments to the
+ordinary expedited example::
+
+ rcutorture.gp_exp_burst=64 rcutorture.nreaders=0
+ rcutorture.nfakewriters=0 rcutorture.n_up_down=0
+ rcutorture.read_exit_burst=0 rcutorture.fwd_progress=0
+ rcutorture.irqreader=0 rcutorture.stutter=0 rcutorture.n_barrier_cbs=0
+
+Keep a loaded run with task readers and callbacks enabled. Test reader
+flavors separately. The atomic cases exercise a separate updater.
+
+.. list-table:: Directed SRCU NMI coverage
+ :header-rows: 1
+
+ * - Case
+ - Configuration and workload
+ - NMI checker mode
+ * - Ordinary expedited
+ - Flavor 0x2; SMALL and BIG; NEED_SRCU_NMI_SAFE disabled and enabled
+ - both
+ * - FAST fallback
+ - Flavor 0x4; PROVE_RCU disabled; synchronous expedited updates
+ - both
+ * - FAST_UPDOWN fallback
+ - Flavor 0x8; PROVE_RCU disabled; NMI readers unsupported
+ - calls
+ * - Atomic regression
+ - Flavor 0x10; atomic_irqsave=0 and 1; both counter implementations
+ - readers
+ * - Tiny atomic regression
+ - SRCU-T; flavor 0x10; atomic_irqsave=1; PREEMPTION enabled
+ - readers
+
+Keep task readers enabled to exercise the irqsave variant. NMI
+readers always use the plain atomic API. A ``readers`` PASS with
+no task readers validates only the NMI atomic reader, not the
+irqsave variant.
+
+On x86, toggle ``CONFIG_FORCE_NEED_SRCU_NMI_SAFE`` to exercise
+``this_cpu_inc()`` and atomic increments. Verify ``CONFIG_NEED_SRCU_NMI_SAFE``
+in the built configuration. FAST readers have a different ordering
+contract and fall back to the worker.
+
For the PMU-off control, rerun kvm.sh with ``-cpu host,pmu=off`` and a
fresh ``--datestamp``. If torture reports SUCCESS, expect a zero-count
summary and SKIP from the coverage checker.
--
2.43.0
prev parent reply other threads:[~2026-12-01 16:20 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 16:17 [PATCH 00/17] srcu: Try idle expedited GPs in the caller Kunwu Chan
2026-12-01 16:17 ` [PATCH 01/17] srcu: Move callback mutex acquisition to the GP end wrapper Kunwu Chan
2026-12-01 16:18 ` [PATCH 02/17] srcu: Let GP completion take a size-state snapshot Kunwu Chan
2026-12-01 16:18 ` [PATCH 03/17] srcu: Try idle expedited GPs in the caller Kunwu Chan
2026-12-01 16:18 ` [PATCH 04/17] srcu: Check only the boot CPU callback queue in SMALL domains Kunwu Chan
2026-12-01 16:18 ` [PATCH 05/17] rcutorture: Add selftests for console writer progress Kunwu Chan
2026-12-01 16:18 ` [PATCH 06/17] rcutorture: Compare console version counters exactly Kunwu Chan
2026-12-01 16:18 ` [PATCH 07/17] rcutorture: Recognize completed writer waits in console logs Kunwu Chan
2026-12-01 16:18 ` [PATCH 08/17] rcutorture: Emit the version with the statistics prefix Kunwu Chan
2026-12-01 16:18 ` [PATCH 09/17] rcutorture: Report completed synchronous writer waits Kunwu Chan
2026-12-01 16:18 ` [PATCH 10/17] rcutorture: Use writer wait counts in kernel stall diagnostics Kunwu Chan
2026-12-01 16:18 ` [PATCH 11/17] rcutorture: Add consecutive expedited waits per writer iteration Kunwu Chan
2026-12-01 16:18 ` [PATCH 12/17] rcutorture: Check NMI coverage Kunwu Chan
2026-12-01 16:18 ` [PATCH 13/17] rcutorture: Test NMI coverage result classification Kunwu Chan
2026-12-01 16:18 ` [PATCH 14/17] rcutorture: Test NMI summary field validation Kunwu Chan
2026-12-01 16:18 ` [PATCH 15/17] rcutorture: Test NMI console-log boundaries Kunwu Chan
2026-12-01 16:18 ` [PATCH 16/17] rcutorture: Document how to check SRCU NMI coverage Kunwu Chan
2026-12-01 16:18 ` Kunwu Chan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201161815.1637481-18-kunwu.chan@gmail.com \
--to=kunwu.chan@gmail.com \
--cc=boqun@kernel.org \
--cc=dave@stgolabs.net \
--cc=dwmw2@infradead.org \
--cc=frederic@kernel.org \
--cc=jfern@kernel.org \
--cc=jiangshanlai@gmail.com \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=neeraj.upadhyay@kernel.org \
--cc=paulmck@kernel.org \
--cc=puranjay@kernel.org \
--cc=qiang.zhang@linux.dev \
--cc=rcu@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=shuah@kernel.org \
--cc=urezki@gmail.com \
--cc=work@onurozkan.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®