summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/nfit
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2018-04-02 15:28:03 -0700
committerDan Williams <dan.j.williams@intel.com>2018-04-07 08:44:55 -0700
commitbca811a7fd5a5c1c0644926161c2843322ab74b3 (patch)
tree172da0b67f8f0d2d382437268d0306e8657e01a0 /drivers/acpi/nfit
parentbc6ba8085842164f2a8dc2e78e23a7167872abbe (diff)
downloadblackbird-obmc-linux-bca811a7fd5a5c1c0644926161c2843322ab74b3.tar.gz
blackbird-obmc-linux-bca811a7fd5a5c1c0644926161c2843322ab74b3.zip
nfit, address-range-scrub: add module option to skip initial ars
After attempting to quickly retrieve known errors the kernel proceeds to kick off a long running ARS. Add a module option to disable this behavior at initialization time, or at new region discovery time. Otherwise, ARS can be started manually regardless of the state of this setting. Co-developed-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/acpi/nfit')
-rw-r--r--drivers/acpi/nfit/core.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index 2532294bbd68..7f3c70fde9a8 100644
--- a/drivers/acpi/nfit/core.c
+++ b/drivers/acpi/nfit/core.c
@@ -49,6 +49,10 @@ module_param(default_dsm_family, int, S_IRUGO);
MODULE_PARM_DESC(default_dsm_family,
"Try this DSM type first when identifying NVDIMM family");
+static bool no_init_ars;
+module_param(no_init_ars, bool, 0644);
+MODULE_PARM_DESC(no_init_ars, "Skip ARS run at nfit init time");
+
LIST_HEAD(acpi_descs);
DEFINE_MUTEX(acpi_desc_lock);
@@ -2816,6 +2820,9 @@ static int ars_register(struct acpi_nfit_desc *acpi_desc, struct nfit_spa *nfit_
{
int rc = *query_rc;
+ if (no_init_ars)
+ return acpi_nfit_register_region(acpi_desc, nfit_spa);
+
set_bit(ARS_REQ, &nfit_spa->ars_state);
set_bit(ARS_SHORT, &nfit_spa->ars_state);
OpenPOWER on IntegriCloud