PEL: Add message registry entry for power loss.

Add PEL message entry for power loss.

Tested:
Power on machine.
Build and install phosphor-log-manager and restart its service.
Delete all existing PEL entries.
Install patched message registry into /etc/phosphor-logging.
Use the  APC GUI for the ePDU to turn off power to all power supplies.
Turn power back on, get the PEL entry which shows the blackout entry.

Signed-off-by: Jay Meyer <jaymeyer@us.ibm.com>
Change-Id: Ic7b06c3db7d6356ac19dc46062ee8abc4f9c8723
diff --git a/extensions/openpower-pels/pel_values.cpp b/extensions/openpower-pels/pel_values.cpp
index dfad44d..8385986 100644
--- a/extensions/openpower-pels/pel_values.cpp
+++ b/extensions/openpower-pels/pel_values.cpp
@@ -227,7 +227,8 @@
     {"service_docs", "SVCDOCS"},      {"pwrsply", "PWRSPLY"},
     {"air_mover", "AIRMOVR"},         {"pgood_part", "PGDPART"},
     {"usb_pgood", "USBPGD"},          {"ambient_temp", "AMBTEMP"},
-    {"ambient_temp_back", "AMBBACK"}, {"ambient_perf_loss", "AMBPERF"}};
+    {"ambient_temp_back", "AMBBACK"}, {"ambient_perf_loss", "AMBPERF"},
+    {"ac_module", "ACMODUL"}};
 
 PELValues::const_iterator findByValue(uint32_t value, const PELValues& fields)
 {
diff --git a/extensions/openpower-pels/registry/message_registry.json b/extensions/openpower-pels/registry/message_registry.json
index e46900e..4835853 100644
--- a/extensions/openpower-pels/registry/message_registry.json
+++ b/extensions/openpower-pels/registry/message_registry.json
@@ -672,6 +672,39 @@
         },
 
         {
+            "Name": "xyz.openbmc_project.State.Shutdown.Power.Error.Blackout",
+            "Subsystem": "power",
+            "ActionFlags": [ "report", "service_action" ],
+            "Severity": "unrecoverable",
+            "ComponentID": "0x2700",
+
+            "SRC":
+            {
+                "Type": "11",
+                "ReasonCode": "0x00AC",
+                "Words6To9": {},
+                "PowerFault": true
+            },
+
+            "Callouts": [
+                {
+                    "CalloutList": [
+                        { "Priority": "high", "SymbolicFRU": "ac_module"}
+                    ]
+                }
+            ],
+
+            "Documentation": {
+                "Description": "Input power was lost while the system was powered on.",
+                "Message": "Input power was lost while the system was powered on.",
+                "Notes": [
+                    "Input power was lost while system powered on.",
+                    "The CalloutList should use the ACMODUL symbolic FRU."
+                ]
+            }
+        },
+
+        {
             "Name": "xyz.openbmc_project.Power.Error.Shutdown",
             "Subsystem": "power_sequencer",
             "ComponentID": "0x2700",
diff --git a/extensions/openpower-pels/registry/schema/schema.json b/extensions/openpower-pels/registry/schema/schema.json
index a98f01c..330900a 100644
--- a/extensions/openpower-pels/registry/schema/schema.json
+++ b/extensions/openpower-pels/registry/schema/schema.json
@@ -438,7 +438,7 @@
         {
             "description": "The symbolic FRU callout.",
             "type": "string",
-            "enum": ["service_docs", "pwrsply", "air_mover", "pgood_part", "usb_pgood", "ambient_temp", "ambient_temp_back", "ambient_perf_loss"]
+            "enum": ["service_docs", "pwrsply", "air_mover", "pgood_part", "usb_pgood", "ambient_temp", "ambient_temp_back", "ambient_perf_loss", "ac_module"]
         },
 
         "symbolicFRUTrusted":