1 # SPDX-License-Identifier: GPL-2.0-only
3 tristate "NVDIMM (Non-Volatile Memory Device) Support"
4 depends on PHYS_ADDR_T_64BIT
8 Generic support for non-volatile memory devices including
9 ACPI-6-NFIT defined resources. On platforms that define an
10 NFIT, or otherwise can discover NVDIMM resources, a libnvdimm
11 bus is registered to advertise PMEM (persistent memory)
12 namespaces (/dev/pmemX) and BLK (sliding mmio window(s))
13 namespaces (/dev/ndblkX.Y). A PMEM namespace refers to a
14 memory resource that may span multiple DIMMs and support DAX
15 (see CONFIG_DAX). A BLK namespace refers to an NVDIMM control
16 region which exposes an mmio register set for windowed access
17 mode to non-volatile memory.
22 tristate "PMEM: Persistent memory block device support"
26 select ND_PFN if NVDIMM_PFN
28 Memory ranges for PMEM are described by either an NFIT
29 (NVDIMM Firmware Interface Table, see CONFIG_NFIT_ACPI), a
30 non-standard OEM-specific E820 memory type (type-12, see
31 CONFIG_X86_PMEM_LEGACY), or it is manually specified by the
32 'memmap=nn[KMG]!ss[KMG]' kernel command line (see
33 Documentation/admin-guide/kernel-parameters.rst). This driver converts
34 these persistent memory ranges into block devices that are
35 capable of DAX (direct-access) file system mappings. See
36 Documentation/nvdimm/nvdimm.txt for more details.
38 Say Y if you want to use an NVDIMM
41 tristate "BLK: Block data window (aperture) device support"
45 Support NVDIMMs, or other devices, that implement a BLK-mode
46 access capability. BLK-mode access uses memory-mapped-i/o
47 apertures to access persistent media.
49 Say Y if your platform firmware emits an ACPI.NFIT table
50 (CONFIG_ACPI_NFIT), or otherwise exposes BLK-mode
60 bool "BTT: Block Translation Table (atomic sector updates)"
61 default y if LIBNVDIMM
64 The Block Translation Table (BTT) provides atomic sector
65 update semantics for persistent memory devices, so that
66 applications that rely on sector writes not being torn (a
67 guarantee that typical disks provide) can continue to do so.
68 The BTT manifests itself as an alternate personality for an
69 NVDIMM namespace, i.e. a namespace can be in raw mode (pmemX,
70 ndblkX.Y, etc...), or 'sectored' mode, (pmemXs, ndblkX.Ys,
79 bool "PFN: Map persistent (device) memory"
81 depends on ZONE_DEVICE
84 Map persistent memory, i.e. advertise it to the memory
85 management sub-system. By default persistent memory does
86 not support direct I/O, RDMA, or any other usage that
87 requires a 'struct page' to mediate an I/O request. This
88 driver allocates and initializes the infrastructure needed
89 to support those use cases.
94 bool "NVDIMM DAX: Raw access to persistent memory"
98 Support raw device dax access to a persistent memory
99 namespace. For environments that want to hard partition
100 persistent memory, this capability provides a mechanism to
101 sub-divide a namespace into character devices that can only be
102 accessed via DAX (mmap(2)).
107 tristate "Device-tree support for persistent memory regions"
111 Allows regions of persistent memory to be described in the
118 depends on ENCRYPTED_KEYS
119 depends on (LIBNVDIMM=ENCRYPTED_KEYS) || LIBNVDIMM=m