]> git.ipfire.org Git - thirdparty/linux.git/commit
libnvdimm/dimm: Add a no-BLK quirk based on NVDIMM family
authorDan Williams <dan.j.williams@intel.com>
Sun, 3 Feb 2019 00:35:26 +0000 (16:35 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Feb 2019 00:35:26 +0000 (16:35 -0800)
commitd5d30d5a5c60628de5e77e3f292a8f9012d51350
treee026c86f918fee7ca9c7c4f1bee6a54dbe21c9ef
parent6ee977dec7463eec21a06f5ae7d225e83c25fa05
libnvdimm/dimm: Add a no-BLK quirk based on NVDIMM family

As Dexuan reports the NVDIMM_FAMILY_HYPERV platform is incompatible with
the existing Linux namespace implementation because it uses
NSLABEL_FLAG_LOCAL for x1-width PMEM interleave sets. Quirk it as an
platform / DIMM that does not provide BLK-aperture access. Allow the
libnvdimm core to assume no potential for aliasing. In case other
implementations make the same mistake, provide a "noblk" module
parameter to force-enable the quirk.

Link: https://lkml.kernel.org/r/PU1P153MB0169977604493B82B662A01CBF920@PU1P153MB0169.APCP153.PROD.OUTLOOK.COM
Reported-by: Dexuan Cui <decui@microsoft.com>
Tested-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit/core.c
drivers/nvdimm/dimm_devs.c
drivers/nvdimm/label.c
drivers/nvdimm/namespace_devs.c
drivers/nvdimm/region_devs.c
include/linux/libnvdimm.h