1*b791abf3SVaibhav JainWhat: /sys/bus/nd/devices/nmemX/papr/flags 2*b791abf3SVaibhav JainDate: Apr, 2020 3*b791abf3SVaibhav JainKernelVersion: v5.8 4*b791abf3SVaibhav JainContact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org, 5*b791abf3SVaibhav JainDescription: 6*b791abf3SVaibhav Jain (RO) Report flags indicating various states of a 7*b791abf3SVaibhav Jain papr-pmem NVDIMM device. Each flag maps to a one or 8*b791abf3SVaibhav Jain more bits set in the dimm-health-bitmap retrieved in 9*b791abf3SVaibhav Jain response to H_SCM_HEALTH hcall. The details of the bit 10*b791abf3SVaibhav Jain flags returned in response to this hcall is available 11*b791abf3SVaibhav Jain at 'Documentation/powerpc/papr_hcalls.rst' . Below are 12*b791abf3SVaibhav Jain the flags reported in this sysfs file: 13*b791abf3SVaibhav Jain 14*b791abf3SVaibhav Jain * "not_armed" : Indicates that NVDIMM contents will not 15*b791abf3SVaibhav Jain survive a power cycle. 16*b791abf3SVaibhav Jain * "flush_fail" : Indicates that NVDIMM contents 17*b791abf3SVaibhav Jain couldn't be flushed during last 18*b791abf3SVaibhav Jain shut-down event. 19*b791abf3SVaibhav Jain * "restore_fail": Indicates that NVDIMM contents 20*b791abf3SVaibhav Jain couldn't be restored during NVDIMM 21*b791abf3SVaibhav Jain initialization. 22*b791abf3SVaibhav Jain * "encrypted" : NVDIMM contents are encrypted. 23*b791abf3SVaibhav Jain * "smart_notify": There is health event for the NVDIMM. 24*b791abf3SVaibhav Jain * "scrubbed" : Indicating that contents of the 25*b791abf3SVaibhav Jain NVDIMM have been scrubbed. 26*b791abf3SVaibhav Jain * "locked" : Indicating that NVDIMM contents cant 27*b791abf3SVaibhav Jain be modified until next power cycle. 28