Thread (6 messages) flat view 6 messages, 4 authors, 2020-10-07

Re: [PATCH v3] pseries/hotplug-memory: hot-add: skip redundant LMB lookup

From: Michael Ellerman <hidden>
Date: 2020-10-07 03:28:00

On Tue, 15 Sep 2020 14:46:47 -0500, Scott Cheloha wrote:
During memory hot-add, dlpar_add_lmb() calls memory_add_physaddr_to_nid()
to determine which node id (nid) to use when later calling __add_memory().

This is wasteful.  On pseries, memory_add_physaddr_to_nid() finds an
appropriate nid for a given address by looking up the LMB containing the
address and then passing that LMB to of_drconf_to_nid_single() to get the
nid.  In dlpar_add_lmb() we get this address from the LMB itself.

[...]
Applied to powerpc/next.

[1/1] pseries/hotplug-memory: hot-add: skip redundant LMB lookup
      https://git.kernel.org/powerpc/c/72cdd117c449896c707fc6cfe5b90978160697d0

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help