<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/powerpc/platforms/pseries/hotplug-memory.c, branch linux-4.8.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.8.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-08-09T06:52:00Z</updated>
<entry>
<title>powerpc: Fix unused function warning 'lmb_to_memblock'</title>
<updated>2016-08-09T06:52:00Z</updated>
<author>
<name>Alastair D'Silva</name>
</author>
<published>2016-08-01T06:32:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9dc512819e4b723856773f5a018865c20441072f'/>
<id>urn:sha1:9dc512819e4b723856773f5a018865c20441072f</id>
<content type='text'>
This patch fixes the following warning:
arch/powerpc/platforms/pseries/hotplug-memory.c:323:29: error: 'lmb_to_memblock' defined but not used [-Werror=unused-function]
static struct memory_block *lmb_to_memblock(struct of_drconf_cell *lmb)
                           ^~~~~~~~~~~~~~~

The only consumer of this function is 'dlpar_remove_lmb', which is
enabled with CONFIG_MEMORY_HOTREMOVE, so move it into the same
ifdef block.

Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/pseries: Remove call to memblock_add()</title>
<updated>2016-07-15T10:18:37Z</updated>
<author>
<name>Nathan Fontenot</name>
</author>
<published>2016-06-29T17:20:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fdb4f6e99ffacfa643ab2d2da99171b3084d4446'/>
<id>urn:sha1:fdb4f6e99ffacfa643ab2d2da99171b3084d4446</id>
<content type='text'>
The call to memblock_add is not needed, this is already done by
memory_add(). This patch removes this call which shrinks
dlpar_add_lmb_memory() enough that it can be merged into dlpar_add_lmb().

Signed-off-by: Nathan Fontenot &lt;nfont@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/pseries: Auto-online hotplugged memory</title>
<updated>2016-07-15T10:18:37Z</updated>
<author>
<name>Nathan Fontenot</name>
</author>
<published>2016-06-29T17:19:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ec999072442ad531cccbecbd6d5a569b0af6c8e3'/>
<id>urn:sha1:ec999072442ad531cccbecbd6d5a569b0af6c8e3</id>
<content type='text'>
A recent update (commit id 31bc3858ea3) allows for automatically
onlining memory that is added. This patch sets the config option
CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y for pseries and updates the
pseries memory hotplug code so that DLPAR added memory can be
automatically onlined instead of explicitly onlining the memory.

Signed-off-by: Nathan Fontenot &lt;nfont@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/pseries: Dynamic add entires to associativity lookup array</title>
<updated>2016-07-15T10:18:26Z</updated>
<author>
<name>Nathan Fontenot</name>
</author>
<published>2016-06-20T14:01:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c05a5a40969e63d3490901acf60989979b0fcd27'/>
<id>urn:sha1:c05a5a40969e63d3490901acf60989979b0fcd27</id>
<content type='text'>
Dynamically add entries to the associativity lookup array

The ibm,associativity-lookup-arrays property may only contain
associativity arrays for LMBs present at boot time. When hotplug
adding a LMB its associativity array may not be in the associativity
lookup array, this patch adds the ability to add new entries to the
associativity lookup array.

Signed-off-by: Nathan Fontenot &lt;nfont@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/pseries: Move property cloning into its own routine</title>
<updated>2016-07-15T05:02:26Z</updated>
<author>
<name>Nathan Fontenot</name>
</author>
<published>2016-06-20T14:00:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c2101c9039fe2a005f7b4138e028ed9a8468a48a'/>
<id>urn:sha1:c2101c9039fe2a005f7b4138e028ed9a8468a48a</id>
<content type='text'>
Move property cloning code into its own routine

Split the pieces of dlpar_clone_drconf_property() that create a copy of
the property struct into its own routine. This allows for creating
clones of more than just the ibm,dynamic-memory property used in memory
hotplug.

