Linux Documentation
 help / color / mirror / Atom feed
From: "Kiryl Shutsemau (Meta)" <kas@kernel.org>
To: Jinjie Ruan <ruanjinjie@huawei.com>
Cc: corbet@lwn.net, skhan@linuxfoundation.org, rdunlap@infradead.org,
	 james.morse@arm.com, rppt@kernel.org, arnd@arndb.de,
	kmehltretter@gmail.com,  dapeng1.mi@linux.intel.com,
	elver@google.com, enelsonmoore@gmail.com, bp@alien8.de,
	 jlayton@kernel.org, catalin.marinas@arm.com,
	sean@starlabs.systems, will@kernel.org,
	 jonathan.cameron@oss.qualcomm.com, tzungbi@kernel.org,
	steven.price@arm.com, chenhuacai@kernel.org,
	 tzimmermann@suse.de, wenst@chromium.org,
	linux-doc@vger.kernel.org,  linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, vladimir.murzin@arm.com
Subject: Re: [PATCH] arm64: sdei: add sdei_nmi.disabled= to keep the GIC NMI path reachable
Date: Tue, 24 Nov 2026 18:12:01 +0000	[thread overview]
Message-ID: <awXQtcWmqf7c_49B@shutemov.name> (raw)
In-Reply-To: <20261123033222.1067923-1-ruanjinjie@huawei.com>

On Mon, Nov 23, 2026 at 11:32:22AM +0800, Jinjie Ruan wrote:
> While the SDEI cross-CPU NMI is active it claims every cross-CPU
> backtrace, so on a platform whose firmware exposes SDEI event 0
> the irqchip NMI path can never be used.  There is no way to opt out.
> 
> Add a boot parameter "sdei_nmi.disabled".
> 
> With sdei_nmi.disabled=1, the SDEI NMI stays registered and simply
> declines every request, so arch_trigger_cpumask_backtrace() falls
> through to its IPI path and smp_send_stop() skips its SDEI rung.

Why keep event 0 registered and enabled when the switch is on?

If sdei_nmi_init() returns before sdei_event_register(),
sdei_nmi_available stays false and both hooks already decline.

Then the flag is read only at init and can be __initdata. None of the
other hunks are needed. The check in sdei_nmi_stop_cpus() is not
reachable anyway: smp_send_stop() calls it only after sdei_nmi_active().

--
  Kiryl Shutsemau / Kirill A. Shutemov

      parent reply	other threads:[~2026-11-24 18:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  3:32 [PATCH] arm64: sdei: add sdei_nmi.disabled= to keep the GIC NMI path reachable Jinjie Ruan
2026-11-23  3:44 ` Randy Dunlap
2026-11-24 18:12 ` Kiryl Shutsemau (Meta) [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=awXQtcWmqf7c_49B@shutemov.name \
    --to=kas@kernel.org \
    --cc=arnd@arndb.de \
    --cc=bp@alien8.de \
    --cc=catalin.marinas@arm.com \
    --cc=chenhuacai@kernel.org \
    --cc=corbet@lwn.net \
    --cc=dapeng1.mi@linux.intel.com \
    --cc=elver@google.com \
    --cc=enelsonmoore@gmail.com \
    --cc=james.morse@arm.com \
    --cc=jlayton@kernel.org \
    --cc=jonathan.cameron@oss.qualcomm.com \
    --cc=kmehltretter@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=rppt@kernel.org \
    --cc=ruanjinjie@huawei.com \
    --cc=sean@starlabs.systems \
    --cc=skhan@linuxfoundation.org \
    --cc=steven.price@arm.com \
    --cc=tzimmermann@suse.de \
    --cc=tzungbi@kernel.org \
    --cc=vladimir.murzin@arm.com \
    --cc=wenst@chromium.org \
    --cc=will@kernel.org \
    /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