summaryrefslogtreecommitdiffstats
path: root/src/usr/pnor/pnorrp.H
diff options
context:
space:
mode:
authorRichard J. Knight <rjknight@us.ibm.com>2015-04-03 16:17:56 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2015-04-24 16:14:19 -0500
commitc17473f12baf51fb45ec6966d3ce007743a44bf5 (patch)
tree3ab88bf59fa26268b154296a9151cbfa26746b2a /src/usr/pnor/pnorrp.H
parent7aa1479447c6a941b2fc7dca9a162907b04494ab (diff)
downloadtalos-hostboot-c17473f12baf51fb45ec6966d3ce007743a44bf5.tar.gz
talos-hostboot-c17473f12baf51fb45ec6966d3ce007743a44bf5.zip
Investigate graceful shutdown path anomolies
-Fix shutdown loop to notify processes correctly -Block pnor writes when gracefull shutdown is in process Change-Id: I1d882e8596a0218fa499d947f3c6387e7ecd4ee8 RTC:125361 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16852 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
Diffstat (limited to 'src/usr/pnor/pnorrp.H')
-rw-r--r--src/usr/pnor/pnorrp.H16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/usr/pnor/pnorrp.H b/src/usr/pnor/pnorrp.H
index 1a9b04ff6..d6cefdd60 100644
--- a/src/usr/pnor/pnorrp.H
+++ b/src/usr/pnor/pnorrp.H
@@ -38,6 +38,16 @@
/**
* PNOR Resource Provider
*/
+namespace PNOR
+{
+ // used to register for the hostboot shutdown
+ // notification messages.
+ enum msg_type
+ {
+ MSG_NOT_USED = 0x00,
+ MSG_SHUTDOWN = 0x01,
+ };
+};
class PnorRP
{
public:
@@ -159,6 +169,12 @@ class PnorRP
uint64_t iv_startupRC;
/**
+ * sent when a shutdown message is sent, used to elimnate further writes
+ * to pnore during a shutdown process
+ */
+ bool iv_shutdown_pending;
+
+ /**
* Track some information related to flash wear and health
* indexed by physical page number inside PNOR
*/
OpenPOWER on IntegriCloud