From eafe3e3d5719c9becb864f60daa525f8ce2c38c0 Mon Sep 17 00:00:00 2001 From: Roland Veloz Date: Thu, 18 Jul 2019 02:37:26 -0500 Subject: Added support for checking on the health status of an NVDIMM * The check for the health status piggy backs off the current NVDIMM operation interface. * Added the method doNvDimmCheckHealthStatus to perform the health check status of the individual NVDIMMs. * Added wrapper methods nvDimmCheckHealthStatusOnSystem and nvdimmCheckHealthStatus that call the doNvDimmCheckHealthStatus * Added an interface in the runtime commands to call make the check health status call. Change-Id: Iefa1fcf5cb6a13c496fd776cdc34ade58ae0612b CQ:SW469962 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/80589 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Corey V Swenson Reviewed-by: Matt Derksen Reviewed-by: Daniel M Crowell --- src/include/runtime/interface.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/include/runtime/interface.h') diff --git a/src/include/runtime/interface.h b/src/include/runtime/interface.h index 7d66f0ff6..9a0cb478e 100644 --- a/src/include/runtime/interface.h +++ b/src/include/runtime/interface.h @@ -579,6 +579,8 @@ typedef struct hostInterfaces // error out. enum NVDIMM_Op_t: uint16_t { + /// The following operations pertain to arming/disarming + /// the NVDIMM // Disarm the NV logic such that the next save attempt is a NOOP HBRT_FW_NVDIMM_DISARM = 0x0001, // Disable encryption on the NVDIMM and clear saved values from FW @@ -589,6 +591,12 @@ typedef struct hostInterfaces HBRT_FW_NVDIMM_ENABLE_ENCRYPTION = 0x0008, // Arm the NV logic HBRT_FW_NVDIMM_ARM = 0x0010, + + /// The following operation pertains to the Health of the NVDIMM + /// This operation can be performed with the arming/disarming + /// operation, these operation types are orthogonal to each other + // Manufacturing energy source(ES) health check request + HBRT_FW_MNFG_ES_HEALTH_CHECK = 0x0020, }; // NVDIMM (PHYP -> HBRT) message to request NVDIMM operation(s) -- cgit v1.2.1