Re: [PATCH v2] x86, uaccess: introduce copy_from_iter_wt for pmem / writethrough operations

2017-05-04 Thread Ingo Molnar
* Dan Williams wrote: > The pmem driver has a need to transfer data with a persistent memory > destination and be able to rely on the fact that the destination writes > are not cached. It is sufficient for the writes to be flushed to a > cpu-store-buffer (non-temporal / "movnt" in x86 terms), as

[PATCH] libnvdimm, pfn: fix 'npfns' vs section alignment

2017-05-04 Thread Dan Williams
Fix failures to create namespaces due to the vmem_altmap not advertising enough free space to store the memmap. WARNING: CPU: 15 PID: 8022 at arch/x86/mm/init_64.c:656 arch_add_memory+0xde/0xf0 [..] Call Trace: dump_stack+0x63/0x83 __warn+0xcb/0xf0 warn_slowpath_null+0x1d/0x20 arch_add

Retained Searches in 3D Printing

2017-05-04 Thread Nicholas Meyler
New Exclusive Retained Searches from Wingate Dunross, Inc. My new client in Ventura, CA has retained me on a set of exciting new searches in the field of 3D Printing, one of the hottest growth fields in the high-technology world. Imagine a world where everybody can create. Imagine the fastest

[PATCH 2/2] libnvdimm: handle locked label storage areas

2017-05-04 Thread Dan Williams
Per the latest version of the "NVDIMM DSM Interface Example" [1], the label data retrieval routine can report a "locked" status. In this case all regions associated with that DIMM are disabled until the label area is unlocked. Provide generic libnvdimm enabling for NVDIMMs with label data area lock

[PATCH 1/2] libnvdimm: convert NDD_ flags to use bitops, introduce NDD_LOCKED

2017-05-04 Thread Dan Williams
This is a preparation patch for handling locked nvdimm label regions, a new concept as introduced by the latest DSM document on pmem.io [1]. A future patch will leverage nvdimm_set_locked() at DIMM probe time to flag regions that can not be enabled. There should be no functional difference resultin

[PATCH v6 3/3] ndctl: add test for clear-error

2017-05-04 Thread Dave Jiang
Adding unit test for ndctl clear-error (and list-errors) Signed-off-by: Dave Jiang --- test/Makefile.am |1 + test/ndctl-clear-error-dax.sh | 66 + 2 files changed, 67 insertions(+) create mode 100755 test/ndctl-clear-error-dax.sh diff

[PATCH v6 1/3] ndctl: add clear-error to ndctl for device dax

2017-05-04 Thread Dave Jiang
Adding ndctl support that will allow clearing of bad blocks for a device. Initial implementation will only support device dax devices. The ndctl takes a device path and parameters of the starting bad block, and the number of bad blocks to clear. Signed-off-by: Dave Jiang --- Documentation/ndctl-

[PATCH v6 0/3] ndctl: add error clearing support for dev dax

2017-05-04 Thread Dave Jiang
The following series implements support for error clearing and error listing for device dax through ndctl. --- v2: Addressed comments from Vishal - added bounds checking for the badblocks region. - updated verbiage to use badblocks instead of poison. - set default len to 1. - fixed error out for

[PATCH v6 2/3] ndctl: add list-errors support

2017-05-04 Thread Dave Jiang
Adding list-errors command to support displaying of all badblocks in relation to the device rather than the region. This allows the user to know what badblocks to pass in when doing clear-error calls. Signed-off-by: Dave Jiang --- Documentation/ndctl-list-errors.txt | 26 +++ builtin.h

[PATCH v2 2/2] dax: fix data corruption due to stale mmap reads

2017-05-04 Thread Ross Zwisler
Users of DAX can suffer data corruption from stale mmap reads via the following sequence: - open an mmap over a 2MiB hole - read from a 2MiB hole, faulting in a 2MiB zero page - write to the hole with write(3p). The write succeeds but we incorrectly leave the 2MiB zero page mapping intact. -

[PATCH v2 1/2] dax: prevent invalidation of mapped DAX entries

2017-05-04 Thread Ross Zwisler
dax_invalidate_mapping_entry() currently removes DAX exceptional entries only if they are clean and unlocked. This is done via: invalidate_mapping_pages() invalidate_exceptional_entry() dax_invalidate_mapping_entry() However, for page cache pages removed in invalidate_mapping_pages() there

Pratt Is Now Earth Works Jacksonville

2017-05-04 Thread Pratt Brothers
Dear Customer, Pratt is now Earth Works Jacksonville! We are pleased to announce that Pratt has been acquired by Earth Works of Jacksonville. This new combined company will expand and provide even greater hardscape and outdoor living space services for our valued customers. Please visit our new

Re: [PATCH 2/2] dax: fix data corruption due to stale mmap reads

2017-05-04 Thread Jan Kara
On Mon 01-05-17 16:38:55, Ross Zwisler wrote: > > So for now I'm still more inclined to just stay with the radix tree lock as > > is and just fix up the locking as I suggest and go for larger rewrite only > > if we can demonstrate further performance wins. > > Sounds good. > > > WRT your second p

Re: [RFC PATCH] dax: add badblocks check to Device DAX

2017-05-04 Thread Kani, Toshimitsu
On Wed, 2017-05-03 at 19:01 -0700, Dan Williams wrote: > On Wed, May 3, 2017 at 4:36 PM, Kani, Toshimitsu > wrote: > > On Wed, 2017-05-03 at 17:25 -0600, Toshi Kani wrote: > > > On Wed, 2017-05-03 at 16:08 -0700, Dan Williams wrote: > > > > On Wed, May 3, 2017 at 3:51 PM, Dan Williams > > > > wro