PEL:Skip assigning id to hostboot PELs
As hostboot will be managing their own PEL Ids skip assigning
id to its PELs.
Signed-off-by: Sumit Kumar <sumit_kumar@in.ibm.com>
Change-Id: I43dc6a2fbf5ec13458d12572b766cc5aa5d8e01b
diff --git a/extensions/openpower-pels/manager.cpp b/extensions/openpower-pels/manager.cpp
index afd7eb0..1372bf6 100644
--- a/extensions/openpower-pels/manager.cpp
+++ b/extensions/openpower-pels/manager.cpp
@@ -130,8 +130,14 @@
auto pel = std::make_unique<openpower::pels::PEL>(pelData, obmcLogID);
if (pel->valid())
{
- // PELs created by others still need these fields set by us.
- pel->assignID();
+ // Assign Id other than to Hostbot PEL
+ if ((pel->privateHeader()).creatorID() !=
+ static_cast<uint8_t>(CreatorID::hostboot))
+ {
+ pel->assignID();
+ }
+
+ // PELs created by others still need this field set by us.
pel->setCommitTime();
// Update System Info to Extended User Data