Add support for AMPERE CPERs
Support Ampere CPER entries
Change-Id: I607a89209138fa53914c55c07aba8b7d6f382e5e
Signed-off-by: Dung Cao <dung@os.amperecomputing.com>
diff --git a/specification/json/cper-json-full-log.json b/specification/json/cper-json-full-log.json
index 029ce2f..b4dd875 100644
--- a/specification/json/cper-json-full-log.json
+++ b/specification/json/cper-json-full-log.json
@@ -34,6 +34,7 @@
{ "$ref": "./sections/cper-cxl-protocol.json" },
{ "$ref": "./sections/cper-cxl-component.json" },
{ "$ref": "./sections/cper-nvidia.json" },
+ { "$ref": "./sections/cper-ampere.json" },
{ "$ref": "./sections/cper-unknown.json" }
]
}
diff --git a/specification/json/cper-json-section-log.json b/specification/json/cper-json-section-log.json
index 4287316..0909197 100644
--- a/specification/json/cper-json-section-log.json
+++ b/specification/json/cper-json-section-log.json
@@ -28,6 +28,7 @@
{ "$ref": "./sections/cper-cxl-protocol.json" },
{ "$ref": "./sections/cper-cxl-component.json" },
{ "$ref": "./sections/cper-nvidia.json" },
+ { "$ref": "./sections/cper-ampere.json" },
{ "$ref": "./sections/cper-unknown.json" }
]
}
diff --git a/specification/json/sections/cper-ampere.json b/specification/json/sections/cper-ampere.json
new file mode 100644
index 0000000..64d1d3f
--- /dev/null
+++ b/specification/json/sections/cper-ampere.json
@@ -0,0 +1,18 @@
+{
+ "$id": "cper-json-ampere-section",
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "type": "object",
+ "required": ["typeId", "subTypeId", "instanceId"],
+ "additionalProperties": false,
+ "properties": {
+ "typeId": {
+ "type": "integer"
+ },
+ "subTypeId": {
+ "type": "integer"
+ },
+ "instanceId": {
+ "type": "integer"
+ }
+ }
+}