]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm: Update persistence domain value for of_pmem and papr_scm device
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 24 Mar 2020 03:48:21 +0000 (09:18 +0530)
committerDan Williams <dan.j.williams@intel.com>
Tue, 31 Mar 2020 21:42:28 +0000 (14:42 -0700)
commit0c57e3031892bc5ee4d483ad19c755bf93caa4a7
treef75dab209173b4b91cb81b0410df8d28f28d6d8a
parent6d05c32cb8469da4750d560471b94c7c5e61d4be
libnvdimm: Update persistence domain value for of_pmem and papr_scm device

Currently, kernel shows the below values
"persistence_domain":"cpu_cache"
"persistence_domain":"memory_controller"
"persistence_domain":"unknown"

"cpu_cache" indicates no extra instructions is needed to ensure the persistence
of data in the pmem media on power failure.

"memory_controller" indicates cpu cache flush instructions are required to flush
the data. Platform provides mechanisms to automatically flush outstanding
write data from memory controler to pmem on system power loss.

Based on the above use memory_controller for non volatile regions on ppc64.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Link: https://lore.kernel.org/r/20200324034821.60869-1-aneesh.kumar@linux.ibm.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
arch/powerpc/platforms/pseries/papr_scm.c
drivers/nvdimm/of_pmem.c