diff options
author | Dan Williams <dan.j.williams@intel.com> | 2015-06-09 14:13:37 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-06-24 21:24:10 -0400 |
commit | 18da2c9ee41a036bf470dbad73c18a815725d36e (patch) | |
tree | c69bb8f44dcb1df4c7579184c3051e5b51729d87 | |
parent | 3d88002e4a7bd40f355550284c6cd140e6fe29dc (diff) |
libnvdimm, pmem: move pmem to drivers/nvdimm/
Prepare the pmem driver to consume PMEM namespaces emitted by regions of
an nvdimm_bus instance. No functional change.
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>
-rw-r--r-- | drivers/block/Kconfig | 11 | ||||
-rw-r--r-- | drivers/block/Makefile | 1 | ||||
-rw-r--r-- | drivers/nvdimm/Kconfig | 23 | ||||
-rw-r--r-- | drivers/nvdimm/Makefile | 3 | ||||
-rw-r--r-- | drivers/nvdimm/pmem.c (renamed from drivers/block/pmem.c) | 0 |
5 files changed, 25 insertions, 13 deletions
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig index eb1fed5bd516..1b8094d4d7af 100644 --- a/drivers/block/Kconfig +++ b/drivers/block/Kconfig | |||
@@ -404,17 +404,6 @@ config BLK_DEV_RAM_DAX | |||
404 | and will prevent RAM block device backing store memory from being | 404 | and will prevent RAM block device backing store memory from being |
405 | allocated from highmem (only a problem for highmem systems). | 405 | allocated from highmem (only a problem for highmem systems). |
406 | 406 | ||
407 | config BLK_DEV_PMEM | ||
408 | tristate "Persistent memory block device support" | ||
409 | help | ||
410 | Saying Y here will allow you to use a contiguous range of reserved | ||
411 | memory as one or more persistent block devices. | ||
412 | |||
413 | To compile this driver as a module, choose M here: the module will be | ||
414 | called 'pmem'. | ||
415 | |||
416 | If unsure, say N. | ||
417 | |||
418 | config CDROM_PKTCDVD | 407 | config CDROM_PKTCDVD |
419 | tristate "Packet writing on CD/DVD media" | 408 | tristate "Packet writing on CD/DVD media" |
420 | depends on !UML | 409 | depends on !UML |
diff --git a/drivers/block/Makefile b/drivers/block/Makefile index 9cc6c18a1c7e..02b688d1438d 100644 --- a/drivers/block/Makefile +++ b/drivers/block/Makefile | |||
@@ -14,7 +14,6 @@ obj-$(CONFIG_PS3_VRAM) += ps3vram.o | |||
14 | obj-$(CONFIG_ATARI_FLOPPY) += ataflop.o | 14 | obj-$(CONFIG_ATARI_FLOPPY) += ataflop.o |
15 | obj-$(CONFIG_AMIGA_Z2RAM) += z2ram.o | 15 | obj-$(CONFIG_AMIGA_Z2RAM) += z2ram.o |
16 | obj-$(CONFIG_BLK_DEV_RAM) += brd.o | 16 | obj-$(CONFIG_BLK_DEV_RAM) += brd.o |
17 | obj-$(CONFIG_BLK_DEV_PMEM) += pmem.o | ||
18 | obj-$(CONFIG_BLK_DEV_LOOP) += loop.o | 17 | obj-$(CONFIG_BLK_DEV_LOOP) += loop.o |
19 | obj-$(CONFIG_BLK_CPQ_DA) += cpqarray.o | 18 | obj-$(CONFIG_BLK_CPQ_DA) += cpqarray.o |
20 | obj-$(CONFIG_BLK_CPQ_CISS_DA) += cciss.o | 19 | obj-$(CONFIG_BLK_CPQ_CISS_DA) += cciss.o |
diff --git a/drivers/nvdimm/Kconfig b/drivers/nvdimm/Kconfig index 92933551f846..07a29113b870 100644 --- a/drivers/nvdimm/Kconfig +++ b/drivers/nvdimm/Kconfig | |||
@@ -1,4 +1,4 @@ | |||
1 | config LIBNVDIMM | 1 | menuconfig LIBNVDIMM |
2 | tristate "NVDIMM (Non-Volatile Memory Device) Support" | 2 | tristate "NVDIMM (Non-Volatile Memory Device) Support" |
3 | depends on PHYS_ADDR_T_64BIT | 3 | depends on PHYS_ADDR_T_64BIT |
4 | depends on BLK_DEV | 4 | depends on BLK_DEV |
@@ -13,3 +13,24 @@ config LIBNVDIMM | |||
13 | CONFIG_DAX). A BLK namespace refers to an NVDIMM control | 13 | CONFIG_DAX). A BLK namespace refers to an NVDIMM control |
14 | region which exposes an mmio register set for windowed | 14 | region which exposes an mmio register set for windowed |
15 | access mode to non-volatile memory. | 15 | access mode to non-volatile memory. |
16 | |||
17 | if LIBNVDIMM | ||
18 | |||
19 | config BLK_DEV_PMEM | ||
20 | tristate "PMEM: Persistent memory block device support" | ||
21 | default LIBNVDIMM | ||
22 | depends on HAS_IOMEM | ||
23 | help | ||
24 | Memory ranges for PMEM are described by either an NFIT | ||
25 | (NVDIMM Firmware Interface Table, see CONFIG_NFIT_ACPI), a | ||
26 | non-standard OEM-specific E820 memory type (type-12, see | ||
27 | CONFIG_X86_PMEM_LEGACY), or it is manually specified by the | ||
28 | 'memmap=nn[KMG]!ss[KMG]' kernel command line (see | ||
29 | Documentation/kernel-parameters.txt). This driver converts | ||
30 | these persistent memory ranges into block devices that are | ||
31 | capable of DAX (direct-access) file system mappings. See | ||
32 | Documentation/nvdimm/nvdimm.txt for more details. | ||
33 | |||
34 | Say Y if you want to use an NVDIMM | ||
35 | |||
36 | endif | ||
diff --git a/drivers/nvdimm/Makefile b/drivers/nvdimm/Makefile index af5e2760ddbd..4d2a27f52faa 100644 --- a/drivers/nvdimm/Makefile +++ b/drivers/nvdimm/Makefile | |||
@@ -1,4 +1,7 @@ | |||
1 | obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o | 1 | obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o |
2 | obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o | ||
3 | |||
4 | nd_pmem-y := pmem.o | ||
2 | 5 | ||
3 | libnvdimm-y := core.o | 6 | libnvdimm-y := core.o |
4 | libnvdimm-y += bus.o | 7 | libnvdimm-y += bus.o |
diff --git a/drivers/block/pmem.c b/drivers/nvdimm/pmem.c index eabf4a8d0085..eabf4a8d0085 100644 --- a/drivers/block/pmem.c +++ b/drivers/nvdimm/pmem.c | |||