Thread (5 messages) flat view 5 messages, 2 authors, 2018-06-22
STALE2981d

Revision v1 of 7 in this series.

Revisions (7)
  1. v1 current
  2. v02 [diff vs current]
  3. v04 [diff vs current]
  4. v04 [diff vs current]
  5. v05 [diff vs current]
  6. v07 [diff vs current]
  7. v07 [diff vs current]

[PATCH 3/3] migration/memory: Support 'ibm,dynamic-memory-v2'

From: Michael Bringmann <hidden>
Date: 2018-06-21 00:35:13
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Linus Torvalds

migration/memory: This patch adds recognition for changes to the
associativity of memory blocks described by 'ibm,dynamic-memory-v2'
in order to update local and general kernel data structures to
reflect those changes.  This patch builds upon previous enhancements
that scan the device-tree properties to build an LMB array in memory
to reuse and evaluate that structure for the new property.

Signed-off-by: Michael Bringmann <redacted>
---
 arch/powerpc/platforms/pseries/hotplug-memory.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c
index 2573b87..d390dd4 100644
--- a/arch/powerpc/platforms/pseries/hotplug-memory.c
+++ b/arch/powerpc/platforms/pseries/hotplug-memory.c
@@ -1144,7 +1144,8 @@ static int pseries_memory_notifier(struct notifier_block *nb,
 		err = pseries_remove_mem_node(rd->dn);
 		break;
 	case OF_RECONFIG_UPDATE_PROPERTY:
-		if (!strcmp(rd->prop->name, "ibm,dynamic-memory")) {
+		if (!strcmp(rd->prop->name, "ibm,dynamic-memory") ||
+		    !strcmp(rd->prop->name, "ibm,dynamic-memory-v2")) {
 			struct drmem_lmb_info *dinfo =
 				drmem_lmbs_init(rd->prop);
 			if (!dinfo)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help