powerpc/pseries: PAPR persistent memory support
This patch implements support for discovering storage class memory devices at boot and for handling hotplug of new regions via RTAS hotplug events. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> [mpe: Fix CONFIG_MEMORY_HOTPLUG=n build] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
committed by
Michael Ellerman
parent
422123ccb9
commit
4c5d87db49
@@ -125,6 +125,7 @@ struct rtas_suspend_me_data {
|
||||
#define RTAS_TYPE_INFO 0xE2
|
||||
#define RTAS_TYPE_DEALLOC 0xE3
|
||||
#define RTAS_TYPE_DUMP 0xE4
|
||||
#define RTAS_TYPE_HOTPLUG 0xE5
|
||||
/* I don't add PowerMGM events right now, this is a different topic */
|
||||
#define RTAS_TYPE_PMGM_POWER_SW_ON 0x60
|
||||
#define RTAS_TYPE_PMGM_POWER_SW_OFF 0x61
|
||||
@@ -329,6 +330,7 @@ struct pseries_hp_errorlog {
|
||||
#define PSERIES_HP_ELOG_RESOURCE_MEM 2
|
||||
#define PSERIES_HP_ELOG_RESOURCE_SLOT 3
|
||||
#define PSERIES_HP_ELOG_RESOURCE_PHB 4
|
||||
#define PSERIES_HP_ELOG_RESOURCE_PMEM 6
|
||||
|
||||
#define PSERIES_HP_ELOG_ACTION_ADD 1
|
||||
#define PSERIES_HP_ELOG_ACTION_REMOVE 2
|
||||
|
||||
Reference in New Issue
Block a user