linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] Correct Memory Hotplug for Power
@ 2013-08-20  2:50 Nathan Fontenot
  2013-08-20  2:52 ` [PATCH v2 1/2] Mark Memory Resources as busy Nathan Fontenot
  2013-08-20  2:53 ` [PATCH v2 2/2] Register bootmem pages Nathan Fontenot
  0 siblings, 2 replies; 5+ messages in thread
From: Nathan Fontenot @ 2013-08-20  2:50 UTC (permalink / raw)
  To: linuxppc-dev

Memory hotplug on Power is currently broken, these two patches correct the
issues needed to get memory hotplug working again.

This update marks memory resources that are added at boot time are also
marked as busy. It sounds a bit counter intuitive but the core mm code will
not free memory resources if they are not marked as busy.

This also ensures that bootmem memory is is registered at boot time. A
previous commit (46723bfa540...) that enabled memory hotplug remove with
SPARSE_VMEMMAP enabled broke this on Power.

Additional patches to follow to correct the current memory hotplug
implementation on Power.

Nathan Fontenot

Updates for v2:

- The WARN_ONCE is removed from the added register_page_bootmem_memmap()
routine. I have been able to verify that memory hotplug works with
SPARSE_VMEMMAP enabled and do not think the warning is needed.

---
 arch/powerpc/mm/mem.c           |    9 +++++++++
 linux/arch/powerpc/mm/init_64.c |    4 ++++
 linux/arch/powerpc/mm/mem.c     |    2 +-
 linux/mm/Kconfig                |    2 +-
 4 files changed, 15 insertions(+), 2 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-27  7:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-20  2:50 [PATCH v2] Correct Memory Hotplug for Power Nathan Fontenot
2013-08-20  2:52 ` [PATCH v2 1/2] Mark Memory Resources as busy Nathan Fontenot
2013-08-20  2:53 ` [PATCH v2 2/2] Register bootmem pages Nathan Fontenot
2013-08-27  3:44   ` Benjamin Herrenschmidt
2013-08-27  7:39     ` Benjamin Herrenschmidt

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