From: Nathan Fontenot <nfont@linux.vnet.ibm.com>
To: Michael Ellerman <mpe@ellerman.id.au>, linuxppc-dev@lists.ozlabs.org
Cc: jallen@linux.vnet.ibm.com, sahilmehta17@gmail.com,
mdroth@linux.vnet.ibm.com, david@gibson.dropbear.id.au
Subject: Re: [PATCH v7 2/4] powerpc/pseries: Revert 'Auto-online hotplugged memory'
Date: Mon, 20 Feb 2017 14:49:58 -0600 [thread overview]
Message-ID: <fd545562-0e8c-f98e-2620-4c34752424c2@linux.vnet.ibm.com> (raw)
In-Reply-To: <87wpcqkb3k.fsf@concordia.ellerman.id.au>
On 02/15/2017 10:34 PM, Michael Ellerman wrote:
> Nathan Fontenot <nfont@linux.vnet.ibm.com> writes:
>
>> Revert the patch patch to auto-online hotplugged memory, commit
>> id ec999072442a. Using the auto-online acpability does online added
>> memory but does not update the associated device struct to
>> indicate that the memory is online. The result of this is that
>> memoryXX/online file in sysfs still reports the memory as being offline.
>
> Isn't that just a bug in the auto-online code?
After digging through the code some more and reading some of the email
chain when the auto-online feature was submitted I can't decide if this
is a bug or if this is by design. The fact that they only other users
of this appear to be balloon drivers (hv and xen) makes me think this
may be by design.
Changing the auto-online capability to call device_offline() instead
would appear to also require changes to the hv and xen balloon
drivers for the new behavior.
>
> If I'm reading it right it's calling online_memory_block(). If that
> doesn't cause the memory_block to be online that would puzzle me.
The memory is online and usuable when the dlpar operation completes. I
was mistaken in my original note though, the state file in sysfs does report
the memory as being online. The underlying issue is that the device struct
does not get updated (dev->offline) when using the auto-online capability.
The result is that trying to remove a LMB a second time fails when we call
device_offline() which checks the dev->offline flag and returns failure.
I think reverting the patch to use the auto-online capability may be the
way to go. This would restore the code so that we call device_online and
device_offline for add and remove respectively, and not rely on what the
auto-online code is doing.
Thoughts?
>
> Also commit ec999072442a went into v4.8, so is memory hotplug broken
> since then? If so we need to backport this or whatever fix we come up.
Yes, we need to backport whatever fix we do.
-Nathan
>
> cheers
>
next prev parent reply other threads:[~2017-02-20 20:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-15 18:45 [PATCH v7 0/4] powerpc/pseries: Implement indexed-count memory hotplug Nathan Fontenot
2017-02-15 18:45 ` [PATCH v7 1/4] powerpc/pseries: dlpar_memory_readd_by_index() when MEMORY_HOTREMOVE not defined Nathan Fontenot
2017-02-16 2:01 ` David Gibson
2017-02-15 18:45 ` [PATCH v7 2/4] powerpc/pseries: Revert 'Auto-online hotplugged memory' Nathan Fontenot
2017-02-16 4:34 ` Michael Ellerman
2017-02-20 20:49 ` Nathan Fontenot [this message]
2017-02-21 1:02 ` Michael Ellerman
2017-02-21 16:41 ` Nathan Fontenot
2017-02-27 10:11 ` [v7,2/4] " Michael Ellerman
2017-02-15 18:45 ` [PATCH v7 3/4] powerpc/pseries: Implement indexed-count hotplug memory add Nathan Fontenot
2017-02-17 6:58 ` Michael Ellerman
2017-02-19 11:33 ` [v7, " Michael Ellerman
2017-02-15 18:46 ` [PATCH v7 4/4] powerpc/pseries: Implement indexed-count hotplug memory remove Nathan Fontenot
2017-02-19 11:33 ` [v7, " Michael Ellerman
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=fd545562-0e8c-f98e-2620-4c34752424c2@linux.vnet.ibm.com \
--to=nfont@linux.vnet.ibm.com \
--cc=david@gibson.dropbear.id.au \
--cc=jallen@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mdroth@linux.vnet.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=sahilmehta17@gmail.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;
as well as URLs for NNTP newsgroup(s).