libnvdimm, pmem: clear poison on write
authorDan Williams <dan.j.williams@intel.com>
Tue, 8 Mar 2016 15:16:07 +0000 (07:16 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 9 Mar 2016 23:15:32 +0000 (15:15 -0800)
commit59e6473980f321c16299e12db69d1fabc2644a6f
tree6c59e4bb7a8a0f2208269643f5b7b8b056680aef
parentb5ebc8ec693281c3c1efff7459a069cbd8b9a149
libnvdimm, pmem: clear poison on write

If a write is directed at a known bad block perform the following:

1/ write the data

2/ send a clear poison command

3/ invalidate the poison out of the cache hierarchy

Cc: <x86@kernel.org>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
arch/x86/include/asm/pmem.h
drivers/nvdimm/bus.c
drivers/nvdimm/nd.h
drivers/nvdimm/pmem.c
include/linux/pmem.h