162306a36Sopenharmony_ciWhat: /sys/bus/nd/devices/nmemX/papr/flags 262306a36Sopenharmony_ciDate: Apr, 2020 362306a36Sopenharmony_ciKernelVersion: v5.8 462306a36Sopenharmony_ciContact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev, 562306a36Sopenharmony_ciDescription: 662306a36Sopenharmony_ci (RO) Report flags indicating various states of a 762306a36Sopenharmony_ci papr-pmem NVDIMM device. Each flag maps to a one or 862306a36Sopenharmony_ci more bits set in the dimm-health-bitmap retrieved in 962306a36Sopenharmony_ci response to H_SCM_HEALTH hcall. The details of the bit 1062306a36Sopenharmony_ci flags returned in response to this hcall is available 1162306a36Sopenharmony_ci at 'Documentation/powerpc/papr_hcalls.rst' . Below are 1262306a36Sopenharmony_ci the flags reported in this sysfs file: 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci * "not_armed" 1562306a36Sopenharmony_ci Indicates that NVDIMM contents will not 1662306a36Sopenharmony_ci survive a power cycle. 1762306a36Sopenharmony_ci * "flush_fail" 1862306a36Sopenharmony_ci Indicates that NVDIMM contents 1962306a36Sopenharmony_ci couldn't be flushed during last 2062306a36Sopenharmony_ci shut-down event. 2162306a36Sopenharmony_ci * "restore_fail" 2262306a36Sopenharmony_ci Indicates that NVDIMM contents 2362306a36Sopenharmony_ci couldn't be restored during NVDIMM 2462306a36Sopenharmony_ci initialization. 2562306a36Sopenharmony_ci * "encrypted" 2662306a36Sopenharmony_ci NVDIMM contents are encrypted. 2762306a36Sopenharmony_ci * "smart_notify" 2862306a36Sopenharmony_ci There is health event for the NVDIMM. 2962306a36Sopenharmony_ci * "scrubbed" 3062306a36Sopenharmony_ci Indicating that contents of the 3162306a36Sopenharmony_ci NVDIMM have been scrubbed. 3262306a36Sopenharmony_ci * "locked" 3362306a36Sopenharmony_ci Indicating that NVDIMM contents can't 3462306a36Sopenharmony_ci be modified until next power cycle. 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ciWhat: /sys/bus/nd/devices/nmemX/papr/perf_stats 3762306a36Sopenharmony_ciDate: May, 2020 3862306a36Sopenharmony_ciKernelVersion: v5.9 3962306a36Sopenharmony_ciContact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev, 4062306a36Sopenharmony_ciDescription: 4162306a36Sopenharmony_ci (RO) Report various performance stats related to papr-scm NVDIMM 4262306a36Sopenharmony_ci device. This attribute is only available for NVDIMM devices 4362306a36Sopenharmony_ci that support reporting NVDIMM performance stats. Each stat is 4462306a36Sopenharmony_ci reported on a new line with each line composed of a 4562306a36Sopenharmony_ci stat-identifier followed by it value. Below are currently known 4662306a36Sopenharmony_ci dimm performance stats which are reported: 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci * "CtlResCt" : Controller Reset Count 4962306a36Sopenharmony_ci * "CtlResTm" : Controller Reset Elapsed Time 5062306a36Sopenharmony_ci * "PonSecs " : Power-on Seconds 5162306a36Sopenharmony_ci * "MemLife " : Life Remaining 5262306a36Sopenharmony_ci * "CritRscU" : Critical Resource Utilization 5362306a36Sopenharmony_ci * "HostLCnt" : Host Load Count 5462306a36Sopenharmony_ci * "HostSCnt" : Host Store Count 5562306a36Sopenharmony_ci * "HostSDur" : Host Store Duration 5662306a36Sopenharmony_ci * "HostLDur" : Host Load Duration 5762306a36Sopenharmony_ci * "MedRCnt " : Media Read Count 5862306a36Sopenharmony_ci * "MedWCnt " : Media Write Count 5962306a36Sopenharmony_ci * "MedRDur " : Media Read Duration 6062306a36Sopenharmony_ci * "MedWDur " : Media Write Duration 6162306a36Sopenharmony_ci * "CchRHCnt" : Cache Read Hit Count 6262306a36Sopenharmony_ci * "CchWHCnt" : Cache Write Hit Count 6362306a36Sopenharmony_ci * "FastWCnt" : Fast Write Count 6462306a36Sopenharmony_ci 6562306a36Sopenharmony_ciWhat: /sys/bus/nd/devices/nmemX/papr/health_bitmap_inject 6662306a36Sopenharmony_ciDate: Jan, 2022 6762306a36Sopenharmony_ciKernelVersion: v5.17 6862306a36Sopenharmony_ciContact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev, 6962306a36Sopenharmony_ciDescription: 7062306a36Sopenharmony_ci (RO) Reports the health bitmap inject bitmap that is applied to 7162306a36Sopenharmony_ci bitmap received from PowerVM via the H_SCM_HEALTH. This is used 7262306a36Sopenharmony_ci to forcibly set specific bits returned from Hcall. These is then 7362306a36Sopenharmony_ci used to simulate various health or shutdown states for an nvdimm 7462306a36Sopenharmony_ci and are set by user-space tools like ndctl by issuing a PAPR DSM. 7562306a36Sopenharmony_ci 76