Re: [PATCH v04 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2018-10-11 Thread Michael Bringmann
Checked my notes. I changed read_drconf_v1_cell/read_drconf_v2_cell to use of_read_number in place of dt_mem_next_cell, because the function is marked __init, and is not loaded in memory after a migration, so the system crashes. So, we need that modification, unless we also add some changes to

Re: [PATCH v04 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2018-10-10 Thread Michael Bringmann
On 10/10/2018 11:54 AM, Nathan Fontenot wrote: > On 10/09/2018 03:36 PM, Michael Bringmann wrote: >> powerpc/drmem: Export many of the functions of DRMEM to parse >> "ibm,dynamic-memory" and "ibm,dynamic-memory-v2" during hotplug >> operations and for Post Migration events. >> >> Also modify the

Re: [PATCH v04 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2018-10-10 Thread Nathan Fontenot
On 10/09/2018 03:36 PM, Michael Bringmann wrote: > powerpc/drmem: Export many of the functions of DRMEM to parse > "ibm,dynamic-memory" and "ibm,dynamic-memory-v2" during hotplug > operations and for Post Migration events. > > Also modify the DRMEM initialization code to allow it to, > > * Be

[PATCH v04 1/5] powerpc/drmem: Export 'dynamic-memory' loader

2018-10-09 Thread Michael Bringmann
powerpc/drmem: Export many of the functions of DRMEM to parse "ibm,dynamic-memory" and "ibm,dynamic-memory-v2" during hotplug operations and for Post Migration events. Also modify the DRMEM initialization code to allow it to, * Be called after system initialization * Provide a separate user copy