diff options
author | will <Will.Liang@quantatw.com> | 2019-03-22 16:31:00 +0800 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-04-16 23:42:15 +0000 |
commit | 21a950a5638b93330735c7a1975ee138d2c4530d (patch) | |
tree | 54ec224e140cf5320ca26ab7f3513cb0aba3f7e2 /xyz | |
parent | a641728c6923d9fb374f973b1c216515a082e21f (diff) | |
download | phosphor-dbus-interfaces-21a950a5638b93330735c7a1975ee138d2c4530d.tar.gz phosphor-dbus-interfaces-21a950a5638b93330735c7a1975ee138d2c4530d.zip |
Add ECC memory interface
Create ECC properties to record ce_counter, ue_counter, ECCStatus and
Reach the ECC collection limit.
Create the InvalidArgument error for ce_counter, ue_counter and ECC
collection limit.
Signed-off-by: will <Will.Liang@quantatw.com>
Change-Id: Ib05b0701a955b5a2ecba5dfecfa3f31ad9a3c1c2
Diffstat (limited to 'xyz')
-rw-r--r-- | xyz/openbmc_project/Memory/MemoryECC.errors.yaml | 8 | ||||
-rw-r--r-- | xyz/openbmc_project/Memory/MemoryECC.interface.yaml | 38 |
2 files changed, 46 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Memory/MemoryECC.errors.yaml b/xyz/openbmc_project/Memory/MemoryECC.errors.yaml new file mode 100644 index 0000000..9c2f4b9 --- /dev/null +++ b/xyz/openbmc_project/Memory/MemoryECC.errors.yaml @@ -0,0 +1,8 @@ +- name: isLoggingLimitReached + description: ECC collection limit is reached. + +- name: ceCount + description: Correctable ECC/other correctable memory error. + +- name: ueCount + description: Uncorrectable ECC/other uncorrectable memory error.
\ No newline at end of file diff --git a/xyz/openbmc_project/Memory/MemoryECC.interface.yaml b/xyz/openbmc_project/Memory/MemoryECC.interface.yaml new file mode 100644 index 0000000..32c23bb --- /dev/null +++ b/xyz/openbmc_project/Memory/MemoryECC.interface.yaml @@ -0,0 +1,38 @@ +description: > + Implement to provide memory ECC attributes. +properties: + - name: isLoggingLimitReached + type: boolean + description: > + ECC logging limit reached. + - name: ceCount + type: int64 + description: > + A correctable ECC event has been detected on a read operation. + - name: ueCount + type: int64 + description: > + An uncorrectable ECC event has been detected on a read operation. + - name: state + type: enum[self.ECCStatus] + default: ok + description: > + The state is described in ECC status. + +enumerations: + - name: ECCStatus + description: > + The operating system statuses. + values: + - name: ok + description: > + There is no ECC error occurred. + - name: CE + description: > + correctable ECC detected. + - name: UE + description: > + uncorrectable ECC detected. + - name: LogFull + description: > + ECC logging reach limits. |