Revision fe9a552e715dfe5167d52deb74ea16335896bdaf authored by Dan Williams on 21 March 2018, 22:12:07 UTC, committed by Dan Williams on 21 March 2018, 22:12:07 UTC
The persistence domain is a point in the platform where once writes
reach that destination the platform claims it will make them persistent
relative to power loss. In the ACPI NFIT this is currently communicated
as 2 bits in the "NFIT - Platform Capabilities Structure". The bits
comprise a hierarchy, i.e. bit0 "CPU Cache Flush to NVDIMM Durability on
Power Loss Capable" implies bit1 "Memory Controller Flush to NVDIMM
Durability on Power Loss Capable".

Commit 96c3a239054a "libnvdimm: expose platform persistence attr..."
shows the persistence domain as flags, but it's really an enumerated
hierarchy.

Fix this newly introduced user ABI to show the closest available
persistence domain before userspace develops dependencies on seeing, or
needing to develop code to tolerate, the raw NFIT flags communicated
through the libnvdimm-generic region attribute.

Fixes: 96c3a239054a ("libnvdimm: expose platform persistence attr...")
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent 896196d
History
File Mode Size
oss
seq
Kconfig -rw-r--r-- 4.7 KB
Makefile -rw-r--r-- 1.5 KB
compress_offload.c -rw-r--r-- 29.7 KB
control.c -rw-r--r-- 51.1 KB
control_compat.c -rw-r--r-- 13.0 KB
ctljack.c -rw-r--r-- 2.2 KB
device.c -rw-r--r-- 6.3 KB
hrtimer.c -rw-r--r-- 4.3 KB
hwdep.c -rw-r--r-- 13.2 KB
hwdep_compat.c -rw-r--r-- 2.3 KB
info.c -rw-r--r-- 19.6 KB
info_oss.c -rw-r--r-- 3.5 KB
init.c -rw-r--r-- 26.6 KB
isadma.c -rw-r--r-- 3.0 KB
jack.c -rw-r--r-- 9.9 KB
memalloc.c -rw-r--r-- 7.5 KB
memory.c -rw-r--r-- 2.5 KB
misc.c -rw-r--r-- 4.1 KB
pcm.c -rw-r--r-- 34.9 KB
pcm_compat.c -rw-r--r-- 21.6 KB
pcm_dmaengine.c -rw-r--r-- 11.6 KB
pcm_drm_eld.c -rw-r--r-- 2.4 KB
pcm_iec958.c -rw-r--r-- 3.2 KB
pcm_lib.c -rw-r--r-- 67.5 KB
pcm_local.h -rw-r--r-- 2.0 KB
pcm_memory.c -rw-r--r-- 13.5 KB
pcm_misc.c -rw-r--r-- 16.1 KB
pcm_native.c -rw-r--r-- 102.8 KB
pcm_param_trace.h -rw-r--r-- 4.5 KB
pcm_timer.c -rw-r--r-- 3.7 KB
pcm_trace.h -rw-r--r-- 5.0 KB
rawmidi.c -rw-r--r-- 49.4 KB
rawmidi_compat.c -rw-r--r-- 4.8 KB
seq_device.c -rw-r--r-- 7.8 KB
sgbuf.c -rw-r--r-- 4.2 KB
sound.c -rw-r--r-- 10.5 KB
sound_oss.c -rw-r--r-- 7.1 KB
timer.c -rw-r--r-- 54.5 KB
timer_compat.c -rw-r--r-- 5.2 KB
vmaster.c -rw-r--r-- 13.5 KB

back to top