summaryrefslogtreecommitdiffstats
path: root/xyz
diff options
context:
space:
mode:
authorwill <Will.Liang@quantatw.com>2019-03-22 16:31:00 +0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-04-16 23:42:15 +0000
commit21a950a5638b93330735c7a1975ee138d2c4530d (patch)
tree54ec224e140cf5320ca26ab7f3513cb0aba3f7e2 /xyz
parenta641728c6923d9fb374f973b1c216515a082e21f (diff)
downloadphosphor-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.yaml8
-rw-r--r--xyz/openbmc_project/Memory/MemoryECC.interface.yaml38
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.
OpenPOWER on IntegriCloud