Skip to content

Commit a3841f9

Browse files
committed
Merge tag 'libnvdimm-for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm and dax updates from Dan Williams: "Save for a few late fixes, all of these commits have shipped in -next releases since before the merge window opened, and 0day has given a build success notification. The ext4 touches came from Jan, and the xfs touches have Darrick's reviewed-by. An xfstest for the MAP_SYNC feature has been through a few round of reviews and is on track to be merged. - Introduce MAP_SYNC and MAP_SHARED_VALIDATE, a mechanism to enable 'userspace flush' of persistent memory updates via filesystem-dax mappings. It arranges for any filesystem metadata updates that may be required to satisfy a write fault to also be flushed ("on disk") before the kernel returns to userspace from the fault handler. Effectively every write-fault that dirties metadata completes an fsync() before returning from the fault handler. The new MAP_SHARED_VALIDATE mapping type guarantees that the MAP_SYNC flag is validated as supported by the filesystem's ->mmap() file operation. - Add support for the standard ACPI 6.2 label access methods that replace the NVDIMM_FAMILY_INTEL (vendor specific) label methods. This enables interoperability with environments that only implement the standardized methods. - Add support for the ACPI 6.2 NVDIMM media error injection methods. - Add support for the NVDIMM_FAMILY_INTEL v1.6 DIMM commands for latch last shutdown status, firmware update, SMART error injection, and SMART alarm threshold control. - Cleanup physical address information disclosures to be root-only. - Fix revalidation of the DIMM "locked label area" status to support dynamic unlock of the label area. - Expand unit test infrastructure to mock the ACPI 6.2 Translate SPA (system-physical-address) command and error injection commands. Acknowledgements that came after the commits were pushed to -next: - 957ac8c ("dax: fix PMD faults on zero-length files"): Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com> - a39e596 ("xfs: support for synchronous DAX faults") and 7b565c9 ("xfs: Implement xfs_filemap_pfn_mkwrite() using __xfs_filemap_fault()") Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>" * tag 'libnvdimm-for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: (49 commits) acpi, nfit: add 'Enable Latch System Shutdown Status' command support dax: fix general protection fault in dax_alloc_inode dax: fix PMD faults on zero-length files dax: stop requiring a live device for dax_flush() brd: remove dax support dax: quiet bdev_dax_supported() fs, dax: unify IOMAP_F_DIRTY read vs write handling policy in the dax core tools/testing/nvdimm: unit test clear-error commands acpi, nfit: validate commands against the device type tools/testing/nvdimm: stricter bounds checking for error injection commands xfs: support for synchronous DAX faults xfs: Implement xfs_filemap_pfn_mkwrite() using __xfs_filemap_fault() ext4: Support for synchronous DAX faults ext4: Simplify error handling in ext4_dax_huge_fault() dax: Implement dax_finish_sync_fault() dax, iomap: Add support for synchronous faults mm: Define MAP_SYNC and VM_SYNC flags dax: Allow tuning whether dax_insert_mapping_entry() dirties entry dax: Allow dax_iomap_fault() to return pfn dax: Fix comment describing dax_iomap_fault() ...
2 parents adeba81 + 4247f24 commit a3841f9

48 files changed

Lines changed: 1405 additions & 560 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎MAINTAINERS‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4208,7 +4208,7 @@ L: linux-i2c@vger.kernel.org
42084208
S: Maintained
42094209
F: drivers/i2c/busses/i2c-diolan-u2c.c
42104210

4211-
DIRECT ACCESS (DAX)
4211+
FILESYSTEM DIRECT ACCESS (DAX)
42124212
M: Matthew Wilcox <mawilcox@microsoft.com>
42134213
M: Ross Zwisler <ross.zwisler@linux.intel.com>
42144214
L: linux-fsdevel@vger.kernel.org
@@ -4217,6 +4217,12 @@ F: fs/dax.c
42174217
F: include/linux/dax.h
42184218
F: include/trace/events/fs_dax.h
42194219

4220+
DEVICE DIRECT ACCESS (DAX)
4221+
M: Dan Williams <dan.j.williams@intel.com>
4222+
L: linux-nvdimm@lists.01.org
4223+
S: Supported
4224+
F: drivers/dax/
4225+
42204226
DIRECTORY NOTIFICATION (DNOTIFY)
42214227
M: Jan Kara <jack@suse.cz>
42224228
R: Amir Goldstein <amir73il@gmail.com>

‎arch/alpha/include/uapi/asm/mman.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#define MAP_SHARED 0x01 /* Share changes */
1414
#define MAP_PRIVATE 0x02 /* Changes are private */
15+
#define MAP_SHARED_VALIDATE 0x03 /* share + validate extension flags */
1516
#define MAP_TYPE 0x0f /* Mask for type of mapping (OSF/1 is _wrong_) */
1617
#define MAP_FIXED 0x100 /* Interpret addr exactly */
1718
#define MAP_ANONYMOUS 0x10 /* don't use a file */

‎arch/mips/include/uapi/asm/mman.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030
#define MAP_SHARED 0x001 /* Share changes */
3131
#define MAP_PRIVATE 0x002 /* Changes are private */
32+
#define MAP_SHARED_VALIDATE 0x003 /* share + validate extension flags */
3233
#define MAP_TYPE 0x00f /* Mask for type of mapping */
3334
#define MAP_FIXED 0x010 /* Interpret addr exactly */
3435

‎arch/parisc/include/uapi/asm/mman.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#define MAP_SHARED 0x01 /* Share changes */
1414
#define MAP_PRIVATE 0x02 /* Changes are private */
15+
#define MAP_SHARED_VALIDATE 0x03 /* share + validate extension flags */
1516
#define MAP_TYPE 0x03 /* Mask for type of mapping */
1617
#define MAP_FIXED 0x04 /* Interpret addr exactly */
1718
#define MAP_ANONYMOUS 0x10 /* don't use a file */

‎arch/xtensa/include/uapi/asm/mman.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
*/
3737
#define MAP_SHARED 0x001 /* Share changes */
3838
#define MAP_PRIVATE 0x002 /* Changes are private */
39+
#define MAP_SHARED_VALIDATE 0x003 /* share + validate extension flags */
3940
#define MAP_TYPE 0x00f /* Mask for type of mapping */
4041
#define MAP_FIXED 0x010 /* Interpret addr exactly */
4142

0 commit comments

Comments
 (0)