^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) What: /sys/bus/nd/devices/nmemX/papr/flags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) Date: Apr, 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) KernelVersion: v5.8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) (RO) Report flags indicating various states of a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) papr-pmem NVDIMM device. Each flag maps to a one or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) more bits set in the dimm-health-bitmap retrieved in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) response to H_SCM_HEALTH hcall. The details of the bit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) flags returned in response to this hcall is available
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) at 'Documentation/powerpc/papr_hcalls.rst' . Below are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) the flags reported in this sysfs file:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) * "not_armed"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) Indicates that NVDIMM contents will not
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) survive a power cycle.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) * "flush_fail"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) Indicates that NVDIMM contents
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) couldn't be flushed during last
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) shut-down event.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) * "restore_fail"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) Indicates that NVDIMM contents
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) couldn't be restored during NVDIMM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) initialization.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) * "encrypted"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) NVDIMM contents are encrypted.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) * "smart_notify"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) There is health event for the NVDIMM.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) * "scrubbed"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) Indicating that contents of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) NVDIMM have been scrubbed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) * "locked"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) Indicating that NVDIMM contents cant
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) be modified until next power cycle.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) What: /sys/bus/nd/devices/nmemX/papr/perf_stats
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) Date: May, 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) KernelVersion: v5.9
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) Description:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) (RO) Report various performance stats related to papr-scm NVDIMM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) device. This attribute is only available for NVDIMM devices
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) that support reporting NVDIMM performance stats. Each stat is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) reported on a new line with each line composed of a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) stat-identifier followed by it value. Below are currently known
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) dimm performance stats which are reported:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) * "CtlResCt" : Controller Reset Count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) * "CtlResTm" : Controller Reset Elapsed Time
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) * "PonSecs " : Power-on Seconds
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) * "MemLife " : Life Remaining
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) * "CritRscU" : Critical Resource Utilization
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) * "HostLCnt" : Host Load Count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) * "HostSCnt" : Host Store Count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) * "HostSDur" : Host Store Duration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) * "HostLDur" : Host Load Duration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) * "MedRCnt " : Media Read Count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) * "MedWCnt " : Media Write Count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) * "MedRDur " : Media Read Duration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) * "MedWDur " : Media Write Duration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) * "CchRHCnt" : Cache Read Hit Count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) * "CchWHCnt" : Cache Write Hit Count
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) * "FastWCnt" : Fast Write Count