tag | 08d16a8ceb4633f7522f13edce7d606761a39c53 | |
---|---|---|
tagger | Dan Williams <dan.j.williams@intel.com> | Mon Feb 01 20:15:24 2016 -0800 |
object | d3fdcf9ac24d3f57968d166a1c240b2f5e44aab8 |
ndctl: release v50 This release incorporates the capabilities of the 4.5 kernel, and adds the below features and fixes: New apis: ndctl_bus_get_ctx ndctl_namespace_get_pfn ndctl_namespace_get_mode ndctl_namespace_get_numa_node ndctl_region_get_pfn_seed ndctl_pfn_get_first ndctl_pfn_get_next ndctl_pfn_get_id ndctl_pfn_get_namespace ndctl_pfn_get_uuid ndctl_pfn_set_uuid ndctl_pfn_get_location ndctl_pfn_set_location ndctl_pfn_get_align ndctl_pfn_set_align ndctl_pfn_set_namespace ndctl_pfn_get_bus ndctl_pfn_get_ctx ndctl_pfn_get_devname ndctl_pfn_get_block_device ndctl_pfn_is_valid ndctl_pfn_is_enabled ndctl_pfn_get_region ndctl_pfn_enable ndctl_pfn_delete ndctl_pfn_is_configured New utility commands: list help (man pages) create-namespace Api fixes: ndctl_{namespace|btt}_foreach crash fix ndctl_namespace_delete no longer errors on "io" namespaces miscellaneous static analysis fixes Utility command fixes: {en|dis}able-{namespace|region} return code
commit | d3fdcf9ac24d3f57968d166a1c240b2f5e44aab8 | [log] [tgz] |
---|---|---|
author | Dan Williams <dan.j.williams@intel.com> | Thu Jan 28 09:51:29 2016 -0800 |
committer | Dan Williams <dan.j.williams@intel.com> | Mon Feb 01 20:13:07 2016 -0800 |
tree | 6b538f34f1b322adc4d9677a121135cd6e280fc6 | |
parent | 35ddd4ff9e508293c62fe2644edf2345a7e6851e [diff] |
ndctl: release v50 This release incorporates the capabilities of the v4.5 kernel, and adds the below features and fixes: New apis: ndctl_bus_get_ctx ndctl_namespace_get_pfn ndctl_namespace_get_mode ndctl_namespace_get_numa_node ndctl_region_get_pfn_seed ndctl_pfn_get_first ndctl_pfn_get_next ndctl_pfn_get_id ndctl_pfn_get_namespace ndctl_pfn_get_uuid ndctl_pfn_set_uuid ndctl_pfn_get_location ndctl_pfn_set_location ndctl_pfn_get_align ndctl_pfn_set_align ndctl_pfn_set_namespace ndctl_pfn_get_bus ndctl_pfn_get_ctx ndctl_pfn_get_devname ndctl_pfn_get_block_device ndctl_pfn_is_valid ndctl_pfn_is_enabled ndctl_pfn_get_region ndctl_pfn_enable ndctl_pfn_delete ndctl_pfn_is_configured New utility commands: list help (man pages) create-namespace Api fixes: ndctl_{namespace|btt}_foreach crash fix ndctl_namespace_delete no longer errors on "io" namespaces miscellaneous static analysis fixes Utility command fixes: {en|dis}able-{namespace|region} return code Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Utility library for managing the libnvdimm (non-volatile memory device) sub-system in the Linux kernel
./autogen.sh
./configure --enable-local
make
make check
sudo make install
See the latest documentation for the NVDIMM kernel sub-system here:
The unit tests run by make check
require the nfit_test.ko module to be loaded. To build and install nfit_test.ko:
Obtain the kernel source. For example,git clone -b libnvdimm-for-next git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git
Configure the kernel to make some memory available to CMA (contiguous memory allocator). This will be used to emulate DAX.CONFIG_DMA_CMA=y
CONFIG_CMA_SIZE_MBYTES=200
orcma=200M
on the kernel command line.
Compile all components of the libnvdimm sub-system as modules:CONFIG_LIBNVDIMM=m
CONFIG_BLK_DEV_PMEM=m
CONFIG_ND_BLK=m
CONFIG_ND_BTT=m
Build and install the unit test enabled libnvdimm modules in the following order. The unit test modules need to be in place prior to the depmod
that runs during the final modules_install
make -C tools/testing/nvdimm/
sudo make -C tools/testing/nvdimm/ install
sudo make modules_install
Now run make check
in the ndctl source directory, or ndctl test
, if ndctl was built with --enable-test
.