Kconfig 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. menuconfig LIBNVDIMM
  2. tristate "NVDIMM (Non-Volatile Memory Device) Support"
  3. depends on PHYS_ADDR_T_64BIT
  4. depends on BLK_DEV
  5. help
  6. Generic support for non-volatile memory devices including
  7. ACPI-6-NFIT defined resources. On platforms that define an
  8. NFIT, or otherwise can discover NVDIMM resources, a libnvdimm
  9. bus is registered to advertise PMEM (persistent memory)
  10. namespaces (/dev/pmemX) and BLK (sliding mmio window(s))
  11. namespaces (/dev/ndblkX.Y). A PMEM namespace refers to a
  12. memory resource that may span multiple DIMMs and support DAX
  13. (see CONFIG_DAX). A BLK namespace refers to an NVDIMM control
  14. region which exposes an mmio register set for windowed access
  15. mode to non-volatile memory.
  16. if LIBNVDIMM
  17. config BLK_DEV_PMEM
  18. tristate "PMEM: Persistent memory block device support"
  19. default LIBNVDIMM
  20. depends on HAS_IOMEM
  21. select ND_BTT if BTT
  22. help
  23. Memory ranges for PMEM are described by either an NFIT
  24. (NVDIMM Firmware Interface Table, see CONFIG_NFIT_ACPI), a
  25. non-standard OEM-specific E820 memory type (type-12, see
  26. CONFIG_X86_PMEM_LEGACY), or it is manually specified by the
  27. 'memmap=nn[KMG]!ss[KMG]' kernel command line (see
  28. Documentation/kernel-parameters.txt). This driver converts
  29. these persistent memory ranges into block devices that are
  30. capable of DAX (direct-access) file system mappings. See
  31. Documentation/nvdimm/nvdimm.txt for more details.
  32. Say Y if you want to use an NVDIMM
  33. config ND_BLK
  34. tristate "BLK: Block data window (aperture) device support"
  35. default LIBNVDIMM
  36. select ND_BTT if BTT
  37. help
  38. Support NVDIMMs, or other devices, that implement a BLK-mode
  39. access capability. BLK-mode access uses memory-mapped-i/o
  40. apertures to access persistent media.
  41. Say Y if your platform firmware emits an ACPI.NFIT table
  42. (CONFIG_ACPI_NFIT), or otherwise exposes BLK-mode
  43. capabilities.
  44. config ND_BTT
  45. tristate
  46. config BTT
  47. bool "BTT: Block Translation Table (atomic sector updates)"
  48. default y if LIBNVDIMM
  49. help
  50. The Block Translation Table (BTT) provides atomic sector
  51. update semantics for persistent memory devices, so that
  52. applications that rely on sector writes not being torn (a
  53. guarantee that typical disks provide) can continue to do so.
  54. The BTT manifests itself as an alternate personality for an
  55. NVDIMM namespace, i.e. a namespace can be in raw mode (pmemX,
  56. ndblkX.Y, etc...), or 'sectored' mode, (pmemXs, ndblkX.Ys,
  57. etc...).
  58. Select Y if unsure
  59. endif