mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 10:01:39 -05:00
There are use cases, for example virtual machine hosts, that create "persistent" memory regions using memmap= option on x86 or dummy pmem-region device tree nodes on DT based systems. Both these options are inflexible because they create static regions and the layout of the "persistent" memory cannot be adjusted without reboot and sometimes they even require firmware update. Add a ramdax driver that allows creation of DIMM devices on top of E820_TYPE_PRAM regions and devicetree pmem-region nodes. The DIMMs support label space management on the "device" and provide a flexible way to access RAM using fsdax and devdax. Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Reviewed-by: Dan Williams <dan.j.williams@intel.com> Link: https://patch.msgid.link/20251026153841.752061-2-rppt@kernel.org Signed-off-by: Ira Weiny <ira.weiny@intel.com>
35 lines
978 B
Makefile
35 lines
978 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
|
|
obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
|
|
obj-$(CONFIG_ND_BTT) += nd_btt.o
|
|
obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
|
|
obj-$(CONFIG_OF_PMEM) += of_pmem.o
|
|
obj-$(CONFIG_VIRTIO_PMEM) += virtio_pmem.o nd_virtio.o
|
|
obj-$(CONFIG_RAMDAX) += ramdax.o
|
|
|
|
nd_pmem-y := pmem.o
|
|
|
|
nd_btt-y := btt.o
|
|
|
|
nd_e820-y := e820.o
|
|
|
|
libnvdimm-y := core.o
|
|
libnvdimm-y += bus.o
|
|
libnvdimm-y += dimm_devs.o
|
|
libnvdimm-$(CONFIG_PERF_EVENTS) += nd_perf.o
|
|
libnvdimm-y += dimm.o
|
|
libnvdimm-y += region_devs.o
|
|
libnvdimm-y += region.o
|
|
libnvdimm-y += namespace_devs.o
|
|
libnvdimm-y += label.o
|
|
libnvdimm-y += badrange.o
|
|
libnvdimm-$(CONFIG_ND_CLAIM) += claim.o
|
|
libnvdimm-$(CONFIG_BTT) += btt_devs.o
|
|
libnvdimm-$(CONFIG_NVDIMM_PFN) += pfn_devs.o
|
|
libnvdimm-$(CONFIG_NVDIMM_DAX) += dax_devs.o
|
|
libnvdimm-$(CONFIG_NVDIMM_KEYS) += security.o
|
|
|
|
TOOLS := ../../tools
|
|
TEST_SRC := $(TOOLS)/testing/nvdimm/test
|
|
obj-$(CONFIG_NVDIMM_TEST_BUILD) += $(TEST_SRC)/iomap.o
|