76 lines · plain
1What: /sys/bus/nd/devices/nmemX/papr/flags2Date: Apr, 20203KernelVersion: v5.84Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev,5Description:6 (RO) Report flags indicating various states of a7 papr-pmem NVDIMM device. Each flag maps to a one or8 more bits set in the dimm-health-bitmap retrieved in9 response to H_SCM_HEALTH hcall. The details of the bit10 flags returned in response to this hcall is available11 at 'Documentation/arch/powerpc/papr_hcalls.rst' . Below are12 the flags reported in this sysfs file:13 14 * "not_armed"15 Indicates that NVDIMM contents will not16 survive a power cycle.17 * "flush_fail"18 Indicates that NVDIMM contents19 couldn't be flushed during last20 shut-down event.21 * "restore_fail"22 Indicates that NVDIMM contents23 couldn't be restored during NVDIMM24 initialization.25 * "encrypted"26 NVDIMM contents are encrypted.27 * "smart_notify"28 There is health event for the NVDIMM.29 * "scrubbed"30 Indicating that contents of the31 NVDIMM have been scrubbed.32 * "locked"33 Indicating that NVDIMM contents can't34 be modified until next power cycle.35 36What: /sys/bus/nd/devices/nmemX/papr/perf_stats37Date: May, 202038KernelVersion: v5.939Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev,40Description:41 (RO) Report various performance stats related to papr-scm NVDIMM42 device. This attribute is only available for NVDIMM devices43 that support reporting NVDIMM performance stats. Each stat is44 reported on a new line with each line composed of a45 stat-identifier followed by it value. Below are currently known46 dimm performance stats which are reported:47 48 * "CtlResCt" : Controller Reset Count49 * "CtlResTm" : Controller Reset Elapsed Time50 * "PonSecs " : Power-on Seconds51 * "MemLife " : Life Remaining52 * "CritRscU" : Critical Resource Utilization53 * "HostLCnt" : Host Load Count54 * "HostSCnt" : Host Store Count55 * "HostSDur" : Host Store Duration56 * "HostLDur" : Host Load Duration57 * "MedRCnt " : Media Read Count58 * "MedWCnt " : Media Write Count59 * "MedRDur " : Media Read Duration60 * "MedWDur " : Media Write Duration61 * "CchRHCnt" : Cache Read Hit Count62 * "CchWHCnt" : Cache Write Hit Count63 * "FastWCnt" : Fast Write Count64 65What: /sys/bus/nd/devices/nmemX/papr/health_bitmap_inject66Date: Jan, 202267KernelVersion: v5.1768Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, nvdimm@lists.linux.dev,69Description:70 (RO) Reports the health bitmap inject bitmap that is applied to71 bitmap received from PowerVM via the H_SCM_HEALTH. This is used72 to forcibly set specific bits returned from Hcall. These is then73 used to simulate various health or shutdown states for an nvdimm74 and are set by user-space tools like ndctl by issuing a PAPR DSM.75 76