aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorVaibhav Jain <[email protected]>2020-06-15 18:14:04 +0530
committerDan Williams <[email protected]>2020-06-15 18:22:43 -0700
commitb791abf3201d724ac372c2ba1fa6e90d192e1dbf (patch)
tree3a5fc69180e779bdbafc54bfcef37c1461b0fb0c /lib/debugobjects.c
parent97c02c723bcef11da2f46facdde7c34e72ec8a1f (diff)
powerpc/papr_scm: Fetch nvdimm health information from PHYP
Implement support for fetching nvdimm health information via H_SCM_HEALTH hcall as documented in Ref[1]. The hcall returns a pair of 64-bit bitmap, bitwise-and of which is then stored in 'struct papr_scm_priv' and subsequently partially exposed to user-space via newly introduced dimm specific attribute 'papr/flags'. Since the hcall is costly, the health information is cached and only re-queried, 60s after the previous successful hcall. The patch also adds a documentation text describing flags reported by the the new sysfs attribute 'papr/flags' is also introduced at Documentation/ABI/testing/sysfs-bus-papr-pmem. [1] commit 58b278f568f0 ("powerpc: Provide initial documentation for PAPR hcalls") Signed-off-by: Vaibhav Jain <[email protected]> Cc: "Aneesh Kumar K . V" <[email protected]> Cc: Dan Williams <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Ira Weiny <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions