summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/nfit/nfit.h
diff options
context:
space:
mode:
authorDan Williams2018-09-26 19:47:15 +0200
committerDan Williams2018-10-17 19:39:04 +0200
commit0ead11181fe0c9538b185e46a494df21dc7de23a (patch)
tree8c2caab7282e325da4e7c1b37faf27df5d540925 /drivers/acpi/nfit/nfit.h
parentacpi, nfit: Introduce nfit_mem flags (diff)
downloadkernel-qcow2-linux-0ead11181fe0c9538b185e46a494df21dc7de23a.tar.gz
kernel-qcow2-linux-0ead11181fe0c9538b185e46a494df21dc7de23a.tar.xz
kernel-qcow2-linux-0ead11181fe0c9538b185e46a494df21dc7de23a.zip
acpi, nfit: Collect shutdown status
Some NVDIMMs, in addition to providing an indication of whether the previous shutdown was clean, also provide a running count of lifetime dirty-shutdown events for the device. In anticipation of this functionality appearing on more devices arrange for the nfit driver to retrieve / cache this data at DIMM discovery time, and export it via sysfs. Reviewed-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/acpi/nfit/nfit.h')
-rw-r--r--drivers/acpi/nfit/nfit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/nfit/nfit.h b/drivers/acpi/nfit/nfit.h
index 111c3c437c80..af73aec547f2 100644
--- a/drivers/acpi/nfit/nfit.h
+++ b/drivers/acpi/nfit/nfit.h
@@ -162,6 +162,8 @@ struct nfit_memdev {
enum nfit_mem_flags {
NFIT_MEM_LSR,
NFIT_MEM_LSW,
+ NFIT_MEM_DIRTY,
+ NFIT_MEM_DIRTY_COUNT,
};
/* assembled tables for a given dimm/memory-device */
@@ -184,6 +186,7 @@ struct nfit_mem {
struct resource *flush_wpq;
unsigned long dsm_mask;
unsigned long flags;
+ u32 dirty_shutdown;
int family;
};