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