From: Thomas Gleixner <tglx@linutronix.de>
To: ysionneau@kalrayinc.com, linux-kernel@vger.kernel.org,
Peter Zijlstra <peterz@infradead.org>
Cc: Jonathan Borne <jborne@kalrayinc.com>,
Julian Vetter <jvetter@kalrayinc.com>,
Yann Sionneau <ysionneau@kalrayinc.com>,
Clement Leger <clement@clement-leger.fr>,
Julien Hascoet <jhascoet@kalrayinc.com>,
Louis Morhet <lmorhet@kalrayinc.com>, Luc Michel <luc@lmichel.fr>,
Marius Gligor <mgligor@kalrayinc.com>,
bpf@vger.kernel.org
Subject: Re: [RFC PATCH v3 30/37] kvx: Add multi-processor (SMP) support
Date: Sat, 27 Jul 2024 16:22:40 +0200 [thread overview]
Message-ID: <87ikwqud73.ffs@tglx> (raw)
In-Reply-To: <20240722094226.21602-31-ysionneau@kalrayinc.com>
On Mon, Jul 22 2024 at 11:41, ysionneau@kalrayinc.com wrote:
> +
> +int __cpu_up(unsigned int cpu, struct task_struct *tidle)
> +{
> + int ret;
> +
> + __cpu_up_stack_pointer[cpu] = task_stack_page(tidle) + THREAD_SIZE;
> + __cpu_up_task_pointer[cpu] = tidle;
> + /* We need to be sure writes are committed */
> + smp_mb();
> +
> + if (!smp_ops.smp_boot_secondary) {
> + pr_err_once("No smp_ops registered: could not bring up secondary CPUs\n");
> + return -ENOSYS;
> + }
> +
> + ret = smp_ops.smp_boot_secondary(cpu);
> + if (ret == 0) {
> + /* CPU was successfully started */
> + while (!cpu_online(cpu))
> + cpu_relax();
Please use the generic CPU hotplug synchronization mechanisms CONFIG_HOTPLUG_*_SYNC
Thanks,
tglx
next prev parent reply other threads:[~2024-07-27 14:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20240722094226.21602-1-ysionneau@kalrayinc.com>
2024-07-22 9:41 ` [RFC PATCH v3 13/37] kvx: Add build infrastructure ysionneau
2024-07-23 9:46 ` Arnd Bergmann
2024-07-22 9:41 ` [RFC PATCH v3 30/37] kvx: Add multi-processor (SMP) support ysionneau
2024-07-27 14:22 ` Thomas Gleixner [this message]
2024-07-22 9:41 ` [RFC PATCH v3 34/37] kvx: Add power controller driver ysionneau
2024-07-22 12:37 ` Krzysztof Kozlowski
2024-08-23 13:07 ` Yann Sionneau
2024-07-22 9:41 ` [RFC PATCH v3 35/37] kvx: Add IPI driver ysionneau
2024-07-22 12:39 ` Krzysztof Kozlowski
2024-08-23 14:46 ` Yann Sionneau
2024-09-07 13:20 ` Krzysztof Kozlowski
2024-07-27 14:08 ` Thomas Gleixner
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=87ikwqud73.ffs@tglx \
--to=tglx@linutronix.de \
--cc=bpf@vger.kernel.org \
--cc=clement@clement-leger.fr \
--cc=jborne@kalrayinc.com \
--cc=jhascoet@kalrayinc.com \
--cc=jvetter@kalrayinc.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lmorhet@kalrayinc.com \
--cc=luc@lmichel.fr \
--cc=mgligor@kalrayinc.com \
--cc=peterz@infradead.org \
--cc=ysionneau@kalrayinc.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