diff options
author | Vishal Verma <vishal.l.verma@intel.com> | 2016-10-01 01:19:29 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-10-01 02:00:10 +0200 |
commit | 9ffd6350a103cb9e73e3abb4573c900cfead2f9b (patch) | |
tree | 1550c93056b0a0a28cbad31c8a91e731be14ddc2 /drivers/acpi/nfit/nfit.h | |
parent | nvdimm: remove duplicate nd_mapping declaration (diff) | |
download | linux-9ffd6350a103cb9e73e3abb4573c900cfead2f9b.tar.xz linux-9ffd6350a103cb9e73e3abb4573c900cfead2f9b.zip |
nfit: don't start a full scrub by default for an MCE
Starting a full Address Range Scrub (ARS) on hitting a memory error
machine check exception may not always be desirable. Provide a way
through sysfs to toggle the behavior between just adding the address
(cache line) where the MCE happened to the poison list and doing a full
scrub. The former (selective insertion of the address) is done
unconditionally.
Cc: linux-acpi@vger.kernel.org
Cc: Linda Knippers <linda.knippers@hpe.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@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.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/nfit/nfit.h b/drivers/acpi/nfit/nfit.h index bb101170cd0b..14296f5267c8 100644 --- a/drivers/acpi/nfit/nfit.h +++ b/drivers/acpi/nfit/nfit.h @@ -161,6 +161,7 @@ struct acpi_nfit_desc { struct list_head list; struct kernfs_node *scrub_count_state; unsigned int scrub_count; + unsigned int scrub_mode; unsigned int cancel:1; unsigned long dimm_cmd_force_en; unsigned long bus_cmd_force_en; @@ -168,6 +169,11 @@ struct acpi_nfit_desc { void *iobuf, u64 len, int rw); }; +enum scrub_mode { + HW_ERROR_SCRUB_OFF, + HW_ERROR_SCRUB_ON, +}; + enum nd_blk_mmio_selector { BDW, DCR, |