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>
This commit is contained in:

کامیت شده توسط
Dan Williams

والد
a0056afe21
کامیت
9ffd6350a1
@@ -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,
|
||||
|
مرجع در شماره جدید
Block a user