]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libnvdimm, nfit, nd_blk: driver for BLK-mode access persistent memory
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Thu, 25 Jun 2015 08:21:02 +0000 (04:21 -0400)
committerDan Duval <dan.duval@oracle.com>
Tue, 11 Oct 2016 18:38:48 +0000 (14:38 -0400)
commit800f6c2e2b826327fd8a9e3917b936bc7a60be4a
tree4a73bd9d6ac52551a326633b0071cb30de1df8de
parent2869409dcdd7b43ec74b060f8a99a2a72cb709be
libnvdimm, nfit, nd_blk: driver for BLK-mode access persistent memory

Orabug: 22913653

The libnvdimm implementation handles allocating dimm address space (DPA)
between PMEM and BLK mode interfaces.  After DPA has been allocated from
a BLK-region to a BLK-namespace the nd_blk driver attaches to handle I/O
as a struct bio based block device. Unlike PMEM, BLK is required to
handle platform specific details like mmio register formats and memory
controller interleave.  For this reason the libnvdimm generic nd_blk
driver calls back into the bus provider to carry out the I/O.

This initial implementation handles the BLK interface defined by the
ACPI 6 NFIT [1] and the NVDIMM DSM Interface Example [2] composed from
DCR (dimm control region), BDW (block data window), IDT (interleave
descriptor) NFIT structures and the hardware register format.
[1]: http://www.uefi.org/sites/default/files/resources/ACPI_6.0.pdf
[2]: http://pmem.io/documents/NVDIMM_DSM_Interface_Example.pdf

Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Boaz Harrosh <boaz@plexistor.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jens Axboe <axboe@fb.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 047fc8a1f9a6330eacc80374dff087e20dc2304b)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
12 files changed:
drivers/acpi/nfit.c
drivers/acpi/nfit.h
drivers/nvdimm/Kconfig
drivers/nvdimm/Makefile
drivers/nvdimm/blk.c [new file with mode: 0644]
drivers/nvdimm/dimm_devs.c
drivers/nvdimm/namespace_devs.c
drivers/nvdimm/nd-core.h
drivers/nvdimm/nd.h
drivers/nvdimm/region.c
drivers/nvdimm/region_devs.c
include/linux/libnvdimm.h