nfit: skip region registration for incomplete control regions
authorDan Williams <dan.j.williams@intel.com>
Thu, 22 Mar 2018 04:22:34 +0000 (21:22 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 22 Mar 2018 04:39:27 +0000 (21:39 -0700)
commit0731de476a37c33485af82d64041c9d193208df8
tree994289334020ae59a90f9d62aef6202558a47ea3
parent9e694d9c18dde0fa57ec067043b581bd57c9fb65
nfit: skip region registration for incomplete control regions

Per the ACPI specification the only functional purpose for a DIMM
Control Region to be mapped into the system physical address space, from
an OSPM perspective, is to support block-apertures. However, there are
some BIOSen that publish DIMM Control Region SPA entries for pre-boot
environment consumption.  Undo the kernel policy of generating disabled
'ndblk' regions when this configuration is detected.

Cc: <stable@vger.kernel.org>
Fixes: 1f7df6f88b92 ("libnvdimm, nfit: regions (block-data-window...)")
Reviewed-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c