Updated Additional Error/Status codes
This commit adds new Error/Status codes under:
1.Platform state map - Added Combined CPLD authenication,Combined CPLD image update
Combined CPLD image recovery,Combined CPLD booted from Active CFM entries.
2. Recovery reason map - Added BMC and CPU attestation failure entries
3. Panic Reason map - Added Attestation failure entry.
4. Major error code map - Added Attestation failure , Attestation challenge timeout,
SPDM protocol timeout, memcpy Failed and Combined CPLD authenication failure entries.
Tested:
- Manually triggered all the newly added events and observed the entry
in redfish file(/var/log/redfish)
- Event logs in web UI displayed the event correctly.
Example:
CPLD firmware resiliency error.
Error reason: Combined CPLD Authentication failure (MinorCode:0x05).
- GET on redfish/v1/Systems/system/LogServices/EventLog/Entries
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/1686766462",
"@odata.type": "#LogEntry.v1_9_0.LogEntry",
"Created": "2023-06-14T18:14:22+00:00",
"EntryType": "Event",
"Id": "1686766462",
"Message": "CPLD firmware resiliency error. Error reason: Combined CPLD authenication failure(MinorCode:0x05).",
"MessageArgs": [
"Combined CPLD authenication failure(MinorCode:0x05)"
],
"MessageId": "OpenBMC.0.1.CPLDFirmwareResiliencyError",
"Name": "System Event Log Entry",
"Severity": "Critical"
},
Change-Id: I60d9ec218cd9cab79e6d0598f9ee94bef0288015
Signed-off-by: sri anjaneyulu alapati <srix.anjaneyulu.alapati@intel.com>
diff --git a/service/inc/pfr_mgr.hpp b/service/inc/pfr_mgr.hpp
index eba9e5b..63fb6ac 100644
--- a/service/inc/pfr_mgr.hpp
+++ b/service/inc/pfr_mgr.hpp
@@ -124,7 +124,12 @@
{0x13, "CPLD update (in CPLD ROM)"},
{0x14, "PCH/CPU firmware volume update"},
{0x15, "CPLD Nios II processor waiting to start"},
- {0x16, "Reserved 0x16"},
+ {0x16, "Combined CPLD authentication"},
+ {0x17, "Combined CPLD booted from CFM0"},
+ {0x18, "Combined CPLD booted from Active CFM"},
+ {0x19, "Combined CPLD image update"},
+ {0x1A, "Combined CPLD image recovery"},
+ {0x1B, "Combined CPLD boot from CFM0 due to recovery failure"},
{0x40, "T-1 firmware recovery due to authentication failure"},
{0x41, "T-1 forced active firmware recovery"},
{0x42, "WDT timeout recovery"},