]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 15:49:06 +0000 (11:49 -0400)
commitfbfc988460a25f01b3f4c70ef5b3aaa696f4f0c3
tree69af555279607513c17700830e1094cd138c943a
parent8dae45fc66094d842a0f65e308ea31bffb85240e
nfit: skip region registration for incomplete control regions

BugLink: http://bugs.launchpad.net/bugs/1773233
commit 0731de476a37c33485af82d64041c9d193208df8 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/acpi/nfit/core.c