sysfs-bus-papr-pmem 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. What: /sys/bus/nd/devices/nmemX/papr/flags
  2. Date: Apr, 2020
  3. KernelVersion: v5.8
  4. Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org,
  5. Description:
  6. (RO) Report flags indicating various states of a
  7. papr-pmem NVDIMM device. Each flag maps to a one or
  8. more bits set in the dimm-health-bitmap retrieved in
  9. response to H_SCM_HEALTH hcall. The details of the bit
  10. flags returned in response to this hcall is available
  11. at 'Documentation/powerpc/papr_hcalls.rst' . Below are
  12. the flags reported in this sysfs file:
  13. * "not_armed"
  14. Indicates that NVDIMM contents will not
  15. survive a power cycle.
  16. * "flush_fail"
  17. Indicates that NVDIMM contents
  18. couldn't be flushed during last
  19. shut-down event.
  20. * "restore_fail"
  21. Indicates that NVDIMM contents
  22. couldn't be restored during NVDIMM
  23. initialization.
  24. * "encrypted"
  25. NVDIMM contents are encrypted.
  26. * "smart_notify"
  27. There is health event for the NVDIMM.
  28. * "scrubbed"
  29. Indicating that contents of the
  30. NVDIMM have been scrubbed.
  31. * "locked"
  32. Indicating that NVDIMM contents cant
  33. be modified until next power cycle.
  34. What: /sys/bus/nd/devices/nmemX/papr/perf_stats
  35. Date: May, 2020
  36. KernelVersion: v5.9
  37. Contact: linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, linux-nvdimm@lists.01.org,
  38. Description:
  39. (RO) Report various performance stats related to papr-scm NVDIMM
  40. device. This attribute is only available for NVDIMM devices
  41. that support reporting NVDIMM performance stats. Each stat is
  42. reported on a new line with each line composed of a
  43. stat-identifier followed by it value. Below are currently known
  44. dimm performance stats which are reported:
  45. * "CtlResCt" : Controller Reset Count
  46. * "CtlResTm" : Controller Reset Elapsed Time
  47. * "PonSecs " : Power-on Seconds
  48. * "MemLife " : Life Remaining
  49. * "CritRscU" : Critical Resource Utilization
  50. * "HostLCnt" : Host Load Count
  51. * "HostSCnt" : Host Store Count
  52. * "HostSDur" : Host Store Duration
  53. * "HostLDur" : Host Load Duration
  54. * "MedRCnt " : Media Read Count
  55. * "MedWCnt " : Media Write Count
  56. * "MedRDur " : Media Read Duration
  57. * "MedWDur " : Media Write Duration
  58. * "CchRHCnt" : Cache Read Hit Count
  59. * "CchWHCnt" : Cache Write Hit Count
  60. * "FastWCnt" : Fast Write Count