On 08/01/2016 12:21 PM, Sahil Mehta wrote:
> Indexed-count add for memory hotplug guarantees that a contiguous block
> of <count> lmbs beginning at a specified <index> will be assigned (NOT
> that <count> lmbs will be added). Because of Qemu's per-DIMM memory
> management, the addition of a contiguous block of memory currently
> requires a series of individual calls. Indexed-count add reduces
> this series into a single call.
> 
> Signed-off-by: Sahil Mehta <sme...@linux.vnet.ibm.com>

Reviewed-by: Nathan Fontenot <nf...@linux.vnet.ibm.com>

> ---
> v2:   -remove potential memory leak when parsing command
>       -use u32s drc_index and count instead of u32 ic[]
>        in dlpar_memory
> v3:   -add logic to handle invalid drc_index input
>       -update indexed-count trigger to follow naming convention
>       -update dlpar_memory to follow kernel if-else style
> v4:   -add logic to handle kstrdup failure
>       -add logic to handle invalid command format
> 
>  arch/powerpc/include/asm/rtas.h                 |    2
>  arch/powerpc/platforms/pseries/dlpar.c          |   46 +++++++++-
>  arch/powerpc/platforms/pseries/hotplug-memory.c |  110 
> +++++++++++++++++++++--
>  3 files changed, 146 insertions(+), 12 deletions(-)

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to