[lkml]   [2020]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v8 3/5] powerpc/papr_scm: Fetch nvdimm health information from PHYP
Vaibhav Jain <> writes:

> 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-scm.
> [1] commit 58b278f568f0 ("powerpc: Provide initial documentation for
> PAPR hcalls")

Reviewed-by: Aneesh Kumar K.V <>

> Cc: "Aneesh Kumar K . V" <>
> Cc: Dan Williams <>
> Cc: Michael Ellerman <>
> Cc: Ira Weiny <>
> Signed-off-by: Vaibhav Jain <>

 \ /
  Last update: 2020-05-27 11:56    [W:0.087 / U:16.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site