commit | 045aceaeaf80656e5a5fd85067ae04935f3bcf6c | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Dec 18 11:22:40 2024 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Fri Dec 20 15:22:36 2024 +0000 |
tree | 8dcc0fc70072958489e49ed2ef8ec9b9ddff462f | |
parent | 65b4018eee73f75b0ab70d12b78e5e3bb46fb2c9 [diff] |
clang-format: re-format for clang-19 clang-format-19 isn't compatible with the clang-format-18 output, so we need to reformat the code with the latest version. A few parameters in clang-tidy have been deprecated, so adjust the style file accordingly. See Ie2f6eb3b043f2d655c9df806815afd7971fd0947 for updated style. See I88192b41ab7a95599a90915013579608af7bc56f for clang-19 enablement. Change-Id: Iafccf7a3b02652a8cee0aed3935f831a3290c980 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
This function is to provide the BMC with the ability to record ECC error SELs. The EDAC driver of BMC can detects and corrects memory errors, which helps identify problems before they become catastrophic faulty memory module.
phosphor-sel-logger
package must be installedRun the application and look up the ECC error count every second after service is started. On first start, it resets all correctable ECC counts and uncorrectable ECC counts in the EDAC driver.
it also provide the following path on D-Bus:
xyz.openbmc_project.Memory.ECC
/xyz/openbmc_project/metrics/memory/BmcECC
xyz.openbmc_project.Memory.MemoryECC
The interface with the following properties:
Property | Type | Description |
---|---|---|
isLoggingLimitReached | bool | ECC logging reach limits |
ceCount | int64 | correctable ECC events |
ueCount | int64 | uncorrectable ECC events |
state | string | bmc ECC event state |
It also devised a mechanism to limit the "maximum number" of logs to avoid creating a large number of correctable ECC logs. When the maximum quantity
is reached, the ECC service will stop to record the ECC log. The maximum quantity
(default:100) is saved in the configuration file, and the user can modify the value if necessary.
Use the phosphor-sel-logger
package to record the following logs in BMC SEL format.
ce_count
from EDAC driver parameter and the count exceeds previous count.ue_count
from EDAC driver parameter and the count exceeds previous count.maximum quantity
.