#
4efed0ef |
| 26-Feb-2024 |
Matt Spinler <spinler@us.ibm.com> |
PEL: Don't allow duplicate callouts
When adding callouts, check if the callout being added already exists. If it does, don't add it and rather just update the priority of the existing one to be the
PEL: Don't allow duplicate callouts
When adding callouts, check if the callout being added already exists. If it does, don't add it and rather just update the priority of the existing one to be the highest of the two.
Callouts are considered to be equal if their location code matches, or if they have the same maintenance procedure, or if they have the same symbolic FRU.
The change entails adding an operator== on the Callout object, as well as an operator> so that the callout with the highest priority can be determined. Also use this new operator> in the sort of the callout list that happens after a callout is added or changed.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I5ee148cc12e92f67fb3da233c3615e9665e95355
show more ...
|
#
2544b419 |
| 04-Oct-2022 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: update with latest
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I329396457b83bb2eb8740629b4ac1fbe9106bced
|
#
5ab39978 |
| 13-Aug-2020 |
Matt Spinler <spinler@us.ibm.com> |
PEL: Let Callout object ctor take a MRU list
A list of MRUs (Manufacturing Replaceable Units) can now be passed into the Callout object constructor. There is also a new MRU object constructor that
PEL: Let Callout object ctor take a MRU list
A list of MRUs (Manufacturing Replaceable Units) can now be passed into the Callout object constructor. There is also a new MRU object constructor that will build that object with a MRU list as well.
This will be used in the future when someone wants to add MRUs to a callout.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ic0e93e081a91ffc47dfd6642a34f02fd9a6edb8e
show more ...
|
#
468aab5f |
| 13-Aug-2020 |
Matt Spinler <spinler@us.ibm.com> |
PEL: Add support for raw symbolic FRUs and procs
Allow the FRUIdentity and Callout objects to take the raw maintenance procedure and symbolic FRU names as opposed to just the PEL message registry na
PEL: Add support for raw symbolic FRUs and procs
Allow the FRUIdentity and Callout objects to take the raw maintenance procedure and symbolic FRU names as opposed to just the PEL message registry names. This will allow the values to come from sources besides the registry, such as the device tree used by PHAL.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I4171fb7128ae1b1b5e3e635f7f95b7f7df7c6638
show more ...
|
#
a86ec996 |
| 09-Apr-2020 |
Matt Spinler <spinler@us.ibm.com> |
PEL: Add Symbolic FRU support to Callout
This adds a constructor that takes a priority, symbolic FRU, location cod, and if the location code can be trusted enough that the FRU can be replaced based
PEL: Add Symbolic FRU support to Callout
This adds a constructor that takes a priority, symbolic FRU, location cod, and if the location code can be trusted enough that the FRU can be replaced based on it. It then creates a FRUIdentity object with the symbolic FRU.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I38074467dd5dba6f9260d50afe93e08c7fe96cd2
show more ...
|
#
a27e2e50 |
| 09-Apr-2020 |
Matt Spinler <spinler@us.ibm.com> |
PEL: Get rid of the enum for a maint procedure
It simplifies the code to just use the string name of the procedure as defined by the message registry schema, and make it be less maintenance to add n
PEL: Get rid of the enum for a maint procedure
It simplifies the code to just use the string name of the procedure as defined by the message registry schema, and make it be less maintenance to add new procedures in the future, especially if they come from the registry so the enum isn't even needed.
This will also make it the same as upcoming support for symbolic FRU callouts, which will always just come from the registry or an external user so would not need an enum.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ia8550235678ba1fc717a6b0875e2d7ff3888bfec
show more ...
|
#
0a5d10ce |
| 13-Mar-2020 |
Matt Spinler <spinler@us.ibm.com> |
PEL: Add Callout object constructors
Add constructors to the PEL Callout object to create a FRU callout, either a hardware FRU with PN/SN/CCIN, or a maintenance procedure.
Signed-off-by: Matt Spinl
PEL: Add Callout object constructors
Add constructors to the PEL Callout object to create a FRU callout, either a hardware FRU with PN/SN/CCIN, or a maintenance procedure.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I015370fbfa4e5522eada316d12c10b130e1de4be
show more ...
|
#
0f717e10 |
| 15-Jan-2020 |
Harisuddin Mohamed Isa <harisuddin@gmail.com> |
PEL: Print SRC section into JSON
For BMC created errors, look up the reason code in the message registry for error description and also meaning of data stored in hexwords 6-9 (if any).
Added regist
PEL: Print SRC section into JSON
For BMC created errors, look up the reason code in the message registry for error description and also meaning of data stored in hexwords 6-9 (if any).
Added registry message field in peltool list output.
"Primary SRC": { "Section Version": "1", "Sub-section type": "1", "Created by": "0x1000", "SRC Version": "0x02", "SRC Format": "0x55", "Power Control Net Fault": "False", "Error Details": { "Message": "PS 0x64 had a PGOOD Fault", "PS_NUM": "0x64" }, "Valid Word Count": "0x09", "Reference Code": "BD8D1001", "Hex Word 2": "00000055", "Hex Word 3": "00000010", "Hex Word 4": "00000000", "Hex Word 5": "00000000", "Hex Word 6": "00000064", "Hex Word 7": "00000000", "Hex Word 8": "00000000", "Hex Word 9": "00000000" }
"Primary SRC": { "Section Version": "1", "Sub-section type": "0", "Created by": "0x4552", "SRC Version": "0x02", "SRC Format": "0x2008000", "Power Control Net Fault": "False", "Valid Word Count": "0x04", "Reference Code": "B2001020", "Hex Word 2": "02008000", "Hex Word 3": "00000000", "Hex Word 4": "00000012", "Callout Section": { "Callout Count": "1", "Callouts": [{ "FRU Type": "Symbolic FRU", "Priority": "Medium Priority", "Part Number": "NEXTLVL" }] } }
Testing: Manually run peltool and verified out. All unit tests passed. Signed-off-by: Harisuddin Mohamed Isa <harisuddin@gmail.com> Change-Id: I124627ba785413ebda02305b7d9f95431922e714
show more ...
|
#
724d0d8c |
| 06-Nov-2019 |
Matt Spinler <spinler@us.ibm.com> |
PEL: Const flattens for the SRC sub classes
Make the flatten functions const for the various classes that represent the SRC substructures.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id
PEL: Const flattens for the SRC sub classes
Make the flatten functions const for the various classes that represent the SRC substructures.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I08f4ae6de65e269c9f1b82315115969c8552c782
show more ...
|
#
6c9662c9 |
| 09-Oct-2019 |
Matt Spinler <spinler@us.ibm.com> |
PEL: SRC FRU callout structure
This class represents a single FRU callout in the SRC section of a PEL. When there are multiple callouts, there will be multiple instances of this class created. Tech
PEL: SRC FRU callout structure
This class represents a single FRU callout in the SRC section of a PEL. When there are multiple callouts, there will be multiple instances of this class created. Technically, the callout isn't always a FRU, such as it could be a maintenance procedure name, but the spec still refers to this section as the FRU callout section.
The callout priority and location code are in this structure.
There can also be up to one each of three types of substructures in a single callout: * FRU Identity (must be first if present) * Power Controlling Enclosure (PCE) * Manufacturing Replaceable Unit (MRU)
This commit just provides support for creating this object from a flattened PEL, such as one that comes down from the host. A future commit will add support for creating a callout for BMC created event logs.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I49535285e3cbaa15dfe031648cfaf262380a1cf7
show more ...
|