aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/nfit.h
diff options
context:
space:
mode:
authorRoss Zwisler <ross.zwisler@linux.intel.com>2015-07-10 11:06:14 -0600
committerDan Williams <dan.j.williams@intel.com>2015-07-10 14:43:50 -0400
commitf0f2c072cf530d5b8890be5051cc8b36b0c54cce (patch)
tree3f57708f1babe641e193e06dbb433fd5bb8fea0e /drivers/acpi/nfit.h
parentnfit: update block I/O path to use PMEM API (diff)
downloadlinux-dev-f0f2c072cf530d5b8890be5051cc8b36b0c54cce.tar.xz
linux-dev-f0f2c072cf530d5b8890be5051cc8b36b0c54cce.zip
nfit: add support for NVDIMM "latch" flag
Add support in the NFIT BLK I/O path for the "latch" flag defined in the "Get Block NVDIMM Flags" _DSM function: http://pmem.io/documents/NVDIMM_DSM_Interface_Example.pdf This flag requires the driver to read back the command register after it is written in the block I/O path. This ensures that the hardware has fully processed the new command and moved the aperture appropriately. Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to '')
-rw-r--r--drivers/acpi/nfit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/acpi/nfit.h b/drivers/acpi/nfit.h
index 815cb561cdba..79b6d83875c1 100644
--- a/drivers/acpi/nfit.h
+++ b/drivers/acpi/nfit.h
@@ -40,6 +40,10 @@ enum nfit_uuids {
NFIT_UUID_MAX,
};
+enum {
+ ND_BLK_DCR_LATCH = 2,
+};
+
struct nfit_spa {
struct acpi_nfit_system_address *spa;
struct list_head list;
@@ -131,6 +135,7 @@ struct nfit_blk {
u64 stat_offset;
u64 cmd_offset;
void __iomem *nvdimm_flush;
+ u32 dimm_flags;
};
enum spa_map_type {