Signed-off-by: Nathan Fontenot &lt;nfont@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/pseries: Update LMB associativity index during DLPAR add/remove</title>
<updated>2016-04-11T01:23:39Z</updated>
<author>
<name>Nathan Fontenot</name>
</author>
<published>2016-02-10T17:12:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bdf5fc6338047cfeba98d2ab629997f3013e610f'/>
<id>urn:sha1:bdf5fc6338047cfeba98d2ab629997f3013e610f</id>
<content type='text'>
The associativity array index specified for a LMB in the device tree,
/ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory, needs to be updated
prior to DLPAR adding a LMB and after DLPAR removing a LMB.

Without doing this step in the DLPAR add process a LMB could be configured
with the incorrect affinity. For a LMB that was not present at boot the
affinity index is set to 0xffffffff, which defaults to adding the LMB to
the first online node since the index is not a valid value. Or, the
affinity index could contain a stale value if the LMB was present at boot
but later DLPAR removed and is being DLPAR added back to the system.

This patch adds a step in the DLPAR add flow to look up the associativity
index for a LMB prior to adding a LMB and setting the associativity to
0xffffffff when a LMB is removed.

This patch also modifies the DLPAR add/remove flow to no longer do a single
update of the device tree property after all of the requested DLPAR
operations are complete and now does a property update during the add
or remove of each LMB.

Signed-off-by: Nathan Fontenot &lt;nfont@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/pseries: Refactor dlpar_add_lmb() code</title>
<updated>2016-04-11T01:23:38Z</updated>
<author>
<name>Nathan Fontenot</name>
</author>
<published>2016-02-10T17:10:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4a4bdfea7cb75b5c8b222932796f64a14027d512'/>
<id>urn:sha1:4a4bdfea7cb75b5c8b222932796f64a14027d512</id>
<content type='text'>
Re-factor dlpar_lmb_add() routine by moving the validation of the lmb
flags and the acquireing of the DRC to a wrapper around the work to add
the memory to the system. This is done to make handling of errors
during the addition of the memory easier and to facilitate the upcoming
addition of updating the lmb's affinity prior to adding the memory.

Signed-off-by: Nathan Fontenot &lt;nfont@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/pseries: use kmemdup rather than duplicating its implementation</title>
<updated>2015-08-18T09:34:42Z</updated>
<author>
<name>Andrzej Hajda</name>
</author>
<published>2015-08-07T07:59:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2e16acc5ee3626bcd32e2252c8260b65efde7b36'/>
<id>urn:sha1:2e16acc5ee3626bcd32e2252c8260b65efde7b36</id>
<content type='text'>
The patch was generated using fixed coccinelle semantic patch
scripts/coccinelle/api/memdup.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2014320

Signed-off-by: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Reviewed-by: Nathan Fontenot &lt;nfont@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/pseries: Fix compile of memory hotplug without CONFIG_MEMORY_HOTREMOVE</title>
<updated>2015-04-15T01:55:28Z</updated>
<author>
<name>Alexey Kardashevskiy</name>
</author>
<published>2015-04-14T07:01:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16e00f5a5f12eb32ca39df6a7afd5c0062705af6'/>
<id>urn:sha1:16e00f5a5f12eb32ca39df6a7afd5c0062705af6</id>
<content type='text'>
51925fb3c5 "powerpc/pseries: Implement memory hotplug remove in the kernel"
broke compile when CONFIG_MEMORY_HOTREMOVE is not defined due to missing
symbols. This fixes the issue by adding the missing symbols.

Signed-off-by: Alexey Kardashevskiy &lt;aik@ozlabs.ru&gt;
Acked-by: Nathan Fontenot &lt;nfont@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
<entry>
<title>powerpc/pseries: Correct memory hotplug locking</title>
<updated>2015-04-13T23:26:08Z</updated>
<author>
<name>Nathan Fontenot</name>
</author>
<published>2015-04-07T14:53:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b0a478ede669949682b9c698f6146c0065543b91'/>
<id>urn:sha1:b0a478ede669949682b9c698f6146c0065543b91</id>
<content type='text'>
Memory dlpar handling can return from dlpar_memory() without releasing the
device_hotplug lock. Correct this routine to ensure the lock is released.

Fixes: 5f97b2a0d176 ("powerpc/pseries: Implement memory hotplug add in the kernel")
Signed-off-by: Nathan Fontenot &lt;nfont@linux.vnet.ibm.com&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
</content>
</entry>
</feed>
