Dan Williams | 18da2c9 | 2015-06-09 14:13:37 -0400 | [diff] [blame] | 1 | menuconfig LIBNVDIMM |
Dan Williams | b94d523 | 2015-05-19 22:54:31 -0400 | [diff] [blame] | 2 | tristate "NVDIMM (Non-Volatile Memory Device) Support" |
| 3 | depends on PHYS_ADDR_T_64BIT |
Dan Williams | 29b9aa0 | 2016-06-06 17:42:38 -0700 | [diff] [blame] | 4 | depends on HAS_IOMEM |
Dan Williams | b94d523 | 2015-05-19 22:54:31 -0400 | [diff] [blame] | 5 | 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 Verma | 5212e11 | 2015-06-25 04:20:32 -0400 | [diff] [blame] | 12 | 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 Williams | 18da2c9 | 2015-06-09 14:13:37 -0400 | [diff] [blame] | 17 | |
| 18 | if LIBNVDIMM |
| 19 | |
| 20 | config BLK_DEV_PMEM |
| 21 | tristate "PMEM: Persistent memory block device support" |
| 22 | default LIBNVDIMM |
Dan Williams | c1d6e82 | 2017-01-24 23:02:09 -0800 | [diff] [blame] | 23 | select DAX |
Vishal Verma | 5212e11 | 2015-06-25 04:20:32 -0400 | [diff] [blame] | 24 | select ND_BTT if BTT |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 25 | select ND_PFN if NVDIMM_PFN |
Dan Williams | 18da2c9 | 2015-06-09 14:13:37 -0400 | [diff] [blame] | 26 | help |
| 27 | Memory ranges for PMEM are described by either an NFIT |
| 28 | (NVDIMM Firmware Interface Table, see CONFIG_NFIT_ACPI), a |
| 29 | non-standard OEM-specific E820 memory type (type-12, see |
| 30 | CONFIG_X86_PMEM_LEGACY), or it is manually specified by the |
| 31 | 'memmap=nn[KMG]!ss[KMG]' kernel command line (see |
Mauro Carvalho Chehab | 8c27ceff3 | 2016-10-18 10:12:27 -0200 | [diff] [blame] | 32 | Documentation/admin-guide/kernel-parameters.rst). This driver converts |
Dan Williams | 18da2c9 | 2015-06-09 14:13:37 -0400 | [diff] [blame] | 33 | these persistent memory ranges into block devices that are |
| 34 | capable of DAX (direct-access) file system mappings. See |
| 35 | Documentation/nvdimm/nvdimm.txt for more details. |
| 36 | |
| 37 | Say Y if you want to use an NVDIMM |
| 38 | |
Ross Zwisler | 047fc8a | 2015-06-25 04:21:02 -0400 | [diff] [blame] | 39 | config ND_BLK |
| 40 | tristate "BLK: Block data window (aperture) device support" |
| 41 | default LIBNVDIMM |
| 42 | select ND_BTT if BTT |
| 43 | help |
| 44 | Support NVDIMMs, or other devices, that implement a BLK-mode |
| 45 | access capability. BLK-mode access uses memory-mapped-i/o |
| 46 | apertures to access persistent media. |
| 47 | |
| 48 | Say Y if your platform firmware emits an ACPI.NFIT table |
| 49 | (CONFIG_ACPI_NFIT), or otherwise exposes BLK-mode |
| 50 | capabilities. |
| 51 | |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 52 | config ND_CLAIM |
| 53 | bool |
| 54 | |
Vishal Verma | 5212e11 | 2015-06-25 04:20:32 -0400 | [diff] [blame] | 55 | config ND_BTT |
| 56 | tristate |
| 57 | |
Dan Williams | 8c2f7e8 | 2015-06-25 04:20:04 -0400 | [diff] [blame] | 58 | config BTT |
Vishal Verma | 5212e11 | 2015-06-25 04:20:32 -0400 | [diff] [blame] | 59 | bool "BTT: Block Translation Table (atomic sector updates)" |
| 60 | default y if LIBNVDIMM |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 61 | select ND_CLAIM |
Vishal Verma | 5212e11 | 2015-06-25 04:20:32 -0400 | [diff] [blame] | 62 | help |
| 63 | The Block Translation Table (BTT) provides atomic sector |
| 64 | update semantics for persistent memory devices, so that |
| 65 | applications that rely on sector writes not being torn (a |
| 66 | guarantee that typical disks provide) can continue to do so. |
| 67 | The BTT manifests itself as an alternate personality for an |
| 68 | NVDIMM namespace, i.e. a namespace can be in raw mode (pmemX, |
| 69 | ndblkX.Y, etc...), or 'sectored' mode, (pmemXs, ndblkX.Ys, |
| 70 | etc...). |
| 71 | |
| 72 | Select Y if unsure |
Dan Williams | 8c2f7e8 | 2015-06-25 04:20:04 -0400 | [diff] [blame] | 73 | |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 74 | config ND_PFN |
| 75 | tristate |
| 76 | |
| 77 | config NVDIMM_PFN |
| 78 | bool "PFN: Map persistent (device) memory" |
| 79 | default LIBNVDIMM |
Dan Williams | 32ab0a3f | 2015-08-01 02:16:37 -0400 | [diff] [blame] | 80 | depends on ZONE_DEVICE |
Dan Williams | e145574 | 2015-07-30 17:57:47 -0400 | [diff] [blame] | 81 | select ND_CLAIM |
| 82 | help |
| 83 | Map persistent memory, i.e. advertise it to the memory |
| 84 | management sub-system. By default persistent memory does |
| 85 | not support direct I/O, RDMA, or any other usage that |
| 86 | requires a 'struct page' to mediate an I/O request. This |
| 87 | driver allocates and initializes the infrastructure needed |
| 88 | to support those use cases. |
| 89 | |
| 90 | Select Y if unsure |
| 91 | |
Dan Williams | cd03412 | 2016-03-11 10:15:36 -0800 | [diff] [blame] | 92 | config NVDIMM_DAX |
Arnd Bergmann | 867dfe3 | 2016-10-25 17:52:04 +0200 | [diff] [blame] | 93 | bool "NVDIMM DAX: Raw access to persistent memory" |
Dan Williams | cd03412 | 2016-03-11 10:15:36 -0800 | [diff] [blame] | 94 | default LIBNVDIMM |
| 95 | depends on NVDIMM_PFN |
| 96 | help |
| 97 | Support raw device dax access to a persistent memory |
| 98 | namespace. For environments that want to hard partition |
Masanari Iida | 83fc61a | 2017-09-26 12:47:59 +0900 | [diff] [blame] | 99 | persistent memory, this capability provides a mechanism to |
Dan Williams | cd03412 | 2016-03-11 10:15:36 -0800 | [diff] [blame] | 100 | sub-divide a namespace into character devices that can only be |
| 101 | accessed via DAX (mmap(2)). |
| 102 | |
| 103 | Select Y if unsure |
| 104 | |
Dan Williams | 18da2c9 | 2015-06-09 14:13:37 -0400 | [diff] [blame] | 105 | endif |