libnvdimm: support for legacy (non-aliasing) nvdimms
authorDan Williams <dan.j.williams@intel.com>
Sun, 31 May 2015 19:02:11 +0000 (15:02 -0400)
committerDan Williams <dan.j.williams@intel.com>
Thu, 25 Jun 2015 01:24:10 +0000 (21:24 -0400)
commit3d88002e4a7bd40f355550284c6cd140e6fe29dc
tree5934604ed6e21153ada873c7042c4037ef20ecdc
parent1f7df6f88b9245a7f2d0f8ecbc97dc88c8d0d8e1
libnvdimm: support for legacy (non-aliasing) nvdimms

The libnvdimm region driver is an intermediary driver that translates
non-volatile "region"s into "namespace" sub-devices that are surfaced by
persistent memory block-device drivers (PMEM and BLK).

ACPI 6 introduces the concept that a given nvdimm may simultaneously
offer multiple access modes to its media through direct PMEM load/store
access, or windowed BLK mode.  Existing nvdimms mostly implement a PMEM
interface, some offer a BLK-like mode, but never both as ACPI 6 defines.
If an nvdimm is single interfaced, then there is no need for dimm
metadata labels.  For these devices we can take the region boundaries
directly to create a child namespace device (nd_namespace_io).

Acked-by: Christoph Hellwig <hch@lst.de>
Tested-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
13 files changed:
drivers/acpi/nfit.c
drivers/nvdimm/Makefile
drivers/nvdimm/bus.c
drivers/nvdimm/core.c
drivers/nvdimm/dimm.c
drivers/nvdimm/namespace_devs.c [new file with mode: 0644]
drivers/nvdimm/nd-core.h
drivers/nvdimm/nd.h
drivers/nvdimm/region.c [new file with mode: 0644]
drivers/nvdimm/region_devs.c
include/linux/libnvdimm.h
include/linux/nd.h
include/uapi/linux/ndctl.h