PEL: Add the 'Common' errors to the registry

Add the xyz.openbmc_project.Common.Error.* errors from
xyz/openbmc_project/Common.errors.yaml file in the
phosphor-dbus-interfaces repository.

It is possible that errors defined in these YAML files never have event
logs created out of them, but instead are intended to just be returned
on failed D-Bus operations, such as a method failure.  Aside from
searching the whole OpenBMC code base there is no way to know, so just
define PELs for all of them to be safe.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I00ce1e9423c2b260f78d2d3d0aa8a495c3b13504
diff --git a/extensions/openpower-pels/registry/message_registry.json b/extensions/openpower-pels/registry/message_registry.json
index e2f2ac2..7e278e3 100644
--- a/extensions/openpower-pels/registry/message_registry.json
+++ b/extensions/openpower-pels/registry/message_registry.json
@@ -1,6 +1,137 @@
 {
     "PELs":
     [
+        {
+            "Name": "xyz.openbmc_project.Common.Error.Timeout",
+            "Subsystem": "bmc_firmware",
 
+            "SRC":
+            {
+                "ReasonCode": "0x1001",
+                "Words6To9":
+                {
+                    "6":
+                    {
+                        "Description": "Timeout in ms",
+                        "AdditionalDataPropSource": "TIMEOUT_IN_MSEC"
+                    }
+                }
+            },
+
+            "Documentation":
+            {
+                "Description": "This is a generic timeout error",
+                "Message": "An operation timed out",
+                "Notes": [
+                    "The journal should contain more information"
+                ]
+            }
+        },
+
+        {
+            "Name": "xyz.openbmc_project.Common.Error.InternalFailure",
+            "Subsystem": "bmc_firmware",
+
+            "SRC":
+            {
+                "ReasonCode": "0x1002",
+                "Words6To9":
+                {
+                }
+            },
+
+            "Documentation":
+            {
+                "Description": "BMC code had a generic internal failure",
+                "Message": "An application had an internal failure",
+                "Notes": [
+                    "The journal should contain more information"
+                ]
+            }
+        },
+
+        {
+            "Name": "xyz.openbmc_project.Common.Error.InvalidArgument",
+            "Subsystem": "user_error",
+
+            "SRC":
+            {
+                "ReasonCode": "0x1003",
+                "Words6To9":
+                {
+                }
+            },
+
+            "Documentation":
+            {
+                "Description": "BMC code was given an invalid argument",
+                "Message": "Code was given an invalid argument",
+                "Notes": [
+                    "The journal should contain more information"
+                ]
+            }
+        },
+        {
+            "Name": "xyz.openbmc_project.Common.Error.InsufficientPermission",
+            "Subsystem": "user_error",
+
+            "SRC":
+            {
+                "ReasonCode": "0x1004",
+                "Words6To9":
+                {
+                }
+            },
+
+            "Documentation":
+            {
+                "Description": "An operation failed due to insufficient permission",
+                "Message": "An operation failed due to unsufficient permission",
+                "Notes": [
+                    "The journal should contain more information"
+                ]
+            }
+        },
+
+        {
+            "Name": "xyz.openbmc_project.Common.Error.NotAllowed",
+            "Subsystem": "user_error",
+
+            "SRC":
+            {
+                "ReasonCode": "0x1005",
+                "Words6To9":
+                {
+                }
+            },
+
+            "Documentation":
+            {
+                "Description": "An operation failed because it isn't allowed",
+                "Message": "An operation failed becuase it isn't allowed",
+                "Notes": [
+                    "The journal should contain more information"
+                ]
+            }
+        },
+
+        {
+            "Name": "xyz.openbmc_project.Common.Error.NoCACertificate",
+            "Subsystem": "user_error",
+
+            "SRC":
+            {
+                "ReasonCode": "0x1006",
+                "Words6To9":
+                {
+                }
+            },
+
+            "Documentation":
+            {
+                "Description": "The server's CA certificate has not been provided",
+                "Message": "The server's CA certificate has not been provided"
+            }
+        }
     ]
 }