]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libnvdimm, pmem: add libnvdimm support to the pmem driver
authorDan Williams <dan.j.williams@intel.com>
Tue, 9 Jun 2015 19:33:45 +0000 (15:33 -0400)
committerDan Duval <dan.duval@oracle.com>
Tue, 11 Oct 2016 18:36:16 +0000 (14:36 -0400)
commit5921c21dc14edcd29de3c9c94ec2ef51445a99f8
treee265f55a5e8777439edc268b950d5996402328ec
parent1886271bd1ae29386a55b1dfc87b5ca7235374e4
libnvdimm, pmem: add libnvdimm support to the pmem driver

Orabug: 22913653

nd_pmem attaches to persistent memory regions and namespaces emitted by
the libnvdimm subsystem, and, same as the original pmem driver, presents
the system-physical-address range as a block device.

The existing e820-type-12 to pmem setup is converted to an nvdimm_bus
that emits an nd_namespace_io device.

Note that the X in 'pmemX' is now derived from the parent region.  This
provides some stability to the pmem devices names from boot-to-boot.
The minor numbers are also more predictable by passing 0 to
alloc_disk().

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: Christoph Hellwig <hch@lst.de>
Tested-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 9f53f9fa4ad1d8bddd4d14359cdabc531aedffe8)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
arch/x86/Kconfig
arch/x86/kernel/pmem.c
drivers/nvdimm/pmem.c