[4.4-stable PATCH] nfit, libnvdimm: fix interleave set cookie calculation

2017-03-15 Thread Dan Williams
commit 86ef58a4e35e8fa66afb5898cf6dec6a3bb29f67 upstream. The interleave-set cookie is a sum that sanity checks the composition of an interleave set has not changed from when the namespace was initially created. The checksum is calculated by sorting the DIMMs by their location in the

[PATCH v3 5/5] libnvdimm: providing dax support for nvdimm testing

2017-03-15 Thread Dave Jiang
Adding dax support to the nvdimm testing in tools/testing/nvdimm. The memory allocated by the tool is via vmalloc and non-contiguous. Overriding pgoff_to_phys() call to support the vmalloc memory. Signed-off-by: Dave Jiang Reviewed-by: Johannes Thumshirn

[PATCH v3 2/5] libnvdimm: Add resource sysfs attrib to nd region

2017-03-15 Thread Dave Jiang
Adding sysfs attribute in order to export the physical address of the ND region. This is for supporting of user app poison clear via device dax. Signed-off-by: Dave Jiang Reviewed-by: Johannes Thumshirn --- drivers/nvdimm/region_devs.c | 13

[PATCH v3 3/5] acpi: code cleanup for acpi_nfit_ctl calling xlat_status

2017-03-15 Thread Dave Jiang
Moving the xlat_status() call to a single location to clean up the code since it is getting called in the main code paths already. We only need to bail on the error path at a single location. Signed-off-by: Dave Jiang Reviewed-by: Johannes Thumshirn ---

[PATCH v3 4/5] acpi_nfit, libnvdimm: Add support for clear poison list and bad blocks

2017-03-15 Thread Dave Jiang
Providing mechanism to clear poison list via the ndctl ND_CMD_CLEAR_ERROR call. We will update the poison list and also the badblocks at region level if the region is in dax mode or in pmem mode and not active. Signed-off-by: Dave Jiang Reviewed-by: Johannes Thumshirn

Re: [PATCH v2 4/5] acpi_nfit, libnvdimm: Add support for clear poison list and bad blocks

2017-03-15 Thread Dan Williams
On Tue, Mar 7, 2017 at 1:06 PM, Dave Jiang wrote: > Providing mechanism to clear poison list via the ndctl ND_CMD_CLEAR_ERROR > call. We will update the poison list and also the badblocks at region level > if the region is in dax mode or in pmem mode and not active. > >