blob: 59e750183b7f4f1b015290ddfdaf132731d7a412 [file] [log] [blame]
Dan Williams18da2c92015-06-09 14:13:37 -04001menuconfig LIBNVDIMM
Dan Williamsb94d5232015-05-19 22:54:31 -04002 tristate "NVDIMM (Non-Volatile Memory Device) Support"
3 depends on PHYS_ADDR_T_64BIT
Dan Williams29b9aa02016-06-06 17:42:38 -07004 depends on HAS_IOMEM
Dan Williamsb94d5232015-05-19 22:54:31 -04005 depends on BLK_DEV
6 help
7 Generic support for non-volatile memory devices including
8 ACPI-6-NFIT defined resources. On platforms that define an
9 NFIT, or otherwise can discover NVDIMM resources, a libnvdimm
10 bus is registered to advertise PMEM (persistent memory)
11 namespaces (/dev/pmemX) and BLK (sliding mmio window(s))
Vishal Verma5212e112015-06-25 04:20:32 -040012 namespaces (/dev/ndblkX.Y). A PMEM namespace refers to a
13 memory resource that may span multiple DIMMs and support DAX
14 (see CONFIG_DAX). A BLK namespace refers to an NVDIMM control
15 region which exposes an mmio register set for windowed access
16 mode to non-volatile memory.
Dan Williams18da2c92015-06-09 14:13:37 -040017
18if LIBNVDIMM
19
20config BLK_DEV_PMEM
21 tristate "PMEM: Persistent memory block device support"
22 default LIBNVDIMM
Vishal Verma5212e112015-06-25 04:20:32 -040023 select ND_BTT if BTT
Dan Williamse1455742015-07-30 17:57:47 -040024 select ND_PFN if NVDIMM_PFN
Dan Williams18da2c92015-06-09 14:13:37 -040025 help
26 Memory ranges for PMEM are described by either an NFIT
27 (NVDIMM Firmware Interface Table, see CONFIG_NFIT_ACPI), a
28 non-standard OEM-specific E820 memory type (type-12, see
29 CONFIG_X86_PMEM_LEGACY), or it is manually specified by the
30 'memmap=nn[KMG]!ss[KMG]' kernel command line (see
Mauro Carvalho Chehab8c27ceff32016-10-18 10:12:27 -020031 Documentation/admin-guide/kernel-parameters.rst). This driver converts
Dan Williams18da2c92015-06-09 14:13:37 -040032 these persistent memory ranges into block devices that are
33 capable of DAX (direct-access) file system mappings. See
34 Documentation/nvdimm/nvdimm.txt for more details.
35
36 Say Y if you want to use an NVDIMM
37
Ross Zwisler047fc8a2015-06-25 04:21:02 -040038config ND_BLK
39 tristate "BLK: Block data window (aperture) device support"
40 default LIBNVDIMM
41 select ND_BTT if BTT
42 help
43 Support NVDIMMs, or other devices, that implement a BLK-mode
44 access capability. BLK-mode access uses memory-mapped-i/o
45 apertures to access persistent media.
46
47 Say Y if your platform firmware emits an ACPI.NFIT table
48 (CONFIG_ACPI_NFIT), or otherwise exposes BLK-mode
49 capabilities.
50
Dan Williamse1455742015-07-30 17:57:47 -040051config ND_CLAIM
52 bool
53
Vishal Verma5212e112015-06-25 04:20:32 -040054config ND_BTT
55 tristate
56
Dan Williams8c2f7e82015-06-25 04:20:04 -040057config BTT
Vishal Verma5212e112015-06-25 04:20:32 -040058 bool "BTT: Block Translation Table (atomic sector updates)"
59 default y if LIBNVDIMM
Dan Williamse1455742015-07-30 17:57:47 -040060 select ND_CLAIM
Vishal Verma5212e112015-06-25 04:20:32 -040061 help
62 The Block Translation Table (BTT) provides atomic sector
63 update semantics for persistent memory devices, so that
64 applications that rely on sector writes not being torn (a
65 guarantee that typical disks provide) can continue to do so.
66 The BTT manifests itself as an alternate personality for an
67 NVDIMM namespace, i.e. a namespace can be in raw mode (pmemX,
68 ndblkX.Y, etc...), or 'sectored' mode, (pmemXs, ndblkX.Ys,
69 etc...).
70
71 Select Y if unsure
Dan Williams8c2f7e82015-06-25 04:20:04 -040072
Dan Williamse1455742015-07-30 17:57:47 -040073config ND_PFN
74 tristate
75
76config NVDIMM_PFN
77 bool "PFN: Map persistent (device) memory"
78 default LIBNVDIMM
Dan Williams32ab0a3f2015-08-01 02:16:37 -040079 depends on ZONE_DEVICE
Dan Williamse1455742015-07-30 17:57:47 -040080 select ND_CLAIM
81 help
82 Map persistent memory, i.e. advertise it to the memory
83 management sub-system. By default persistent memory does
84 not support direct I/O, RDMA, or any other usage that
85 requires a 'struct page' to mediate an I/O request. This
86 driver allocates and initializes the infrastructure needed
87 to support those use cases.
88
89 Select Y if unsure
90
Dan Williamscd034122016-03-11 10:15:36 -080091config NVDIMM_DAX
Arnd Bergmann867dfe32016-10-25 17:52:04 +020092 bool "NVDIMM DAX: Raw access to persistent memory"
Dan Williamscd034122016-03-11 10:15:36 -080093 default LIBNVDIMM
94 depends on NVDIMM_PFN
95 help
96 Support raw device dax access to a persistent memory
97 namespace. For environments that want to hard partition
98 peristent memory, this capability provides a mechanism to
99 sub-divide a namespace into character devices that can only be
100 accessed via DAX (mmap(2)).
101
102 Select Y if unsure
103
Dan Williams18da2c92015-06-09 14:13:37 -0400104endif