]> git.baikalelectronics.ru Git - kernel.git/commit
/dev/dax, pmem: direct access to persistent memory
authorDan Williams <dan.j.williams@intel.com>
Wed, 18 May 2016 16:15:08 +0000 (09:15 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 21 May 2016 05:02:53 +0000 (22:02 -0700)
commit3ae0f529bd191544d0a766d0d6d79c27cc6784a4
treea43178bfd901b84c6b65a6b293f03bc4c9d04076
parent3491d2d9397c6656d549d7edd1c67b590c9c5d6d
/dev/dax, pmem: direct access to persistent memory

Device DAX is the device-centric analogue of Filesystem DAX
(CONFIG_FS_DAX).  It allows memory ranges to be allocated and mapped
without need of an intervening file system.  Device DAX is strict,
precise and predictable.  Specifically this interface:

1/ Guarantees fault granularity with respect to a given page size (pte,
pmd, or pud) set at configuration time.

2/ Enforces deterministic behavior by being strict about what fault
scenarios are supported.

For example, by forcing MADV_DONTFORK semantics and omitting MAP_PRIVATE
support device-dax guarantees that a mapping always behaves/performs the
same once established.  It is the "what you see is what you get" access
mechanism to differentiated memory vs filesystem DAX which has
filesystem specific implementation semantics.

Persistent memory is the first target, but the mechanism is also
targeted for exclusive allocations of performance differentiated memory
ranges.

This commit is limited to the base device driver infrastructure to
associate a dax device with pmem range.

Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/Kconfig
drivers/Makefile
drivers/dax/Kconfig [new file with mode: 0644]
drivers/dax/Makefile [new file with mode: 0644]
drivers/dax/dax.c [new file with mode: 0644]
drivers/dax/dax.h [new file with mode: 0644]
drivers/dax/pmem.c [new file with mode: 0644]
tools/testing/nvdimm/Kbuild
tools/testing/nvdimm/config_check.c