18c2ecf20Sopenharmony_ciWhat: /sys/bus/nd/devices/nmemX/papr/flags 28c2ecf20Sopenharmony_ciDate: Apr, 2020 38c2ecf20Sopenharmony_ciKernelVersion: v5.8 48c2ecf20Sopenharmony_ciContact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org, 58c2ecf20Sopenharmony_ciDescription: 68c2ecf20Sopenharmony_ci (RO) Report flags indicating various states of a 78c2ecf20Sopenharmony_ci papr-pmem NVDIMM device. Each flag maps to a one or 88c2ecf20Sopenharmony_ci more bits set in the dimm-health-bitmap retrieved in 98c2ecf20Sopenharmony_ci response to H_SCM_HEALTH hcall. The details of the bit 108c2ecf20Sopenharmony_ci flags returned in response to this hcall is available 118c2ecf20Sopenharmony_ci at 'Documentation/powerpc/papr_hcalls.rst' . Below are 128c2ecf20Sopenharmony_ci the flags reported in this sysfs file: 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci * "not_armed" 158c2ecf20Sopenharmony_ci Indicates that NVDIMM contents will not 168c2ecf20Sopenharmony_ci survive a power cycle. 178c2ecf20Sopenharmony_ci * "flush_fail" 188c2ecf20Sopenharmony_ci Indicates that NVDIMM contents 198c2ecf20Sopenharmony_ci couldn't be flushed during last 208c2ecf20Sopenharmony_ci shut-down event. 218c2ecf20Sopenharmony_ci * "restore_fail" 228c2ecf20Sopenharmony_ci Indicates that NVDIMM contents 238c2ecf20Sopenharmony_ci couldn't be restored during NVDIMM 248c2ecf20Sopenharmony_ci initialization. 258c2ecf20Sopenharmony_ci * "encrypted" 268c2ecf20Sopenharmony_ci NVDIMM contents are encrypted. 278c2ecf20Sopenharmony_ci * "smart_notify" 288c2ecf20Sopenharmony_ci There is health event for the NVDIMM. 298c2ecf20Sopenharmony_ci * "scrubbed" 308c2ecf20Sopenharmony_ci Indicating that contents of the 318c2ecf20Sopenharmony_ci NVDIMM have been scrubbed. 328c2ecf20Sopenharmony_ci * "locked" 338c2ecf20Sopenharmony_ci Indicating that NVDIMM contents cant 348c2ecf20Sopenharmony_ci be modified until next power cycle. 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ciWhat: /sys/bus/nd/devices/nmemX/papr/perf_stats 378c2ecf20Sopenharmony_ciDate: May, 2020 388c2ecf20Sopenharmony_ciKernelVersion: v5.9 398c2ecf20Sopenharmony_ciContact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org, 408c2ecf20Sopenharmony_ciDescription: 418c2ecf20Sopenharmony_ci (RO) Report various performance stats related to papr-scm NVDIMM 428c2ecf20Sopenharmony_ci device. This attribute is only available for NVDIMM devices 438c2ecf20Sopenharmony_ci that support reporting NVDIMM performance stats. Each stat is 448c2ecf20Sopenharmony_ci reported on a new line with each line composed of a 458c2ecf20Sopenharmony_ci stat-identifier followed by it value. Below are currently known 468c2ecf20Sopenharmony_ci dimm performance stats which are reported: 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ci * "CtlResCt" : Controller Reset Count 498c2ecf20Sopenharmony_ci * "CtlResTm" : Controller Reset Elapsed Time 508c2ecf20Sopenharmony_ci * "PonSecs " : Power-on Seconds 518c2ecf20Sopenharmony_ci * "MemLife " : Life Remaining 528c2ecf20Sopenharmony_ci * "CritRscU" : Critical Resource Utilization 538c2ecf20Sopenharmony_ci * "HostLCnt" : Host Load Count 548c2ecf20Sopenharmony_ci * "HostSCnt" : Host Store Count 558c2ecf20Sopenharmony_ci * "HostSDur" : Host Store Duration 568c2ecf20Sopenharmony_ci * "HostLDur" : Host Load Duration 578c2ecf20Sopenharmony_ci * "MedRCnt " : Media Read Count 588c2ecf20Sopenharmony_ci * "MedWCnt " : Media Write Count 598c2ecf20Sopenharmony_ci * "MedRDur " : Media Read Duration 608c2ecf20Sopenharmony_ci * "MedWDur " : Media Write Duration 618c2ecf20Sopenharmony_ci * "CchRHCnt" : Cache Read Hit Count 628c2ecf20Sopenharmony_ci * "CchWHCnt" : Cache Write Hit Count 638c2ecf20Sopenharmony_ci * "FastWCnt" : Fast Write Count 64