summaryrefslogtreecommitdiffstats
path: root/extensions/openpower-pels/ascii_string.cpp
Commit message (Collapse)AuthorAgeFilesLines
* PEL: Sanitize the SRC ASCII string fieldHEADmasterMatt Spinler2020-02-171-0/+9
| | | | | | | | | | | | | | | | | This field may be displayed by things like a web UI and LCD panel, so on unflattening convert any disallowed characters to a space. Only allow: alphanumeric, '.', ':', '/', ' '. When a host PEL is received, the PEL will be unflattened and reflattened when the commit timestamp and PLID are modified, and this will be fixed up then. This matches other service processor implementations that dealt with PELs. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I7afe64e199ebd2448b54e4ba5769de436d30b9ba
* PEL: Const flattens for the SRC sub classesMatt Spinler2019-11-121-1/+1
| | | | | | | | 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
* PEL: Add license prologue to source filesMatt Spinler2019-11-061-0/+15
| | | | | Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I31b12f509d32b79064a8a427af35e6a310273051
* PEL: Represent the SRC ASCII string fieldMatt Spinler2019-10-221-0/+83
In the SRC section of a PEL, there is a field called the 'ASCII string'. This is the string of 32 characters that shows up on the panel when the SRC function is chosen, and usually when people refer to an SRC, the first 8 characters of this field is what they are referring to. This new class handles that string. It will belong to the SRC section object. For BMC error SRCs, it looks like: BDSSRRRR Where: BD = "BD", indicating a BMC error SRC SS = subsystem value from PEL spec RRRR = reason code of the error The remaining 24 characters are spaces (' '). For example: "BD8D1234 " For BMC power* related errors, the value is: "11001234 " Where the difference is the "11" instead of "BD", and the following 2 bytes are always "00". * 'power' means comes from the repository that monitors for power faults. This is different purely to help keep field service documentation the same as in previous IBM server generations. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I6e7292e7f5b501428999781b1a5ee5c243a63ac6
OpenPOWER on IntegriCloud