diff options
author | Vaibhav Jain <[email protected]> | 2021-03-29 17:01:03 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2021-04-27 23:47:02 +1000 |
commit | adb68c38d8d49a3d60805479c558649bb2182473 (patch) | |
tree | 6ed1ef90b9e0dcc8d7f337dddee6015039c573a6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ee1bc694fbaec1a662770703fc34a74abf418938 (diff) |
powerpc/papr_scm: Mark nvdimm as unarmed if needed during probe
In case an nvdimm is found to be unarmed during probe then set its
NDD_UNARMED flag before nvdimm_create(). This would enforce a
read-only access to the ndimm region. Presently even if an nvdimm is
unarmed its not marked as read-only on ppc64 guests.
The patch updates papr_scm_nvdimm_init() to force query of nvdimm
health via __drc_pmem_query_health() and if nvdimm is found to be
unarmed then set the nvdimm flag ND_UNARMED for nvdimm_create().
Signed-off-by: Vaibhav Jain <[email protected]>
Reviewed-by: Aneesh Kumar K.V <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions