diff options
author | Dan Williams <[email protected]> | 2017-06-26 21:28:41 -0700 |
---|---|---|
committer | Dan Williams <[email protected]> | 2017-06-29 09:29:50 -0700 |
commit | 6e0c90d691cd5d90569f5918ab03eb76c81f9c6e (patch) | |
tree | 58a98b00690d31fc0b7552cca10686661acaf51e /include/linux/fpga/fpga-mgr.h | |
parent | 9a60c3ef577beb0376704808949f2c1f8fb0672c (diff) |
libnvdimm, pmem, dax: export a cache control attribute
The dax_flush() operation can be turned into a nop on platforms where
firmware arranges for cpu caches to be flushed on a power-fail event.
The ACPI 6.2 specification defines a mechanism for the platform to
indicate this capability so the kernel can select the proper default.
However, for other platforms, the administrator must toggle this setting
manually.
Given this flush setting is a dax-specific mechanism we advertise it
through a 'dax' attribute group hanging off a host device. For example,
a 'pmem0' block-device gets a 'dax' sysfs-subdirectory with a
'write_cache' attribute to control response to dax cache flush requests.
This is similar to the 'queue/write_cache' attribute that appears under
block devices.
Cc: Jan Kara <[email protected]>
Cc: Jeff Moyer <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Ross Zwisler <[email protected]>
Suggested-by: Christoph Hellwig <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions