1b791abf3SVaibhav JainWhat: /sys/bus/nd/devices/nmemX/papr/flags 2b791abf3SVaibhav JainDate: Apr, 2020 3b791abf3SVaibhav JainKernelVersion: v5.8 43dd4fe4bSDan WilliamsContact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev, 5b791abf3SVaibhav JainDescription: 6b791abf3SVaibhav Jain (RO) Report flags indicating various states of a 7b791abf3SVaibhav Jain papr-pmem NVDIMM device. Each flag maps to a one or 8b791abf3SVaibhav Jain more bits set in the dimm-health-bitmap retrieved in 9b791abf3SVaibhav Jain response to H_SCM_HEALTH hcall. The details of the bit 10b791abf3SVaibhav Jain flags returned in response to this hcall is available 11b791abf3SVaibhav Jain at 'Documentation/powerpc/papr_hcalls.rst' . Below are 12b791abf3SVaibhav Jain the flags reported in this sysfs file: 13b791abf3SVaibhav Jain 1454a19b4dSMauro Carvalho Chehab * "not_armed" 1554a19b4dSMauro Carvalho Chehab Indicates that NVDIMM contents will not 16b791abf3SVaibhav Jain survive a power cycle. 1754a19b4dSMauro Carvalho Chehab * "flush_fail" 1854a19b4dSMauro Carvalho Chehab Indicates that NVDIMM contents 19b791abf3SVaibhav Jain couldn't be flushed during last 20b791abf3SVaibhav Jain shut-down event. 2154a19b4dSMauro Carvalho Chehab * "restore_fail" 2254a19b4dSMauro Carvalho Chehab Indicates that NVDIMM contents 23b791abf3SVaibhav Jain couldn't be restored during NVDIMM 24b791abf3SVaibhav Jain initialization. 2554a19b4dSMauro Carvalho Chehab * "encrypted" 2654a19b4dSMauro Carvalho Chehab NVDIMM contents are encrypted. 2754a19b4dSMauro Carvalho Chehab * "smart_notify" 2854a19b4dSMauro Carvalho Chehab There is health event for the NVDIMM. 2954a19b4dSMauro Carvalho Chehab * "scrubbed" 3054a19b4dSMauro Carvalho Chehab Indicating that contents of the 31b791abf3SVaibhav Jain NVDIMM have been scrubbed. 3254a19b4dSMauro Carvalho Chehab * "locked" 3354a19b4dSMauro Carvalho Chehab Indicating that NVDIMM contents cant 34b791abf3SVaibhav Jain be modified until next power cycle. 352d02bf83SVaibhav Jain 362d02bf83SVaibhav JainWhat: /sys/bus/nd/devices/nmemX/papr/perf_stats 372d02bf83SVaibhav JainDate: May, 2020 382d02bf83SVaibhav JainKernelVersion: v5.9 393dd4fe4bSDan WilliamsContact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev, 402d02bf83SVaibhav JainDescription: 412d02bf83SVaibhav Jain (RO) Report various performance stats related to papr-scm NVDIMM 42ed78f56eSVaibhav Jain device. This attribute is only available for NVDIMM devices 43ed78f56eSVaibhav Jain that support reporting NVDIMM performance stats. Each stat is 44ed78f56eSVaibhav Jain reported on a new line with each line composed of a 45ed78f56eSVaibhav Jain stat-identifier followed by it value. Below are currently known 46ed78f56eSVaibhav Jain dimm performance stats which are reported: 472d02bf83SVaibhav Jain 482d02bf83SVaibhav Jain * "CtlResCt" : Controller Reset Count 492d02bf83SVaibhav Jain * "CtlResTm" : Controller Reset Elapsed Time 502d02bf83SVaibhav Jain * "PonSecs " : Power-on Seconds 512d02bf83SVaibhav Jain * "MemLife " : Life Remaining 522d02bf83SVaibhav Jain * "CritRscU" : Critical Resource Utilization 532d02bf83SVaibhav Jain * "HostLCnt" : Host Load Count 542d02bf83SVaibhav Jain * "HostSCnt" : Host Store Count 552d02bf83SVaibhav Jain * "HostSDur" : Host Store Duration 562d02bf83SVaibhav Jain * "HostLDur" : Host Load Duration 572d02bf83SVaibhav Jain * "MedRCnt " : Media Read Count 582d02bf83SVaibhav Jain * "MedWCnt " : Media Write Count 592d02bf83SVaibhav Jain * "MedRDur " : Media Read Duration 602d02bf83SVaibhav Jain * "MedWDur " : Media Write Duration 612d02bf83SVaibhav Jain * "CchRHCnt" : Cache Read Hit Count 622d02bf83SVaibhav Jain * "CchWHCnt" : Cache Write Hit Count 632d02bf83SVaibhav Jain * "FastWCnt" : Fast Write Count 64*bbbca723SVaibhav Jain 65*bbbca723SVaibhav JainWhat: /sys/bus/nd/devices/nmemX/papr/health_bitmap_inject 66*bbbca723SVaibhav JainDate: Jan, 2022 67*bbbca723SVaibhav JainKernelVersion: v5.17 68*bbbca723SVaibhav JainContact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev, 69*bbbca723SVaibhav JainDescription: 70*bbbca723SVaibhav Jain (RO) Reports the health bitmap inject bitmap that is applied to 71*bbbca723SVaibhav Jain bitmap received from PowerVM via the H_SCM_HEALTH. This is used 72*bbbca723SVaibhav Jain to forcibly set specific bits returned from Hcall. These is then 73*bbbca723SVaibhav Jain used to simulate various health or shutdown states for an nvdimm 74*bbbca723SVaibhav Jain and are set by user-space tools like ndctl by issuing a PAPR DSM. 75*bbbca723SVaibhav Jain 76