Re: Resend [PATCH] powerpc/hotplug-mem: Fix aa_index match bug for hotplug

From: Michael Ellerman
Date: Thu Jun 08 2017 - 18:20:41 EST


Michael Bringmann <mwb@xxxxxxxxxxxxxxxxxx> writes:

> When adding or removing memory, the aa_index (affinity value) for the
> memblock must also be converted to match the endianness of the rest
> of the 'ibm,dynamic-memory' property. Otherwise, subsequent retrieval
> of the attribute will likely lead to non-existent nodes, followed by
> using the default node in the code inappropriately.
>
> Note: This is a bug that we would likely want to see fixed in stable
> circa v4.1+.

I merged this a week ago:

https://lists.ozlabs.org/pipermail/linuxppc-dev/2017-June/158426.html

It was annotated:

Fixes: 5f97b2a0d176 ("powerpc/pseries: Implement memory hotplug add in the kernel")
Cc: stable@xxxxxxxxxxxxxxx # v4.1+

cheers