mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jinjie Ruan <ruanjinjie@huawei.com>
To: "Kiryl Shutsemau (Meta)" <kas@kernel.org>
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: Wed, 25 Nov 2026 10:31:44 +0800	[thread overview]
Message-ID: <ae1f4fb2-7027-47d9-8981-6b3e2946f6ad@huawei.com> (raw)
In-Reply-To: <awXQtcWmqf7c_49B@shutemov.name>

Hi Kiryl,

在 2026/11/25 2:12, Kiryl Shutsemau (Meta) 写道:
> 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?

These original codes are left for testing the IPI as NMI function.

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

You are absolutely correct. sdei_nmi_available itself can block all SDEI
operations, which can simplify many things.

> 
> 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().

Yes, you are right! I will update them.

Best regards,
Jinjie

> 
> --
>   Kiryl Shutsemau / Kirill A. Shutemov


      reply	other threads:[~2026-11-25  2:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  3:32 Jinjie Ruan
2026-11-23  3:44 ` Randy Dunlap
2026-11-25  2:32   ` Jinjie Ruan
2026-11-24 18:12 ` Kiryl Shutsemau (Meta)
2026-11-25  2:31   ` Jinjie Ruan [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=ae1f4fb2-7027-47d9-8981-6b3e2946f6ad@huawei.com \
    --to=ruanjinjie@huawei.com \
    --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=kas@kernel.org \
    --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=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

all inboxes | Powered by JetHome®