Fix ArmProcessor ErrorInformation types
ErrorInformation currently has 2 supported formats according to the
libcper schema, cacheError and tlbError. Remove "unknown" microarch
types as we need correctly formatted output only.
Add a property name to identify which ErrorInformation type has been
detected in the cper record
Tested:
Used cper-convert to-json to convert a known good cper to json
Used cper-convert to-cper to convert same json to cper
json was generated again and validated against schema
Change-Id: I510f2ae7fef195721b618065c6ef643ab1191b76
Signed-off-by: Aushim Nagarkatti <anagarkatti@nvidia.com>
diff --git a/specification/json/sections/cper-arm-processor.json b/specification/json/sections/cper-arm-processor.json
index 546b3f4..c1e7500 100644
--- a/specification/json/sections/cper-arm-processor.json
+++ b/specification/json/sections/cper-arm-processor.json
@@ -166,203 +166,199 @@
"type": "object",
"oneOf": [
{
- "type": "object",
- "required": [
- "validationBits",
- "transactionType",
- "operation",
- "level",
- "processorContextCorrupt",
- "corrected",
- "precisePC",
- "restartablePC"
- ],
- "additionalProperties": false,
- "properties": {
- "validationBits": {
- "type": "object",
- "required": [
- "transactionTypeValid",
- "operationValid",
- "levelValid",
- "processorContextCorruptValid",
- "correctedValid",
- "precisePCValid",
- "restartablePCValid"
- ],
- "properties": {
- "transactionTypeValid": {
- "type": "boolean"
- },
- "operationValid": {
- "type": "boolean"
- },
- "levelValid": {
- "type": "boolean"
- },
- "processorContextCorruptValid": {
- "type": "boolean"
- },
- "correctedValid": {
- "type": "boolean"
- },
- "precisePCValid": {
- "type": "boolean"
- },
- "restartablePCValid": {
- "type": "boolean"
+ "required": ["cacheError"],
+ "cacheError": {
+ "type": "object",
+ "required": [
+ "validationBits",
+ "transactionType",
+ "operation",
+ "level",
+ "processorContextCorrupt",
+ "corrected",
+ "precisePC",
+ "restartablePC"
+ ],
+ "additionalProperties": false,
+ "properties": {
+ "validationBits": {
+ "type": "object",
+ "required": [
+ "transactionTypeValid",
+ "operationValid",
+ "levelValid",
+ "processorContextCorruptValid",
+ "correctedValid",
+ "precisePCValid",
+ "restartablePCValid"
+ ],
+ "properties": {
+ "transactionTypeValid": {
+ "type": "boolean"
+ },
+ "operationValid": {
+ "type": "boolean"
+ },
+ "levelValid": {
+ "type": "boolean"
+ },
+ "processorContextCorruptValid": {
+ "type": "boolean"
+ },
+ "correctedValid": {
+ "type": "boolean"
+ },
+ "precisePCValid": {
+ "type": "boolean"
+ },
+ "restartablePCValid": {
+ "type": "boolean"
+ }
}
+ },
+ "transactionType": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "operation": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "level": {
+ "type": "integer"
+ },
+ "processorContextCorrupt": {
+ "type": "boolean"
+ },
+ "corrected": {
+ "type": "boolean"
+ },
+ "precisePC": {
+ "type": "boolean"
+ },
+ "restartablePC": {
+ "type": "boolean"
}
- },
- "transactionType": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "operation": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "level": {
- "type": "integer"
- },
- "processorContextCorrupt": {
- "type": "boolean"
- },
- "corrected": {
- "type": "boolean"
- },
- "precisePC": {
- "type": "boolean"
- },
- "restartablePC": {
- "type": "boolean"
}
}
},
{
- "type": "object",
- "required": [
- "validationBits",
- "transactionType",
- "operation",
- "level",
- "processorContextCorrupt",
- "corrected",
- "precisePC",
- "restartablePC",
- "timedOut",
- "participationType",
- "addressSpace",
- "memoryAttributes",
- "accessMode"
- ],
- "additionalProperties": false,
- "properties": {
- "validationBits": {
- "type": "object",
- "required": [
- "transactionTypeValid",
- "operationValid",
- "levelValid",
- "processorContextCorruptValid",
- "correctedValid",
- "precisePCValid",
- "restartablePCValid",
- "participationTypeValid",
- "timedOutValid",
- "addressSpaceValid",
- "memoryAttributesValid",
- "accessModeValid"
- ],
- "properties": {
- "transactionTypeValid": {
- "type": "boolean"
- },
- "operationValid": {
- "type": "boolean"
- },
- "levelValid": {
- "type": "boolean"
- },
- "processorContextCorruptValid": {
- "type": "boolean"
- },
- "correctedValid": {
- "type": "boolean"
- },
- "precisePCValid": {
- "type": "boolean"
- },
- "restartablePCValid": {
- "type": "boolean"
- },
- "participationTypeValid": {
- "type": "boolean"
- },
- "timedOutValid": {
- "type": "boolean"
- },
- "addressSpaceValid": {
- "type": "boolean"
- },
- "memoryAttributesValid": {
- "type": "boolean"
- },
- "accessModeValid": {
- "type": "boolean"
+ "required": ["tlbError"],
+ "tlbError": {
+ "type": "object",
+ "required": [
+ "validationBits",
+ "transactionType",
+ "operation",
+ "level",
+ "processorContextCorrupt",
+ "corrected",
+ "precisePC",
+ "restartablePC",
+ "timedOut",
+ "participationType",
+ "addressSpace",
+ "memoryAttributes",
+ "accessMode"
+ ],
+ "additionalProperties": false,
+ "properties": {
+ "validationBits": {
+ "type": "object",
+ "required": [
+ "transactionTypeValid",
+ "operationValid",
+ "levelValid",
+ "processorContextCorruptValid",
+ "correctedValid",
+ "precisePCValid",
+ "restartablePCValid",
+ "participationTypeValid",
+ "timedOutValid",
+ "addressSpaceValid",
+ "memoryAttributesValid",
+ "accessModeValid"
+ ],
+ "properties": {
+ "transactionTypeValid": {
+ "type": "boolean"
+ },
+ "operationValid": {
+ "type": "boolean"
+ },
+ "levelValid": {
+ "type": "boolean"
+ },
+ "processorContextCorruptValid": {
+ "type": "boolean"
+ },
+ "correctedValid": {
+ "type": "boolean"
+ },
+ "precisePCValid": {
+ "type": "boolean"
+ },
+ "restartablePCValid": {
+ "type": "boolean"
+ },
+ "participationTypeValid": {
+ "type": "boolean"
+ },
+ "timedOutValid": {
+ "type": "boolean"
+ },
+ "addressSpaceValid": {
+ "type": "boolean"
+ },
+ "memoryAttributesValid": {
+ "type": "boolean"
+ },
+ "accessModeValid": {
+ "type": "boolean"
+ }
}
+ },
+ "transactionType": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "operation": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "level": {
+ "type": "integer"
+ },
+ "processorContextCorrupt": {
+ "type": "boolean"
+ },
+ "corrected": {
+ "type": "boolean"
+ },
+ "precisePC": {
+ "type": "boolean"
+ },
+ "restartablePC": {
+ "type": "boolean"
+ },
+ "timedOut": {
+ "type": "boolean"
+ },
+ "participationType": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "addressSpace": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "accessMode": {
+ "type": "object",
+ "$ref": "./common/cper-json-nvp.json"
+ },
+ "memoryAttributes": {
+ "type": "integer"
}
- },
- "transactionType": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "operation": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "level": {
- "type": "integer"
- },
- "processorContextCorrupt": {
- "type": "boolean"
- },
- "corrected": {
- "type": "boolean"
- },
- "precisePC": {
- "type": "boolean"
- },
- "restartablePC": {
- "type": "boolean"
- },
- "timedOut": {
- "type": "boolean"
- },
- "participationType": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "addressSpace": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "accessMode": {
- "type": "object",
- "$ref": "./common/cper-json-nvp.json"
- },
- "memoryAttributes": {
- "type": "integer"
- }
- }
- },
- {
- "type": "object",
- "required": ["data"],
- "additionalProperties": false,
- "properties": {
- "data": {
- "type": "integer"
}
}
}