From: Nathan Lynch <nathanl@linux.ibm.com>
To: linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH 1/2] powerpc/rtas: use device model APIs and serialization during LPM
Date: Thu, 18 Jul 2019 14:46:43 -0500 [thread overview]
Message-ID: <87tvbj2kik.fsf@linux.ibm.com> (raw)
In-Reply-To: <20190718192940.16103-2-nathanl@linux.ibm.com>
Nathan Lynch <nathanl@linux.ibm.com> writes:
> During LPAR migration, cpu hotplug and migration operations can
> interleave like so:
>
> cd /sys/devices/system/cpu/cpu7/ | drmgr -m -c pmig -p pre \
> echo 0 > online | -s 0xd7a884f83d830e6d -t 19 \
> echo 1 > online | -n -d 1 5
> ---------------------------------+-------------------------------------------
> online_store() { |
> device_offline() { |
> cpu_subsys_offline() { |
> cpu_down(7); |
> } |
> dev->offline = true; |
> } | migration_store() {
> } | rtas_ibm_suspend_me() {
> | rtas_online_cpus_mask() {
> | cpu_up(7);
> | }
> | cpu_hotplug_disable();
> | on_each_cpu(rtas_percpu_suspend_me());
> | cpu_hotplug_enable();
> online_store() { |
> device_online() { |
> cpu_subsys_online() { |
> cpu_up(7); |
> } |
> dev->offline = false; |
> } | rtas_offline_cpus_mask() {
> } | rtas_cpu_state_change_mask() {
> | cpu_down(7);
> | }
> | }
> | }
> | }
Actually I think this isn't a correct depiction of the race. I'll
rewrite and resend.
next prev parent reply other threads:[~2019-07-18 19:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-18 19:29 [PATCH 0/2] more migration vs CPU hotplug fixes Nathan Lynch
2019-07-18 19:29 ` [PATCH 1/2] powerpc/rtas: use device model APIs and serialization during LPM Nathan Lynch
2019-07-18 19:46 ` Nathan Lynch [this message]
2019-07-18 19:29 ` [PATCH 2/2] powerpc/rtas: allow rescheduling while changing cpu states Nathan Lynch
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=87tvbj2kik.fsf@linux.ibm.com \
--to=nathanl@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.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;
as well as URLs for NNTP newsgroup(s).