[RESEND PATCH v2 0/2] powerpc/papr_scm: add support for reporting NVDIMM 'life_used_percentage' metric

2020-07-26 Thread Vaibhav Jain
Changes since v2[1]: * Rebased the patch series on latest ppc-next tree located [2] [1] https://lore.kernel.org/linux-nvdimm/20200701133510.4613-1-vaib...@linux.ibm.com/ [2] git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git --- This small patchset implements kernel side support

[PATCH v2 0/2] powerpc/papr_scm: add support for reporting NVDIMM 'life_used_percentage' metric

2020-07-01 Thread Vaibhav Jain
Changes since v1 [1]: * Minor restructuring of code as suggested by Ira * Renaming of few members of 'struct par_scm_perf_[stat|stats]' * Fixed a bug where a NULL pointer was potentially passed to virt_to_phys(). * Using Big endian type rather than cpu native type so receive data from PHYP in