From: Paul Walmsley <pjw@kernel.org>
To: Danil Skrebenkov <danil.skrebenkov@cloudbear.ru>
Cc: pjw@kernel.org, Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Charlie Jenkins <charlie@rivosinc.com>,
WangYuli <wangyuli@uniontech.com>,
linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] RISC-V: cpu-hotplug fix
Date: Wed, 8 Oct 2025 11:50:53 -0600 (MDT) [thread overview]
Message-ID: <7bc8eb67-0a48-1756-c907-dae7751b4c98@kernel.org> (raw)
In-Reply-To: <20250919132849.31676-1-danil.skrebenkov@cloudbear.ru>
On Fri, 19 Sep 2025, Danil Skrebenkov wrote:
> openSBI v1.7 adds harts checks for ipi operations. Especially it
> adds comparison between hmask passed as an argument from linux
> and mask of online harts (from openSBI side). If they don't
> fit each other the error occurs.
>
> When cpu is offline, cpu_online_mask is explicitly cleared in
> __cpu_disable. However, there is no explicit clearing of
> mm_cpumask. mm_cpumask is used for rfence operations that
> call openSBI RFENCE extension which uses ipi to remote harts.
> If hart is offline there may be error if mask of linux is not
> as mask of online harts in openSBI.
>
> this patch adds explicit clearing of mm_cpumask for offline hart.
>
> Signed-off-by: Danil Skrebenkov <danil.skrebenkov@cloudbear.ru>
Thanks, queued for early v6.18-rc after cleaning up the subject line to be
more descriptive:
"RISC-V: clear hot-unplugged cores from all task mm_cpumasks to avoid
rfence errors"
- Paul
prev parent reply other threads:[~2025-10-08 17:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 13:28 Danil Skrebenkov
2025-09-24 16:56 ` Andrew Jones
2025-10-08 17:50 ` Paul Walmsley [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=7bc8eb67-0a48-1756-c907-dae7751b4c98@kernel.org \
--to=pjw@kernel.org \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=charlie@rivosinc.com \
--cc=danil.skrebenkov@cloudbear.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=wangyuli@uniontech.com \
/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®