libnvdimm, nfit: move flush hint mapping to region-device driver-data
authorDan Williams <dan.j.williams@intel.com>
Wed, 8 Jun 2016 00:00:04 +0000 (17:00 -0700)
committerDan Williams <dan.j.williams@intel.com>
Mon, 11 Jul 2016 22:09:26 +0000 (15:09 -0700)
commite5ae3b252c6732f838f5695170bbf2ea9fb5b9ff
tree33db4ea36acf0b1fe329e592b4cac6c266dfa7f5
parenta8a6d2e04c4ffda055db70814c50bd106e44730f
libnvdimm, nfit: move flush hint mapping to region-device driver-data

In preparation for triggering flushes of a DIMM's writes-posted-queue
(WPQ) via the pmem driver move mapping of flush hint addresses to the
region driver.  Since this uses devm_nvdimm_memremap() the flush
addresses will remain mapped while any region to which the dimm belongs
is active.

We need to communicate more information to the nvdimm core to facilitate
this mapping, namely each dimm object now carries an array of flush hint
address resources.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit.c
drivers/acpi/nfit.h
drivers/nvdimm/dimm_devs.c
drivers/nvdimm/nd-core.h
drivers/nvdimm/nd.h
drivers/nvdimm/region.c
drivers/nvdimm/region_devs.c
include/linux/libnvdimm.h