tag | 0f6323e8ccbea9d9230e28a9883af7b76aca512f | |
---|---|---|
tagger | Dan Williams <dan.j.williams@intel.com> | Fri May 27 11:52:53 2016 -0700 |
object | 947b23607cbaf98a6bce37f916a3e5b221318f7a |
ndctl: release v53 This release incorporates the capabilities of the 4.7-rc1 kernel (most prominently in that kernel 'Device DAX', DAX error handling, and third-party DSM support). The ndctl updates include: New commands / options: bash completion for ndctl commands DIMM SMART data retrieval (ndctl list --dimms --health) ndctl destroy-namespace ndctl read-labels New tests: DAX error handling unit test (dax-errors.sh) Command fixes: ndctl list ndctl create-namespace New apis: ndctl_cmd_smart_get_alarm_flags ndctl_cmd_smart_get_flags ndctl_cmd_smart_get_health ndctl_cmd_smart_get_life_used ndctl_cmd_smart_get_shutdown_state ndctl_cmd_smart_get_spares ndctl_cmd_smart_get_temperature ndctl_cmd_smart_get_vendor_data ndctl_cmd_smart_get_vendor_size ndctl_cmd_smart_threshold_get_alarm_control ndctl_cmd_smart_threshold_get_spares ndctl_cmd_smart_threshold_get_temperature ndctl_dax_delete ndctl_dax_enable ndctl_dax_get_align ndctl_dax_get_bus ndctl_dax_get_ctx ndctl_dax_get_daxctl_region ndctl_dax_get_devname ndctl_dax_get_first ndctl_dax_get_id ndctl_dax_get_location ndctl_dax_get_namespace ndctl_dax_get_next ndctl_dax_get_region ndctl_dax_get_resource ndctl_dax_get_size ndctl_dax_get_uuid ndctl_dax_is_configured ndctl_dax_is_enabled ndctl_dax_is_valid ndctl_dax_set_align ndctl_dax_set_location ndctl_dax_set_namespace ndctl_dax_set_uuid ndctl_dimm_cmd_new_smart ndctl_dimm_cmd_new_smart_threshold ndctl_dimm_get_formatN ndctl_dimm_get_formats ndctl_dimm_get_subsystem_device ndctl_dimm_get_subsystem_revision ndctl_dimm_get_subsystem_vendor ndctl_dimm_get_unique_id ndctl_get_daxctl_ctx ndctl_namespace_get_dax ndctl_namespace_get_dax ndctl_region_get_dax_seed daxctl_dev_get_devname daxctl_dev_get_first daxctl_dev_get_id daxctl_dev_get_major daxctl_dev_get_minor daxctl_dev_get_next daxctl_dev_get_region daxctl_dev_get_size daxctl_get_log_priority daxctl_get_userdata daxctl_new daxctl_new_region daxctl_ref daxctl_region_get_ctx daxctl_region_get_id daxctl_region_get_uuid daxctl_region_ref daxctl_region_unref daxctl_region_unref daxctl_set_log_fn daxctl_set_log_priority daxctl_set_userdata daxctl_unref
commit | 947b23607cbaf98a6bce37f916a3e5b221318f7a | [log] [tgz] |
---|---|---|
author | Dan Williams <dan.j.williams@intel.com> | Fri May 27 11:13:07 2016 -0700 |
committer | Dan Williams <dan.j.williams@intel.com> | Fri May 27 11:52:50 2016 -0700 |
tree | 9b015589dfa0c63119014663829e16ba37dd1489 | |
parent | a4eb07296e6e7e83a1b949fea14367dfd98987f9 [diff] |
ndctl: release v53 This release incorporates the capabilities of the 4.7-rc1 kernel (most prominently in that kernel 'Device DAX', DAX error handling, and third-party DSM support). The ndctl updates include: New commands / options: bash completion for ndctl commands DIMM SMART data retrieval (ndctl list --dimms --health) ndctl destroy-namespace ndctl read-labels New tests: DAX error handling unit test (dax-errors.sh) Command fixes: ndctl list ndctl create-namespace New apis: ndctl_cmd_smart_get_alarm_flags ndctl_cmd_smart_get_flags ndctl_cmd_smart_get_health ndctl_cmd_smart_get_life_used ndctl_cmd_smart_get_shutdown_state ndctl_cmd_smart_get_spares ndctl_cmd_smart_get_temperature ndctl_cmd_smart_get_vendor_data ndctl_cmd_smart_get_vendor_size ndctl_cmd_smart_threshold_get_alarm_control ndctl_cmd_smart_threshold_get_spares ndctl_cmd_smart_threshold_get_temperature ndctl_dax_delete ndctl_dax_enable ndctl_dax_get_align ndctl_dax_get_bus ndctl_dax_get_ctx ndctl_dax_get_daxctl_region ndctl_dax_get_devname ndctl_dax_get_first ndctl_dax_get_id ndctl_dax_get_location ndctl_dax_get_namespace ndctl_dax_get_next ndctl_dax_get_region ndctl_dax_get_resource ndctl_dax_get_size ndctl_dax_get_uuid ndctl_dax_is_configured ndctl_dax_is_enabled ndctl_dax_is_valid ndctl_dax_set_align ndctl_dax_set_location ndctl_dax_set_namespace ndctl_dax_set_uuid ndctl_dimm_cmd_new_smart ndctl_dimm_cmd_new_smart_threshold ndctl_dimm_get_formatN ndctl_dimm_get_formats ndctl_dimm_get_subsystem_device ndctl_dimm_get_subsystem_revision ndctl_dimm_get_subsystem_vendor ndctl_dimm_get_unique_id ndctl_get_daxctl_ctx ndctl_namespace_get_dax ndctl_namespace_get_dax ndctl_region_get_dax_seed daxctl_dev_get_devname daxctl_dev_get_first daxctl_dev_get_id daxctl_dev_get_major daxctl_dev_get_minor daxctl_dev_get_next daxctl_dev_get_region daxctl_dev_get_size daxctl_get_log_priority daxctl_get_userdata daxctl_new daxctl_new_region daxctl_ref daxctl_region_get_ctx daxctl_region_get_id daxctl_region_get_uuid daxctl_region_ref daxctl_region_unref daxctl_region_unref daxctl_set_log_fn daxctl_set_log_priority daxctl_set_userdata daxctl_unref 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 M=tools/testing/nvdimm/
sudo make M=tools/testing/nvdimm/ modules_install
sudo make modules_install
Now run make check
in the ndctl source directory, or ndctl test
, if ndctl was built with --enable-test
.