2020-06-15 15:44:04 +03:00
|
|
|
What: /sys/bus/nd/devices/nmemX/papr/flags
|
|
|
|
Date: Apr, 2020
|
|
|
|
KernelVersion: v5.8
|
|
|
|
Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org,
|
|
|
|
Description:
|
|
|
|
(RO) Report flags indicating various states of a
|
|
|
|
papr-pmem NVDIMM device. Each flag maps to a one or
|
|
|
|
more bits set in the dimm-health-bitmap retrieved in
|
|
|
|
response to H_SCM_HEALTH hcall. The details of the bit
|
|
|
|
flags returned in response to this hcall is available
|
|
|
|
at 'Documentation/powerpc/papr_hcalls.rst' . Below are
|
|
|
|
the flags reported in this sysfs file:
|
|
|
|
|
2020-10-30 10:40:50 +03:00
|
|
|
* "not_armed"
|
|
|
|
Indicates that NVDIMM contents will not
|
2020-06-15 15:44:04 +03:00
|
|
|
survive a power cycle.
|
2020-10-30 10:40:50 +03:00
|
|
|
* "flush_fail"
|
|
|
|
Indicates that NVDIMM contents
|
2020-06-15 15:44:04 +03:00
|
|
|
couldn't be flushed during last
|
|
|
|
shut-down event.
|
2020-10-30 10:40:50 +03:00
|
|
|
* "restore_fail"
|
|
|
|
Indicates that NVDIMM contents
|
2020-06-15 15:44:04 +03:00
|
|
|
couldn't be restored during NVDIMM
|
|
|
|
initialization.
|
2020-10-30 10:40:50 +03:00
|
|
|
* "encrypted"
|
|
|
|
NVDIMM contents are encrypted.
|
|
|
|
* "smart_notify"
|
|
|
|
There is health event for the NVDIMM.
|
|
|
|
* "scrubbed"
|
|
|
|
Indicating that contents of the
|
2020-06-15 15:44:04 +03:00
|
|
|
NVDIMM have been scrubbed.
|
2020-10-30 10:40:50 +03:00
|
|
|
* "locked"
|
|
|
|
Indicating that NVDIMM contents cant
|
2020-06-15 15:44:04 +03:00
|
|
|
be modified until next power cycle.
|
2020-07-31 09:41:52 +03:00
|
|
|
|
|
|
|
What: /sys/bus/nd/devices/nmemX/papr/perf_stats
|
|
|
|
Date: May, 2020
|
|
|
|
KernelVersion: v5.9
|
|
|
|
Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org,
|
|
|
|
Description:
|
|
|
|
(RO) Report various performance stats related to papr-scm NVDIMM
|
|
|
|
device. Each stat is reported on a new line with each line
|
|
|
|
composed of a stat-identifier followed by it value. Below are
|
|
|
|
currently known dimm performance stats which are reported:
|
|
|
|
|
|
|
|
* "CtlResCt" : Controller Reset Count
|
|
|
|
* "CtlResTm" : Controller Reset Elapsed Time
|
|
|
|
* "PonSecs " : Power-on Seconds
|
|
|
|
* "MemLife " : Life Remaining
|
|
|
|
* "CritRscU" : Critical Resource Utilization
|
|
|
|
* "HostLCnt" : Host Load Count
|
|
|
|
* "HostSCnt" : Host Store Count
|
|
|
|
* "HostSDur" : Host Store Duration
|
|
|
|
* "HostLDur" : Host Load Duration
|
|
|
|
* "MedRCnt " : Media Read Count
|
|
|
|
* "MedWCnt " : Media Write Count
|
|
|
|
* "MedRDur " : Media Read Duration
|
|
|
|
* "MedWDur " : Media Write Duration
|
|
|
|
* "CchRHCnt" : Cache Read Hit Count
|
|
|
|
* "CchWHCnt" : Cache Write Hit Count
|
2020-10-30 10:40:50 +03:00
|
|
|
* "FastWCnt" : Fast Write Count
|