Skip to content

Commit 18da2c9

Browse files
committed
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 <[email protected]> Tested-by: Toshi Kani <[email protected]> Signed-off-by: Dan Williams <[email protected]>
1 parent 3d88002 commit 18da2c9

File tree

5 files changed

+25
-13
lines changed

5 files changed

+25
-13
lines changed

drivers/block/Kconfig

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -404,17 +404,6 @@ config BLK_DEV_RAM_DAX
404404
and will prevent RAM block device backing store memory from being
405405
allocated from highmem (only a problem for highmem systems).
406406

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-
418407
config CDROM_PKTCDVD
419408
tristate "Packet writing on CD/DVD media"
420409
depends on !UML

drivers/block/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ obj-$(CONFIG_PS3_VRAM) += ps3vram.o
1414
obj-$(CONFIG_ATARI_FLOPPY) += ataflop.o
1515
obj-$(CONFIG_AMIGA_Z2RAM) += z2ram.o
1616
obj-$(CONFIG_BLK_DEV_RAM) += brd.o
17-
obj-$(CONFIG_BLK_DEV_PMEM) += pmem.o
1817
obj-$(CONFIG_BLK_DEV_LOOP) += loop.o
1918
obj-$(CONFIG_BLK_CPQ_DA) += cpqarray.o
2019
obj-$(CONFIG_BLK_CPQ_CISS_DA) += cciss.o

drivers/nvdimm/Kconfig

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
config LIBNVDIMM
1+
menuconfig LIBNVDIMM
22
tristate "NVDIMM (Non-Volatile Memory Device) Support"
33
depends on PHYS_ADDR_T_64BIT
44
depends on BLK_DEV
@@ -13,3 +13,24 @@ config LIBNVDIMM
1313
CONFIG_DAX). A BLK namespace refers to an NVDIMM control
1414
region which exposes an mmio register set for windowed
1515
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

drivers/nvdimm/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
2+
obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
3+
4+
nd_pmem-y := pmem.o
25

36
libnvdimm-y := core.o
47
libnvdimm-y += bus.o
File renamed without changes.

0 commit comments

Comments
 (0)