1config DAX_DRIVER 2 select DAX 3 bool 4 5menuconfig DAX 6 tristate "DAX: direct access to differentiated memory" 7 select SRCU 8 default m if NVDIMM_DAX 9 10if DAX 11 12config DEV_DAX 13 tristate "Device DAX: direct access mapping device" 14 depends on TRANSPARENT_HUGEPAGE 15 help 16 Support raw access to differentiated (persistence, bandwidth, 17 latency...) memory via an mmap(2) capable character 18 device. Platform firmware or a device driver may identify a 19 platform memory resource that is differentiated from the 20 baseline memory pool. Mappings of a /dev/daxX.Y device impose 21 restrictions that make the mapping behavior deterministic. 22 23config DEV_DAX_PMEM 24 tristate "PMEM DAX: direct access to persistent memory" 25 depends on LIBNVDIMM && NVDIMM_DAX && DEV_DAX 26 default DEV_DAX 27 help 28 Support raw access to persistent memory. Note that this 29 driver consumes memory ranges allocated and exported by the 30 libnvdimm sub-system. 31 32 Say M if unsure 33 34config DEV_DAX_KMEM 35 tristate "KMEM DAX: volatile-use of persistent memory" 36 default DEV_DAX 37 depends on DEV_DAX 38 depends on MEMORY_HOTPLUG # for add_memory() and friends 39 help 40 Support access to persistent memory as if it were RAM. This 41 allows easier use of persistent memory by unmodified 42 applications. 43 44 To use this feature, a DAX device must be unbound from the 45 device_dax driver (PMEM DAX) and bound to this kmem driver 46 on each boot. 47 48 Say N if unsure. 49 50config DEV_DAX_PMEM_COMPAT 51 tristate "PMEM DAX: support the deprecated /sys/class/dax interface" 52 depends on m && DEV_DAX_PMEM=m 53 default DEV_DAX_PMEM 54 help 55 Older versions of the libdaxctl library expect to find all 56 device-dax instances under /sys/class/dax. If libdaxctl in 57 your distribution is older than v58 say M, otherwise say N. 58 59endif 60