1b791abf3SVaibhav JainWhat:		/sys/bus/nd/devices/nmemX/papr/flags
2b791abf3SVaibhav JainDate:		Apr, 2020
3b791abf3SVaibhav JainKernelVersion:	v5.8
4b791abf3SVaibhav JainContact:	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org,
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
392d02bf83SVaibhav JainContact:	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org,
402d02bf83SVaibhav JainDescription:
412d02bf83SVaibhav Jain		(RO) Report various performance stats related to papr-scm NVDIMM
422d02bf83SVaibhav Jain		device.  Each stat is reported on a new line with each line
432d02bf83SVaibhav Jain		composed of a stat-identifier followed by it value. Below are
442d02bf83SVaibhav Jain		currently known dimm performance stats which are reported:
452d02bf83SVaibhav Jain
462d02bf83SVaibhav Jain		* "CtlResCt" : Controller Reset Count
472d02bf83SVaibhav Jain		* "CtlResTm" : Controller Reset Elapsed Time
482d02bf83SVaibhav Jain		* "PonSecs " : Power-on Seconds
492d02bf83SVaibhav Jain		* "MemLife " : Life Remaining
502d02bf83SVaibhav Jain		* "CritRscU" : Critical Resource Utilization
512d02bf83SVaibhav Jain		* "HostLCnt" : Host Load Count
522d02bf83SVaibhav Jain		* "HostSCnt" : Host Store Count
532d02bf83SVaibhav Jain		* "HostSDur" : Host Store Duration
542d02bf83SVaibhav Jain		* "HostLDur" : Host Load Duration
552d02bf83SVaibhav Jain		* "MedRCnt " : Media Read Count
562d02bf83SVaibhav Jain		* "MedWCnt " : Media Write Count
572d02bf83SVaibhav Jain		* "MedRDur " : Media Read Duration
582d02bf83SVaibhav Jain		* "MedWDur " : Media Write Duration
592d02bf83SVaibhav Jain		* "CchRHCnt" : Cache Read Hit Count
602d02bf83SVaibhav Jain		* "CchWHCnt" : Cache Write Hit Count
612d02bf83SVaibhav Jain		* "FastWCnt" : Fast Write Count
62