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
ac97
ali5451
asihpi
au88x0
aw2
ca0106
cs46xx
cs5535audio
ctxfi
echoaudio
emu10k1
hda
ice1712
korg1212
lola
lx6464es
mixart
nm256
oxygen
pcxhr
riptide
rme9652
trident
vx222
ymfpci
Kconfig -rw-r--r-- 25.3 KB
Makefile -rw-r--r-- 2.2 KB
ad1889.c -rw-r--r-- 25.9 KB
ad1889.h -rw-r--r-- 7.9 KB
ak4531_codec.c -rw-r--r-- 17.0 KB
als300.c -rw-r--r-- 21.9 KB
als4000.c -rw-r--r-- 30.9 KB
atiixp.c -rw-r--r-- 45.1 KB
atiixp_modem.c -rw-r--r-- 35.2 KB
azt3328.c -rw-r--r-- 82.3 KB
azt3328.h -rw-r--r-- 15.5 KB
bt87x.c -rw-r--r-- 29.6 KB
cmipci.c -rw-r--r-- 101.4 KB
cs4281.c -rw-r--r-- 63.8 KB
cs5530.c -rw-r--r-- 7.0 KB
ens1370.c -rw-r--r-- 78.4 KB
ens1371.c -rw-r--r-- 38 bytes
es1938.c -rw-r--r-- 55.2 KB
es1968.c -rw-r--r-- 78.7 KB
fm801.c -rw-r--r-- 41.4 KB
intel8x0.c -rw-r--r-- 91.9 KB
intel8x0m.c -rw-r--r-- 37.1 KB
maestro3.c -rw-r--r-- 81.7 KB
rme32.c -rw-r--r-- 57.6 KB
rme96.c -rw-r--r-- 71.0 KB
sis7019.c -rw-r--r-- 39.7 KB
sis7019.h -rw-r--r-- 13.3 KB
sonicvibes.c -rw-r--r-- 50.9 KB
via82xx.c -rw-r--r-- 77.0 KB
via82xx_modem.c -rw-r--r-- 34.0 KB

back to top